/* Footprint. Calm, precise, one accent (deep emerald) for the main button, active states and the goal flag.
   Status colours are separate: green went well, amber struggled, red stopped, grey our test computer. */
:root {
  --bg: #F6F7F4; --raise: #FFFFFF; --sunk: #EEF0EB;
  --ink: #111613; --ink-2: #4A534E; --ink-3: #5F6863;
  --line: #E1E5DF; --line-2: #CDD3CC;
  --accent: #0A6B4E; --accent-text: #0A6B4E; --accent-hover: #075A41; --accent-soft: #E1F0E9; --accent-mark: #0A6B4E;
  --btn-bg: #0A6B4E; --btn-ink: #FFFFFF; --btn-hover: #075A41;
  --ok: #1B7A45; --ok-soft: #E6F3EA; --ok-line: #C2E2CE;
  --warn: #8A5A00; --warn-soft: #FBF1DC; --warn-line: #EDD8A6;
  --bad: #B42318; --bad-soft: #FCEAE7; --bad-line: #F2C5BE; --bad-fill: #B42318;
  --env: #5C6762; --env-soft: #EDF0ED; --env-line: #CFD6D1;
  --tip-bg: #111613; --tip-ink: #F6F7F4;
  --shadow: 0 16px 40px -16px rgba(17, 22, 19, .28), 0 2px 8px rgba(17, 22, 19, .08);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --r-sm: 8px; --r: 12px;
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0E0C; --raise: #131815; --sunk: #0F1311;
    --ink: #E6ECE8; --ink-2: #A9B3AD; --ink-3: #8C9690;
    --line: #222A26; --line-2: #333D38;
    --accent: #3DBB8A; --accent-text: #5CCB9E; --accent-hover: #55C99A; --accent-soft: rgba(61, 187, 138, .13); --accent-mark: #3DBB8A;
    --btn-bg: #3DBB8A; --btn-ink: #04140D; --btn-hover: #55C99A;
    --ok: #5CC690; --ok-soft: rgba(92, 198, 144, .12); --ok-line: rgba(92, 198, 144, .32);
    --warn: #E7AE4A; --warn-soft: rgba(231, 174, 74, .12); --warn-line: rgba(231, 174, 74, .34);
    --bad: #F37E73; --bad-soft: rgba(243, 126, 115, .13); --bad-line: rgba(243, 126, 115, .38); --bad-fill: #C93A2E;
    --env: #9AA59F; --env-soft: rgba(154, 165, 159, .12); --env-line: rgba(154, 165, 159, .34);
    --tip-bg: #E6ECE8; --tip-ink: #0B0E0C;
    --shadow: 0 16px 40px -12px rgba(0, 0, 0, .6), 0 2px 8px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0E0C; --raise: #131815; --sunk: #0F1311;
  --ink: #E6ECE8; --ink-2: #A9B3AD; --ink-3: #8C9690;
  --line: #222A26; --line-2: #333D38;
  --accent: #3DBB8A; --accent-text: #5CCB9E; --accent-hover: #55C99A; --accent-soft: rgba(61, 187, 138, .13); --accent-mark: #3DBB8A;
  --btn-bg: #3DBB8A; --btn-ink: #04140D; --btn-hover: #55C99A;
  --ok: #5CC690; --ok-soft: rgba(92, 198, 144, .12); --ok-line: rgba(92, 198, 144, .32);
  --warn: #E7AE4A; --warn-soft: rgba(231, 174, 74, .12); --warn-line: rgba(231, 174, 74, .34);
  --bad: #F37E73; --bad-soft: rgba(243, 126, 115, .13); --bad-line: rgba(243, 126, 115, .38); --bad-fill: #C93A2E;
  --env: #9AA59F; --env-soft: rgba(154, 165, 159, .12); --env-line: rgba(154, 165, 159, .34);
  --tip-bg: #E6ECE8; --tip-ink: #0B0E0C;
  --shadow: 0 16px 40px -12px rgba(0, 0, 0, .6), 0 2px 8px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); font-feature-settings: 'ss01', 'cv11'; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; outline: none; }
main:focus-visible, .band:focus-visible { outline: none; }
main.enter { animation: page-in .2s ease-out; }
@keyframes page-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 620; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; }
code, pre, .code { font-family: var(--mono); font-size: 13px; }
b, strong { font-weight: 620; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--s5); }
.muted { color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--raise); padding: var(--s2) var(--s3); border-radius: var(--r-sm); z-index: 50; }
.skip:focus { left: 8px; }
.bad { color: var(--bad); }

