/* Sunday Strip app: the family landing's design system (OpenDesign atelier-zero: warm paper,
   ink, one coral accent, hairline rules), sized for forms, the interview and the strip. */

@font-face {
  font-family: "Inter Tight";
  src: url("/assets/family/fonts/inter-tight-latin-wght-normal-bb14ae8d.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/assets/family/fonts/inter-tight-latin-wght-italic-5df21bd6.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/assets/family/fonts/playfair-display-latin-500-italic-83baffea.woff2") format("woff2");
  font-weight: 500; font-style: italic; font-display: swap;
}

:root {
  --paper: #efe7d2;
  --paper-warm: #ece4cf;
  --paper-dark: #ddd2b6;
  --bone: #f7f1de;
  --ink: #15140f;
  --ink-soft: #2a2620;
  --ink-mute: #5a5448;
  --ink-faint: #8b8676;
  --coral: #ed6f5c;
  --coral-soft: #f08e7c;
  --coral-ink: #a83c2a;
  --mustard: #e9b94a;
  --olive: #6e7448;
  --wash: #e6dcc1;
  --line: rgba(21, 20, 15, 0.16);
  --line-strong: rgba(21, 20, 15, 0.32);
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --radius-card: 14px;
  --radius-pill: 999px;
  --gutter: 20px;
  --shadow: 0 1px 0 rgba(106, 92, 56, 0.08), 0 24px 48px -28px rgba(106, 92, 56, 0.35);
}
@media (min-width: 880px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper);
  background-image: radial-gradient(1200px 600px at 12% -10%, rgba(106, 92, 56, 0.07), transparent 60%);
  color: var(--ink-soft); font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--coral-ink); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- frame ---------- */
.wrap { width: 100%; max-width: calc(1100px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.app-head { border-bottom: 1px solid var(--line); background: rgba(239, 231, 210, 0.92); }
.app-head__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; font-size: 1.1rem; }
.brand svg { fill: none; stroke: var(--ink); stroke-width: 2.2; }
.brand svg circle { fill: var(--coral); stroke: none; }
.app-nav { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; justify-content: flex-end; font-size: 0.95rem; }
.app-nav a, .app-nav button { color: var(--ink-mute); text-decoration: none; font: inherit; background: none; border: 0; padding: 6px 2px; cursor: pointer; }
.app-nav a:hover, .app-nav button:hover { color: var(--ink); text-decoration: underline; }
.app-nav form { margin: 0; }
.app-nav { flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 480px) { .app-nav__signout, .app-nav__admin { display: none; } }
.app-main { flex: 1; padding: 36px 0 64px; }
@media (min-width: 880px) { .app-main { padding: 56px 0 96px; } }
.app-foot { border-top: 1px solid var(--line); padding: 24px 0 32px; color: var(--ink-mute); font-size: 0.9rem; }
.app-foot__row { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; justify-content: space-between; }
.app-foot a { color: var(--ink-mute); }
.app-foot__word { font-weight: 800; color: var(--ink); margin: 0; }
.app-foot p { margin: 0; }

.page { max-width: 620px; margin: 0 auto; }
.page--wide { max-width: 1000px; margin: 0 auto; }

/* ---------- type ---------- */
h1, h2, h3 { color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.2rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.032em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); line-height: 1.12; font-weight: 800; letter-spacing: -0.025em; }
h3 { font-size: 1.1rem; line-height: 1.25; font-weight: 750; letter-spacing: -0.015em; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -0.01em; color: var(--coral-ink); }
.dot { color: var(--coral); }
.kicker { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--ink-mute); margin: 0 0 12px; }
.lede { font-size: 1.12rem; color: var(--ink-mute); margin: 14px 0 0; max-width: 52ch; }
.page > .lede + *, .page--wide > .lede + * { margin-top: 28px; }
.muted { color: var(--ink-mute); }
.small { font-size: 0.9rem; }
body .stack > :not(input[type="hidden"]) ~ :not(input[type="hidden"]) { margin-top: 18px; }
body .stack-lg > :not(input[type="hidden"]) ~ :not(input[type="hidden"]) { margin-top: 32px; }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--radius-pill);
  background: var(--coral); color: var(--ink); border: 1.5px solid var(--ink);
  font: inherit; font-weight: 750; font-size: 1rem; text-decoration: none; cursor: pointer;
  box-shadow: 0 3px 0 var(--ink); transition: transform 0.12s ease, box-shadow 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn[disabled], .btn.is-disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn--ghost { background: transparent; box-shadow: none; }
