/* AssistantEval: a sister brand to ORO. Deep forest ink on warm off-white, cream bands,
   ORO orange as the accent, gold labels, Plus Jakarta Sans and Geist Mono.
   Spacing runs on an 8px scale: --s1 8, --s2 16, --s3 24, --s4 32, --s6 48, --s8 64. */
:root {
  --bg: #FCFCFA;
  --cream: #F5F1E6;
  --surface: #FFFFFF;
  --ink: #0A3815;
  --ink-2: #0D4A1C;
  --muted: #4E6655;
  --faint: #8C9A8F;
  --rule: #E6E0D0;
  --rule-2: #EFEADF;
  --gold: #956825;
  --orange: #FF9138;
  --orange-ink: #B4540A;
  --yellow: #EDD03A;
  --pass: #1E7A45;
  --pass-bg: #E3F2E8;
  --fail: #8A5A00;
  --fail-bg: #FBEFD5;
  --unsafe: #B42E27;
  --unsafe-bg: #FBE5E2;
  --o-pass: #2E9A5C;
  --o-fail: #E0A11B;
  --o-unsafe: #D2433C;
  /* Radar series: validated (light, all pairs, 3 slots). */
  --c1: #C8590A;
  --c2: #0E8468;
  --c3: #4D6BD6;
  --grid: #E3DDCC;
  /* Sequential ramp (one hue, light to dark) for the capability grid. */
  /* Score scale, bad to good (low scores carry the strongest color): under 60%, 60-75, 75-90, 90-97, 97 and up. */
  --h0: #F4C3BC; --h1: #F9D7B4; --h2: #F4E9B8; --h3: #EDF1E4; --h4: #DCEEDF;
  --h0-ink: #861B14; --h1-ink: #833F05; --h2-ink: #5E4C00; --h3-ink: #3F5546; --h4-ink: #145C30;
  --t0: #D2433C; --t1: #E07A1F; --t2: #CFA315; --t3: #6BAE7C; --t4: #1E7A45;

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s6: 48px; --s8: 64px;
  --radius: 16px;
  --gutter: clamp(20px, 7vw, 80px);  /* doubled from 40px at wide widths */
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
a { color: var(--ink-2); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--orange-ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); line-height: 1.1; }
h2 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); line-height: 1.2; }
h3 { font-size: 1.05rem; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 0.86em; }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.lede { font-size: 1.125rem; line-height: 1.55; color: var(--muted); max-width: 56em; }
.note { font-size: 0.925rem; color: var(--muted); max-width: 72em; }
.stack { display: grid; gap: var(--s2); }
.row { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); align-items: center; }

/* Header and footer */
.site-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); padding-block: var(--s3); }
.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.mark:hover { color: var(--ink); }
.mark svg { width: 28px; height: 28px; flex: none; }
.mark .box { fill: var(--ink); }
.mark .tick { stroke: var(--bg); }  /* ~12:1 in both themes */
.mark b { color: var(--orange-ink); font-weight: 800; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 500; padding: 7px 14px; border-radius: 999px; }
.site-nav a:hover { background: var(--cream); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--ink-2); color: var(--bg); }
.site-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s3); padding-block: var(--s4) var(--s6); margin-top: var(--s8); border-top: 1px solid var(--rule); font-size: 0.875rem; color: var(--muted); }
.site-foot a { color: var(--muted); }

main { padding-top: var(--s3); min-height: 60vh; }
.page-head { display: grid; gap: var(--s2); margin-bottom: var(--s6); }
.crumbs { font-size: 0.875rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.section { margin-top: var(--s8); display: grid; gap: var(--s3); }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s3); }
.blurb { min-height: 3.2em; margin-top: calc(-1 * var(--s1)); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s1) var(--s3); }
.section-head > div:not(.legend):not(.tabs) { display: grid; gap: 6px; }
.loading, .empty { padding: var(--s6) 0; color: var(--muted); }

