/* Priors: a card-table theme. Quiet paper everywhere, one felt table for the reveal. */
:root {
  --paper: #EDF0EA;
  --paper-2: #E2E7DF;
  --ink: #1C2622;
  --muted: #56645E;
  --rule: #CBD3CA;
  --felt: #17463A;
  --felt-2: #1F5446;
  --felt-ink: #E9EFE6;
  --felt-muted: #A9C2B5;
  --felt-bar: #5F937D;
  --chip: #C8323C;        /* you */
  --gold: #E3B23C;        /* the truth */
  --good: #2F7D4F;
  --bad: #B43A3A;
  --focus: #2E62B0;
  --radius-s: 6px;
  --radius-l: 14px;
  --measure: 46rem;
  font-synthesis: none;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121A17;
    --paper-2: #1A2420;
    --ink: #E3E9E4;
    --muted: #9AA9A1;
    --rule: #2C3833;
    --felt: #164237;
    --felt-2: #1D5244;
    --focus: #7EA7EA;
    --good: #5DB585;
    --bad: #E07070;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-variation-settings: "wdth" 100;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-feature-settings: "tnum" 1;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--ink); color: var(--paper); padding: .5rem .75rem; z-index: 10; }

/* ---------- header ---------- */
.top {
  display: flex; align-items: baseline; gap: 2rem;
  max-width: 64rem; margin: 0 auto; padding: 1.25rem 1rem .75rem;
}
.wordmark {
  font-variation-settings: "wdth" 125; font-weight: 850; font-size: 1.6rem;
  letter-spacing: -0.02em; text-decoration: none;
}
.top nav { display: flex; gap: 1.25rem; flex: 1; }
.top nav a { text-decoration: none; color: var(--muted); font-weight: 500; padding: .2rem 0; border-bottom: 2px solid transparent; }
.top nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.me { color: var(--muted); font-size: .95rem; white-space: nowrap; }
.me strong { color: var(--ink); font-weight: 650; }
@media (max-width: 640px) {
  .top { flex-wrap: wrap; gap: .5rem 1.25rem; }
  .top nav { order: 3; flex-basis: 100%; }
  .me { margin-left: auto; }
}

main { max-width: 64rem; margin: 0 auto; padding: 1rem 1rem 4rem; outline: none; }
.foot { max-width: 64rem; margin: 0 auto; padding: 2rem 1rem 3rem; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--rule); }

/* ---------- type ---------- */
h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 750; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); font-variation-settings: "wdth" 112; }
h2 { font-size: 1.35rem; font-variation-settings: "wdth" 108; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1rem; max-width: var(--measure); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.num { font-variation-settings: "wdth" 125; font-weight: 800; letter-spacing: -0.02em; }
.kicker { color: var(--muted); font-size: .95rem; margin-bottom: .5rem; }

/* ---------- buttons & inputs ---------- */
.btn {
  appearance: none; border: 2px solid var(--ink); background: var(--ink); color: var(--paper);
  font: inherit; font-weight: 650; padding: .6rem 1.1rem; border-radius: 999px; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; line-height: 1.2;
}
.btn:hover { filter: brightness(1.15); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.quiet { background: transparent; color: var(--muted); border-color: transparent; padding-left: .25rem; padding-right: .25rem; text-decoration: underline; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.felt .btn { background: var(--felt-ink); color: var(--felt); border-color: var(--felt-ink); }
.felt .btn.ghost { background: transparent; color: var(--felt-ink); }
.row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }

input[type="text"] {
  font: inherit; font-size: 1.25rem; padding: .6rem .8rem; border: 2px solid var(--rule);
  border-radius: var(--radius-s); background: var(--paper); color: var(--ink); width: 100%; max-width: 22rem;
}
input[type="text"]:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent); }

input[type="range"] { width: 100%; accent-color: var(--chip); height: 2rem; margin: 0; cursor: pointer; }