/* ---------- Top bar and footer ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar-in { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 640; font-size: 17px; letter-spacing: -0.02em; }
.brand svg { width: 22px; height: 22px; }
.nav { display: flex; align-items: center; gap: var(--s5); }
.nav a { font-size: 14px; color: var(--ink-2); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s ease-out, border-color .15s ease-out; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: var(--r-sm); background: none; cursor: pointer; color: var(--ink-2); transition: background .15s ease-out, color .15s ease-out; }
.icon-btn:hover { background: var(--sunk); color: var(--ink); }
.foot { border-top: 1px solid var(--line); margin-top: var(--s9); }
.foot-in { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; padding-top: var(--s5); padding-bottom: var(--s5); font-size: 13px; color: var(--ink-3); }
.foot a { color: var(--ink-2); }

/* ---------- Buttons, badges, tags, notices ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--raise); color: var(--ink); font-size: 14px; font-weight: 550; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s ease-out, border-color .15s ease-out, transform .1s ease-out; }
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn svg { width: 15px; height: 15px; }
.btn.primary { background: var(--btn-bg); color: var(--btn-ink); border-color: transparent; }
.btn.primary:hover { background: var(--btn-hover); }
.btn.lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--sunk); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.link { color: var(--accent-text); font-weight: 550; font-size: 14px; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link svg { width: 14px; height: 14px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-text); font-weight: 550; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 12.5px; font-weight: 560; white-space: nowrap; border: 1px solid transparent; }
.badge.small { height: 22px; font-size: 12px; padding: 0 8px; }
.badge.lg { height: 30px; font-size: 14px; padding: 0 12px; }
.b-ok { background: var(--ok-soft); color: var(--ok); border-color: var(--ok-line); }
.b-warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.b-bad { background: var(--bad-soft); color: var(--bad); border-color: var(--bad-line); }
.b-muted { background: var(--env-soft); color: var(--env); border-color: var(--env-line); border-style: dashed; }
.b-neutral { background: var(--sunk); color: var(--ink-2); border-color: var(--line-2); }
.b-live { background: var(--accent-soft); color: var(--accent-text); }
.b-replay { background: var(--sunk); color: var(--ink-2); border-color: var(--line-2); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 550; color: var(--ink-2); border: 1px solid var(--line-2); white-space: nowrap; }
.tag-hint { color: var(--accent-text); border-color: var(--accent); background: var(--accent-soft); }
.notice { padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--raise); font-size: 14px; color: var(--ink-2); }
.notice b { color: var(--ink); }
.notice.warn { border-color: var(--warn-line); background: var(--warn-soft); }
.notice.bad { border-color: var(--bad-line); background: var(--bad-soft); }
.notice.soft { background: var(--sunk); border-color: transparent; }
.notices { display: grid; gap: var(--s2); margin-top: var(--s5); }
.panel { background: var(--raise); border: 1px solid var(--line); border-radius: var(--r); }
.term { border-bottom: 1px dotted var(--ink-3); cursor: help; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Floating: tooltip, step explanation, toasts ---------- */
.tip { position: absolute; z-index: 60; max-width: 280px; padding: 7px 10px; border-radius: var(--r-sm); background: var(--tip-bg); color: var(--tip-ink); font-size: 13px; line-height: 1.4; box-shadow: var(--shadow); pointer-events: none; }
.pop { position: absolute; z-index: 55; padding: var(--s4); border-radius: var(--r); background: var(--raise); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: pop-in .16s ease-out; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.pop-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); margin-bottom: var(--s2); }
.pop-step { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pop-close { width: 28px; height: 28px; font-size: 20px; line-height: 1; }
.pop-plain { font-size: 15px; color: var(--ink); }
.pop-stop { margin-top: var(--s2); color: var(--bad); font-weight: 550; }
.pop-why { margin-top: var(--s2); font-size: 14px; color: var(--ink-2); }
.pop-tech { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line); display: grid; gap: 6px; }
.pop-label { font-size: 12px; color: var(--ink-3); }
.pop-tech code { display: block; padding: 6px 8px; background: var(--sunk); border-radius: 6px; overflow-wrap: anywhere; font-size: 12.5px; }
.toasts { position: fixed; right: var(--s5); bottom: var(--s5); z-index: 70; display: grid; gap: var(--s2); justify-items: end; }
.toast { padding: 10px 14px; border-radius: var(--r-sm); background: var(--tip-bg); color: var(--tip-ink); font-size: 14px; font-weight: 550; box-shadow: var(--shadow); animation: toast-in .2s ease-out; }
.toast.bad { background: var(--bad-fill); color: #fff; }
.toast.out { opacity: 0; transform: translateY(6px); transition: opacity .2s ease-out, transform .2s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- The trail ---------- */
.trail { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: flex-start; row-gap: 10px; }
.t { position: relative; display: flex; flex-direction: column; align-items: center; width: 32px; flex: none; }
.t:not(:last-child)::after { content: ''; position: absolute; top: 13px; left: calc(50% + 13px); width: 6px; height: 1.5px; background: var(--line-2); }
.chip { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border-radius: 7px; border: 1px solid var(--ok-line); background: var(--ok-soft); color: var(--ok); cursor: pointer; transition: transform .12s ease-out, box-shadow .12s ease-out; }
span.chip { cursor: default; }
.chip svg { width: 14px; height: 14px; }
button.chip:hover { transform: translateY(-1px); box-shadow: 0 0 0 3px var(--accent-soft); }
.chip[aria-expanded="true"] { box-shadow: 0 0 0 3px var(--accent-soft); }
.t-error .chip { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.t-stop .chip { background: var(--bad-fill); color: #fff; border-color: var(--bad-fill); }
.t-goal .chip { background: var(--btn-bg); color: var(--btn-ink); border-color: transparent; }
.t-env .chip, .t-miss .chip { background: var(--env-soft); color: var(--env); border: 1px dashed var(--env-line); }
.t-claim .chip { background: var(--raise); color: var(--ok); border: 1px dashed var(--ok); }
.t-live .chip { background: var(--raise); color: var(--accent); border-color: var(--line-2); }
.t-live .chip svg { animation: pulse 1.4s ease-in-out infinite; }
.t-wait .chip { background: var(--sunk); color: var(--ink-3); border-color: var(--line); }
.is-pending .chip { border-style: dashed; }
.is-after .chip, .is-after .t-word { opacity: .4; }
.is-after::after, .t:has(+ .is-after)::after { opacity: .4; }
.trail.labelled { row-gap: 14px; }
.labelled .t { width: 66px; }
.labelled .chip { width: 36px; height: 36px; border-radius: 9px; }
.labelled .chip svg { width: 17px; height: 17px; }
.labelled .t:not(:last-child)::after { top: 18px; left: calc(50% + 18px); width: 30px; }
.t-word { margin-top: 6px; font-size: 11.5px; line-height: 1.2; color: var(--ink-2); text-align: center; max-width: calc(100% - 6px); }
.t-stop .t-word { color: var(--bad); font-weight: 650; }
.t-goal .t-word { color: var(--accent-text); font-weight: 650; }
.t-env .t-word, .t-miss .t-word { color: var(--env); }
.trail.draw .t { opacity: 0; animation: step-in .22s ease-out forwards; animation-delay: calc(var(--i) * 40ms); }
.trail.live .t { animation: step-in .2s ease-out; }
.trail.live .t.no-anim { animation: none; }
@keyframes step-in { from { opacity: 0; transform: translateY(4px) scale(.9); } to { opacity: 1; transform: none; } }
.chip.sm { width: 22px; height: 22px; border-radius: 6px; cursor: default; }
.chip.sm svg { width: 13px; height: 13px; }
.legend { list-style: none; margin: var(--s5) 0 0; padding: var(--s4) 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 13px; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend-note { margin-top: var(--s3); font-size: 13px; color: var(--ink-3); }

/* ---------- Page structure ---------- */
.page { padding-top: var(--s7); }
.narrow { max-width: 760px; }
.page-head { margin-bottom: var(--s6); }
.page-head h1 { font-size: 44px; letter-spacing: -0.03em; line-height: 1.08; }
.page-head.wide h1 { max-width: 20ch; }
.page-head p { margin-top: var(--s2); }
.page-head.row, .section-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s4); flex-wrap: wrap; }
.lede { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 54ch; margin-top: var(--s4); }
.section-head { margin-bottom: var(--s5); }
.section-head h2, .band h2 { font-size: 28px; letter-spacing: -0.02em; }
.section-head p { margin-top: var(--s2); color: var(--ink-2); max-width: 64ch; }
.empty { padding: var(--s6); border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--raise); }
.empty h1, .empty h2 { font-size: 22px; }
.empty p { margin-top: var(--s2); color: var(--ink-2); max-width: 60ch; }
.empty .actions { margin-top: var(--s4); }
.empty.small { padding: var(--s4) var(--s5); }
.empty.small p { margin: 0; }
.skeleton-line { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--sunk), var(--line), var(--sunk)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; color: transparent; max-width: 320px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- Home ---------- */
.hero { padding: var(--s8) 0 var(--s7); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s7); align-items: center; }
.hero h1 { font-size: 64px; line-height: 1.02; letter-spacing: -0.04em; font-weight: 640; }
.hero .actions { margin-top: var(--s6); }
.hero .notice { margin-top: var(--s5); }
.demo { margin: 0; padding: var(--s5); background: var(--raise); border: 1px solid var(--line); border-radius: var(--r); }
.demo-head { display: flex; justify-content: space-between; gap: var(--s3); font-size: 13px; font-weight: 600; color: var(--ink-2); padding-bottom: var(--s4); border-bottom: 1px solid var(--line); }
.demo-run { padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.demo-who { font-size: 13px; color: var(--ink-2); margin-bottom: 10px; font-weight: 550; }
.demo-said { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 14px; }
.demo-said svg { width: 15px; height: 15px; flex: none; margin-top: 3px; }
.demo-said.t-stop svg { color: var(--bad); }
.demo-said.t-goal svg { color: var(--accent); }
.demo-link { display: inline-block; margin-top: var(--s4); font-size: 14px; font-weight: 550; color: var(--accent-text); text-decoration: none; }
.demo-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.band { padding: var(--s8) 0 0; }
.band:focus { outline: none; }
.how { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
.how li { padding-top: var(--s4); border-top: 1px solid var(--line-2); display: grid; gap: var(--s3); align-content: start; }
.how-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--sunk); border: 1px solid var(--line); color: var(--ink); }
.how-icon svg { width: 19px; height: 19px; }
.how p { font-size: 17px; line-height: 1.5; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px; }
.how-n { font-weight: 650; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.cats { border-bottom: 1px solid var(--line); }
.cat { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s5); padding: var(--s5) 0; border-top: 1px solid var(--line); }
.cat-head h3 { font-size: 18px; }
.cat-head p { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.tile { height: 100%; display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--raise); text-decoration: none; transition: border-color .15s ease-out, transform .15s ease-out; }
.tile:hover { border-color: var(--accent); transform: translateY(-1px); }
.tile .badge { grid-column: 1 / -1; justify-self: start; }
.mono-tile { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--sunk); border: 1px solid var(--line); font-weight: 680; font-size: 16px; color: var(--ink); flex: none; }
.tile-text { display: grid; min-width: 0; }
.tile-name { font-weight: 620; font-size: 15px; }
.tile-site { font-size: 13px; color: var(--ink-3); }
.other { display: flex; gap: var(--s3); align-items: center; margin-top: var(--s5); padding: var(--s4); border: 1px dashed var(--line-2); border-radius: var(--r); text-decoration: none; transition: border-color .15s ease-out; }
.other:hover { border-color: var(--accent); }
.other > span:last-child { display: grid; font-size: 14px; }
.other b { font-size: 15px; }
.other-plus { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--sunk); font-size: 20px; color: var(--ink-2); flex: none; }
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s7); align-items: start; }
.recent { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.recent a { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: var(--s4); padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 14px; align-items: baseline; }
.recent a:hover .recent-name { color: var(--accent-text); }
.recent-name { font-weight: 620; }
.recent-verdict { color: var(--ink-2); }
.recent-date { color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.bench-teaser { display: grid; gap: var(--s2); padding: var(--s5); border-radius: var(--r); border: 1px solid var(--line); background: var(--raise); text-decoration: none; transition: border-color .15s ease-out; }
.bench-teaser:hover { border-color: var(--accent); }
.teaser-k { font-size: 13px; color: var(--ink-3); font-weight: 550; }
.teaser-big { font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; }
.teaser-big b { font-weight: 680; }
.teaser-sub { color: var(--ink-2); font-size: 14px; }

/* ---------- Start a test ---------- */
.stepper { list-style: none; margin: 0 0 var(--s5); padding: 0; display: flex; gap: var(--s2); }
.stepper li { flex: 1; min-width: 0; border-top: 2px solid var(--line-2); padding-top: 10px; font-size: 13px; color: var(--ink-3); }
.stepper-in { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.stepper-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 650; background: var(--sunk); color: var(--ink-2); flex: none; }
.stepper-n svg { width: 12px; height: 12px; }
.stepper li.done { border-top-color: var(--accent); color: var(--ink-2); }
.stepper li.done .stepper-n { background: var(--accent-soft); color: var(--accent-text); }
.stepper li.done a:hover .stepper-name { text-decoration: underline; }
.stepper li.now { border-top-color: var(--accent); color: var(--ink); font-weight: 600; }
.stepper li.now .stepper-n { background: var(--btn-bg); color: var(--btn-ink); }
.stepper-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step { padding: var(--s6); }
.step-title { font-size: 26px; letter-spacing: -0.02em; margin-bottom: var(--s5); }
.step-foot { display: flex; justify-content: space-between; gap: var(--s3); margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line); }
.fields { display: grid; gap: var(--s4); }
.field { display: grid; gap: 6px; margin-top: var(--s4); align-content: start; }
.fields .field { margin-top: 0; }
.field label, legend { font-size: 14px; font-weight: 580; }
.hint { font-size: 13px; color: var(--ink-3); }
.hint b { color: var(--ink-2); }
input[type="text"], input[type="search"], textarea, select { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--raise); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 12px; transition: border-color .15s ease-out, box-shadow .15s ease-out; }
input[type="text"], input[type="search"], select { height: 44px; }
textarea { resize: vertical; min-height: 64px; line-height: 1.45; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
::placeholder { color: var(--ink-3); opacity: .8; }
.form-error { min-height: 0; color: var(--bad); font-size: 14px; margin-top: var(--s3); }
.form-error:empty { margin: 0; }
.examples { margin-top: var(--s4); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-2); }
.pick { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 12px; line-height: 1.35; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--raise); font-size: 13.5px; text-decoration: none; cursor: pointer; color: var(--ink); transition: border-color .15s ease-out; }
.pick:hover { border-color: var(--accent); }
.pick.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.chosen { display: flex; align-items: center; gap: var(--s3); padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r); background: var(--sunk); flex-wrap: wrap; }
.chosen > div { flex: 1; min-width: 160px; }
.chosen-name { font-weight: 640; font-size: 18px; }
.change { margin-top: var(--s4); }
.change summary { cursor: pointer; font-size: 14px; color: var(--accent-text); font-weight: 550; }
.pick-list { margin-top: var(--s3); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.pick-list > div { display: flex; flex-wrap: wrap; gap: 6px; }
.pick-cat { width: 100%; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.choices { display: grid; gap: var(--s2); }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer; transition: border-color .15s ease-out, background .15s ease-out; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; }
.choice > span { display: grid; gap: 2px; font-size: 15px; }
.choice .muted { font-size: 13px; }
.review-lede { font-size: 20px; line-height: 1.45; letter-spacing: -0.01em; font-weight: 500; }
.review-bench { margin-top: var(--s3); color: var(--ink-2); }
.review { margin: var(--s5) 0 0; border-top: 1px solid var(--line); }
.review > div { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: var(--s4); padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.review dt { font-size: 13px; color: var(--ink-3); }
.review dd { margin: 0; font-size: 15px; }
.advanced { margin-top: var(--s5); border: 1px solid var(--line); border-radius: var(--r); }
.advanced summary { cursor: pointer; padding: 14px var(--s4); font-weight: 580; font-size: 14px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary::after { content: ''; width: 8px; height: 8px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: rotate(45deg); transition: transform .15s ease-out; margin-right: 4px; }
.advanced[open] summary::after { transform: rotate(-135deg); }
.advanced-body { padding: 0 var(--s4) var(--s4); display: grid; gap: var(--s4); }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: var(--s2); }
legend { margin-bottom: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.check small { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 1px; overflow-wrap: anywhere; }
.check select { width: auto; height: 30px; padding: 0 8px; margin-left: 6px; font-size: 14px; }

/* ---------- Test header (live, replay, results) ---------- */
.test-head .back, .summary-doc .back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-2); text-decoration: none; margin-bottom: var(--s4); }
.test-head .back:hover, .summary-doc .back:hover { color: var(--ink); }
.test-head .back svg, .summary-doc .back svg { width: 14px; height: 14px; }
.test-title { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.test-title h1 { font-size: 44px; letter-spacing: -0.03em; line-height: 1.08; }
.task { margin-top: var(--s2); font-size: 18px; color: var(--ink-2); max-width: 64ch; }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s4); padding-bottom: var(--s5); border-bottom: 1px solid var(--line); }
.meta { font-size: 14px; color: var(--ink-3); }

