/* Smilespec survey — typographic, editorial, calm. Meaning never rides on colour alone:
   every selected state also has a tick, a heavier border and bolder text. */

:root {
  --bg: #f6f3ec;
  --surface: #fffefb;
  --tint: #efeadf;
  --ink: #101a2b;
  --ink-2: #39445a;
  --muted: #687184;
  --line: #e2dccf;
  --line-2: #cdc5b5;
  --accent: #9c4a26;          /* copper — eyebrow text only */
  --focus: #2f5bd3;
  --err: #a3241a;
  --btn-bg: #101a2b;
  --btn-ink: #ffffff;
  --btn-off: #c9c3b6;
  --paper: #fffdf7;
  --paper-ink: #101a2b;
  --paper-line: #e6dfcf;
  --shadow: 0 1px 2px rgba(16, 26, 43, .05), 0 8px 24px rgba(16, 26, 43, .06);

  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --script: "Snell Roundhand", "Apple Chancery", "Segoe Script", "Brush Script MT", cursive;
  --r: 14px;
  --col: 640px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1624; --surface: #151f30; --tint: #1c2940; --ink: #edf0f5; --ink-2: #c3cad6;
    --muted: #96a0b2; --line: #263247; --line-2: #3a4862; --accent: #e0a07e; --focus: #8fb0ff;
    --err: #ff8c80; --btn-bg: #edf0f5; --btn-ink: #0e1624; --btn-off: #3a4558;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
:root[data-theme="dark"] {
  --bg: #0e1624; --surface: #151f30; --tint: #1c2940; --ink: #edf0f5; --ink-2: #c3cad6;
  --muted: #96a0b2; --line: #263247; --line-2: #3a4862; --accent: #e0a07e; --focus: #8fb0ff;
  --err: #ff8c80; --btn-bg: #edf0f5; --btn-ink: #0e1624; --btn-off: #3a4558;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--sans); min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* ------------------------------------------------------------------ bar */
.bar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); }
.bar-inner { max-width: calc(var(--col) + 32px); margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: -.015em; text-decoration: none; }
.meter { display: flex; align-items: center; gap: 10px; }
.meter-text { font-size: 13px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.meter-track { width: 88px; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter-fill { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 99px; transition: width .35s cubic-bezier(.2, .7, .2, 1); }

/* ------------------------------------------------------------------ stage */
.stage { flex: 1; width: 100%; max-width: calc(var(--col) + 32px); margin: 0 auto; padding: 12px 16px 0; }
.step { padding: 8px 0 32px; animation: rise .32s cubic-bezier(.2, .7, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (min-width: 720px) { .stage { padding-top: 40px; } }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; width: 100%; }

h1, h2, h3 { margin: 0; letter-spacing: -.015em; }
h1:focus, h2:focus { outline: none; }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 8.4vw, 50px); line-height: 1.08; letter-spacing: -.025em; margin: 6px 0 22px; text-wrap: balance; }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(23px, 5.6vw, 30px); line-height: 1.22; margin: 4px 0 20px; text-wrap: balance; }
h2.display { font-size: clamp(26px, 6.6vw, 38px); line-height: 1.14; letter-spacing: -.02em; }
p { margin: 0 0 14px; }
.eyebrow, .qno { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.muted { color: var(--muted); font-size: 15px; }
.prose p { color: var(--ink-2); }
.lede { font-size: 18px; color: var(--ink-2); }

/* intro */
.facts { list-style: none; margin: 0 0 26px; padding: 16px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li { display: flex; flex-direction: column; padding: 0 12px; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.fact-k { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.1; }
.facts li:last-child .fact-k { font-size: 17px; line-height: 1.5; padding-top: 4px; font-family: var(--sans); font-weight: 700; }
.fact-v { font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------------ options */
.options { display: grid; gap: 10px; }
.opt {
  position: relative; display: flex; align-items: center; gap: 14px;
  min-height: 60px; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--r);
  background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s, transform .08s;
  -webkit-tap-highlight-color: transparent;
}
.opt:hover { border-color: var(--ink-2); }
.opt:active { transform: scale(.995); }
.opt input, .chip input, .check input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.key {
  flex: 0 0 28px; height: 28px; border-radius: 8px; border: 1.5px solid var(--line-2);
  display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.opt-text { flex: 1; min-width: 0; line-height: 1.4; }
.tick { flex: 0 0 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; visibility: hidden; background: var(--ink); }
.tick::after { content: ""; width: 10px; height: 5.5px; border: solid var(--surface); border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }

.opt:has(input:checked) { border: 2.5px solid var(--ink); padding: 13px 15px; background: var(--tint); }
.opt:has(input:checked) .opt-text { font-weight: 650; }
.opt:has(input:checked) .key { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.opt:has(input:checked) .tick { visibility: visible; }
.opt:has(input:focus-visible), .chip:has(input:focus-visible), .check:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }

.recap { font-size: 14.5px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-2); border-radius: 12px; padding: 10px 14px; margin: -6px 0 18px; }
.link { font: inherit; font-weight: 650; color: var(--ink); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.plan { flex-direction: column; align-items: stretch; gap: 6px; padding: 16px; }
.opt.plan:has(input:checked) { padding: 15px; }
.plan-head { display: flex; justify-content: space-between; align-items: center; min-height: 24px; }
.plan-name { font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.plan-price { font-family: var(--serif); font-size: clamp(30px, 8vw, 40px); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan-price small { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.plan-rows { display: grid; gap: 4px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); line-height: 1.35; }
.plan-rows b { color: var(--ink); font-variant-numeric: tabular-nums; }
.after-plans { margin-top: 10px; }

/* concept */
.loop { list-style: none; margin: 24px 0 18px; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.loop li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.loop-n { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.3; }
.loop h3 { font-size: 17px; font-weight: 700; line-height: 1.35; margin: 0 0 4px; letter-spacing: -.005em; }
.loop p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
@media (min-width: 720px) {
  .loop { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}
.aside { font-size: 15px; color: var(--muted); font-style: italic; }

/* L1 points */
.points { list-style: none; margin: 4px 0 22px; padding: 0; display: grid; gap: 8px; }
.points li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 15.5px; }
.points li::before { content: "—"; position: absolute; left: 0; color: var(--muted); }
.points b { color: var(--ink); }

/* ------------------------------------------------------------------ actions */
.actions {
  display: flex; gap: 10px; align-items: center; justify-content: space-between;
  margin-top: 28px;
}
.actions .primary { margin-left: auto; }
.actions.solo { justify-content: flex-start; }
.btn {
  font: inherit; font-size: 16px; font-weight: 650; border-radius: 12px; min-height: 52px; padding: 0 24px;
  cursor: pointer; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  -webkit-tap-highlight-color: transparent; transition: transform .08s, background .15s, opacity .15s;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn.primary:disabled { background: var(--btn-off); cursor: not-allowed; }
.btn.lg { min-height: 58px; padding: 0 30px; font-size: 17px; }
.btn.quiet { background: transparent; color: var(--ink-2); padding: 0 6px; }
.btn.quiet:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn.busy { color: transparent !important; position: relative; pointer-events: none; }
.btn.busy::after { content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border: 2.5px solid var(--btn-ink); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Phones: the primary action sits in a bar at the bottom, always in reach. */
@media (max-width: 719px) {
  .step:not(.intro):not(.done) .actions, .sign-panel .actions {
    position: sticky; bottom: 0; z-index: 10; margin: 24px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--bg) 70%, color-mix(in srgb, var(--bg) 0%, transparent));
  }
  .actions .primary { flex: 1; max-width: 70%; }
  .intro .actions .btn.lg { width: 100%; max-width: none; margin-left: 0; }
}

/* ------------------------------------------------------------------ form */
.group { margin: 18px 0 8px; }
.field { margin: 0 0 18px; }
.field > label, .label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-weight: 650; font-size: 15px; margin-bottom: 7px; }
.flag { font-weight: 450; color: var(--muted); font-size: 13.5px; }
.field-row { display: grid; gap: 0 14px; }
@media (min-width: 600px) { .field-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
input[type=text], input[type=email], input[type=tel] {
  width: 100%; font: inherit; font-size: 17px; min-height: 52px; padding: 12px 14px;
  border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
input[type=text]:focus, input[type=email]:focus, input[type=tel]:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 22%, transparent); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: 99px; cursor: pointer; font-size: 15px; background: var(--surface); }
.chip .tick { flex-basis: 18px; height: 18px; display: none; }
.chip .tick::after { width: 8px; height: 4.5px; border-width: 0 0 2px 2px; }
.chip:has(input:checked) { border: 2.5px solid var(--ink); padding: 0 15px 0 11px; background: var(--tint); font-weight: 650; }
.chip:has(input:checked) .tick { display: grid; visibility: visible; }
#role_other { margin-top: 10px; }

.field > .check, .check { position: relative; display: flex; flex-wrap: nowrap; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; font-weight: 450; margin: 0; line-height: 1.5; color: var(--ink-2); }
.check .box { flex: 0 0 24px; height: 24px; border: 2px solid var(--line-2); border-radius: 7px; display: grid; place-items: center; background: var(--surface); margin-top: 0; }
.check input:checked + .box { background: var(--ink); border-color: var(--ink); }
.check input:checked + .box::after { content: ""; width: 11px; height: 6px; border: solid var(--surface); border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }

.err, .form-error { color: var(--err); font-size: 14px; font-weight: 650; margin: 7px 0 0; display: flex; gap: 7px; align-items: flex-start; }
.err::before, .form-error::before { content: "!"; flex: 0 0 18px; height: 18px; border-radius: 50%; background: var(--err); color: var(--surface); font-size: 12px; font-weight: 800; display: grid; place-items: center; margin-top: 1px; }
.form-error { margin-top: 18px; }
.field.invalid input[type=text], .field.invalid input[type=email], .field.invalid input[type=tel] { border: 2.5px solid var(--err); }
.field.invalid .chips, .field.invalid .check .box { outline: 2px dashed var(--err); outline-offset: 4px; border-radius: 8px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------------ letter */
.paper {
  background: var(--paper); color: var(--paper-ink); border: 1px solid var(--paper-line); border-radius: 4px;
  padding: 26px 20px 28px; margin: 6px 0 26px; font-family: var(--serif); font-size: 16px; line-height: 1.62;
  box-shadow: 0 2px 4px rgba(16, 26, 43, .05), 0 18px 40px -12px rgba(16, 26, 43, .18);
}
@media (min-width: 720px) { .paper { padding: 44px 52px 48px; } }
.paper .paper-mark { font-family: var(--serif); font-weight: 600; font-size: 17px; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--paper-line); }
.paper h4 { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: -.015em; margin: 0 0 4px; }
.paper .to { color: #3d4759; margin-bottom: 18px; }
.paper dl { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: 6px 18px; margin: 0 0 20px; padding: 14px 0; border-top: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); font-family: var(--sans); font-size: 14.5px; line-height: 1.45; }
.paper dt { color: #6a7282; }
.paper dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
@media (max-width: 440px) { .paper dl { grid-template-columns: minmax(0, 1fr); gap: 0; } .paper dd { margin-bottom: 8px; } }
.paper p { margin: 0 0 12px; }
.paper .sigline { margin-top: 26px; }
.paper .sig { font-family: var(--script); font-size: 32px; line-height: 1.35; min-height: 48px; border-bottom: 1.5px solid var(--paper-ink); max-width: 340px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paper .sig:empty::before { content: "Your signature appears here"; font-family: var(--sans); font-size: 14px; color: #a0a7b4; }
.paper .sigline small { font-family: var(--sans); font-size: 12.5px; color: #6a7282; }

.sign-panel { border-top: 1px solid var(--line); padding-top: 22px; }
.statement { font-family: var(--serif); font-size: 17px; line-height: 1.55; padding-left: 14px; border-left: 3px solid var(--ink); margin-bottom: 18px; }
.record-note { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ------------------------------------------------------------------ done */
.done { padding-top: 24px; }
.done-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); margin-bottom: 18px; }
.done-mark::after { content: ""; width: 20px; height: 11px; border: solid var(--bg); border-width: 0 0 3px 3px; transform: translateY(-2px) rotate(-45deg); }
.done .lede { margin-bottom: 22px; }
.ref-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin: 0 0 18px; display: grid; gap: 2px; }
.ref-card span { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ref-card code { font: 600 16px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.next-list { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.next-list li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15.5px; }
.next-list b { color: var(--ink); }
.btn.link-btn { text-decoration: none; }

/* ------------------------------------------------------------------ footer */
.foot { max-width: calc(var(--col) + 32px); width: 100%; margin: 0 auto; padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 12.5px; }
.foot p { margin: 0; border-top: 1px solid var(--line); padding-top: 14px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* privacy page */
h3.pv { font-size: 17px; font-weight: 700; margin: 26px 0 6px; }
.back-link { margin-top: 28px; }

/* ------------------------------------------------------------------ home (coming soon) */
.soon-tag { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); border: 1.5px solid var(--line-2); border-radius: 99px; padding: 5px 12px; }
.home-stage { --col: 1040px; max-width: calc(var(--col) + 32px); }
.home .bar-inner, .home .foot { max-width: 1072px; }
.hero { padding: 36px 0 44px; max-width: 760px; }
.hero h1 { font-size: clamp(36px, 9vw, 68px); line-height: 1.04; margin-bottom: 22px; }
.hero .lede { font-size: clamp(17px, 2.4vw, 20px); line-height: 1.6; max-width: 640px; margin-bottom: 30px; }
.hero-actions { display: grid; gap: 12px; justify-items: start; }
.hero-note { font-size: 14px; color: var(--muted); margin: 0; }
.btn.primary.lg { text-decoration: none; }
.pillars { display: grid; gap: 0; border-top: 1px solid var(--line); margin: 8px 0 0; }
.pillars article { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 4px; }
.pillars .loop-n { grid-row: span 2; }
.pillars h2 { font-family: var(--sans); font-size: 18px; font-weight: 700; letter-spacing: -.005em; margin: 0 0 6px; }
.pillars p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
@media (min-width: 820px) {
  .hero { padding: 72px 0 72px; }
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 36px; border-top: 0; }
  .pillars article { border-bottom: 0; border-top: 1.5px solid var(--ink); padding-top: 18px; display: block; }
  .pillars .loop-n { display: block; margin-bottom: 10px; }
}
.closing { margin: 56px 0 24px; padding: 32px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; text-align: left; }
@media (min-width: 820px) { .closing { padding: 44px 48px; margin-top: 80px; } }
.closing h2 { font-size: clamp(24px, 4.4vw, 34px); margin-bottom: 10px; }
.closing p { color: var(--ink-2); max-width: 560px; }
.btn.quiet-solid { text-decoration: none; background: transparent; color: var(--ink); border: 1.5px solid var(--ink); margin-top: 6px; }
.btn.quiet-solid:hover { background: var(--tint); }
.contact-line { margin: 18px 0 0; font-size: 14.5px; color: var(--muted); }
@media (max-width: 719px) { .hero-actions .btn.lg { width: 100%; } .hero-actions { justify-items: stretch; } }

/* ------------------------------------------------------------------ legal pages */
.bar-link { font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.bar-link:hover { text-decoration: underline; }
.legal-doc { max-width: 680px; }
.legal-doc h1 { font-size: clamp(30px, 7vw, 44px); margin-bottom: 16px; }
.legal-doc h2 { font-family: var(--sans); font-size: 19px; font-weight: 750; letter-spacing: -.005em; margin: 34px 0 10px; scroll-margin-top: 80px; }
.legal-doc h3 { font-size: 15.5px; font-weight: 700; margin: 18px 0 6px; }
.legal-doc p, .legal-doc li { color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.legal-doc a { color: var(--ink); font-weight: 600; }
.toc { margin: 22px 0 8px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2 220px; column-gap: 24px; }
.toc li { font-size: 14.5px; margin: 0 0 4px; break-inside: avoid; }
.toc a { text-decoration: none; font-weight: 550; }
.toc a:hover { text-decoration: underline; }
.plain { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 8px; }
.legal-foot { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; }
.record-note a { color: var(--ink-2); font-weight: 600; }

/* ------------------------------------------------------------------ admin results */
.admin-stage { --col: 1040px; max-width: calc(var(--col) + 32px); }
.admin .bar-inner, .admin .foot { max-width: 1072px; }
.admin-bar { display: flex; align-items: center; gap: 14px; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-top: 8px; }
.admin-head h1 { font-size: clamp(30px, 6vw, 42px); margin: 2px 0 6px; }
.admin-head .muted { margin: 0; }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 24px 0 8px; }
@media (min-width: 820px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 2px; }
.tile-k { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile-v { font-size: 13.5px; color: var(--muted); }
.admin-section { margin-top: 40px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-bottom: 1.5px solid var(--ink); padding-bottom: 10px; margin-bottom: 10px; }
.section-head h2 { font-family: var(--sans); font-size: 20px; font-weight: 750; margin: 0; }
.charts { display: grid; gap: 14px; margin-top: 16px; }
@media (min-width: 900px) { .charts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chart { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px 12px; }
.chart figcaption { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.chart-title { font-weight: 700; font-size: 15.5px; line-height: 1.35; }
.chart-base { font-size: 12.5px; color: var(--muted); }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.bar-row:first-of-type { border-top: 0; }
@media (min-width: 560px) { .bar-row { grid-template-columns: minmax(0, 11em) minmax(0, 1fr) 6.5em; align-items: center; } }
.bar-label { font-size: 14px; color: var(--ink-2); line-height: 1.3; }
.bar-track { display: block; height: 10px; background: var(--tint); border-radius: 2px; overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 0 4px 4px 0; transition: width .4s cubic-bezier(.2, .7, .2, 1); }
.bar-value { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 560px) { .bar-value { text-align: right; } }
.bar-value b { color: var(--ink); }
.empty { color: var(--muted); padding: 18px 0; }
.table-wrap { overflow-x: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table.letters { width: 100%; border-collapse: collapse; font-size: 14px; }
.letters th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.letters td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); overflow-wrap: break-word; }
.letters td[data-label="GDC"], .letters td[data-label="Signed"], .letters code { white-space: nowrap; }
table.letters { min-width: 900px; }
.letters tr:last-child td { border-bottom: 0; }
.letters td b { color: var(--ink); }
.letters code { font-size: 11.5px; color: var(--muted); }
.pdf-link { font-weight: 700; color: var(--ink); }
@media (max-width: 719px) {
  .table-wrap { border: 0; background: none; }
  table.letters, .letters tbody, .letters tr, .letters td { display: block; width: 100%; min-width: 0; }
  .letters td[data-label="GDC"], .letters td[data-label="Signed"] { white-space: normal; }
  .letters thead { display: none; }
  .letters tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 4px; margin-bottom: 10px; }
  .letters td { border: 0; padding: 6px 12px; display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 8px; }
  .letters td::before { content: attr(data-label); font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding-top: 2px; }
}
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-actions .btn.primary { text-decoration: none; }