.btn--ghost:hover { background: var(--bone); box-shadow: none; }
.btn--ink { background: var(--ink); color: var(--bone); }
.btn--small { min-height: 38px; padding: 7px 16px; font-size: 0.92rem; box-shadow: 0 2px 0 var(--ink); }
.btn--block { width: 100%; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row form { margin: 0; }
.link { color: var(--coral-ink); font-weight: 650; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.button-as-link { display: inline; }
.button-as-link form, form.button-as-link { display: inline; margin: 0; }

/* ---------- cards and forms ---------- */
.card { background: var(--bone); border: 1px solid var(--line-strong); border-radius: var(--radius-card); padding: 22px; box-shadow: var(--shadow); }
@media (min-width: 640px) { .card { padding: 30px; } }
.card--flat { box-shadow: none; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.field { display: grid; gap: 6px; }
.field + .field { margin-top: 18px; }
.field label, .label { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.opt { font-weight: 500; color: var(--ink-mute); }
.hint { font-size: 0.88rem; color: var(--ink-mute); margin: 0; }
input[type="text"], input[type="email"], input[type="search"], input[type="date"], input[type="password"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fffdf6; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 12px 14px;
  min-height: 48px; -webkit-appearance: none; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
input[type="file"] { font: inherit; font-size: 0.95rem; color: var(--ink-mute); max-width: 100%; }
input[type="file"]::file-selector-button { font: inherit; font-weight: 700; color: var(--ink); background: transparent; border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 16px; margin-right: 12px; cursor: pointer; }
input[type="file"]::file-selector-button:hover { background: var(--paper, #f7f1de); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(237, 111, 92, 0.35); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--coral-ink); flex: none; }
.form-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.errors { background: #fbe3dc; border: 1px solid var(--coral-ink); color: var(--ink); border-radius: 10px; padding: 12px 14px; margin: 0 0 18px; }
.errors ul { margin: 6px 0 0; padding-left: 18px; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--ink-mute); font-size: 0.9rem; margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }

.flash { max-width: 1000px; margin: 0 auto 24px; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bone); color: var(--ink); }
.flash--alert { background: #fbe3dc; border-color: var(--coral-ink); }
.flash--inline { margin: 0; }

.google-btn { background: #fffdf6; box-shadow: 0 2px 0 var(--ink); }
.google-btn svg { width: 18px; height: 18px; stroke: none; }

/* ---------- steps (onboarding) ---------- */
.progress { display: flex; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 0.85rem; color: var(--ink-mute); flex-wrap: wrap; }
.progress li { display: flex; align-items: center; gap: 6px; }
.progress li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink-mute); }
.progress li.is-done::before, .progress li.is-now::before { background: var(--coral); border-color: var(--ink); }
.progress li.is-now { color: var(--ink); font-weight: 700; }

.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.person { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fffdf6; }
.person__who { min-width: 0; }
.person__who b { color: var(--ink); }
.person__who span { display: block; color: var(--ink-mute); font-size: 0.9rem; overflow-wrap: anywhere; }
.person form { margin: 0; flex: none; }
.grid-2 { display: grid; gap: 18px; }
.grid-2 .field + .field { margin-top: 0; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- home ---------- */
.week-card { display: grid; gap: 18px; }
.week-card > .status-pill { justify-self: start; }
.page > h1 + section, .page > h1 + .card { margin-top: 28px; }
.page > section + section { margin-top: 36px; }
.status-pill { display: inline-block; padding: 3px 12px; border-radius: var(--radius-pill); font-size: 0.82rem; font-weight: 700; border: 1px solid var(--ink); background: var(--mustard); color: var(--ink); }
.status-pill--done { background: var(--olive); color: var(--bone); }
.past { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.past a { display: flex; justify-content: space-between; gap: 12px; text-decoration: none; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fffdf6; }
.past a:hover { border-color: var(--ink); }
.next-reminder { margin-top: 12px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.people, .replies { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.people li { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fffdf6; }
.people__name { font-weight: 650; overflow-wrap: anywhere; }
.reply-item { padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--coral); border-radius: 12px; background: #fffdf6; }
.reply-item p { margin: 0; }
.reply-item p + p { margin-top: 6px; }
.reply-item__body { white-space: pre-line; overflow-wrap: anywhere; }

/* ---------- the interview ---------- */
.chat { display: grid; gap: 12px; }
.chat + * { margin-top: 22px; }
.bubble { margin: 0; padding: 14px 18px; border-radius: 18px; max-width: 92%; line-height: 1.45; overflow-wrap: anywhere; }
.bubble--q { background: var(--ink); color: var(--bone); border-bottom-left-radius: 6px; justify-self: start; font-size: 1.08rem; }
.bubble--a { background: #fffdf6; border: 1px solid var(--line-strong); border-bottom-right-radius: 6px; justify-self: end; color: var(--ink); }
.bubble--a.is-out { opacity: 0.55; text-decoration: line-through; }
.bubble__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: flex-end; margin-top: 8px; font-size: 0.84rem; color: var(--ink-mute); }
.bubble__meta form { margin: 0; }
.bubble__meta button { font: inherit; color: var(--coral-ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.answer-box { margin-top: 8px; padding: 20px; border: 1.5px solid var(--ink); border-radius: 18px; background: var(--bone); box-shadow: var(--shadow); }
.recorder { display: grid; justify-items: center; gap: 12px; text-align: center; }
.rec-btn {
  width: 92px; height: 92px; border-radius: 50%; border: 2px solid var(--ink); background: var(--coral);
  box-shadow: 0 4px 0 var(--ink); cursor: pointer; display: grid; place-items: center; color: var(--ink);
  -webkit-tap-highlight-color: transparent; font: inherit;
}
.rec-btn svg { width: 34px; height: 34px; fill: currentColor; }
.rec-btn.is-recording { background: var(--ink); color: var(--coral); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 4px 0 var(--ink), 0 0 0 0 rgba(237, 111, 92, 0.5); } 50% { box-shadow: 0 4px 0 var(--ink), 0 0 0 14px rgba(237, 111, 92, 0); } }
@media (prefers-reduced-motion: reduce) { .rec-btn.is-recording { animation: none; } }
.rec-time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); margin: 0; }
.rec-time:empty { display: none; }
.rec-status { min-height: 1.4em; color: var(--ink-mute); font-size: 0.95rem; margin: 0; }
.rec-status.is-error { color: var(--coral-ink); font-weight: 650; }
.type-toggle { margin-top: 4px; }
.type-form textarea { min-height: 120px; }
.type-form > summary { list-style: none; text-align: center; margin-top: 16px; }
.type-form > summary::-webkit-details-marker { display: none; }
.type-form[open] > summary { margin-bottom: 12px; }
.answer-alt { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; margin-top: 14px; font-size: 0.95rem; }
.answer-alt form { margin: 0; }

/* ---------- the strip ---------- */
.strip-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.strip-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (min-width: 760px) { .strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }
.panel-card { margin: 0; min-width: 0; display: grid; gap: 10px; align-content: start; }
.panel-card__art { position: relative; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--bone); aspect-ratio: 4 / 3; }
.panel-card__art img { width: 100%; height: 100%; object-fit: cover; }
.panel-card__art.is-private img { filter: grayscale(1) blur(2px); opacity: 0.45; }
.panel-card__badge { position: absolute; top: 10px; left: 10px; background: var(--ink); color: var(--bone); padding: 3px 10px; border-radius: var(--radius-pill); font-size: 0.78rem; font-weight: 700; }
.panel-card__label { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 750; color: var(--coral-ink); margin: 0; }
.panel-card__cap { margin: 0; color: var(--ink); font-size: 1.02rem; }
.panel-card__speech { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: var(--ink-soft); }
.panel-card__tools { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 0.92rem; }
.panel-card__tools form { margin: 0; }
.panel-card__tools details { width: 100%; }
.panel-card__tools summary { cursor: pointer; color: var(--coral-ink); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; list-style: none; display: inline; }
.panel-card__tools summary::-webkit-details-marker { display: none; }
.panel-card__tools details[open] form { margin-top: 10px; display: grid; gap: 10px; }
.locked { aspect-ratio: 4 / 3; border: 2px dashed var(--ink-mute); border-radius: 10px; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--ink-mute); background: repeating-linear-gradient(45deg, var(--paper-warm), var(--paper-warm) 10px, var(--paper) 10px, var(--paper) 20px); }
.locked b { display: block; color: var(--ink); }
.drawing { aspect-ratio: 4 / 3; border: 2px solid var(--line-strong); border-radius: 10px; display: grid; place-items: center; color: var(--ink-mute); background: var(--paper-warm); text-align: center; padding: 16px; }
.drawing__dots::after { content: "…"; animation: dots 1.2s steps(3, end) infinite; display: inline-block; width: 1.2em; text-align: left; }
@keyframes dots { 0% { content: "."; } 33% { content: ".."; } 66% { content: "..."; } }
.hooks { margin-top: 32px; padding: 22px 24px; border: 1.5px solid var(--ink); border-radius: var(--radius-card); background: var(--bone); }
.hooks__title { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--coral-ink); margin: 0 0 8px; }
.hooks ul { margin: 0; padding-left: 20px; }
.hooks li { color: var(--ink); margin: 4px 0; }
.approve-bar { margin-top: 32px; padding: 22px; border-radius: var(--radius-card); background: var(--ink); color: var(--bone); display: grid; gap: 14px; }
.approve-bar p { margin: 0; color: var(--paper-dark); }
.approve-bar h2 { color: var(--bone); }
.approve-bar .btn { justify-self: start; }
.who-got-it { margin-top: 40px; }
.approve-bar .link { color: var(--coral-soft); }
.waiting { text-align: center; padding: 40px 20px; }
.waiting__art { width: 140px; margin: 0 auto 20px; }

/* ---------- the family's page ---------- */
.share-strip { background: var(--bone); border: 2px solid var(--ink); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
@media (min-width: 760px) { .share-strip { padding: 32px; } }
.reply-box { margin-top: 36px; }
.reply-box + .card { margin-top: 24px; }
.reply-tabs { display: flex; gap: 8px; margin-bottom: 14px; }

/* ---------- admin ---------- */
.admin { max-width: 1200px; margin: 0 auto; }
.admin h1 { font-size: 2rem; }
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 24px; }
.admin-nav__link { padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); text-decoration: none; color: var(--ink); font-weight: 650; font-size: 0.92rem; background: #fffdf6; }
.admin-nav__link:hover { border-color: var(--ink); }
.admin-nav__link.is-current { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.admin-note { margin: -12px 0 18px; }
.metrics { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 12px; }
@media (min-width: 900px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric, .cap { display: grid; gap: 2px; align-content: start; background: #fffdf6; border: 1px solid var(--line-strong); border-radius: 12px; padding: 14px 16px; }
.metric b, .cap b { font-size: 1.6rem; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.metric__label { color: var(--ink-mute); font-size: 0.82rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; }
.metric__hint { color: var(--ink-mute); font-size: 0.85rem; }
.caps { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.cap b { font-size: 1.25rem; }
.cap--warn { border-color: var(--coral-ink); background: #fff1ec; }
.cap__meter { width: 100%; height: 8px; margin-top: 6px; }
.badge { display: inline-block; padding: 1px 9px; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 700; background: var(--ink); color: var(--bone); vertical-align: middle; }
.badge--quiet { background: transparent; color: var(--ink-mute); border: 1px solid var(--line-strong); }
.admin-user__email { overflow-wrap: anywhere; font-size: 1.6rem; }
.admin-user__badges { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 0; }
.admin-cards { margin-bottom: 8px; }
.admin-sheets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; margin: 0 0 14px; }
.admin-sheets figure { margin: 0; }
.admin-sheets img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.admin-cards h2 { font-size: 1.1rem; margin: 0 0 10px; }
.kv { display: grid; grid-template-columns: minmax(90px, max-content) 1fr; gap: 6px 14px; margin: 0; font-size: 0.92rem; }
.kv dt { color: var(--ink-mute); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.admin-replies { max-width: 760px; }
.pager { display: flex; gap: 16px; align-items: center; margin-top: 14px; }
.admin-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 24px; }
.admin-filter .field { margin: 0; }
.admin-filter .field + .field { margin: 0; }
.admin-filter input, .admin-filter select { min-height: 40px; padding: 8px 10px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 12px; background: #fffdf6; }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.table th, .table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; vertical-align: top; }
.table th { background: var(--paper-warm); color: var(--ink); font-weight: 750; position: sticky; top: 0; }
.table td.num, .table th.num { text-align: right; }
.table tr:last-child td { border-bottom: 0; }
.table .pct { color: var(--ink-mute); font-size: 0.85em; }
.table--funnel th { white-space: normal; vertical-align: bottom; min-width: 4.5em; }
.table--funnel td.num .pct { display: block; }
.sig { font-weight: 700; }
.sig--yes { color: var(--olive); }
.sig--no { color: var(--ink-mute); }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 24px; }
.stat { background: #fffdf6; border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; }
.stat b { display: block; font-size: 1.5rem; color: var(--ink); }
.stat span { color: var(--ink-mute); font-size: 0.85rem; }
.admin > h2 { margin: 40px 0 10px; }
.admin > h2 + p { margin: 0 0 14px; }
.weights { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.weights .field { margin: 0; width: 110px; }
.weights .field + .field { margin: 0; }
.weights input { width: 100%; min-height: 44px; padding: 8px 10px; font-size: 1rem; }
.weights label { text-transform: capitalize; }

/* ---------- legal ---------- */
.legal h2 { margin-top: 32px; font-size: 1.3rem; }
.legal p, .legal li { color: var(--ink-soft); }

.inline-form, .inline-form button { display: inline; margin: 0; }

.row-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