/* ---------- home ---------- */
.felt {
  background: var(--felt);
  background-image: radial-gradient(120% 90% at 50% 0%, var(--felt-2), var(--felt) 70%);
  color: var(--felt-ink); border-radius: var(--radius-l); padding: clamp(1.25rem, 4vw, 2.25rem);
}
.felt .muted { color: var(--felt-muted); }
.daily { display: grid; grid-template-columns: auto 1fr; gap: .5rem 2rem; align-items: end; margin-bottom: 2.5rem; }
.daily .big { font-size: clamp(4.5rem, 14vw, 8.5rem); line-height: .85; grid-row: span 3; }
.daily h1 { color: var(--felt-ink); }
@media (max-width: 560px) { .daily { grid-template-columns: 1fr; } .daily .big { grid-row: auto; } }

.section { margin: 2.5rem 0; }
.section > h2 { margin-bottom: .25rem; }
.section > .muted { margin-bottom: 1rem; }

.qlist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.qlist li { border-bottom: 1px solid var(--rule); }
.qlist a {
  display: grid; grid-template-columns: 1.5rem 1fr auto; gap: .75rem; align-items: center;
  padding: .8rem .25rem; text-decoration: none;
}
.qlist a:hover .qt { text-decoration: underline; }
.qt { font-weight: 650; }
.qmeta { color: var(--muted); font-size: .9rem; }
.mark { font-weight: 800; text-align: center; color: var(--muted); }
.mark.solved { color: var(--good); }
.mark.missed { color: var(--bad); }
.fool { display: flex; align-items: center; gap: .5rem; min-width: 8rem; justify-content: flex-end; color: var(--muted); font-size: .9rem; }
.fool .bar { height: 6px; width: 5rem; background: var(--paper-2); border-radius: 3px; overflow: hidden; }
.fool .bar i { display: block; height: 100%; background: var(--chip); }

/* ---------- question ---------- */
.q-head { max-width: var(--measure); margin: 1rem 0 2rem; }
.q-head h1 { margin-bottom: .6rem; }
.statement { font-size: clamp(1.15rem, 2.2vw, 1.3rem); line-height: 1.6; max-width: 42rem; margin-bottom: 2.25rem; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; max-width: var(--measure); }
.step { position: relative; padding: 0 0 2rem 3.25rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -.15rem; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-variation-settings: "wdth" 125;
  border: 2px solid var(--ink);
}
.step.done::before { background: var(--ink); color: var(--paper); }
.step.locked { opacity: .5; }
.step h2 { margin-bottom: .5rem; }

.gutval { font-size: clamp(2.6rem, 8vw, 3.6rem); line-height: 1; color: var(--chip); margin: .25rem 0 .5rem; }
.track { position: relative; height: 10px; margin: .25rem 0 1rem; background: var(--paper-2); border-radius: 5px; }
.track .band { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--chip) 30%, transparent); border-radius: 5px; }
.track .pin { position: absolute; top: -4px; width: 4px; height: 18px; margin-left: -2px; background: var(--chip); border-radius: 2px; }
.axis { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; margin-top: -.5rem; }
label.lab { display: block; font-weight: 600; margin: 1rem 0 .25rem; }

