/* AssistantEval by ORO. Every color is from the ORO palette (platform/apps/frontend/BRAND.md
   section 2) or a tint of one: Forest on Cloud, Sand bands, Snowcap surfaces, Sierra labels,
   Amber and Gold as accents only, error red for real failures. Plus Jakarta Sans for headings,
   labels and buttons, Google Sans Flex for body; Geist Mono only for code and JSON.
   Spacing runs on an 8px scale: --s1 8, --s2 16, --s3 24, --s4 32, --s6 48, --s8 64. */
:root {
  --bg: #FCFCFA;          /* Cloud */
  --cream: #F3F1E7;       /* Sand */
  --surface: #FCFAF2;     /* Snowcap */
  --ink: #0A3815;         /* Forest */
  --ink-2: #0A3815;
  --muted: #4A6B4F;       /* Forest tint, 5.8:1 on Cloud */
  --faint: #9BAE9E;       /* Forest at 40% */
  --rule: #E2DBC9;        /* card border */
  --rule-2: #F3F1E7;
  --gold: #956825;        /* Sierra: warm text and labels */
  --orange: #FF9138;      /* Amber: fills and dots, never text */
  --orange-ink: #956825;
  --yellow: #EDD03A;      /* Gold */
  /* Scoring colors (pass, fail, unsafe, the heat ramp, tiers and radar) are deliberately
     outside the brand palette: they carry meaning on the leaderboard. */
  --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;
  --shadow: 3px 3px 6px 0 rgba(149, 104, 37, 0.08);

  --font: "Google Sans Flex", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-heading: "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: 20px;
  --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;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.01em;
  -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-family: var(--font-heading); font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 0.98; }
h2 { font-size: clamp(1.625rem, 3.2vw, 2.25rem); line-height: 1; }
h3 { font-size: 1.25rem; line-height: 1.15; font-weight: 600; letter-spacing: 0; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 0.86em; }
.eyebrow { font-family: var(--font-heading); font-size: 0.75rem; line-height: 1.2; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--gold); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.lede { font-size: 1.1875rem; font-weight: 300; line-height: 1.5; 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; color: var(--ink); text-decoration: none; font-family: var(--font-heading); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; }
.mark:hover { color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.by-oro { display: inline-flex; align-items: center; gap: 20px; font-family: var(--font-heading); font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.by-oro a { display: inline-flex; color: var(--ink); padding-left: 20px; border-left: 1px solid rgba(10, 56, 21, 0.25); }
.by-oro svg { height: 24px; width: auto; }  /* ORO lockup at its 24px desktop minimum */
.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-family: var(--font-heading); 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-heading); 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: var(--shadow); }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 0.9rem var(--font-heading); 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-heading); 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-heading); 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.hero-compact { padding-block: 0 var(--s3); gap: 10px; }
.hero-compact h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 0.98; max-width: none; }
.hero-compact .lede { max-width: 52em; }
.research-abstract { border-left: 3px solid var(--orange); padding: var(--s2) var(--s3); margin-bottom: var(--s4); }
.research-abstract p { margin-block: var(--s1) var(--s2); }
.research-links, .sample-links { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); font-size: .88rem; }
.task-example { border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s3); display: grid; gap: var(--s2); }
.task-example + .task-example { margin-top: var(--s3); }
.task-example p, .task-example blockquote { margin: 0; }
.example-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.example-result { padding: var(--s3); background: var(--cream); border-radius: 15px; display: grid; align-content: start; gap: var(--s2); }
.example-pass { background: var(--pass-bg); }
.example-fail { background: var(--unsafe-bg); }
.task-example blockquote { border-left: 3px solid var(--faint); padding-left: var(--s2); }
.task-example h4 { font-size: 1.08rem; margin: 0; }
.conversation-phone { width: 100%; max-width: 390px; margin-inline: auto; border: 6px solid var(--ink); border-radius: 32px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.phone-header { padding: 16px; display: grid; justify-items: center; gap: 4px; border-bottom: 1px solid var(--rule); background: var(--bg); }
.phone-header::before { content: ""; width: 64px; height: 5px; background: var(--ink); border-radius: 8px; margin-bottom: 12px; }
.phone-header h4 { font-size: .95rem; }
.phone-messages { padding: 16px 12px; display: grid; gap: 12px; align-content: start; font-size: .82rem; line-height: 1.5; }
.task-example .chat-message { max-width: 94%; padding: 12px; border: 0; border-radius: 18px 18px 18px 4px; background: var(--cream); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message.user { justify-self: end; border-radius: 18px 18px 4px 18px; background: var(--ink); color: var(--surface); }
.chat-sender { display: block; font-size: .67rem; font-weight: 700; margin-bottom: 5px; }
.conversation-pair { align-items: stretch; row-gap: var(--s2); }
.conversation-pair > .example-result { grid-row: span 3; grid-template-rows: subgrid; }
.method-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s6); align-items: center; margin-bottom: var(--s6); }
.method-hero #method-title { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 0.98; }
.method-record { margin: 0; min-width: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); }
.method-record-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s1); padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.method-record .tabs { gap: 4px; padding: 0; background: none; border: 0; }
.method-record .tabs button { font: 500 .8rem var(--mono); padding: 8px 10px; border: 1px solid var(--rule); }
.method-record .tabs button[aria-selected="true"] { background: var(--cream); box-shadow: none; }
.method-turns { list-style: none; margin: 0; padding: 18px 18px 6px; display: grid; gap: 14px; }
.method-turn { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 4px 12px; align-items: baseline; }
.method-who { font: .75rem var(--mono); text-transform: uppercase; color: var(--muted); }
.method-turn p { overflow-wrap: anywhere; }
.method-turn.user p { font: .9rem/1.5 var(--mono); }
.method-claim { background: linear-gradient(var(--orange-ink), var(--orange-ink)) no-repeat 0 58% / 100% 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.method-pen { grid-column: 2; font: 600 1.1rem/1 var(--font-heading); color: var(--orange-ink); }
.method-pen.ok, .method-status.ok { color: var(--pass); }
.method-log { margin: 12px 18px 0; border-top: 1px dashed var(--rule); padding-top: 12px; display: grid; gap: var(--s1); }
.method-log-row { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; font: .82rem/1.45 var(--mono); }
.method-log-row .svc, .method-log-row small { color: var(--muted); }
.method-log-row code { font: inherit; overflow-wrap: anywhere; }
.method-log-row small { display: block; font-size: .78rem; }
.method-status.bad { color: var(--unsafe); }
.method-verdict { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: baseline; margin-top: var(--s2); padding: 14px 18px 16px; border-top: 1px solid var(--rule); font-size: .95rem; }
.method-verdict .chip { border: 0; border-radius: 5px; padding: 5px 8px; font: 500 .78rem var(--mono); cursor: default; }
.method-verdict .fail { color: var(--fail); background: var(--fail-bg); }
.method-verdict .unsafe { color: var(--unsafe); background: var(--unsafe-bg); }
.method-verdict .pass { color: var(--pass); background: var(--pass-bg); }
@media (max-width: 920px) { .method-hero { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .method-turn { grid-template-columns: 1fr; } .method-pen { grid-column: 1; } .method-log-row { grid-template-columns: minmax(0, 1fr) auto; } .method-log-row .svc { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: no-preference) {
  .method-claim { animation: method-strike .55s ease-out .7s both; }
  .method-pen { animation: method-write .4s ease-out 1.2s both; }
  @keyframes method-strike { from { background-size: 0% 2px; } to { background-size: 100% 2px; } }
  @keyframes method-write { from { opacity: 0; } to { opacity: 1; } }
}
.method-details { border: 1px solid var(--rule); border-radius: var(--radius); margin-top: var(--s2); }
.method-details summary { font-weight: 700; }
.method-content { padding: var(--s2); display: grid; gap: var(--s2); }
.method-content table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.method-content th, .method-content td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--rule); }
.method-content th:first-child { width: 30%; }
#method > .sample-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
#method > .sample-links .btn { justify-content: center; text-align: center; }
@media (max-width: 920px) { #method > .sample-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } #method > .sample-links .btn:last-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { #method > .sample-links { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .example-pair { grid-template-columns: 1fr; } .task-example, .example-result { padding: var(--s2); } .research-abstract { padding-inline: var(--s2); } }
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; }
.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: var(--shadow); }
.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: var(--ink); }
.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: var(--shadow); }