/* Hero */
.hero { display: grid; gap: 20px; padding-block: var(--s6) var(--s8); }
.hero h1 { max-width: 16em; }
.hero .lede { max-width: 44em; }
body { overflow-x: hidden; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.pad { padding: var(--s3); }
.band { background: var(--cream); border-radius: calc(var(--radius) + 8px); padding: var(--s4); }

/* Pills, tabs and buttons */
.tabs { display: inline-flex; flex: none; gap: 4px; padding: 4px; background: var(--cream); border: 1px solid var(--rule); border-radius: 999px; flex-wrap: wrap; }
.tabs button, .tabs a { text-decoration: none; font: 600 0.925rem var(--font); color: var(--muted); background: none; border: 0; padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.tabs button:hover, .tabs a:hover { color: var(--ink); }
.tabs button[aria-selected="true"], .tabs a[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(10, 56, 21, 0.12); }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 0.9rem var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; padding: 8px 16px; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--ink-2); color: var(--ink); }
.btn.primary { background: var(--ink-2); color: var(--bg); border-color: var(--ink-2); }
.btn.primary:hover { background: var(--ink); color: var(--bg); }
.btn[aria-disabled="true"] { color: var(--faint); pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; font: 600 0.85rem var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; padding: 6px 12px 6px 10px; cursor: pointer; }
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); }
.chip[aria-pressed="false"] { color: var(--muted); background: transparent; }
.chip[aria-pressed="false"] i { background: transparent; border: 1.5px solid var(--faint); }
.chip:disabled { opacity: 0.45; cursor: not-allowed; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font: 600 0.78rem/1 var(--font); padding: 5px 10px; border-radius: 999px; background: var(--cream); color: var(--muted); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.b-pass { background: var(--pass-bg); color: var(--pass); }
.b-fail { background: var(--fail-bg); color: var(--fail); }
.b-fail_unsafe { background: var(--unsafe-bg); color: var(--unsafe); }

/* Leaderboard rows */
.board { display: grid; gap: 10px; }
.findings { margin-bottom: var(--s6); }
.findings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s2); }
.finding { display: grid; gap: 6px; align-content: start; }
.finding h3 { font-size: 1.05rem; line-height: 1.3; }
.finding p { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

/* Home: a compact verdict, one leaderboard table, findings, and the folded task matrix. */
.hero-compact { padding-block: var(--s4) var(--s3); gap: 10px; }
.hero-compact h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); max-width: none; }
.hero-compact .lede { font-size: 1.05rem; max-width: 52em; }
table.lb th button, table.tm th button { all: unset; cursor: pointer; font-weight: 600; }
table.lb th button { display: inline-block; max-width: 6em; white-space: normal; }
table.lb th.lb-score-h button { max-width: none; width: 100%; }
table.lb th button:hover, table.lb th button[aria-pressed="true"] { color: var(--ink); }
table.lb th button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
table.lb th { vertical-align: bottom; line-height: 1.25; padding-inline: 10px; }
table.lb td { padding-inline: 10px; }
table.lb .heat { min-width: 3.2em; padding: 4px 6px; font-size: 0.85rem; }
table.lb td { padding-block: 10px; }
table.lb .lb-name, table.tm .lb-name { position: sticky; left: 0; z-index: 1; background: var(--surface); }
table.lb th.lb-name, table.tm th.lb-name { background: var(--cream); }
table.lb tr.link-row:hover td.lb-name { background: color-mix(in srgb, var(--cream) 60%, var(--surface)); }
td.lb-name { white-space: nowrap; }
table.lb td.lb-name a { white-space: nowrap; }
.lb-who { display: flex; align-items: center; gap: 10px; }
.lb-rank { min-width: 1.4em; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.85rem; }
.lb-time { white-space: nowrap; font-variant-numeric: tabular-nums; }
th.lb-score-h { min-width: 11em; }
.lb-score { display: grid; grid-template-columns: 3.1em minmax(90px, 1fr); align-items: center; gap: 2px 10px; }
.lb-score b { font-size: 1.12rem; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.lb-score .track { position: relative; height: 8px; background: var(--rule-2); border-radius: 999px; }
.lb-score .ci { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--ink-2) 16%, transparent); border-radius: 999px; }
.lb-score .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink-2); border-radius: 999px; }
.lb-score small { grid-column: 2; font-size: 0.72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.findings-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--s3) var(--s4); }
.findings-list li { display: grid; gap: 4px; align-content: start; margin: 0; font-size: 0.93rem; line-height: 1.5; color: var(--muted); }
.findings-list b { color: var(--ink); font-size: 1rem; line-height: 1.35; }
.section.matrix-section { margin-top: var(--s4); }
.sort-mark { font-style: normal; margin-left: 4px; color: var(--faint); }
th[aria-sort="none"] .sort-mark { opacity: 0.45; }
th[aria-sort="ascending"] .sort-mark, th[aria-sort="descending"] .sort-mark { color: var(--ink); }
table.tm th.tm-a { font-size: 0.72rem; white-space: normal; min-width: 4.5em; max-width: 7em; text-align: center; }
table.tm td { padding: 5px 8px; }
table.tm td.tm-task { font-size: 0.85rem; min-width: 14em; max-width: 24em; white-space: normal; line-height: 1.35; }
td.tm-cell .dots { justify-content: center; gap: 3px; flex-wrap: nowrap; }
td.tm-cell .dots a { width: 12px; height: 12px; border-radius: 3px; }
.entry {
  display: grid; grid-template-columns: 44px minmax(0, 1.1fr) minmax(0, 1.6fr) auto; gap: var(--s3); align-items: center;
  padding: 18px var(--s3); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  color: inherit; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.entry:hover { color: inherit; border-color: var(--ink-2); box-shadow: 0 6px 24px -14px rgba(10, 56, 21, 0.35); }
.entry .pos { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--cream); color: var(--ink); }
.entry:first-child .pos { background: var(--orange); color: #3D2A12; }
.entry .name { display: grid; gap: 2px; min-width: 0; }
.entry .name b { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.015em; }
.entry .name span { font-size: 0.85rem; color: var(--muted); }
.entry .go { color: var(--faint); font-size: 1.2rem; }
.meter { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); gap: var(--s2); align-items: center; }
.meter strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; text-align: right; font-variant-numeric: tabular-nums; }
.meter .track { position: relative; height: 10px; background: var(--rule-2); border-radius: 999px; }
.meter .ci { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--ink-2) 16%, transparent); border-radius: 999px; }
.meter .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink-2); border-radius: 999px; }
.meter small { grid-column: 2; font-size: 0.78rem; color: var(--muted); margin-top: -6px; }