/* ---------- Live and Replay ---------- */
.progress { margin-top: var(--s5); padding: var(--s5); }
.prog-top { display: flex; justify-content: space-between; gap: var(--s3); align-items: baseline; flex-wrap: wrap; }
.prog-phase { font-size: 18px; font-weight: 620; letter-spacing: -0.01em; }
.prog-eta { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 99px; background: var(--sunk); margin-top: var(--s3); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .25s linear; }
.prog-foot { display: flex; justify-content: space-between; gap: var(--s3); margin-top: var(--s3); flex-wrap: wrap; font-size: 13px; }
.phases { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s4); flex-wrap: wrap; color: var(--ink-3); }
.phases li { display: inline-flex; align-items: center; gap: 6px; }
.phases li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.phases li.done { color: var(--ink-2); }
.phases li.done::before { background: var(--accent); border-color: var(--accent); }
.phases li.now { color: var(--ink); font-weight: 600; }
.phases li.now::before { border-color: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
.replay-bar { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); }
.rp-note { font-size: 13px; margin-left: var(--s2); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 2px; background: var(--raise); }
.seg button { height: 28px; padding: 0 10px; border: 0; border-radius: 6px; background: none; font-size: 13px; font-weight: 550; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.agents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s4); }
.agent { padding: var(--s5); background: var(--raise); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; animation: step-in .2s ease-out; }
.agent-head { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.agent-head h3 { font-size: 16px; }
.agent-model { margin-left: auto; font-size: 12.5px; color: var(--ink-3); }
.agent-now { display: flex; align-items: center; gap: 8px; min-height: 24px; margin-top: var(--s3); font-size: 14px; }
.agent-now .for { margin-left: auto; color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.now-end { font-weight: 600; }
.now-end.t-goal { color: var(--accent-text); }
.now-end.t-stop { color: var(--bad); }
.now-end.t-env { color: var(--env); }
.now-end.t-unchecked { color: var(--ok); }
.agent-trail { margin-top: var(--s3); min-height: 28px; }
.feed { list-style: none; margin: var(--s4) 0 0; padding: var(--s3) 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 13.5px; line-height: 1.45; min-height: 30px; }
.feed li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 6px; color: var(--ink-2); overflow-wrap: anywhere; animation: feed-in .22s ease-out; }
.feed li:last-child { color: var(--ink); }
.f-t { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 12.5px; padding-top: 1px; }
.feed .f-warn { color: var(--warn); }
.feed .f-bad { color: var(--bad); }
.feed .f-env { color: var(--env); }
.feed .f-good { color: var(--ok); }
@keyframes feed-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.fold { border-top: 1px solid var(--line); margin-top: var(--s5); }
.fold > summary { cursor: pointer; padding: 14px 0; font-weight: 580; font-size: 14px; list-style: none; display: flex; gap: var(--s2); align-items: baseline; flex-wrap: wrap; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::before { content: ''; width: 7px; height: 7px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: rotate(-45deg); transition: transform .15s ease-out; margin-right: 6px; flex: none; align-self: center; }
.fold[open] > summary::before { transform: rotate(45deg); }
.fold > summary .muted { font-weight: 400; font-size: 13px; }
.fold-body { padding: 0 0 var(--s4); min-width: 0; }
.activity { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow: auto; font-family: var(--mono); font-size: 12px; display: grid; gap: 3px; }
.activity li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px; color: var(--ink-2); overflow-wrap: anywhere; }

/* ---------- Results ---------- */
.page .block { margin-top: var(--s8); }
.results .block { max-width: 760px; }
.results .block.wide { max-width: none; }
.block h2 { font-size: 28px; letter-spacing: -0.02em; }
.block-sub { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.verdict { margin-top: var(--s6); max-width: 900px; }
.verdict-text { margin-top: var(--s4); font-size: 44px; line-height: 1.1; letter-spacing: -0.032em; font-weight: 630; }
.facts { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); margin: var(--s5) 0 0; }
.facts dt { font-size: 13px; color: var(--ink-3); }
.facts dd { margin: 2px 0 0; font-size: 15px; color: var(--ink-2); }
.facts dd b { font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.story { list-style: none; margin: var(--s5) 0 0; padding: 0; counter-reset: s; display: grid; gap: 2px; }
.story li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--s3); align-items: start; font-size: 16px; padding: 8px 0; }
.story li::before { content: attr(data-step); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--sunk); color: var(--ink-2); font-size: 13px; font-weight: 650; margin-top: 1px; }
.story-step { all: unset; cursor: pointer; line-height: 1.55; }
.story-step:hover { text-decoration: underline dotted var(--ink-3); text-underline-offset: 4px; }
.story-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.story-end { font-weight: 500; }
.story-end > span { line-height: 1.55; }
.story-end.s-stop::before { background: var(--bad-fill); color: #fff; }
.story-end.s-goal::before { background: var(--btn-bg); color: var(--btn-ink); }
.story-end.s-env::before { background: var(--env-soft); color: var(--env); }
.story-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 680; margin-right: 4px; }
.story-label svg { width: 15px; height: 15px; }
.s-stop .story-label { color: var(--bad); }
.s-goal .story-label { color: var(--accent-text); }
.s-env .story-label { color: var(--env); }
.trail-panel { margin-top: var(--s4); padding: var(--s5); overflow: hidden; }
.trail-who { font-size: 13px; color: var(--ink-2); margin-bottom: var(--s4); font-weight: 550; }
.explain { margin-top: var(--s4); max-width: 760px; display: grid; gap: var(--s2); }
.explain p { font-size: 17px; line-height: 1.6; }
.lead-p { margin-top: var(--s3); font-size: 20px; line-height: 1.5; letter-spacing: -0.01em; }
.fix { margin-top: var(--s3); font-size: 20px; line-height: 1.5; letter-spacing: -0.01em; font-weight: 500; }
.fix-page { margin-top: var(--s3); font-size: 14px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.fix-page a { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-text); font-weight: 550; overflow-wrap: anywhere; }
.fix-page a svg { width: 13px; height: 13px; flex: none; }
.hint-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s4); }
.hint-card { padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r); background: var(--raise); }
.hint-label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.hint-big { margin-top: var(--s3); font-size: 22px; color: var(--ink-2); letter-spacing: -0.02em; }
.hint-big b { font-size: 48px; color: var(--ink); font-weight: 650; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.hint-sub { font-size: 14px; color: var(--ink-2); }
.hint-more { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.hint-line { margin-top: var(--s4); font-size: 16px; color: var(--ink); }
.good { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: var(--s3); }
.good li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 16px; }
.good svg { width: 17px; height: 17px; color: var(--ok); margin-top: 4px; }
.evidence .fold.big { border-top: 1px solid var(--line-2); margin-top: 0; }
.fold.big > summary { padding: var(--s5) 0; align-items: center; }
.fold.big > summary h2 { font-size: 24px; flex: 1 1 0; min-width: 0; }
.fold.big > summary .muted { flex-basis: 100%; padding-left: 19px; }
.evidence h3 { font-size: 18px; margin: var(--s6) 0 var(--s3); }
.evidence h3:first-child { margin-top: var(--s2); }
.ev-runs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.ev-run { padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r); background: var(--raise); min-width: 0; }
.ev-run header { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; margin-bottom: var(--s3); }
.ev-run h4 { font-size: 15px; }
.ev-run .badge { margin-left: auto; }
.mini-story { margin: var(--s3) 0 0; padding-left: 20px; font-size: 14px; color: var(--ink-2); display: grid; gap: 4px; }
.ev-why { margin-top: var(--s3); font-size: 14px; color: var(--ink); }
.ev-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); margin-top: var(--s5); }
.ev-grid h4 { font-size: 15px; margin-bottom: var(--s3); }
.ev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); font-size: 13.5px; min-width: 0; }
.ev-list li { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.ev-list code { padding: 6px 8px; background: var(--sunk); border-radius: 6px; font-size: 12.5px; overflow-wrap: anywhere; }
.ev-list a { color: var(--ink); }
.msg { display: grid; gap: var(--s3); }
.msg-part { padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r); background: var(--raise); min-width: 0; }
.msg-head { display: flex; justify-content: space-between; gap: var(--s3); align-items: flex-start; margin-bottom: var(--s3); }
.msg-head h5 { font-size: 15px; }
.msg-head p { font-size: 13px; margin-top: 2px; }
.msg-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font); font-size: 14px; line-height: 1.6; color: var(--ink); }
.again { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
.again p { font-size: 14px; color: var(--ink-2); margin-bottom: var(--s3); }
.row-fields { display: flex; gap: var(--s2); }
.row-fields select { width: auto; flex: 1; min-width: 0; }
.report-sections { display: grid; grid-template-columns: minmax(0, 1fr); }
.report-sections .fold { margin-top: 0; }
.report { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; min-width: 0; }
.report p, .report ul, .report ol, .report blockquote { margin: 0 0 var(--s3); }
.report blockquote { padding-left: var(--s3); border-left: 2px solid var(--line-2); }
.report code { background: var(--sunk); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.report h3 { font-size: 15px; margin: var(--s4) 0 var(--s2); color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 0 0 var(--s3); border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--raise); }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: 13px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { color: var(--ink-3); font-weight: 600; font-size: 12px; overflow-wrap: normal; white-space: nowrap; }
.log-meta { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 6px var(--s3); margin: 0 0 var(--s4); font-size: 13.5px; }
.log-meta dt { color: var(--ink-3); }
.log-meta dd { margin: 0; overflow-wrap: anywhere; }
.log-step { padding: var(--s3) 0; border-top: 1px solid var(--line); }
.log-step-n { font-size: 12px; font-weight: 650; color: var(--ink-3); margin-bottom: 6px; }
.log-say { font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.call { margin-top: 6px; font-size: 13.5px; min-width: 0; }
.call-line { display: flex; gap: 8px; flex-wrap: wrap; overflow-wrap: anywhere; }
.call-line b { color: var(--ink-3); font-weight: 600; }
.call pre, .call details pre { margin: 6px 0 0; padding: var(--s3); background: var(--sunk); border-radius: var(--r-sm); max-height: 280px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
.call details summary { cursor: pointer; font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.finish-box { margin-top: var(--s3); padding: var(--s3); background: var(--sunk); border-radius: var(--r-sm); }
.finish-box .log-meta { margin: 0; }

/* ---------- Benchmark ---------- */
.keynums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s6); }
.keynum { padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r); background: var(--raise); }
.keynum-big { font-size: 22px; color: var(--ink-2); letter-spacing: -0.02em; }
.keynum-big b { font-size: 56px; font-weight: 650; letter-spacing: -0.045em; color: var(--ink); font-variant-numeric: tabular-nums; }
.keynum p:last-child { margin-top: var(--s2); font-size: 15px; color: var(--ink-2); max-width: 30ch; }
.filters { flex-wrap: wrap; }
.board-wrap { border: 1px solid var(--line); border-radius: var(--r); }
.board { border-collapse: collapse; width: 100%; font-size: 14px; }
.board thead th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 12px; border-bottom: 1px solid var(--line); vertical-align: bottom; }
.board td, .board tbody th { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; font-weight: 400; }
.board tbody tr:last-child td, .board tbody tr:last-child th { border-bottom: 0; }
.board tr[data-href] { cursor: pointer; transition: background .15s ease-out; }
.board tr[data-href]:hover { background: var(--sunk); }
.board .num { white-space: nowrap; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.board .num b { color: var(--ink); font-size: 15px; }
.board .issue { min-width: 240px; max-width: 360px; color: var(--ink-2); line-height: 1.5; }
.prod { display: flex; gap: 10px; align-items: center; text-decoration: none; }
.prod > span:last-child { display: grid; font-size: 13px; }
.prod-name { font-size: 14.5px; font-weight: 620; color: var(--ink); }
.prod .mono-tile { width: 32px; height: 32px; font-size: 14px; border-radius: 8px; }
.cell-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.cell-actions > div { display: grid; gap: 6px; justify-items: start; }
.board .col-found { min-width: 128px; }
.board .col-num { min-width: 92px; }
.board-cards { display: none; list-style: none; margin: 0; padding: 0; gap: var(--s3); }
.board-cards article { padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r); background: var(--raise); display: grid; gap: var(--s3); }
.board-cards header { display: flex; gap: var(--s3); align-items: center; }
.board-cards h3 { font-size: 16px; }
.board-cards dl { margin: 0; display: grid; gap: var(--s2); }
.board-cards dl div { display: flex; justify-content: space-between; gap: var(--s3); font-size: 14px; }
.board-cards dt { color: var(--ink-3); }
.board-cards dd { margin: 0; white-space: nowrap; }
.board-cards .issue { font-size: 14px; color: var(--ink-2); }
.board-cards .actions > div { display: flex; flex-wrap: wrap; gap: var(--s2); }
.board-note { margin-top: var(--s3); font-size: 13px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s7); }
.two-col h2 { font-size: 24px; }
.bullets { margin: var(--s4) 0; padding-left: 18px; display: grid; gap: var(--s2); color: var(--ink-2); font-size: 15px; }