/* 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 { padding: 10px 14px; flex-wrap: wrap; gap: 4px 10px; }
.call[open] summary :is(.op, .args, .t, .k) { color: inherit; }
.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.75rem/1 var(--font-heading); color: var(--surface); }
.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 { font-size: 0.875rem; font-weight: 600; }
.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 > summary { display: flex; align-items: center; gap: var(--s1); padding: var(--s2); list-style: none; cursor: pointer; background: var(--cream); color: var(--ink); border: 1px solid var(--ink-2); border-radius: var(--radius); }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "\203A"; margin-left: auto; flex: none; font-size: 1.4rem; font-weight: 700; line-height: 1; }
details[open] > summary { background: var(--ink-2); color: var(--bg); }
details[open] > summary::after { transform: rotate(90deg); }
.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; }
  .by-oro svg { height: 20px; }  /* mobile minimum */
  .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; }
}

/* Research figures: numbered labels, horizontal bars, self-contained captions.
   Labels build on .eyebrow, captions on .note; bar colors reuse .o-pass and .o-fail. */
.figure > h2, .figure > .note { margin: 0; }
.caption { margin: 0; border-top: 1px solid var(--rule); padding-top: var(--s2); }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(140px, 270px) minmax(0, 1fr) minmax(150px, auto); align-items: center; gap: var(--s2); font-size: 0.93rem; }
.bar-name { font-weight: 600; line-height: 1.25; }
.bar-val { font-size: 0.875rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar-val b { color: var(--ink); font-weight: 600; }
.bar-track { display: flex; height: 14px; border-radius: 4px; background: var(--rule-2); overflow: hidden; }
.seg { display: block; height: 100%; }
.seg-once { background: repeating-linear-gradient(135deg, var(--o-fail) 0 3px, var(--fail-bg) 3px 6px); }
.seg-split { background: var(--orange); }
.seg-cover { background: var(--ink-2); }
.check-table { display: grid; gap: var(--s1); margin-top: var(--s2); }
table.check-grid { width: 100%; }
.ck-ok { color: var(--pass); }
.ck-miss { color: var(--unsafe); font-weight: 600; }
.offer-list { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s1); }
@media (max-width: 640px) {
  .bar-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px var(--s1); }
  .bar-track { grid-column: 1 / -1; grid-row: 2; }
  table.check-grid th, table.check-grid td { padding: 10px 12px; }
}