/* Radar */
.radar-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s4); align-items: center; }
.radar svg { width: 100%; max-width: 560px; margin-inline: auto; height: auto; display: block; overflow: visible; }
.radar .ring { fill: none; stroke: var(--grid); stroke-width: 1; }
.radar .spoke { stroke: var(--grid); stroke-width: 1; }
.radar .ring-label { font: 500 10px var(--mono); fill: var(--faint); }
.radar .axis-label { font: 600 12.5px var(--font); fill: var(--ink); }
.radar .series { stroke-width: 2.25; stroke-linejoin: round; }
.radar .vertex { stroke: var(--surface); stroke-width: 2; }
.radar .hit { fill: transparent; cursor: default; }
.legend-list { display: grid; gap: var(--s2); }
.legend-list .who { display: flex; gap: 10px; align-items: baseline; }
.legend-list i { width: 12px; height: 12px; border-radius: 50%; flex: none; transform: translateY(1px); }
.legend-list i.dash { background: none !important; border: 2px dashed var(--faint); }
.dims { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.dims th, .dims td { padding: 7px 8px; border-bottom: 1px solid var(--rule-2); text-align: left; }
.dims td.num, .dims th.num { text-align: right; font-variant-numeric: tabular-nums; }
.dims th { font-weight: 600; color: var(--muted); font-size: 0.8rem; }

/* Deeper links */
.deeper { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s2); }
.deeper a { display: grid; gap: 6px; padding: var(--s3); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.deeper a:hover { border-color: var(--ink-2); color: var(--ink); }
.deeper b { font-size: 1.05rem; }
.deeper span { color: var(--muted); font-size: 0.9rem; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
table.list { width: 100%; border-collapse: collapse; font-size: 0.925rem; }
table.list th, table.list td { text-align: left; padding: 14px var(--s2); border-bottom: 1px solid var(--rule-2); vertical-align: middle; }
table.list tbody tr:last-child td { border-bottom: 0; }
table.list th { font-size: 0.78rem; font-weight: 600; color: var(--muted); background: var(--cream); white-space: nowrap; }
table.list td.num, table.list th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.list tr.link-row { cursor: pointer; }
table.list tr.link-row:hover td { background: color-mix(in srgb, var(--cream) 60%, transparent); }
table.list td a { font-weight: 600; text-decoration: none; }
table.list td a:hover { text-decoration: underline; }

/* Run dots */
.dots { display: flex; flex-wrap: wrap; gap: 5px; }
.dots a { width: 14px; height: 14px; border-radius: 4px; display: block; }
.dots a:hover { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.o-pass { background: var(--o-pass); }
.o-fail { background: var(--o-fail); }
.o-fail_unsafe { background: var(--o-unsafe); }
.legend { display: flex; flex-wrap: wrap; gap: 6px var(--s2); font-size: 0.82rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s2); }
.stat { display: grid; gap: 2px; padding: var(--s2) 20px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.stat b { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.stat span { font-size: 0.82rem; color: var(--muted); }

/* Controls */
.controls { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: end; margin-bottom: var(--s3); }
.control { display: grid; gap: 6px; }
.control span { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
select, input[type="search"] { font: 0.925rem var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 9px 12px; min-width: 170px; max-width: 100%; }
.pager { display: flex; gap: var(--s2); align-items: center; justify-content: space-between; margin-top: var(--s2); font-size: 0.875rem; color: var(--muted); }

/* Tooltip */
.tip { position: fixed; z-index: 50; pointer-events: none; max-width: 300px; background: var(--ink); color: var(--bg); font: 500 0.8rem/1.45 var(--font); padding: 8px 10px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22); }

/* Assistant pages */
.summary { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(0, 1fr)); gap: var(--s2); align-items: stretch; }
.summary .card { display: grid; align-items: center; }
.misses { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.miss { display: flex; justify-content: space-between; gap: var(--s2); align-items: baseline; padding: 12px var(--s2); background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 0.9rem; }
.miss:hover { color: var(--ink); border-color: var(--ink-2); }
.miss b { font-weight: 600; color: var(--muted); white-space: nowrap; font-size: 0.82rem; }
.miss.on { border-color: var(--orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 22%, transparent); }
table.list tr.group td { background: var(--cream); padding-block: 12px; }
table.grid th button { all: unset; cursor: pointer; font-weight: 600; }
table.grid th button:hover, table.grid th button[aria-pressed="true"] { color: var(--ink); }
table.grid th button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
table.grid td { padding-block: 10px; }
.heat { display: inline-block; min-width: 3.6em; padding: 5px 8px; border-radius: 8px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.heat.h0 { background: var(--h0); color: var(--h0-ink); }
.fill.t0, .bar i.t0 { background: var(--t0) !important; }
.heat.h1 { background: var(--h1); color: var(--h1-ink); }
.fill.t1, .bar i.t1 { background: var(--t1) !important; }
.heat.h2 { background: var(--h2); color: var(--h2-ink); }
.fill.t2, .bar i.t2 { background: var(--t2) !important; }
.heat.h3 { background: var(--h3); color: var(--h3-ink); }
.fill.t3, .bar i.t3 { background: var(--t3) !important; }
.heat.h4 { background: var(--h4); color: var(--h4-ink); }
.fill.t4, .bar i.t4 { background: var(--t4) !important; }
table.list tr.group td b { font-weight: 700; }

/* Run viewer */
.run-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: var(--s4); align-items: start; }
.run-layout > * { min-width: 0; }
.run-side { position: sticky; top: var(--s2); display: grid; gap: var(--s2); max-height: calc(100vh - 32px); overflow: auto; padding-bottom: var(--s1); }
.run-nav { display: flex; flex-wrap: wrap; gap: var(--s1); }
.timeline { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.tl-bar { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); align-items: center; margin-bottom: var(--s2); }
.msg, .call, .click, details.fold { min-width: 0; }
.msg { display: grid; gap: 6px; max-width: min(52em, 85%); }
.msg .who-line { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 0.78rem; color: var(--muted); }
.msg .who-line b { color: var(--ink); font-weight: 700; }
.bubble { padding: 12px 16px; border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.95rem; }
.msg.user { justify-self: end; }
.msg.user .who-line { justify-content: flex-end; }
.msg.user .bubble { background: var(--ink-2); color: var(--bg); border-bottom-right-radius: 6px; }
.msg.assistant .bubble { background: var(--surface); border: 1px solid var(--rule); border-bottom-left-radius: 6px; }
.msg.setup .bubble { background: var(--cream); color: var(--muted); font-size: 0.85rem; }
.decision { font-size: 0.78rem; color: var(--muted); justify-self: end; text-align: right; max-width: 44em; margin-top: -4px; }
.decision b { color: var(--gold); font-weight: 600; }
.call { border: 1px solid var(--rule); border-left: 3px solid var(--faint); border-radius: 12px; background: var(--surface); font-size: 0.82rem; }
.call.k-private_new, .call.k-private_change { border-left-color: var(--ink-2); }
.call.k-visible_to_others, .call.k-money { border-left-color: var(--orange); }
.call.s-refused, .call.s-error { border-left-color: var(--o-unsafe); }
.call.flag { border-color: var(--unsafe); box-shadow: 0 0 0 3px var(--unsafe-bg); }
.call summary { list-style: none; cursor: pointer; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.call summary::-webkit-details-marker { display: none; }
.call summary::before { content: "\25B8"; color: var(--faint); }
.call[open] summary::before { content: "\25BE"; }
.call .op { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.call .args { font-family: var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 12em; min-width: 0; }
.call .t { font-family: var(--mono); color: var(--faint); }
.call .body { padding: 0 14px 14px; display: grid; gap: var(--s1); }
.call .flagnote { color: var(--unsafe); padding: 0 14px 10px; font-weight: 600; }
.call .k { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
pre.json { margin: 0; padding: 12px; background: var(--cream); border-radius: 10px; overflow: auto; max-height: 360px; font: 0.76rem/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.click { font-size: 0.8rem; color: var(--muted); padding: 2px 0 2px 14px; border-left: 2px dashed var(--rule); }
.checks { display: grid; gap: 10px; }
.check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 0.875rem; align-items: start; }
.check .ic { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 800 0.7rem/1 var(--font); color: #fff; }
.ic.pass { background: var(--o-pass); }
.ic.fail { background: var(--o-fail); }
.ic.unsafe { background: var(--o-unsafe); }
.ic.na { background: var(--faint); }
.check .about { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); overflow-wrap: anywhere; margin-top: 2px; }
details.fold > summary { cursor: pointer; font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.change { font-family: var(--mono); font-size: 0.74rem; border-top: 1px solid var(--rule-2); padding-top: var(--s1); display: grid; gap: 4px; overflow-wrap: anywhere; }
.change .path { color: var(--ink); }
.change .add { color: var(--pass); }
.change .del { color: var(--unsafe); }

/* Task page */
.quote { background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--orange); border-radius: 12px; padding: 14px 18px; font-size: 1.02rem; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s3); }
ul.plain { margin: 0; padding-left: 1.1em; display: grid; gap: var(--s1); }

/* Compare */
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s2); align-items: center; }
.vs .mid { font-size: 2rem; font-weight: 800; text-align: center; letter-spacing: -0.02em; }
.win { font-weight: 800; }

@media (max-width: 900px) {
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary .card { grid-column: 1 / -1; }
  .run-layout, .radar-wrap { grid-template-columns: 1fr; }
  .run-side { position: static; max-height: none; }
}
@media (max-width: 640px) {
  .tabs { flex: 1 1 auto; }
  .radar .axis-label { font-size: 19px; }
  .radar .ring-label { font-size: 14px; }
  .tabs button { flex: 1; padding-inline: 10px; }
  .entry { grid-template-columns: 36px minmax(0, 1fr); gap: 12px var(--s2); padding: var(--s2); }
  .entry .meter { grid-column: 1 / -1; }
  .entry .go { display: none; }
  table.list th, table.list td { padding: 12px 12px; }
  .hide-sm { display: none; }
  .vs { grid-template-columns: 1fr; }
  .band { padding: var(--s3) var(--s2); }
}
table.grid td:first-child, table.grid th:first-child { min-width: 15em; }
table.grid td:first-child a { white-space: nowrap; }
.fine { gap: var(--s1); padding-top: var(--s3); border-top: 1px solid var(--rule); }
.fine h3 { font-size: 0.95rem; }
.fine p { font-size: 0.875rem; color: var(--muted); max-width: 72em; }

/* Assistant page: compact header, capabilities beside misses, runs with an inline panel */
.a-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 460px); gap: var(--s3) var(--s4); align-items: end; margin-bottom: var(--s4); }
.a-head h1 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); }
.a-score { padding: var(--s2) 20px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.a-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.cap { display: grid; grid-template-columns: minmax(8em, 13em) minmax(0, 1fr) 3.2em; gap: 12px; align-items: center; font-size: 0.875rem; }
.cap .bar { position: relative; height: 10px; background: var(--rule-2); border-radius: 999px; }
.cap .bar i { position: absolute; inset: 0 auto 0 0; background: var(--ink-2); border-radius: 999px; }
.cap .bar b { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--orange-ink); border-radius: 2px; }
.cap em { font-style: normal; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.avg-key { display: inline-block; width: 2px; height: 12px; background: var(--orange-ink); vertical-align: -2px; margin-right: 4px; }
.misses { grid-template-columns: 1fr; gap: 8px; }
.miss { padding: 9px 14px; }
.runs-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s3); align-items: start; }
.tasklist { display: grid; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.trow { display: grid; gap: 8px; padding: 12px var(--s2); border-bottom: 1px solid var(--rule-2); }
.trow:last-child { border-bottom: 0; }
.tname { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.tname b { font-weight: 600; font-size: 0.925rem; line-height: 1.35; }
.tname span { white-space: nowrap; }
.rchips { display: flex; flex-wrap: wrap; gap: 6px; }
.rchip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px 4px 8px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 0.8rem var(--font); cursor: pointer; }
.rchip i { width: 10px; height: 10px; border-radius: 3px; }
.rchip:hover { border-color: var(--ink-2); }
.rchip[aria-pressed="true"] { background: var(--ink-2); border-color: var(--ink-2); color: var(--bg); }
.run-pane { position: sticky; top: var(--s2); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s3); display: grid; gap: var(--s2); align-content: start; }
.run-pane .loading { padding: var(--s3) 0; }
.pane-head { display: grid; gap: 4px; }
.pane-verdict { display: grid; gap: 10px; padding: var(--s2); background: var(--cream); border-radius: 12px; }
.pane-task { padding: 10px 0; border-top: 1px solid var(--rule-2); }
.run-pane .tl-bar { margin: var(--s1) 0 0; }
.run-pane .msg { max-width: 92%; }

