:root {
  /* ============================================================
     DOTVA DESIGN TOKENS, "Warm Editorial with SaaS bones"
     RULE: peach (--peach-400 / --brand) is a HIGHLIGHTER, never a fill.
     Max ~5% of any screen. Use it for: hairline, kicker, marker,
     focus ring, progress, ONE hero CTA. Charcoal = structure,
     paper = warmth. Reach for --peach-50 / --brand-wash tints, not --brand.
     ============================================================ */

  /* ---- colour: neutral / ink ---- */
  --paper: #faf7f4;
  --bg: #faf7f4;               /* alias kept */
  --bg-sunk: #f3ede6;
  --card: #ffffff;
  --card-raise: #fffdfb;
  --ink-900: #1c1c1c;
  --ink: #2b2b2b;
  --ink-soft: #4a443d;
  --muted: #756c63;
  --line-soft: #f1ece5;
  --line: #ece6df;             /* alias kept */
  --line-strong: #e0d8cf;
  --neutral-100: #f6f1ec;
  --neutral-200: #f0ebe5;
  --neutral-300: #e6ddd2;

  /* ---- colour: peach ramp ---- */
  --peach-50:  #fdf6f0;
  --peach-100: #fdeada;
  --peach-200: #fbdcc4;
  --peach-300: #f7c39e;
  --peach-400: #f39e68;        /* THE brand peach */
  --peach-500: #e98a4d;
  --peach-600: #c06f33;
  --brand: var(--peach-400);     /* alias kept */
  --brand-ink: var(--peach-600); /* alias kept (decorative) */
  --brand-link: #a85a23;         /* AA-safe peach for TEXT */
  --brand-wash: #fdf3ea;
  --brand-line: #f6dcc4;
  --brand-dark: #2b2b2b;         /* alias kept (primary buttons) */

  /* ---- colour: sage ---- */
  --sage: #c5d1c0;
  --sage-bg: #eef2ec;
  --sage-100: #dde6d8;
  --sage-700: #3f6b4d;

  /* ---- colour: status (AA at .76rem) ---- */
  --good: #147347;   --good-bg: #e6f4ec;
  --warn: #8a5a10;   --warn-bg: #fbf3e2;
  --bad:  #b32c40;   --bad-bg:  #fbe9ec;

  /* ---- type scale (fluid ~1.25) ---- */
  --fs-1: .78rem; --fs-2: .86rem; --fs-3: 1rem; --fs-4: 1.06rem;
  --fs-5: clamp(1.18rem, 1.05rem + .5vw, 1.35rem);
  --fs-6: clamp(1.5rem, 1.2rem + 1.2vw, 1.9rem);
  --fs-7: clamp(2.1rem, 1.6rem + 2.4vw, 2.9rem);
  --lh-tight: 1.1; --lh-snug: 1.3; --lh-body: 1.6;
  --tracking-tight: -.01em; --tracking-caps: .14em;

  /* ---- spacing (8px base) ---- */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;

  /* ---- radius ---- */
  --radius-sm: 10px;
  --radius: 14px;              /* alias kept */
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* ---- elevation (warm, 3-tier) ---- */
  --shadow-xs: 0 1px 2px rgba(43,43,43,.04);
  --shadow-sm: 0 1px 3px rgba(43,43,43,.05), 0 2px 8px rgba(43,43,43,.04);
  --shadow-md: 0 2px 4px rgba(43,43,43,.05), 0 14px 38px rgba(43,43,43,.09);
  --shadow-lg: 0 18px 50px rgba(43,43,43,.14), 0 6px 18px rgba(43,43,43,.08);
  --shadow-celebrate: 0 18px 60px rgba(192,111,51,.12), 0 6px 18px rgba(43,43,43,.08);
  --shadow: var(--shadow-md);  /* alias kept */
  --edge-light: inset 0 1px 0 rgba(255,255,255,.6);

  /* ---- motion ---- */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur-1: 140ms; --dur-2: 240ms; --dur-3: 420ms;

  /* ---- focus rings ---- */
  --ring: 0 0 0 3px rgba(243,158,104,.35);
  --ring-dark: 0 0 0 3px rgba(43,43,43,.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-link); }
h1 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: var(--fs-7); margin: .12em 0 .3em; letter-spacing: var(--tracking-tight); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-5); font-weight: 800; margin: 1.4em 0 .5em; line-height: var(--lh-snug); }
h3 { font-size: var(--fs-4); font-weight: 800; margin: 1.2em 0 .4em; }
p { margin: .6em 0; }
.lead { font-size: var(--fs-4); color: var(--muted); }
.muted { color: var(--muted); }
.footnote { text-align: center; color: var(--muted); font-size: .85rem; margin: var(--sp-5) 0 var(--sp-7); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; }
.skip-link:focus { left: 0; }

/* ---- kicker (tracked uppercase label above headings) ---- */
.kicker { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; color: var(--brand-link); letter-spacing: var(--tracking-caps); text-transform: uppercase; font-size: var(--fs-1); margin-bottom: var(--sp-2); }
.kicker svg { width: 1em; height: 1em; }

/* ---- brand ---- */
.brand-logo { height: 40px; width: auto; display: block; }
.card-page > .brand-logo, .card-page > a > .brand-logo { margin: 2px 0 var(--sp-4) 2px; }
.admin-bar .brand-logo { height: 28px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; }
.brand-word { font-family: "DM Serif Display", Georgia, serif; font-size: 1.35rem; color: var(--ink); letter-spacing: .01em; }

