/* ── Couples view (additive; loaded after style.css) ── */
.preview-banner {
  background: var(--amber); color: var(--teal); font-size: 0.8125rem; padding: 0.5rem 1rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; justify-content: center; text-align: center;
}
.preview-banner strong { font-family: var(--font-label); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.preview-banner a, .preview-banner button { color: var(--teal); font-family: var(--font-action); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }

.view-actions { display: flex; gap: 0.5rem; align-items: center; }
.btn-secondary {
  font-family: var(--font-action); font-weight: 500; display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.625rem 1.125rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--teal); font-size: 0.9375rem; transition: background var(--transition);
}
.btn-secondary:hover { background: var(--surface-2); }

.couple-card { text-align: left; font: inherit; color: inherit; width: 100%; }
.couple-card::before { background: linear-gradient(90deg, var(--emerald), var(--amber)); }
.couple-card .type-badge + .type-badge { margin-left: -0.9rem; box-shadow: 0 0 0 2px var(--surface); }
.couple-hero .type-badge + .type-badge { margin-left: -1.4rem; box-shadow: 0 0 0 3px var(--surface); }
.couple-hero { border-left: 4px solid var(--emerald); }

.pair-panel {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-sm);
}
.pair-panel h3 { font-family: var(--font-h2); font-weight: 400; font-size: 1.125rem; color: var(--teal); margin-bottom: 0.25rem; }
.pair-panel .hint { color: var(--text-muted); font-size: 0.8125rem; margin-bottom: 1rem; }
.pair-grid { display: grid; grid-template-columns: 1fr 1fr 12rem; gap: 1rem; align-items: end; }
.pair-grid select, .pair-grid input {
  width: 100%; padding: 0.6rem 0.75rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); font: inherit; color: var(--text);
}
.pair-grid select:focus, .pair-grid input:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(0,152,119,0.15); }
.pair-actions { display: flex; gap: 0.5rem; margin-top: 1.25rem; flex-wrap: wrap; }
.pair-error { color: #C0392B; font-size: 0.8125rem; margin-top: 0.75rem; }
.pair-summary { background: var(--surface-2); border-radius: var(--radius-sm); padding: 1rem 1.25rem; line-height: 1.6; }
.pair-summary p + p { margin-top: 0.5rem; }
.cp-list { margin: 0.75rem 0 0 1.1rem; color: var(--text-muted); font-size: 0.875rem; }
.cp-pre { white-space: pre-wrap; }

.cp-guide { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.cp-guide-item {
  background: var(--surface); border: 1.5px solid var(--border); border-left: 4px solid var(--emerald);
  border-radius: var(--radius-md); padding: 0.9rem 1.1rem; display: grid; gap: 0.25rem;
}
.cp-guide-item .btn-back { justify-self: start; padding: 0; color: var(--emerald); }
.cp-heading {
  font-family: var(--font-h2); font-weight: 400; font-size: 1.125rem; color: var(--teal);
  margin: 1.75rem 0 0.75rem; display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
}
.cp-tag {
  font-family: var(--font-label); font-weight: 500; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.2rem 0.6rem; border-radius: 999px;
}
.cp-tag.shared { background: rgba(0,152,119,0.12); color: #00684f; }
.cp-tag.private { background: rgba(0,59,74,0.08); color: var(--teal); }

.mobile-tabs { display: none; }
@media (max-width: 680px) {
  .mobile-tabs {
    display: flex; gap: 0.25rem; background: var(--teal); padding: 0.5rem; overflow-x: auto;
  }
  .mobile-tabs a {
    color: rgba(255,255,255,0.8); font-family: var(--font-action); font-weight: 500; font-size: 0.875rem;
    padding: 0.4rem 0.8rem; border-radius: 999px; text-decoration: none; white-space: nowrap;
  }
  .mobile-tabs a:hover { background: rgba(255,255,255,0.1); color: #fff; }
  .app { flex-direction: column; }
  .pair-grid, .cp-guide { grid-template-columns: 1fr; }
  .view-header { flex-wrap: wrap; }
}
.cp-unpair-note { background: #FEF5F4; border: 1.5px solid #F5C6C2; color: #8E2B20; border-radius: var(--radius-sm); padding: 0.75rem 1rem; font-size: 0.875rem; margin: -0.75rem 0 1.25rem; }

/* ── Personalization + coach-only notes ── */
.cp-panel { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.cp-panel-head { display: flex; align-items: center; gap: 0.6rem 0.75rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.cp-panel-head h3 { font-family: var(--font-h2); font-weight: 400; font-size: 1.0625rem; color: var(--teal); }
.cp-muted { color: var(--text-muted); font-size: 0.8125rem; line-height: 1.5; }
.cp-code-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.cp-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.875rem; padding: 0.45rem 0.6rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); width: 16rem; max-width: 100%; }
.cp-code-row .btn-secondary { padding: 0.45rem 0.9rem; font-size: 0.875rem; }
.cp-notes { width: 100%; min-height: 7rem; padding: 0.75rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font: inherit; color: var(--text); background: var(--surface); resize: vertical; }
.cp-notes:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(0,152,119,0.15); }
.cp-notes-actions { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Your Own Work summary ── */
.cp-own { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 0.9rem 1.1rem; margin-bottom: 0.75rem; display: grid; gap: 0.5rem; }
.cp-own-stats { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; font-size: 0.875rem; color: var(--text); }
.cp-own-ms { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cp-ms { font-size: 0.8125rem; background: var(--surface-2); border-radius: 999px; padding: 0.25rem 0.7rem; color: var(--text-muted); }
.cp-ms strong { color: var(--teal); font-weight: 500; }

/* ── Still discovering ── */
.pair-types { display: grid; grid-template-columns: 1fr 1fr 12rem; gap: 1rem; margin-top: 1rem; }
.pair-types select { width: 100%; padding: 0.6rem 0.75rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font: inherit; color: var(--text); }
.pt-check { display: flex; align-items: center; gap: 0.45rem; margin-top: 0.5rem; font-size: 0.875rem; color: var(--text); cursor: pointer; }
.pt-check input { accent-color: var(--emerald); width: 1rem; height: 1rem; }
.cp-tag.prov { background: rgba(245,168,0,0.18); color: #7a5300; justify-self: start; }
.cp-type, .cp-sub { display: grid; gap: 0.4rem; margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px dashed var(--border); }
.cp-type .cp-tag, .cp-sub .cp-tag { justify-self: start; }
.cp-type-row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.cp-type-row select { padding: 0.45rem 0.6rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font: inherit; font-size: 0.875rem; color: var(--text); }
.cp-type-row .btn-secondary { padding: 0.45rem 0.9rem; font-size: 0.875rem; }
.btn-link { background: none; border: 0; padding: 0.2rem; font-family: var(--font-action); font-weight: 500; font-size: 0.8125rem; color: var(--emerald); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
@media (max-width: 680px) { .pair-types { grid-template-columns: 1fr; } }

/* ── Sign-up codes ── */
.inv-grid { display: grid; grid-template-columns: 1fr 1fr 12rem; gap: 1rem; margin-top: 1rem; align-items: start; }
.inv-person { border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 0.75rem 0.9rem 0.9rem; display: grid; gap: 0.35rem; margin: 0; }
.inv-person legend { font-family: var(--font-label, inherit); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); padding: 0 0.3rem; }
.inv-grid input[type="text"], .inv-grid input[type="date"], .inv-grid select { width: 100%; padding: 0.6rem 0.75rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font: inherit; color: var(--text); }
.inv-row { display: grid; grid-template-columns: minmax(10rem, 1.2fr) auto auto 1fr; gap: 0.5rem 1rem; align-items: center; padding: 0.75rem 0; border-top: 1px solid var(--border); }
.inv-who { display: grid; }
.inv-who span { font-size: 0.8125rem; color: var(--text-muted); }
.inv-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9375rem; letter-spacing: 0.04em; background: var(--surface-2); padding: 0.3rem 0.55rem; border-radius: var(--radius-sm); user-select: all; }
.inv-acts { display: flex; gap: 0.5rem; justify-content: flex-end; flex-wrap: wrap; }
.inv-acts .btn-secondary { padding: 0.45rem 0.9rem; font-size: 0.875rem; }
.inv-msg { grid-column: 1 / -1; width: 100%; min-height: 7rem; font: inherit; font-size: 0.875rem; padding: 0.6rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); }
#invites-list { margin-bottom: 1.5rem; }
.inv-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 0.9rem 1.1rem 0.25rem; margin-bottom: 0.75rem; }
.inv-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-bottom: 0.6rem; }
.inv-card-head > div { display: grid; gap: 0.15rem; }
@media (max-width: 760px) {
  .inv-grid { grid-template-columns: 1fr; }
  .inv-row { grid-template-columns: 1fr; }
  .inv-acts { justify-content: flex-start; }
}

/* Notes from Trish editor (approved 2026-10-01) */
.tn-weeks { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; margin-bottom: .9rem; }
.tn-weeks .response-label { margin-right: .35rem; }
.tn-week { min-width: 2.1rem; height: 2.1rem; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); color: var(--teal); font-family: var(--font-action, inherit); font-weight: 700; cursor: pointer; }
.tn-week.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.tn-week:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; }
.tn-group { border: 1.5px solid var(--border); border-radius: var(--radius-sm); margin-bottom: .6rem; background: var(--surface); }
.tn-group > summary { display: flex; justify-content: space-between; gap: .75rem; padding: .7rem .9rem; cursor: pointer; font-weight: 500; color: var(--teal); }
.tn-group-body { padding: 0 .9rem .6rem; }
.tn-slot { padding: .75rem 0; border-top: 1px solid var(--border); min-width: 0; }
.tn-slot-head { display: flex; align-items: center; gap: .4rem .6rem; flex-wrap: wrap; margin-bottom: .4rem; }
.tn-slot-head label { flex: 1 1 16rem; min-width: 0; }
.tn-state { font-size: .75rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; }
.tn-state.draft { background: rgba(245,168,0,0.18); color: #7a5300; }
.tn-state.edited { background: rgba(0,152,119,0.12); color: #00684f; }
.tn-state.empty { background: rgba(0,59,74,0.06); color: var(--text-muted); }
.tn-text { width: 100%; padding: .6rem .7rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font: inherit; color: var(--text); background: var(--surface); resize: vertical; }
.tn-text:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(0,152,119,0.15); }
.tn-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: .45rem; }
.tn-actions .btn-secondary { padding: .4rem .9rem; font-size: .875rem; }
.tn-code { margin-top: .75rem; }
.tn-code > summary { cursor: pointer; }

.cp-gb { margin-top: .6rem; }
.cp-gb .btn-link { padding: 0; }
.cp-guide-item { align-content: start; }

/* Couple card: each partner's weeks done (approved 2026-10-12) */
.cp-done { display: flex; flex-wrap: wrap; gap: .35rem; }
.done-chip { font-size: .8125rem; color: var(--teal); background: var(--cream, #F2F0EC); border-radius: 999px; padding: .2rem .6rem; }
.done-chip.behind { background: rgba(245,168,0,.28); font-weight: 600; }

/* Values + Relationship Check (approved 2026-10-13) */
.cp-dv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.cp-dv-col { border-top: 3px solid var(--border); padding-top: .6rem; }
.cp-dv-list { margin: .4rem 0 0 1.1rem; display: grid; gap: .55rem; }
.cp-dv-list strong { font-family: var(--font-h2); font-weight: 400; }
.cp-dv-line { display: block; font-size: .9rem; margin-top: .15rem; }
.cp-dv-line em { font-style: normal; color: var(--text-muted, rgba(0,59,74,.68)); }
.cp-dv-sub { display: block; margin-top: 1.1rem; }
.cp-dv-table { overflow-x: auto; margin-top: .4rem; }
.cp-dv-table table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.cp-dv-table th, .cp-dv-table td { padding: .45rem .6rem; border-bottom: 1px solid rgba(0,59,74,.10); text-align: center; }
.cp-dv-table th[scope="row"] { text-align: left; font-weight: 400; }
.cp-dv-table thead th { font-weight: 500; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.cp-gap { background: rgba(245,168,0,.20); font-weight: 700; }
.cp-gap-key { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; background: rgba(245,168,0,.35); vertical-align: -1px; }
@media (max-width: 720px) { .cp-dv { grid-template-columns: 1fr; } }

/* My Path at a glance (approved 2026-10-14) */
.cp-path { display: flex; flex-wrap: wrap; gap: .35rem; }
.cp-path-i { font-size: .78rem; padding: .15rem .55rem; border-radius: 999px; background: rgba(0,59,74,.06); color: rgba(0,59,74,.68); }
.cp-path-i.on { background: rgba(0,152,119,.14); color: #00684f; font-weight: 500; }

/* Start Here status (approved 2026-10-14) */
.cp-start { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid rgba(0,59,74,.1); display: grid; gap: .45rem; justify-items: start; }
.cp-start .cp-tag { justify-self: start; }

/* Verse of the Week (approved 2026-11-02) */
.tn-verses { display: flex; align-items: flex-start; gap: .6rem; flex-wrap: wrap; padding: .75rem .9rem; margin-bottom: .9rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.tn-verses input { margin-top: .25rem; accent-color: var(--emerald); width: 1.1rem; height: 1.1rem; }
.tn-verses > span:first-of-type { flex: 1 1 18rem; min-width: 0; }
.tn-verses .cp-muted { display: block; }
.tn-ref { margin-bottom: .4rem; }

/* Pacing (approved 2026-11-05) */
.pace-mark { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; vertical-align: middle; margin-left: .35rem; }
.pace-mark.behind-1 { background: #F5A800; }
.pace-mark.behind-2 { background: #FF4713; }
.cp-pace { border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: 1rem 1.1rem; margin: 1rem 0; }
.cp-pace-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem .9rem; }
.cp-pace-week { font-size: 1.15rem; }
.cp-pace .cp-path { margin: .6rem 0 .3rem; }
.cp-pace .cp-type-row { gap: .6rem; flex-wrap: wrap; }

/* Answers by week, side by side (approved 2026-11-05) */
.ans-weeks .tn-week.tp { padding: 0 .9rem; }
.ans-weeks .tn-week { position: relative; }
.ans-weeks .tn-week.has::after { content: ''; position: absolute; top: 2px; right: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); }
.ans-shared { border: 1.5px solid var(--border); border-top: 4px solid var(--emerald); border-radius: var(--radius-sm); background: var(--surface); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.ans-head, .ans-col-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; margin-bottom: .6rem; }
.ans-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.ans-col { min-width: 0; border: 1.5px solid var(--border); border-top: 4px solid var(--pc); border-radius: var(--radius-sm); background: var(--surface); padding: 1rem 1.1rem; }
.ans-name { font-weight: 700; font-size: 1.1rem; color: var(--pc); }
.ans-col .response-section { margin-top: .8rem; }
.cp-pnotes { background: rgba(0,59,74,.04); border-radius: var(--radius-sm); padding: .75rem; margin-bottom: .9rem; }
.cp-pnotes .cp-notes { min-height: 6rem; margin-top: .35rem; }
.ans-tabs { display: none; }
@media (max-width: 900px) {
  .ans-tabs { display: flex; gap: .4rem; margin-bottom: .6rem; }
  .ans-tab { flex: 1; min-height: 2.75rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font-weight: 700; color: var(--teal); cursor: pointer; }
  .ans-tab.on { border-color: var(--pc); box-shadow: inset 0 -3px 0 var(--pc); color: var(--pc); }
  .ans-cols { grid-template-columns: 1fr; }
  .ans-col:not(.on) { display: none; }
}