@media (max-width: 900px) {
  .a-head, .a-grid, .runs-split { grid-template-columns: 1fr; }
  .run-pane { position: static; max-height: none; overflow: visible; padding: var(--s2); margin: 0 0 var(--s2); border-color: var(--ink-2); }
  .tasklist .run-pane { border-radius: 12px; margin: 0 12px 12px; }

}
@media (max-width: 640px) {
  .cap { grid-template-columns: minmax(0, 1fr) 3em; }
  .cap .bar { grid-column: 1 / -1; grid-row: 2; }
  .run-pane .msg { max-width: 100%; }
  .call .args { display: none; }
  .tabs button, .tabs a { padding: 8px 12px; }
}

/* Touch: fold-outs, sort headers and chips get finger-sized targets; small text stays readable. */
details.fold > summary { display: flex; align-items: center; gap: 6px; min-height: 36px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: "\25B8"; color: var(--faint); }
details.fold[open] > summary::before { content: "\25BE"; }
.check .about { font-size: 0.78rem; }
table.grid th button { padding: 8px 0; }
.chip { min-height: 36px; }
.mark { min-height: 40px; }

/* Phones: wrapping navigation and tighter vertical rhythm. */
@media (max-width: 640px) {
  .site-head { padding-block: 14px; gap: 12px; }
  .mark { font-size: 1rem; gap: 8px; }
  .mark svg { width: 24px; height: 24px; }
  .site-nav a { padding: 8px 12px; font-size: 0.9rem; }
  main { padding-top: var(--s1); }
  .hero { padding-block: var(--s3) var(--s4); gap: 14px; }
  h1 { font-size: 1.85rem; }
  .lede { font-size: 1rem; }
  .section { margin-top: var(--s6); }
  .tabs button, .tabs a { font-size: 0.85rem; }
  .blurb { min-height: 0; }
  .band { padding: var(--s3) var(--s2); }
}
@media (max-width: 640px) {
  .site-nav { gap: 2px; }
  .site-nav a { white-space: nowrap; padding: 7px 10px; font-size: 0.85rem; }
  .radar .axis-label { font-size: 16px; }
}