/* ---- card pages ---- */
.card-page { max-width: 720px; margin: 0 auto; padding: var(--sp-7) var(--sp-5) 0; position: relative; }
.card-page::before, .admin-wrap::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(243,158,104,.06), transparent 60%),
    radial-gradient(50% 40% at 0% 100%, rgba(197,209,192,.10), transparent 60%);
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md), var(--edge-light);
  padding: var(--sp-6) calc(var(--sp-6) + var(--sp-2));
  position: relative;
}
/* maker's mark: peach top hairline, clipped to the radius */
.card::before, .panel::before, .section-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--peach-400); border-radius: var(--radius) var(--radius) 0 0;
}
.card.center { text-align: center; }
.card.celebrate { box-shadow: var(--shadow-celebrate), var(--edge-light); border-color: var(--brand-line); }
.brand { font-weight: 800; color: var(--brand-link); letter-spacing: var(--tracking-caps); text-transform: uppercase; font-size: var(--fs-1); margin-bottom: var(--sp-2); }
.rules { padding-left: 20px; list-style: none; }
.rules li { margin: .5em 0; position: relative; padding-left: 4px; }
.consent { display: flex; gap: 12px; align-items: flex-start; background: var(--sage-bg); border: 1px solid var(--sage-100); border-radius: var(--radius-sm); padding: var(--sp-4) var(--sp-4); margin: var(--sp-5) 0 var(--sp-4); cursor: pointer; transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease); }
.consent:hover { border-color: var(--sage); }
.consent input { margin-top: 4px; transform: scale(1.2); accent-color: var(--brand-dark); }
.consent svg { flex: none; width: 20px; height: 20px; color: var(--sage-700); margin-top: 2px; }

/* ---- success tick (animated SVG) ---- */
.tick { width: 64px; height: 64px; line-height: 64px; border-radius: 50%; background: var(--sage-bg); color: var(--good); font-size: 2rem; margin: 0 auto var(--sp-3); }
.tick-svg { width: 72px; height: 72px; margin: 0 auto var(--sp-4); display: block; }
.tick-svg circle { fill: var(--good-bg); stroke: var(--good); stroke-width: 4; }
.tick-svg path { fill: none; stroke: var(--good); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw var(--dur-3) var(--ease-out) .15s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---- trust tiles (apply hero) ---- */
.hero-kicker { margin-bottom: var(--sp-3); }
.trust-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin: var(--sp-5) 0; }
.trust-tile { display: flex; gap: 10px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--sp-3) var(--sp-4); box-shadow: var(--shadow-xs); }
.trust-tile svg { flex: none; width: 18px; height: 18px; color: var(--brand-link); margin-top: 2px; }
.trust-tile span { font-size: .9rem; font-weight: 600; color: var(--ink-soft); line-height: 1.35; }
.hero-aside { color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line); padding-top: var(--sp-4); margin-top: var(--sp-2); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); padding: 11px 20px; border-radius: var(--radius-sm); font-size: 1rem; cursor: pointer; text-decoration: none; font-weight: 700; font-family: inherit; transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease), background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease); }
.btn svg { width: 1.05em; height: 1.05em; }
.btn:hover { border-color: var(--neutral-300); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.99); box-shadow: none; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--ink-900); box-shadow: var(--shadow-md); }
.btn.primary:disabled { background: #c4bdb4; border-color: #c4bdb4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.accent { background: var(--peach-400); border-color: var(--peach-400); color: #2b2b2b; }
.btn.accent:hover { background: var(--peach-500); border-color: var(--peach-500); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--neutral-100); box-shadow: none; }
.btn.danger { color: var(--bad); border-color: #f0c4cb; background: #fff; }
.btn.small { padding: 6px 12px; font-size: .85rem; }
.btn.lg { padding: 14px 28px; font-size: 1.08rem; }
.btn.loading { color: transparent !important; position: relative; pointer-events: none; }
.btn.loading::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn:focus-visible { outline: none; box-shadow: var(--ring-dark); }
.btn.primary:focus-visible, .btn.accent:focus-visible { box-shadow: var(--ring); }

input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=url], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 1rem; font-family: inherit; background: #fff; color: var(--ink);
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--peach-400); box-shadow: var(--ring); }
a:focus-visible, summary:focus-visible, [type=file]:focus-visible, .opt:focus-within { outline: none; box-shadow: var(--ring); border-radius: 6px; }
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
/* The hidden attribute must always win over element display rules (e.g. label.field display:block),
   so JS conditional reveals like the "describe your other work" field actually hide. */