/* ---------- History ---------- */
.search { margin: 0; min-width: 280px; }
.history { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.history a { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; grid-template-areas: 'name verdict side' 'task verdict side'; gap: 2px var(--s5); padding: var(--s4) var(--s2); border-bottom: 1px solid var(--line); text-decoration: none; align-items: start; transition: background .15s ease-out; }
.history a:hover { background: var(--raise); }
.h-name { grid-area: name; font-weight: 620; }
.h-task { grid-area: task; font-size: 13px; color: var(--ink-3); }
.h-verdict { grid-area: verdict; font-size: 14px; color: var(--ink-2); }
.h-side { grid-area: side; display: grid; justify-items: end; gap: 6px; }
.h-date { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.h-why { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.h-hidden-note { margin-top: var(--s4); font-size: 14px; }

/* ---------- Narrower screens ---------- */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .hero h1 { font-size: 52px; }
  .cat { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agents, .ev-runs { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 var(--s4); }
  .nav { gap: var(--s3); }
  .nav a { font-size: 13.5px; }
  .brand { font-size: 16px; }
  .hero { padding: var(--s6) 0 var(--s5); }
  .hero h1 { font-size: 40px; letter-spacing: -0.035em; }
  .lede { font-size: 17px; }
  .hero .actions .btn { flex: 1 1 100%; }
  .band { padding-top: var(--s7); }
  .section-head h2, .band h2, .block h2 { font-size: 24px; }
  .how { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .page { padding-top: var(--s6); }
  .page-head h1, .test-title h1 { font-size: 32px; }
  .verdict-text { font-size: 28px; line-height: 1.18; }
  .task { font-size: 16px; }
  .step { padding: var(--s5) var(--s4); }
  .step-title { font-size: 22px; }
  .review > div { grid-template-columns: minmax(0, 1fr) auto; }
  .review dt { grid-column: 1 / -1; }
  .pick-list { grid-template-columns: minmax(0, 1fr); }
  .stepper-name { font-size: 12px; }
  .stepper li:not(.now) .stepper-name { display: none; }
  .results .block { margin-top: var(--s7); }
  .hint-cards, .ev-grid, .again, .keynums, .two-col { grid-template-columns: minmax(0, 1fr); }
  .hint-big b { font-size: 40px; }
  .keynum-big b { font-size: 48px; }
  .lead-p, .fix { font-size: 18px; }
  .board-wrap { display: none; }
  .filters { display: flex; flex-wrap: wrap; max-width: 100%; }
  .board-cards { display: grid; }
  .recent a { grid-template-columns: minmax(0, 1fr) auto; }
  .recent-verdict { grid-column: 1 / -1; grid-row: 2; }
  .history a { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'name side' 'task side' 'verdict verdict'; }
  .search { min-width: 0; width: 100%; }
  .toasts { left: var(--s4); right: var(--s4); justify-items: center; }
  .labelled .t { width: 58px; }
  .labelled .t:not(:last-child)::after { width: 22px; }
  .trail-panel { padding: var(--s4); }
  .log-meta { grid-template-columns: minmax(0, 1fr); }
  .agent { padding: var(--s4); }
  .rp-note { margin-left: 0; flex-basis: 100%; }
}

/* ---------- Less motion when asked ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .trail.draw .t { opacity: 1; animation: none; }
  .pulse, .t-live .chip svg, .phases li.now::before { animation: none; }
}