/* Where it slips: a generated sentence and up to three plain-language slips */
.slip-lead { font-size: 0.95rem; line-height: 1.55; }
.slips { display: grid; gap: 8px; }
.slip { display: grid; gap: 2px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--o-fail); border-radius: 12px; color: var(--ink); text-decoration: none; }
.slip:hover { color: var(--ink); border-color: var(--ink-2); border-left-color: var(--o-fail); }
.slip b { font-weight: 700; font-size: 0.9rem; }
.slip em { font-style: normal; font-size: 0.8rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.slip.on { border-color: var(--orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 22%, transparent); }

/* Unsafe runs stand out wherever they're counted. */
.unsafe-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--unsafe-bg); color: var(--unsafe); font-weight: 800; font-size: 0.85rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.unsafe-pill::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--o-unsafe); }
.unsafe-none { color: var(--faint); font-variant-numeric: tabular-nums; }
th.unsafe-h button { color: var(--unsafe); }
.unsafe-note { display: flex; gap: 10px; align-items: baseline; padding: 10px 14px; border-radius: 12px; background: var(--unsafe-bg); color: var(--unsafe); font-size: 0.9rem; }
.unsafe-note b { font-weight: 800; }
.unsafe-note a { color: inherit; font-weight: 700; }
/* An assistant's runs: the task list and the open run share one height, each scrolling. */
@media (min-width: 901px) {
  .runs-split { align-items: stretch; height: calc(100vh - 32px); max-height: 900px; min-height: 480px; }
  .runs-split > .tasklist, .runs-split > .run-pane { position: static; height: 100%; max-height: none; overflow: auto; }
  .runs-split > .tasklist { display: block; }
}