[hidden] { display: none !important; }
label.field { display: block; margin: var(--sp-4) 0; }
label.field span { display: block; font-weight: 700; margin-bottom: 5px; font-size: .92rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.filelabel { display: block; margin: var(--sp-4) 0; }
.filelabel span { display: block; font-weight: 700; margin-bottom: 5px; font-size: .92rem; }
.filelabel input[type=file] { width: 100%; font-size: .9rem; padding: 10px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: #fff; }

/* ---- apply form: required tags, inline checks, branded resume dropzone ---- */
.form-tip { display: flex; align-items: flex-start; gap: 10px; background: var(--brand-wash); border: 1px solid var(--brand-line); border-radius: var(--radius-sm); padding: 11px 14px; margin: var(--sp-3) 0 var(--sp-4); font-size: .88rem; line-height: 1.5; color: var(--ink); }
.form-tip .icon { flex: none; width: 18px; height: 18px; color: var(--brand-link); margin-top: 1px; }
div.field { margin: var(--sp-4) 0; }
div.field > .field-label, div.field > span { display: block; font-weight: 700; margin-bottom: 5px; font-size: .92rem; }
.req { color: var(--brand-link); font-weight: 700; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; vertical-align: middle; }
.inline-check { display: flex; gap: 9px; align-items: center; margin: -6px 0 var(--sp-4); font-size: .88rem; color: var(--ink-soft); cursor: pointer; }
.inline-check input { transform: scale(1.15); accent-color: var(--peach-600); }

/* role multi-select grid (apply page): tick the roles you want to be tested on */
.role-picker { border: none; padding: 0; margin: 0 0 var(--sp-4); }
.role-picker legend { font-weight: 700; color: var(--ink); font-size: .92rem; padding: 0; margin-bottom: 4px; }
.role-picker-lead { font-size: .85rem; margin: 0 0 var(--sp-3); line-height: 1.45; }
.role-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (max-width: 540px) { .role-grid { grid-template-columns: 1fr; } }
.role-opt { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; cursor: pointer; transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease); }
.role-opt:hover { border-color: var(--peach-400); background: var(--peach-50); }
.role-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.role-tick { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-strong); background: #fff; position: relative; transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease); }
.role-opt input:focus-visible + .role-tick { box-shadow: 0 0 0 3px rgba(243, 158, 104, .4); }
.role-opt.selected { border-color: var(--peach-500); background: var(--brand-wash); box-shadow: 0 0 0 3px rgba(243, 158, 104, .15); }
.role-opt.selected .role-tick { background: var(--peach-500); border-color: var(--peach-500); }
.role-opt.selected .role-tick::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.role-opt-label { font-size: .92rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.role-opt.disabled { opacity: .45; cursor: not-allowed; }
.role-opt.disabled:hover { border-color: var(--line-strong); background: #fff; }
.role-opt-other { border-style: dashed; }
.role-picker-note { font-size: .8rem; margin: 8px 0 0; color: var(--muted); }
.role-picker-note.error { color: #b3261e; font-weight: 600; }
.field.portfolio-wanted small.muted { color: var(--brand-link); font-weight: 600; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 24px 18px; min-height: 124px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: var(--peach-50); color: var(--ink-soft); cursor: pointer; transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease); }
.dropzone:hover { border-color: var(--peach-300); background: var(--peach-100); }
.dropzone.dragging { border-color: var(--peach-400); background: var(--peach-100); box-shadow: var(--ring); }
.dropzone:focus-within { border-color: var(--peach-400); box-shadow: var(--ring); }
.dropzone.has-file { background: var(--sage-bg); border-style: solid; border-color: var(--sage-100); }
.dz-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; opacity: 0; }
.dz-idle, .dz-chosen { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.dz-ico { width: 32px; height: 32px; color: var(--peach-500); }
.dz-ico.ok { color: var(--good); }
.dz-text { font-size: .95rem; color: var(--ink); }
.dz-browse { color: var(--brand-link); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.dz-hint { font-size: .8rem; color: var(--muted); }
.dz-name { font-weight: 700; color: var(--ink); word-break: break-word; }
.dz-remove { background: none; border: 0; color: var(--brand-link); font: inherit; font-size: .8rem; text-decoration: underline; cursor: pointer; padding: 0; }

/* ---- forced-choice "Work Style Snapshot" ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.fc-q { padding: 18px 0; border-top: 1px solid var(--line); }
.fc-q:first-of-type { border-top: 0; padding-top: 4px; }
.fc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.fc-side { display: flex; gap: 9px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .96rem; line-height: 1.45; }
.fc-tag { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--peach-100); color: var(--peach-600); font-weight: 800; font-size: .78rem; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.fc-scale { display: flex; align-items: center; justify-content: space-between; gap: 4px; max-width: 340px; margin: 0 auto; }
.fc-dot { flex: 1; display: flex; align-items: center; justify-content: center; padding: 9px 0; cursor: pointer; position: relative; }
.fc-dot input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.fc-pip { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); background: #fff; transition: all var(--dur-2) var(--ease); }
.fc-dot.d1 .fc-pip, .fc-dot.d5 .fc-pip { width: 26px; height: 26px; }
.fc-dot.d3 .fc-pip { width: 15px; height: 15px; }
.fc-dot:hover .fc-pip { border-color: var(--peach-400); }
.fc-dot input:checked + .fc-pip { background: var(--peach-400); border-color: var(--peach-500); box-shadow: 0 0 0 3px rgba(243, 158, 104, .25); }
.fc-dot input:focus-visible + .fc-pip { box-shadow: var(--ring); }
.fc-ends { display: flex; justify-content: space-between; max-width: 340px; margin: 5px auto 0; font-size: .76rem; color: var(--muted); }
@media (max-width: 560px) { .fc-pair { grid-template-columns: 1fr; gap: 8px; } }
.privacy-notice summary { color: var(--muted); }

/* ---- journey stepper ---- */
.stepper { display: flex; align-items: center; gap: 0; margin: 0 0 var(--sp-5); }
.stepper .step { display: flex; align-items: center; gap: 8px; flex: none; }
.stepper .node { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; border: 2px solid var(--line-strong); color: var(--muted); background: #fff; }
.stepper .node svg { width: 14px; height: 14px; }
.stepper .step.done .node { border-color: var(--good); background: var(--good-bg); color: var(--good); }
.stepper .step.current .node { border-color: var(--peach-400); background: var(--brand-wash); color: var(--brand-link); box-shadow: var(--ring); }
.stepper .label { font-size: .82rem; font-weight: 700; color: var(--muted); }
.stepper .step.current .label { color: var(--ink); }
.stepper .step.done .label { color: var(--ink-soft); }
.stepper .bridge { flex: 1; height: 2px; background: var(--line-strong); margin: 0 8px; min-width: 14px; }
.stepper .step.done + .bridge { background: var(--good); }

/* ---- test runner ---- */
.runner { max-width: 760px; margin: 0 auto; padding: 0 18px 80px; }
.runner-top { position: sticky; top: 0; background: rgba(250,247,244,.92); backdrop-filter: blur(6px); padding: 16px 0 12px; z-index: 10; border-bottom: 1px solid var(--line); transition: box-shadow var(--dur-2) var(--ease); }
.runner-top.scrolled { box-shadow: var(--shadow-sm); }
.progress-row { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.progress-row .phase-name { font-weight: 800; color: var(--ink); }
.progress-bar { height: 8px; background: var(--neutral-200); border-radius: var(--radius-pill); overflow: hidden; }
.progress-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--peach-500), var(--peach-400)); width: 0; border-radius: var(--radius-pill); transition: width var(--dur-3) var(--ease-out); }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--ink); background: var(--neutral-100); padding: 4px 11px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; gap: 6px; }
.timer svg { width: 14px; height: 14px; color: var(--muted); }
.timer.amber { color: var(--warn); background: var(--warn-bg); }
.timer.warn { color: var(--bad); background: var(--bad-bg); animation: pulse 1s var(--ease) infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.section-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md), var(--edge-light); padding: var(--sp-6); margin-top: var(--sp-5); position: relative; }
.section-kicker { color: var(--brand-link); font-weight: 800; font-size: var(--fs-1); text-transform: uppercase; letter-spacing: var(--tracking-caps); }
.section-instructions { color: var(--ink-soft); background: var(--sage-bg); border-left: 3px solid var(--sage); padding: 11px 15px; border-radius: 0 8px 8px 0; margin: 12px 0 4px; }