.locked-gut { display: flex; align-items: center; gap: .75rem; }
.chipdot { width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--chip); box-shadow: inset 0 0 0 3px color-mix(in srgb, #fff 55%, var(--chip)); flex: none; }

.preview { min-height: 1.5rem; color: var(--muted); font-size: .95rem; margin: .35rem 0 .75rem; }
.preview.err { color: var(--bad); }
.hints { list-style: none; margin: 1rem 0; padding: 0; }
.hints li { border-left: 3px solid var(--gold); padding: .25rem 0 .25rem .9rem; margin-bottom: .6rem; max-width: 40rem; }

/* ---------- reveal ---------- */
.reveal { margin: 0 0 2rem; }
.verdict { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.5rem; margin-bottom: 1.25rem; }
.verdict .num { font-size: clamp(2.4rem, 7vw, 3.8rem); line-height: 1; color: var(--gold); }
.verdict .say { font-size: 1.15rem; font-weight: 600; }
.panel-title { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin: 1.25rem 0 .25rem; }
.panel-title h3 { font-weight: 650; }
.counter { font-size: .95rem; color: var(--felt-muted); }
.counter b { color: var(--felt-ink); font-weight: 650; }
svg.chart { width: 100%; height: auto; display: block; overflow: visible; }
svg.chart text { fill: var(--felt-muted); font-family: inherit; font-size: 12px; }
svg.chart .grid { stroke: rgba(233, 239, 230, .12); }
svg.chart .est { fill: none; stroke: var(--felt-ink); stroke-width: 2; stroke-linejoin: round; }
svg.chart .se { fill: rgba(233, 239, 230, .14); }
svg.chart .truth { stroke: var(--gold); stroke-width: 2.5; }
svg.chart .truth-label { fill: var(--gold); font-weight: 700; }
svg.chart .you { fill: var(--chip); stroke: var(--felt-ink); stroke-width: 2; }
svg.chart .you-label { fill: #F2A7AC; font-weight: 650; }
svg.chart .bar { fill: var(--felt-bar); }
svg.chart .bar.yours { fill: #A86A6E; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem 1.5rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(233, 239, 230, .18); }
.stat .v { font-size: 1.6rem; font-variation-settings: "wdth" 118; font-weight: 750; line-height: 1.15; }
.stat .k { color: var(--felt-muted); font-size: .9rem; }

.share { white-space: pre-line; background: var(--paper-2); border-radius: var(--radius-s); padding: 1rem 1.1rem; font-size: 1.05rem; max-width: 26rem; margin-bottom: .75rem; }

.methods details { border-top: 1px solid var(--rule); padding: .8rem 0; max-width: var(--measure); }
.methods details:last-child { border-bottom: 1px solid var(--rule); }
.methods summary { cursor: pointer; font-weight: 650; }
.methods details p { margin: .6rem 0 0; }
.methods details p.formula { margin: .8rem 0 .2rem 1.25rem; font-size: 1.1rem; font-variation-settings: "wdth" 104; }

.whatif { background: var(--paper-2); border-radius: var(--radius-l); padding: 1.25rem 1.25rem .75rem; margin-top: 1rem; }
.whatif .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .25rem 1.5rem; }
.whatif .val { font-weight: 700; }

/* ---------- profile ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }
.kpi .v { font-size: 2.2rem; font-variation-settings: "wdth" 120; font-weight: 800; line-height: 1.1; }
.kpi .k { color: var(--muted); font-size: .9rem; }
table.topics { width: 100%; border-collapse: collapse; max-width: 52rem; }
table.topics th, table.topics td { text-align: left; padding: .65rem .5rem; border-bottom: 1px solid var(--rule); vertical-align: middle; }
table.topics th { font-weight: 600; color: var(--muted); font-size: .9rem; }
table.topics td.n { font-variant-numeric: tabular-nums; }
.lean { display: inline-block; position: relative; width: 7rem; height: 8px; background: var(--paper-2); border-radius: 4px; vertical-align: middle; margin-right: .5rem; }
.lean::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--muted); }
.lean i { position: absolute; top: 0; bottom: 0; background: var(--chip); border-radius: 4px; }
.calib { max-width: 34rem; }
.calib .meter { position: relative; height: 12px; background: var(--paper-2); border-radius: 6px; margin: .75rem 0 .35rem; }
.calib .meter i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); border-radius: 6px; }
.calib .meter b { position: absolute; top: -5px; bottom: -5px; width: 3px; background: var(--gold); margin-left: -1px; }

/* ---------- onboarding & misc ---------- */
.welcome { max-width: 36rem; margin: 3rem 0; }
.welcome h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); font-variation-settings: "wdth" 120; margin-bottom: 1rem; }
.notice { color: var(--muted); font-size: .9rem; }
.error { color: var(--bad); }
.empty { color: var(--muted); padding: 1rem 0; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* ---------- games ---------- */
.game-card { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; margin-bottom: 1.5rem; }
.game-card h2 { color: var(--felt-ink); margin-bottom: .35rem; }
.game-card .how { margin: .75rem 0 0; padding-left: 1.1rem; color: var(--felt-ink); max-width: 38rem; }
.game-card .how li { margin-bottom: .3rem; }
.game-card-side { display: flex; flex-direction: column; gap: 1rem; align-items: flex-end; text-align: right; }
.game-card-side .v { font-size: 2rem; }
.game-card-side .k { color: var(--felt-muted); font-size: .9rem; }
.game-card-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.small-btn { padding: .4rem .85rem; font-size: .95rem; }
@media (max-width: 560px) {
  .game-card { grid-template-columns: 1fr; }
  .game-card-side { flex-direction: row; align-items: baseline; text-align: left; }
}

.ready { max-width: 38rem; margin: 2rem 0; }
.ready h1 { margin-bottom: 1rem; }
.ready .kicker a { color: var(--muted); }

.play { max-width: 30rem; margin: 0 auto; }
.hud { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; align-items: center; margin-bottom: .75rem; }
.clock .num { font-size: 2.2rem; line-height: 1; }
.timebar { height: 8px; background: var(--paper-2); border-radius: 4px; overflow: hidden; }
.timebar i { display: block; height: 100%; width: 100%; background: var(--ink); }
.timebar i.low { background: var(--chip); }
.hud-stats { grid-column: 1 / -1; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.hud-stats .num { font-size: 1.25rem; }
.board { padding: 1rem; }
.feedback { min-height: 2.9rem; margin: 0 0 .75rem; font-size: .98rem; max-width: none; }
.verdict-hit { color: var(--gold); }
.verdict-miss { color: #F2A7AC; }
.truth-text { color: var(--gold); font-weight: 700; }
.you-text { color: #F2A7AC; font-weight: 700; }
.plot { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--radius-s); }
.answer { margin-top: 1rem; }
.guessval { font-size: clamp(2.4rem, 9vw, 3.2rem); line-height: 1; color: var(--chip); margin-bottom: .25rem; }
.answer .axis { margin-top: -.35rem; margin-bottom: 1rem; }
.answer .btn { width: 100%; justify-content: center; }

.summary .verdict .num { color: var(--gold); }
.insight { margin: 1.25rem 0 0; font-size: 1.05rem; }
#calib { margin: .5rem auto 0; }

/* ---------- duels ---------- */
.challenge-row { border-top: 1px solid rgba(233, 239, 230, .18); padding-top: 1rem; }
.levels { border: 0; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.levels legend { padding: 0; margin-bottom: .5rem; }
.level-opt { display: inline-flex; align-items: center; gap: .4rem; border: 2px solid var(--rule); border-radius: 999px; padding: .35rem .9rem; cursor: pointer; }
.level-opt:has(input:checked) { border-color: var(--ink); background: var(--paper-2); }
.level-opt input { accent-color: var(--ink); }
.duel-invite { max-width: 40rem; margin: 1.5rem 0; }
.duel-invite h1 { color: var(--felt-ink); margin: .25rem 0 1rem; font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
.duel-verdict { color: var(--felt-ink); margin: .25rem 0 .75rem; font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
table.board-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .98rem; }
.board-table th, .board-table td { text-align: left; padding: .5rem .4rem; border-bottom: 1px solid rgba(233, 239, 230, .16); }
.board-table th { color: var(--felt-muted); font-weight: 600; font-size: .88rem; }
.board-table .num-cell { font-variation-settings: "wdth" 118; font-weight: 750; font-size: 1.15rem; }
.board-table .you-row td { background: rgba(233, 239, 230, .07); }
.board-table.h2h td.closer { color: var(--felt-ink); font-weight: 750; }
.board-table.h2h td.closer::after { content: " ✓"; color: var(--felt-muted); font-weight: 400; }
.felt select { font: inherit; background: var(--felt-2); color: var(--felt-ink); border: 1px solid var(--felt-muted); border-radius: 4px; padding: .1rem .3rem; }
.share-duel { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(233, 239, 230, .18); }
.share-duel h3 { margin-bottom: .2rem; }
.linkbox { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.linkbox input { flex: 1 1 14rem; font-size: .95rem; padding: .45rem .6rem; background: var(--felt-2); color: var(--felt-ink); border-color: var(--felt-muted); max-width: none; }

/* ---------- account, banner, dialogs ---------- */
.me a { color: inherit; }
.me-link { text-decoration: none; }
.member-chip { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--felt); background: var(--gold); border-radius: 999px; padding: .1rem .55rem; }
.banner { max-width: 64rem; margin: 0 auto .5rem; padding: 0 1rem; display: flex; align-items: flex-start; gap: .75rem; }
.banner p { flex: 1; margin: 0; max-width: none; background: var(--paper-2); color: var(--ink); border-left: 4px solid var(--gold); border-radius: var(--radius-s); padding: .6rem 1rem; font-size: .97rem; }
.banner p a { color: var(--ink); font-weight: 700; }
.banner-close { appearance: none; border: 0; background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; padding: .35rem .25rem; cursor: pointer; }
.dialog-wrap { position: fixed; inset: 0; background: rgba(15, 30, 25, .55); display: grid; place-items: center; padding: 1rem; z-index: 50; }
.dialog { background: var(--paper); color: var(--ink); border-radius: var(--radius-l); padding: 1.5rem; max-width: 30rem; width: 100%; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.dialog h2 { margin-bottom: .6rem; }

/* ---------- about and premium ---------- */
.lede { font-size: clamp(1.1rem, 2.2vw, 1.25rem); line-height: 1.6; }
.about-head { margin-bottom: 2rem; }
.offer { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: center; }
.offer h2 { color: var(--felt-ink); margin: .2rem 0 .6rem; font-size: 1.6rem; }
.offer p { margin-bottom: 0; }
.offer-side { text-align: right; }
.offer-side .btn { margin-top: .9rem; }
.price { font-size: clamp(2.6rem, 7vw, 3.4rem); line-height: 1; color: var(--gold); }
.member-note { margin-top: .9rem; font-weight: 650; }
@media (max-width: 640px) { .offer { grid-template-columns: 1fr; } .offer-side { text-align: left; } }
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.5rem 3rem; }
.ticks { list-style: none; padding: 0; margin: .75rem 0 0; }
.ticks li { position: relative; padding: .45rem 0 .45rem 1.6rem; border-bottom: 1px solid var(--rule); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 800; }
.premium-list li::before { color: var(--chip); }
.tag { display: inline-block; font-size: .78rem; color: var(--muted); border: 1px solid var(--rule); border-radius: 999px; padding: 0 .5rem; margin-left: .25rem; white-space: nowrap; }
.faq details { border-top: 1px solid var(--rule); padding: .8rem 0; max-width: var(--measure); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin: .6rem 0 0; }

/* ---------- mock interviews ---------- */
.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin: 1rem 0; }
.package { border: 2px solid var(--rule); border-radius: var(--radius-l); padding: 1.25rem; display: flex; flex-direction: column; gap: .35rem; }
.package .price { color: var(--ink); font-size: 2.4rem; margin: .25rem 0; }
.package .btn { margin-top: .75rem; justify-content: center; }
.package:nth-child(2) { border-color: var(--ink); }
.timeline { list-style: none; padding: 0; margin: 1rem 0 0; max-width: var(--measure); }
.timeline li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0 1rem; padding: .9rem 0; border-top: 1px solid var(--rule); }
.timeline .mins { grid-row: span 2; font-variation-settings: "wdth" 115; font-weight: 750; color: var(--muted); }
.timeline h3 { margin: 0 0 .2rem; }
.timeline p { margin: 0; }
@media (max-width: 520px) { .timeline li { grid-template-columns: 1fr; } .timeline .mins { grid-row: auto; } }
.credits { margin-bottom: 2rem; }
.credits h2 { color: var(--felt-ink); margin-bottom: .6rem; }
.bookings { margin: 0 0 1rem; padding-left: 1.1rem; }
.orders { margin: .5rem 0 1rem; padding-left: 1.1rem; color: var(--muted); }

/* ---------- admin ---------- */
.admin-link { font-weight: 650; color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.admin-head { max-width: none; margin-bottom: 1rem; }
.admin-tabs { display: flex; gap: 1.25rem; margin-top: .75rem; border-bottom: 1px solid var(--rule); }
.admin-tabs a { text-decoration: none; color: var(--muted); font-weight: 600; padding: .4rem 0; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.admin-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.admin .section:first-child { margin-top: 1rem; }
.admin-kpis { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.25rem 1.5rem; margin-top: 1rem; }
.admin-kpis .kpi { border-top: 2px solid var(--ink); padding-top: .5rem; }
.admin-kpis .v { font-size: 1.9rem; }
.admin-kpis .sub { color: var(--muted); font-size: .85rem; margin-top: .15rem; }
svg.admin-chart { width: 100%; height: auto; display: block; overflow: visible; }
svg.admin-chart text { fill: var(--muted); font-family: inherit; font-size: 12px; }
svg.admin-chart .grid { stroke: var(--rule); stroke-width: 1; }
svg.admin-chart .line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
svg.admin-chart .end-label { fill: var(--ink); font-weight: 700; }
svg.admin-chart .cross { stroke: var(--muted); stroke-dasharray: 3 3; }
svg.admin-chart .dot { fill: var(--ink); stroke: var(--paper); stroke-width: 2; }
svg.admin-chart .tip { fill: var(--ink); font-weight: 650; }
.table-wrap { overflow-x: auto; }
table.admin-table { max-width: none; font-size: .95rem; }
table.admin-table td, table.admin-table th { vertical-align: top; }
table.admin-table td.n { white-space: nowrap; }
.orders-table .ids { font-variant-numeric: tabular-nums; word-break: break-all; min-width: 11rem; }
.admin-search input[type="text"] { font-size: 1rem; padding: .45rem .7rem; max-width: 20rem; }
.status { display: inline-block; font-size: .82rem; font-weight: 650; border-radius: 999px; padding: .05rem .55rem; border: 1px solid var(--rule); white-space: nowrap; }
.status.s-paid { color: var(--good); border-color: currentColor; }
.status.s-refunded, .status.s-refunding { color: var(--bad); border-color: currentColor; }
.status.s-created { color: var(--muted); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.unmatched { background: var(--paper-2); border-radius: var(--radius-l); padding: 1.25rem; }
.match-form { display: grid; grid-template-columns: 1fr minmax(12rem, 18rem) auto; gap: .5rem 1rem; align-items: center; padding: .75rem 0; border-top: 1px solid var(--rule); }
.match-form input[type="text"] { font-size: 1rem; padding: .4rem .6rem; }
.match-form .preview { grid-column: 1 / -1; margin: 0; min-height: 0; }
@media (max-width: 640px) { .match-form { grid-template-columns: 1fr; } }
.scorecard-editor { max-width: var(--measure); }
.score-pick { border: 0; padding: 0; margin: 0 0 .9rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.score-pick legend { font-weight: 600; padding: 0; margin-bottom: .35rem; width: 100%; }
.score-pick label { cursor: pointer; }
.score-pick input { position: absolute; opacity: 0; }
.score-pick span { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 2px solid var(--rule); border-radius: 50%; font-weight: 700; }
.score-pick input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.score-pick input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
textarea { font: inherit; font-size: 1rem; width: 100%; padding: .6rem .8rem; border: 2px solid var(--rule); border-radius: var(--radius-s); background: var(--paper); color: var(--ink); resize: vertical; }
textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent); }

/* candidate scorecards on the Interviews page */
.scorecards { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1rem; margin-top: 1rem; }
.scorecard { border: 2px solid var(--rule); border-radius: var(--radius-l); padding: 1.25rem; }
.scorecard h3 { margin-bottom: .75rem; }
.scorecard h4 { margin: 1rem 0 .25rem; font-size: .95rem; }
.scorecard p { margin: 0 0 .35rem; }
.score-bars { margin: 0; display: grid; gap: .4rem; }
.score-bars div { display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; align-items: center; }
.score-bars dt { font-size: .92rem; }
.score-bars dd { margin: 0; display: flex; align-items: center; gap: .5rem; }
.score-bar { width: 6rem; height: 8px; background: var(--paper-2); border-radius: 4px; overflow: hidden; }
.score-bar i { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.score-n { font-size: .85rem; color: var(--muted); white-space: nowrap; min-width: 3.2rem; }

.admin-alert { border-left: 4px solid var(--bad); background: var(--paper-2); border-radius: var(--radius-s); padding: .9rem 1.1rem; margin: 0 0 1.25rem; }
.admin-alert h2 { font-size: 1.05rem; margin-bottom: .4rem; color: var(--bad); }
.admin-alert ul { margin: 0; padding-left: 1.1rem; }