/* ---- per-section ready / intro screen ---- */
.section-intro { max-width: 34rem; margin: 0 auto; text-align: center; padding: var(--sp-2) 0 var(--sp-3); }
.section-eyebrow { color: var(--brand-link); font-weight: 800; font-size: var(--fs-1); text-transform: uppercase; letter-spacing: var(--tracking-caps); }
.section-intro-title { font-size: clamp(1.5rem, 5vw, 2rem); margin: 6px 0 12px; }
.section-intro-lead { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; margin: 0 auto 18px; max-width: 30rem; }
.section-intro-time { color: var(--muted); font-size: .9rem; line-height: 1.55; margin: 18px auto 20px; max-width: 30rem; }
.section-intro .btn.lg { width: 100%; max-width: 22rem; }
.example-box { text-align: left; background: var(--brand-wash); border: 1px solid var(--brand-line); border-radius: var(--radius-sm); padding: 16px 18px; margin: 4px auto 4px; max-width: 30rem; }
.example-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; color: var(--brand-link); margin-bottom: 12px; }
.example-box .fc-pair { margin: 0 0 6px; }
.example-box .fc-dot input { pointer-events: none; }
.example-note { font-size: .82rem; color: var(--muted); margin: 10px 0 0; font-style: italic; }
.example-q { font-weight: 700; margin: 0 0 10px; }
.example-opts { display: flex; flex-direction: column; gap: 8px; }
.example-opt { border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 9px 12px; font-size: .9rem; color: var(--ink-soft); background: #fff; }
.example-opt.on { border-color: var(--good); background: var(--good-bg); color: var(--good); font-weight: 700; }
.example-opts.ex-row { flex-direction: row; flex-wrap: wrap; }
.example-opts.ex-row .example-opt { text-align: center; min-width: 48px; }
.example-shapes { display: flex; align-items: center; gap: 16px; font-size: 1.1rem; letter-spacing: 2px; margin: 0 0 12px; color: var(--ink); }
.example-shapes .ex-q { color: var(--brand-link); font-weight: 800; }
.example-typed { background: #fff; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 9px 12px; font-size: .95rem; }

/* reviewer's video score control (candidate page) */
.video-score { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); max-width: 480px; }
.video-score .vs-label { font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.vs-scale { display: flex; gap: 8px; }
.vs-dot { flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-height: 44px; border: 2px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; font-weight: 800; font-size: 1.05rem; background: #fff; -webkit-tap-highlight-color: transparent; }
.vs-dot input { position: absolute; opacity: 0; width: 0; height: 0; }
.vs-dot:hover { border-color: var(--brand-line); }
.vs-dot.on, .vs-dot:has(input:checked) { border-color: var(--good); background: var(--good-bg); color: var(--good); }
.vs-ends { display: flex; justify-content: space-between; font-size: .76rem; margin: 6px 2px 10px; }
.vs-note { width: 100%; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-family: inherit; font-size: .9rem; resize: vertical; margin-bottom: 10px; }

/* full answer-review tables + the Gauntlet visual review on the candidate page */
.answers-table td:first-child { max-width: 360px; white-space: normal; word-break: break-word; }
.gx-review { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 8px; }
.gx-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fff; }
.gx-q { max-width: 150px; margin: 0 auto 8px; }
.gx-q svg { width: 100%; height: auto; display: block; }
.gx-ans { display: flex; gap: 10px; margin-bottom: 8px; }
.gx-cell { text-align: center; }
.gx-lab { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 3px; }
.gx-tile { width: 52px; height: 52px; border: 2px solid var(--line-strong); border-radius: 7px; display: grid; place-items: center; padding: 3px; }
.gx-tile svg { width: 100%; height: 100%; }
.gx-tile.okb { border-color: var(--good); background: var(--good-bg); }
.gx-tile.nob { border-color: var(--bad); background: var(--bad-bg); }
.q { padding: 22px 0; border-top: 1px solid var(--line); }
.q:first-of-type { border-top: 0; }
.q-stem { font-weight: 700; white-space: pre-wrap; font-size: 1.02rem; }
.q-num { color: var(--brand-link); font-weight: 800; margin-right: 6px; }
.q-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-weight: 400; font-size: .94rem; white-space: normal; background: #fff; border: 1px solid var(--line, #e7e2da); border-radius: var(--radius-sm, 8px); overflow: hidden; }
.q-table th { text-align: left; background: var(--sage-bg, #f4f5f0); border-bottom: 2px solid var(--line, #e7e2da); padding: 8px 12px; font-weight: 700; }
.q-table td { padding: 8px 12px; border-bottom: 1px solid var(--line, #eee); }
.q-table tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) { .q-table { font-size: .86rem; } .q-table th, .q-table td { padding: 6px 8px; } }
.options { margin-top: 12px; display: grid; gap: 8px; }
.opt { display: flex; gap: 11px; align-items: flex-start; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 15px; cursor: pointer; position: relative; transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease); }
.opt:hover { border-color: var(--peach-300); background: var(--peach-50); }
.opt input { margin-top: 3px; accent-color: var(--brand-dark); }
.opt.selected { border-color: var(--peach-400); background: var(--peach-50); box-shadow: inset 3px 0 0 var(--peach-400); }
.opt.selected::after { content: ""; position: absolute; right: 14px; top: 50%; width: 16px; height: 9px; border-left: 2.5px solid var(--brand-link); border-bottom: 2.5px solid var(--brand-link); transform: translateY(-70%) rotate(-45deg); }
.likert { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.likert .opt { flex: 1; min-width: 92px; justify-content: center; text-align: center; font-size: .85rem; }
.likert .opt.selected::after { display: none; }
.typing-target { background: var(--sage-bg); border: 1px solid var(--sage-100); border-radius: var(--radius-sm); padding: 14px 16px; white-space: pre-wrap; user-select: none; margin: 8px 0; font-size: 1.02rem; }
.typing-live { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.section-actions { display: flex; justify-content: flex-end; margin-top: 24px; }
.loading { text-align: center; color: var(--muted); padding: 80px 20px; }
.warnbanner { background: var(--warn-bg); color: var(--warn); border: 1px solid #f0dca8; padding: 10px 14px; border-radius: 8px; margin: 12px 0; font-size: .9rem; }

/* ---- video step ---- */
.video-stage { max-width: 520px; }
.video-frame { width: 100%; max-width: 480px; aspect-ratio: 4/3; background: var(--ink-900); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; display: block; }
.video-frame.mirror { transform: scaleX(-1); }
.video-callout { background: var(--brand-wash); border: 1px solid var(--brand-line); border-radius: var(--radius-sm); padding: 12px 15px; margin: 0 0 14px; font-size: .92rem; color: var(--ink-soft); display: flex; gap: 10px; align-items: flex-start; }
.video-callout svg { flex: none; width: 18px; height: 18px; color: var(--brand-link); margin-top: 2px; }
.rec-pill { display: inline-flex; align-items: center; gap: 7px; background: var(--bad-bg); color: var(--bad); font-weight: 800; font-size: .82rem; padding: 4px 11px; border-radius: var(--radius-pill); }
.rec-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bad); animation: pulse 1.1s var(--ease) infinite; }
#vidControls { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
/* "Camera not working? continue without a video" escape hatch */
.video-skip { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); }
.video-skip .linkish { background: none; border: 0; padding: 0; color: var(--brand-link); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; text-decoration: underline; }
.video-skip .linkish:hover { color: var(--brand); }
.video-skip-panel { margin-top: 12px; padding: 14px 16px; background: var(--brand-wash); border: 1px solid var(--brand-line); border-radius: var(--radius-sm); max-width: 520px; }
/* "screenshot this and email hiring@" call-to-action on the success end screens */
.share-cta { margin: 22px auto 4px; max-width: 460px; text-align: left; background: var(--brand-wash); border: 1px solid var(--brand-line); border-radius: var(--radius-md, 12px); padding: 16px 18px; }
.share-cta-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.share-cta-head svg { flex: none; width: 20px; height: 20px; color: var(--brand-link); }
.share-cta-head strong { font-size: 1rem; }
.share-cta p { margin: 0; font-size: .92rem; line-height: 1.55; }
.share-cta .share-email { font-weight: 800; color: var(--brand-link); white-space: nowrap; }
.share-cta .share-ref { margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--brand-line); font-size: .8rem; color: var(--muted); }

/* ---- interview ---- */
.iv-stem { font-size: 1.18rem; font-weight: 700; line-height: 1.4; padding-left: 16px; border-left: 3px solid var(--peach-300); margin: 6px 0 4px; }
.iv-reassure { font-size: .85rem; color: var(--muted); margin-top: 10px; display: flex; gap: 7px; align-items: center; }
.iv-reassure svg { width: 15px; height: 15px; color: var(--sage-700); }

/* ---- modal ---- */
.modal-overlay { position: fixed; inset: 0; background: rgba(28,28,28,.42); backdrop-filter: blur(2px); display: grid; place-items: center; z-index: 1000; padding: 20px; opacity: 0; animation: fadein var(--dur-2) var(--ease) forwards; }
@keyframes fadein { to { opacity: 1; } }
.modal { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--sp-6); max-width: 440px; width: 100%; position: relative; border: 1px solid var(--line); }
.modal h3 { margin-top: 0; font-size: var(--fs-5); }
.modal p { color: var(--ink-soft); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: var(--sp-5); flex-wrap: wrap; }

/* ---- skeleton ---- */
.skeleton { background: linear-gradient(90deg, var(--neutral-100) 25%, var(--neutral-200) 37%, var(--neutral-100) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 8px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.skel-card { max-width: 760px; margin: 28px auto; padding: 0 18px; }
.skel-line { height: 14px; margin: 12px 0; }

/* ---- toast ---- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(12px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600; z-index: 9999; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease-out); display: flex; gap: 8px; align-items: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast svg { width: 16px; height: 16px; color: var(--peach-300); }

/* ---- empty state ---- */
.emptystate { text-align: center; padding: var(--sp-8) var(--sp-5); }
.emptystate .badge-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-wash); color: var(--brand-link); display: grid; place-items: center; margin: 0 auto var(--sp-4); }
.emptystate .badge-icon svg { width: 26px; height: 26px; }
.emptystate h2 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; margin: 0 0 6px; }

/* ---- entrance motion (CSS-only, fail-safe: the keyframe END state is visible, and the
   reduced-motion guard zeroes duration, so content is never hidden without JS) ---- */
.card-page > .card { animation: riseIn var(--dur-3) var(--ease-out) both; }
.runner .section-card { animation: riseIn var(--dur-3) var(--ease-out) both; }
@keyframes riseIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---- admin ---- */
.admin-wrap { max-width: 1180px; margin: 0 auto; padding: 18px 22px 60px; position: relative; }
.admin-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border: 1px solid var(--line); background: rgba(255,255,255,.86); backdrop-filter: blur(6px); border-radius: var(--radius); box-shadow: var(--shadow-xs); margin-bottom: 22px; gap: 12px; flex-wrap: wrap; position: sticky; top: 10px; z-index: 20; }
.admin-bar .left { display: flex; gap: 14px; align-items: center; }
.admin-bar a { text-decoration: none; }
.admin-bar .right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-nav { display: flex; gap: 4px; }
.admin-nav a { padding: 6px 12px; border-radius: 8px; color: var(--muted); font-weight: 700; font-size: .9rem; }
.admin-nav a.on, .admin-nav a:hover { background: var(--sage-bg); color: var(--ink); }
.admin-title { font-family: "DM Serif Display", Georgia, serif; }
.toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }

/* pipeline KPI strip */
.pipeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; box-shadow: var(--shadow-xs); }
.kpi .n { font-family: "DM Serif Display", Georgia, serif; font-size: 1.7rem; line-height: 1; }
.kpi .k { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 800; margin-top: 4px; }
.kpi.hot { border-color: var(--brand-line); background: var(--brand-wash); }
.kpi.hot .n { color: var(--brand-link); }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: #fff; }
table.grid { width: 100%; border-collapse: collapse; }
table.grid th, table.grid td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: .9rem; }
table.grid th { background: var(--neutral-100); color: var(--muted); font-weight: 800; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; position: sticky; top: 0; z-index: 1; }
table.grid tr:last-child td { border-bottom: 0; }
table.grid tr:hover td { background: #fdf9f5; }
table.grid tr.row-pass td:first-child { box-shadow: inset 3px 0 0 var(--good); }
.num { font-variant-numeric: tabular-nums; }
.monogram { width: 30px; height: 30px; border-radius: 50%; background: var(--sage-bg); color: var(--sage-700); display: inline-grid; place-items: center; font-weight: 800; font-size: .8rem; flex: none; }

/* A+..F "brains" grade chip (dashboard + candidate page) */
.grade-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 26px; padding: 0 7px; border-radius: 7px; font-weight: 800; font-size: .95rem; border: 1.5px solid; letter-spacing: .01em; line-height: 1; }
.grade-chip.g-a { color: var(--good); background: var(--good-bg); border-color: #9ed3b4; }
.grade-chip.g-b { color: #2f7d4f; background: #eef7f1; border-color: #c2e0cd; }
.grade-chip.g-c { color: var(--brand-link); background: var(--brand-wash); border-color: var(--brand-line); }
.grade-chip.g-d { color: #b5631b; background: #fbeada; border-color: #f0c19a; }
.grade-chip.g-f { color: var(--bad); background: var(--bad-bg); border-color: #eeb6bf; }
/* per-role skill grade rows in the dashboard Role cell */
.grade-chip.sm { min-width: 24px; height: 21px; padding: 0 5px; font-size: .8rem; border-radius: 6px; }
.role-line { display: flex; align-items: center; gap: 7px; margin: 1px 0; }
.role-line + .role-line { margin-top: 3px; }
.role-name { font-size: .9rem; color: var(--ink); line-height: 1.2; }
.role-name.muted { color: var(--muted); }
/* per-role skill grade cards on the candidate page */
.role-grades { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 2px; }
.role-grade-card { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card-raise); min-width: 220px; }
.grade-chip.lg { min-width: 40px; height: 38px; font-size: 1.25rem; border-radius: 9px; }
/* candidate report card: at-a-glance grade strip */
.report-card .rc-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.rc-cell { flex: 1 1 150px; min-width: 140px; text-align: center; padding: 12px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card-raise); }
.rc-cell.rc-role { border-color: var(--peach-300, #f3c79f); background: var(--peach-50); }
.rc-label { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 8px; }
.rc-sub { font-size: .76rem; color: var(--muted); margin-top: 7px; line-height: 1.25; }
.grade-chip.xl { min-width: 52px; height: 48px; font-size: 1.6rem; border-radius: 11px; margin: 0 auto; }
.rc-attitude { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 48px; padding: 0 12px; border-radius: 11px; font-weight: 800; font-size: 1rem; border: 1.5px solid; text-transform: capitalize; }
.rc-attitude.clear { color: var(--good); background: var(--good-bg); border-color: #9ed3b4; }
.rc-attitude.watch { color: #b5631b; background: #fbeada; border-color: #f0c19a; }
.rc-attitude.concern { color: var(--bad); background: var(--bad-bg); border-color: #eeb6bf; }
/* per-role leaderboard (dashboard) */
.leaderboard { margin: 0 0 var(--sp-4); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card-raise); padding: 10px 14px; }
.leaderboard > summary { cursor: pointer; font-weight: 700; }
.leaderboard .lb-title { font-weight: 800; }
.lb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 12px; }
.lb-role { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; background: #fff; }
.lb-role-head { font-weight: 800; font-size: .9rem; margin-bottom: 6px; padding-bottom: 5px; border-bottom: 1px solid var(--line-soft); }
.lb-cand { display: flex; align-items: center; gap: 8px; padding: 5px 4px; border-radius: 6px; text-decoration: none; color: var(--ink); }
.lb-cand:hover { background: var(--peach-50); }
.lb-rank { flex: none; width: 18px; text-align: center; font-weight: 800; color: var(--muted); font-size: .82rem; }
.lb-name { flex: 1 1 auto; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-pct { flex: none; font-size: .8rem; }
/* standout: the exceptional candidate, surfaced loudly */
.standout-badge { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: .82rem; letter-spacing: .03em; color: #8a5a00; background: linear-gradient(180deg, #fff3d6, #ffe7ad); border: 1.5px solid #e6b955; border-radius: 999px; padding: 3px 11px; box-shadow: 0 1px 3px rgba(180,140,40,.25); }
.standout-badge.sm { font-size: .72rem; padding: 1px 8px; }
.report-card.is-standout { border-color: #e6b955; box-shadow: 0 0 0 2px rgba(230,185,85,.35), var(--shadow-md); }
.standout-line { margin: 8px 0 0; font-size: .9rem; color: var(--ink); background: linear-gradient(180deg, #fffaf0, #fff4dd); border: 1px solid #f0dcae; border-radius: var(--radius-sm); padding: 8px 12px; }
/* norm-referenced percentile chip ("top N%") in the candidate table */
.pctile { display: inline-flex; align-items: center; justify-content: center; padding: 2px 8px; border-radius: var(--radius-pill); font-size: .74rem; font-weight: 800; white-space: nowrap; color: var(--muted); background: var(--line); border: 1px solid transparent; }
.pctile.top { color: var(--good); background: var(--good-bg); border-color: #9ed3b4; }
.pctile.prov { opacity: .55; border-style: dashed; border-color: currentColor; }
/* mini score meter in the candidate table */
.scorebar { display: inline-block; width: 42px; height: 6px; background: var(--line); border-radius: 4px; overflow: hidden; vertical-align: middle; margin-right: 7px; }
.scorebar-fill { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.scorebar-n { font-variant-numeric: tabular-nums; color: var(--muted); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--radius-pill); font-size: .76rem; font-weight: 800; }
.badge svg { width: 12px; height: 12px; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.pass { background: var(--good-bg); color: var(--good); }
.badge.review { background: var(--warn-bg); color: var(--warn); }
.badge.fail { background: var(--bad-bg); color: var(--bad); }
.badge.grey { background: var(--neutral-200); color: var(--muted); }
.badge.flag { background: var(--bad-bg); color: var(--bad); box-shadow: 0 0 0 1px rgba(179,44,64,.25); }
.badge.sage { background: var(--sage-bg); color: var(--sage-700); }
.badge.peach { background: var(--peach-100); color: var(--brand-link); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 6px; background: var(--neutral-200); color: var(--muted); font-size: .75rem; font-weight: 700; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--sage-bg); color: var(--sage-700); font-size: .78rem; font-weight: 700; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: var(--sp-5) var(--sp-6); margin-bottom: 20px; position: relative; }
.panel.lift { box-shadow: var(--shadow-md); }
.panel h2 { margin-top: 0; }
.section-head { font-size: var(--fs-1); text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--muted); font-weight: 800; margin: 26px 0 10px; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 16px; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.scorehead { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.bigscore { font-family: "DM Serif Display", Georgia, serif; font-size: 2.6rem; line-height: 1; }

/* admin score ring */
.score-ring { --score: 0; --ring-color: var(--good); width: 104px; height: 104px; border-radius: 50%; background: conic-gradient(var(--ring-color) calc(var(--score) * 1%), var(--neutral-200) 0); display: grid; place-items: center; position: relative; flex: none; }
.score-ring::before { content: ""; position: absolute; inset: 9px; background: var(--card); border-radius: 50%; box-shadow: var(--edge-light); }
.score-ring .rv { position: relative; font-family: "DM Serif Display", Georgia, serif; font-size: 1.9rem; line-height: 1; }
.score-ring .rv small { font-size: .9rem; color: var(--muted); }

.bar { height: 10px; background: var(--neutral-200); border-radius: var(--radius-pill); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--peach-400); border-radius: var(--radius-pill); transform-origin: left center; animation: growbar var(--dur-3) var(--ease-out) both; }
@keyframes growbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.bar > span.low { background: var(--bad); }
.bar > span.mid { background: var(--warn); }
.bar > span.high { background: var(--good); }
.dimrow { display: grid; grid-template-columns: 200px 1fr 56px; gap: 12px; align-items: center; margin: 8px 0; font-size: .9rem; }
.reasons { background: var(--warn-bg); border: 1px solid #f0dca8; border-radius: var(--radius-sm); padding: 12px 16px; }
.reasons.passok { background: var(--good-bg); border-color: #bfe3cd; }
.qa { border-top: 1px solid var(--line); padding: 10px 0; font-size: .88rem; }
.qa .given { color: var(--muted); }
.qa .ok { color: var(--good); font-weight: 800; }
.qa .no { color: var(--bad); font-weight: 800; }
.eventlog { font-size: .82rem; color: var(--muted); max-height: 220px; overflow: auto; }
.eventlog div { padding: 2px 0; border-bottom: 1px dotted var(--line); }
.error { color: var(--bad); background: var(--bad-bg); border: 1px solid #f0c4cb; padding: 10px 14px; border-radius: 8px; }
.linkbox { display: flex; gap: 8px; margin-top: 8px; }
.linkbox input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* inline 0-4 rubric radio cards (admin interview grading) */
.rubric-grade { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 8px; }
.rubric-grade label { border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 6px; text-align: center; cursor: pointer; font-size: .8rem; transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease); }
.rubric-grade label:hover { border-color: var(--peach-300); background: var(--peach-50); }
.rubric-grade input { position: absolute; opacity: 0; width: 0; height: 0; }
.rubric-grade label .gn { font-weight: 800; display: block; font-size: 1rem; }
.rubric-grade input:checked + .gn, .rubric-grade label.on { color: var(--brand-link); }
.rubric-grade label.on { border-color: var(--peach-400); background: var(--peach-50); box-shadow: var(--ring); }

/* sticky decision rail */
.decision-rail { position: sticky; bottom: 0; background: rgba(255,255,255,.94); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 14px 18px; margin-top: 18px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; z-index: 15; }

.sitefoot { max-width: 1180px; margin: 40px auto 0; padding: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; text-align: center; }
.sitefoot a { color: var(--brand-link); }
.sitefoot .brand-word-sm { font-family: "DM Serif Display", Georgia, serif; color: var(--ink); }

@media (max-width: 900px) { .pipeline { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px){
  .grid-2{ grid-template-columns:1fr; } .kv{ grid-template-columns:1fr; } .form-grid{ grid-template-columns:1fr; }
  .trust-tiles{ grid-template-columns:1fr; }
  .card{ padding:var(--sp-5) var(--sp-5); } .section-card{ padding:var(--sp-5) var(--sp-4); }
  .likert{ flex-direction:column; } .likert .opt{ min-width:0; justify-content:flex-start; text-align:left; }
  .pipeline{ grid-template-columns:repeat(2,1fr); }
  table.grid td:first-child, table.grid th:first-child { position: sticky; left: 0; background: #fff; }
  table.grid th:first-child { background: var(--neutral-100); }
  .rubric-grade{ grid-template-columns: repeat(5, 1fr); gap: 4px; }
}
@media (pointer: coarse) {
  .btn { min-height: 44px; } .admin-nav a { min-height: 40px; display: inline-flex; align-items: center; }
  .opt { padding: 14px 15px; }
}

/* ---- global reduced-motion guard ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Quick Sprint speed game ---- */
.speed-wrap { text-align: center; }
.speed-intro { max-width: 34rem; margin: 0 auto; }
.speed-stage { max-width: 30rem; margin: 0 auto; }
.speed-hud { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .82rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; margin-bottom: var(--sp-3); min-height: 1.2em; }
.speed-hud .speed-streak { color: var(--brand-link); }
.speed-ring-wrap { position: relative; width: 120px; height: 120px; margin: 4px auto var(--sp-3); }
.speed-ring { width: 120px; height: 120px; display: block; }
.speed-ring-bg { stroke: var(--line); }
.speed-ring-fg { stroke: var(--brand-link); transition: stroke .2s var(--ease); }
.speed-ring-fg.low { stroke: var(--bad); }
.speed-secs { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.speed-stem { font-size: clamp(1.5rem, 6vw, 2.1rem); font-weight: 800; color: var(--ink-900); line-height: 1.2; white-space: pre-line; margin: var(--sp-2) 0 var(--sp-4); letter-spacing: .01em; word-break: break-word; }
.speed-stem table { font-size: clamp(1.1rem, 4.5vw, 1.5rem); margin: 10px auto 0; border-collapse: collapse; }
.speed-stem table td, .speed-stem table th { padding: 6px 14px; border: 1px solid var(--line-strong); font-weight: 800; text-align: center; }
.speed-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.speed-opt { min-height: 60px; font-size: 1.3rem; font-weight: 800; border: 2px solid var(--line-strong); background: var(--card); color: var(--ink); border-radius: var(--radius-sm); cursor: pointer; font-family: inherit; transition: transform var(--dur-1) var(--ease), border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease); -webkit-tap-highlight-color: transparent; touch-action: manipulation; word-break: break-word; padding: 8px; }
.speed-opt:hover { border-color: var(--brand-line); }
.speed-opt:active { transform: scale(.97); }
.speed-opt.chosen { border-color: var(--ink); }
.speed-opt.right { background: var(--good-bg); border-color: var(--good); color: var(--good); }
.speed-opt.wrong { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }
.speed-opt:disabled { cursor: default; }
.speed-feedback { min-height: 1.4em; margin-top: var(--sp-3); font-weight: 700; font-size: .95rem; color: var(--muted); }
.speed-feedback.ok { color: var(--good); }
.speed-feedback.no { color: var(--bad); }
.speed-done { max-width: 30rem; margin: 0 auto; }
@media (max-width: 380px) { .speed-stem { font-size: 1.5rem; } .speed-opt { font-size: 1.15rem; min-height: 54px; } }

/* ---- The Gauntlet (power section): visual SVG stems + option tiles ---- */
.pw-mode .speed-stem { margin: var(--sp-2) auto var(--sp-4); max-width: 22rem; }
.pw-mode .speed-stem svg.pw-matrix, .pw-mode .speed-stem svg.pw-seq { width: 100%; height: auto; display: block; }
.pw-mode .speed-stem svg.pw-seq { max-width: 100%; }
.pw-mode .speed-options { grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 22rem; margin: 0 auto; }
.speed-opt-svg { min-height: 0; padding: 6px; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.speed-opt-svg svg.pw-tile { width: 100%; height: 100%; display: block; pointer-events: none; }
.speed-opt-svg.right { background: var(--good-bg); border-color: var(--good); }
.speed-opt-svg.wrong { background: var(--bad-bg); border-color: var(--bad); }
@media (max-width: 380px) { .pw-mode .speed-options { gap: 7px; } }

/* ---- English Sprint (typed, timed) ---- */
.word-mode .speed-stem { font-size: clamp(1.2rem, 5vw, 1.6rem); font-weight: 700; }
.speed-input-wrap { display: flex; gap: 8px; align-items: stretch; max-width: 26rem; margin: 0 auto; }
.speed-input { flex: 1 1 auto; min-width: 0; font-size: 1.4rem; font-weight: 700; padding: 12px 14px; border: 2px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--card); color: var(--ink); font-family: inherit; text-align: center; -webkit-tap-highlight-color: transparent; }
.speed-input:focus { outline: none; border-color: var(--brand-line); box-shadow: 0 0 0 3px rgba(243,158,104,.18); }
.speed-input.right { border-color: var(--good); background: var(--good-bg); color: var(--good); }
.speed-input.wrong { border-color: var(--bad); background: var(--bad-bg); color: var(--bad); }
.speed-input-go { flex: 0 0 auto; min-height: 0; width: auto; padding: 0 18px; font-size: 1.05rem; }
@media (max-width: 380px) { .speed-input { font-size: 1.2rem; } }
