:root {
  color-scheme: light dark;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --text: #171a20;
  --muted: #626975;
  --line: #dfe3ea;
  --blue: #155eef;
  --green: #087443;
  --red: #c2261f;
  --amber: #9a5a00;
  --pass-bg: #e5f6ed;
  --fail-bg: #fdebea;
  --manual-bg: #fff3d9;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 12px 30px rgba(16, 24, 40, .08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0f14;
    --surface: #151922;
    --surface-2: #1b202b;
    --text: #edf0f5;
    --muted: #9aa3b2;
    --line: #2b3240;
    --blue: #7db1ff;
    --green: #4bd38c;
    --red: #ff7a70;
    --amber: #ffc266;
    --pass-bg: rgba(75, 211, 140, .14);
    --fail-bg: rgba(255, 122, 112, .14);
    --manual-bg: rgba(255, 194, 102, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 16px 42px rgba(0, 0, 0, .38);
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: var(--blue); text-decoration: none; font-weight: 650; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
.top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding: 34px clamp(18px, 4vw, 56px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.top.compact { align-items: center; }
.eyebrow, th, .answer-line span {
  margin: 0 0 8px;
  color: var(--muted);
  font: 700 .72rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .05em;
  text-transform: uppercase;
}
h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; }
h2 { margin: 0 0 12px; font-size: 1.12rem; }
h3 { margin: 0; font-size: .98rem; }
.generated, .muted, .note, .workflow { color: var(--muted); }
.tabs {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  gap: 8px;
  padding: 12px clamp(18px, 4vw, 52px);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.tab, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 750;
  font: inherit;
  cursor: pointer;
}
.tab.active, .button:not(.secondary) { background: var(--blue); border-color: var(--blue); color: #fff; }
.button.secondary { color: var(--blue); }
.button.back { min-width: 150px; }
main { width: min(1500px, calc(100vw - 32px)); margin: 24px auto 56px; }
.panel, .condition-block, .run, .error-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.panel, .condition-block, .error-card { padding: 24px; margin-bottom: 18px; }
.section-head, .condition-title, .run-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}
.section-head p, .question { margin: 0; color: var(--muted); max-width: 980px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(280px, 1fr)); gap: 14px; }
.metric {
  min-height: 220px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}
.metric span, .metric small, .metric p { color: var(--muted); }
.metric strong {
  display: block;
  margin: 8px 0 2px;
  color: var(--green);
  font: 800 2rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.metric p { margin: 10px 0 0; font-size: .82rem; }
.token-metrics { grid-template-columns: repeat(4, minmax(210px, 1fr)); }
.token-metric { min-height: 300px; }
.token-metric dl {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}
.token-metric dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.token-metric dt { color: var(--muted); }
.token-metric dd { margin: 0; font-weight: 800; }
.delta {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font: 800 .75rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--surface-2);
}
.delta.base { color: var(--muted); }
.delta.up { color: var(--red); background: var(--fail-bg); }
.delta.down { color: var(--green); background: var(--pass-bg); }
.skill-metric {
  display: grid;
  gap: 14px;
  align-content: start;
}
.skill-metric h3 {
  font-size: 1.05rem;
  margin-bottom: 2px;
}
.condition-row {
  display: grid;
  grid-template-columns: minmax(150px, .9fr) minmax(260px, 1.4fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.condition-row strong {
  display: block;
  margin: 7px 0 2px;
  color: var(--green);
  font: 800 1.6rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.run-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.run-pill {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}
.run-pill b {
  color: var(--text);
  font-size: .78rem;
}
.run-pill span {
  color: var(--green);
  font: 800 1rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.run-pill small { font-size: .74rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.sticky-table-wrap {
  max-height: calc(100vh - 150px);
  overflow: auto;
}
table { width: 100%; min-width: 980px; border-collapse: collapse; background: var(--surface); font-size: .9rem; }
.sticky-table-wrap table {
  border-collapse: separate;
  border-spacing: 0;
}
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--surface-2); color: var(--muted); }
.sticky-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  box-shadow: 0 1px 0 var(--line);
}
tr:last-child td { border-bottom: 0; }
.question-cell { max-width: 430px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
code {
  padding: 2px 5px;
  border-radius: 6px;
  background: var(--surface-2);
  overflow-wrap: anywhere;
}
td code {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.compbio-table { min-width: 1260px; }
.compbio-table th:first-child, .compbio-table td:first-child { width: 220px; }
.compbio-table th:nth-child(2), .compbio-table td:nth-child(2) { width: 360px; }
.compbio-table th:nth-child(3), .compbio-table td:nth-child(3),
.compbio-table th:nth-child(4), .compbio-table td:nth-child(4) { width: 220px; }
.compbio-table th:nth-child(5), .compbio-table td:nth-child(5) { width: 160px; }
.answer-cell { overflow-wrap: anywhere; }
.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 800;
}
.status.pass { background: var(--pass-bg); color: var(--green); }
.status.fail { background: var(--fail-bg); color: var(--red); }
.status.manual { background: var(--manual-bg); color: var(--amber); }
.udt-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 6px;
  padding: 0 7px;
  border: 1px solid rgba(0,122,255,.28);
  border-radius: 999px;
  background: #eef6ff;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .68rem;
  font-weight: 900;
  vertical-align: middle;
}
.rep-badges { display: flex; gap: 4px; margin-top: 6px; }
.rep {
  display: inline-flex;
  min-width: 44px;
  justify-content: center;
  padding: 2px 5px;
  border-radius: 6px;
  font-size: .7rem;
  font-weight: 800;
  background: var(--surface-2);
}
.rep.pass { color: var(--green); }
.rep.fail { color: var(--red); }
.rep.manual { color: var(--amber); }
.mini-link { font: 800 1rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.run-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.run { padding: 16px; box-shadow: none; }
.answer-line { display: grid; gap: 5px; margin: 14px 0; }
.workflow { margin: 0 0 12px; min-height: 3em; }
.flow-box {
  margin: 12px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}
.flow-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.flow-box p {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.45;
}
.step-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.flow-arrow {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 900;
  line-height: 1;
}
.step {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: .82rem; }
.item-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}
.item-meta dt { color: var(--muted); font-size: .82rem; }
.item-meta dd { margin: 4px 0 0; }
.selector { display: grid; gap: 6px; color: var(--muted); font-weight: 700; }
select { min-height: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); padding: 0 10px; }
.analysis-grid { display: grid; gap: 16px; }
.contrast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.contrast-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}
.contrast-panel .run-head { margin-bottom: 14px; }
.contrast-panel p { margin: 6px 0 0; color: var(--muted); }
.contrast-table {
  min-width: 760px;
  background: var(--surface);
}
.contrast-table th:first-child,
.contrast-table td:first-child { width: 110px; }
.contrast-table th:nth-child(3),
.contrast-table td:nth-child(3),
.contrast-table th:nth-child(4),
.contrast-table td:nth-child(4) { width: 130px; }
.token-notes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.token-notes article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}
.token-notes p { margin: 8px 0 0; color: var(--muted); }
.reason-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.reason-grid div { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.reason-grid p { margin: 6px 0 0; color: var(--muted); }
.diagnosis {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  background: var(--surface-2);
}
.diagnosis p {
  margin: 7px 0 0;
  color: var(--muted);
}
.run-matrix { min-width: 760px; }
.run-matrix th:first-child { width: 170px; }
.tokens-table { min-width: 1180px; }
.tokens-table td strong { display: block; margin-bottom: 5px; }
.tokens-table td small { display: block; margin-top: 5px; color: var(--muted); }
.driver-table { min-width: 1040px; }
.driver-table td strong { display: block; margin-bottom: 5px; }
.driver-table td small { display: block; margin-top: 5px; color: var(--muted); line-height: 1.4; }
.driver-table th:first-child { width: 190px; }
.category-table th:first-child { width: 320px; }
.context-role {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.2;
}
.context-role.input { color: var(--blue); background: #eef6ff; }
.context-role.output-replay { color: var(--amber); background: var(--manual-bg); }
.context-role.tool-input { color: var(--green); background: var(--pass-bg); }
.loop-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 10px;
}
.loop-summary article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}
.loop-summary span, .loop-summary small { display: block; color: var(--muted); }
.loop-summary strong {
  display: block;
  margin: 7px 0 4px;
  font: 800 1.7rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.method-note { margin: 0 0 16px; color: var(--muted); font-size: .85rem; }
.definition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.definition-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}
.definition-grid h3 { margin-bottom: 6px; font-size: .95rem; }
.definition-grid p { margin: 0; color: var(--muted); }
@media (max-width: 980px) {
  .top, .section-head, .condition-title { display: block; }
  .tabs { overflow-x: auto; }
  .metrics, .token-metrics, .token-notes, .contrast-grid, .condition-row, .run-pills, .run-grid, .reason-grid, .item-meta, .definition-grid, .loop-summary { grid-template-columns: 1fr; }
  .top .button { margin-bottom: 14px; }
}

/* Current BixBench comparison */
:root {
  --accent: var(--blue);
  --ink: var(--text);
  --panel: var(--surface);
  --soft: var(--surface-2);
  --warning: var(--amber);
}
.panel { min-width: 0; overflow: hidden; }
.current-top { display: block; padding-bottom: 0; }
.current-top h1 { max-width: 760px; }
.current-title-row { padding-bottom: 20px; }
.current-nav-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; border-top: 1px solid var(--line); }
.benchmark-tabs, .page-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.benchmark-tabs a, .page-tabs a { color: var(--muted); font-weight: 700; padding: 11px 11px 9px; border-bottom: 2px solid transparent; text-decoration: none; }
.benchmark-tabs a:hover, .benchmark-tabs a.active { color: var(--ink); border-color: var(--accent); }
.page-tabs a:hover, .page-tabs a.active { color: var(--ink); border-color: var(--accent); }
.intro-band, .archive-entry { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.intro-band h2, .archive-entry h2 { margin: 0 0 6px; }
.intro-band p, .archive-entry p { margin: 0; color: var(--muted); max-width: 820px; }
.summary-facts { display: flex; gap: 22px; flex: 0 0 auto; }
.summary-facts span { color: var(--muted); font-size: 13px; }
.summary-facts b { display: block; color: var(--ink); font-size: 25px; }
.timeline-intro { align-items: flex-end; }
.timeline-list { position: relative; width: min(1100px, 100%); margin: 30px auto 36px; }
.timeline-list::before { content: ""; position: absolute; top: 10px; bottom: 10px; left: 166px; width: 2px; background: var(--line); }
.timeline-entry { position: relative; display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 48px; padding: 0 0 38px; }
.timeline-entry::before { content: ""; position: absolute; top: 7px; left: 158px; z-index: 1; width: 12px; height: 12px; border: 3px solid var(--bg); border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.timeline-entry.current::before { background: var(--green); box-shadow: 0 0 0 1px var(--green); }
.timeline-entry:last-child { padding-bottom: 0; }
.timeline-date { padding-top: 2px; text-align: right; }
.timeline-date time, .timeline-date span { display: block; }
.timeline-date time { color: var(--ink); font-size: 13px; font-weight: 800; }
.timeline-date span { margin-top: 3px; color: var(--muted); font: 700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.timeline-content { min-width: 0; padding: 0 0 32px; border-bottom: 1px solid var(--line); }
.timeline-entry:last-child .timeline-content { border-bottom: 0; }
.timeline-content h2 { margin: 0 0 9px; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.25; }
.timeline-content > p:not(.eyebrow) { max-width: 880px; margin: 0; color: var(--muted); }
.timeline-scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.timeline-scores span { min-width: 0; padding: 12px 14px; color: var(--ink); font-size: 1.35rem; font-weight: 800; }
.timeline-scores span + span { border-left: 1px solid var(--line); }
.timeline-scores small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.35; }
.model-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 24px 0; }
.model-panel { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--panel); }
.model-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: var(--soft); }
.model-heading h2 { margin: 2px 0 0; font-size: 20px; }
.model-heading > span { color: var(--muted); font-size: 12px; }
.model-panel.is-superseded { border-color: var(--warning); box-shadow: none; }
.model-panel.is-superseded .model-heading { background: var(--manual-bg); border-bottom-color: var(--warning); }
.superseded-badge { display: inline-block; margin-left: 8px; padding: 3px 10px; border: 1px solid var(--warning); border-radius: 999px; background: var(--manual-bg); color: var(--warning); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; white-space: nowrap; }
.superseded-note { margin: 0; padding: 12px 20px 12px 17px; border-bottom: 1px solid var(--line); border-left: 3px solid var(--warning); background: var(--manual-bg); color: var(--ink); font-size: 13px; line-height: 1.55; }
th.superseded-col { background: var(--manual-bg); box-shadow: inset 0 -2px 0 var(--warning); color: var(--warning); }
th.superseded-col small { display: block; font-weight: 700; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.analysis-summary-table th small { display: block; margin-top: 2px; color: var(--warning); font-weight: 700; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.condition-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.condition-metric { padding: 20px; min-width: 0; }
.condition-metric + .condition-metric { border-left: 1px solid var(--line); }
.condition-metric > span, .condition-metric > small { display: block; color: var(--muted); }
.condition-metric > strong { display: block; margin: 5px 0 2px; color: var(--accent); font-size: clamp(30px, 3vw, 44px); line-height: 1; }
.udt-metric { margin-top: 16px; padding: 11px 12px; border-left: 3px solid var(--blue); background: var(--soft); }
.udt-metric span, .udt-metric small { display: block; color: var(--muted); }
.udt-metric span { font-size: 11px; font-weight: 800; text-transform: uppercase; }
.udt-metric strong { display: block; margin: 3px 0; color: var(--ink); font-size: 20px; }
.udt-metric small + small { margin-top: 3px; }
.no-udt-card { margin: 24px 0; border: 2px solid var(--accent); }
.no-udt-card .model-heading { background: #eef6ff; }
.no-udt-badge { padding: 6px 11px; border-radius: 999px; background: var(--accent); color: white !important; font-weight: 900; letter-spacing: .08em; }
.no-udt-card-body { display: grid; grid-template-columns: minmax(180px, .42fr) minmax(0, 1.58fr); }
.no-udt-score { display: flex; flex-direction: column; justify-content: center; padding: 24px 20px; border-right: 1px solid var(--line); }
.no-udt-score strong { color: var(--accent); font-size: clamp(42px, 5vw, 64px); line-height: 1; }
.no-udt-score span { margin-top: 7px; color: var(--ink); font-weight: 800; }
.no-udt-copy { padding: 20px; }
.no-udt-copy p { margin: 0; color: var(--muted); line-height: 1.6; }
.no-udt-copy p + p { margin-top: 8px; }
.no-udt-copy strong { color: var(--ink); }
.replicate-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 16px; }
.replicate-strip span { min-width: 0; padding-top: 8px; border-top: 2px solid var(--line); }
.replicate-strip b, .replicate-strip strong, .replicate-strip small { display: block; font-size: 11px; overflow-wrap: anywhere; }
.replicate-strip strong { color: var(--ink); font-size: 14px; }
.replicate-strip small, .replicate-strip b { color: var(--muted); }
.insight-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.insight-grid article { padding: 20px; }
.insight-grid article + article { border-left: 1px solid var(--line); }
.insight-grid strong { display: block; color: var(--accent); font-size: 30px; }
.insight-grid span { display: block; color: var(--ink); font-weight: 700; }
.insight-grid p { color: var(--muted); font-size: 13px; }
.table-controls { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.table-controls label { color: var(--muted); font-size: 12px; font-weight: 700; }
.table-controls input, .table-controls select { display: block; min-width: 220px; margin-top: 5px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); color: var(--ink); }
.table-controls span { margin-left: auto; color: var(--muted); font-size: 13px; }
.table-scroll-hint { display: none; margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.current-results-table { max-height: 70vh; }
.current-results-table table { min-width: 1900px; }
.current-results-table thead tr:first-child th { top: 0; }
.current-results-table thead tr:nth-child(2) th { top: 39px; }
.current-results-table th:first-child, .current-results-table td:first-child { width: 124px; }
.current-results-table th:nth-child(2), .current-results-table td:nth-child(2) { width: 400px; }
.current-results-table tbody td:nth-child(n+3) { width: 150px; }
/* 112px item + 220px question + 150px per result column, so adding an
   experiment widens the table instead of collapsing its last columns. */
.current-results-table.bixbench-results-table table { min-width: calc(332px + var(--result-columns, 8) * 150px); table-layout: fixed; }
.current-results-table.bixbench-results-table .item-column { width: 112px; }
.current-results-table.bixbench-results-table .question-column { width: 220px; }
.current-results-table.bixbench-results-table .result-column { width: 150px; }
.current-results-table.bixbench-results-table th:first-child,
.current-results-table.bixbench-results-table td:first-child,
.current-results-table.bixbench-results-table th:nth-child(2),
.current-results-table.bixbench-results-table td:nth-child(2),
.current-results-table.bixbench-results-table tbody td:nth-child(n+3) { width: auto; }
.current-results-table.bixbench-results-table .question-cell { max-width: none; }
.item-link { font-weight: 800; }
.item-link + small, .score-count + .rep-badges + small, td > small { display: block; margin-top: 4px; color: var(--muted); }
.score-count { display: block; font-size: 18px; }
.rep-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.rep-badges .rep { padding: 3px 5px; font-size: 10px; white-space: nowrap; }
.experiment-run-group { margin-top: 18px; }
.experiment-run-group + .experiment-run-group { padding-top: 18px; border-top: 1px solid var(--line); }
.experiment-run-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.experiment-run-heading h3 { margin: 0; font-size: 15px; }
.experiment-run-heading span { color: var(--muted); font-size: 11px; }
.run-grid.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.current-run .run-head > div > span { color: var(--muted); font-size: 11px; }
.current-run.answer-correct { border: 2px solid var(--green); }
.current-run.answer-incorrect { border: 2px solid var(--red); }
.current-run.answer-unresolved { border: 2px solid var(--line); }
.current-run.answer-prediction-match { border: 2px solid var(--blue); }
.current-run.answer-prediction-diff { border: 2px solid var(--amber); }
.answer-check { color: var(--muted); font-size: 11px; font-weight: 700; }
.current-run.answer-correct .answer-check, .legend-correct { color: var(--green); }
.current-run.answer-incorrect .answer-check, .legend-incorrect { color: var(--red); }
.current-run.answer-prediction-match .answer-check, .legend-prediction-match { color: var(--blue); }
.current-run.answer-prediction-diff .answer-check, .legend-prediction-diff { color: var(--amber); }
.answer-legend { color: var(--muted); font-size: 12px; line-height: 1.6; margin-bottom: 0; }
.paper-reference-note { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.run-badges { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.route-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 10px; font-weight: 800; line-height: 1.2; text-align: center; }
.route-badge.udt-only { border-color: rgba(0,122,255,.3); background: #eef6ff; color: var(--blue); }
.route-badge.udt-and-standard { border-color: rgba(175,82,0,.28); background: #fff7e8; color: #925100; }
.compact-usage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 12px 0; }
.compact-usage div { padding: 8px 0; border-top: 1px solid var(--line); }
.compact-usage dt { color: var(--muted); font-size: 11px; }
.compact-usage dd { margin: 2px 0 0; font-weight: 700; }
.semantic-note { color: var(--muted); font-size: 12px; }
.validity-note { padding: 9px 10px; border-left: 3px solid var(--red); background: var(--fail-bg); color: var(--red); font-size: 12px; }
.rep.invalid { color: var(--red); }
.run-error-details { margin: 10px 0 12px; }
.run-error-details h4 { margin: 0; font-size: 12px; }
.run-error-details .condition-causes { margin-top: 7px; }
.run-error-details .condition-cause { background: var(--fail-bg); }
.history-isolation-note { margin: 10px 0 0; padding: 9px 10px; border-left: 3px solid var(--warning); background: var(--soft); color: var(--muted); font-size: 12px; line-height: 1.5; }
.history-isolation-note strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 11px; text-transform: uppercase; }
.token-current-table { max-height: 56vh; }
.token-current-table table { min-width: 1080px; }
.token-current-table td small { display: block; margin-top: 4px; font-size: 10px; }
.token-run-label { min-width: 210px; }
.token-run-label strong, .token-run-label small { display: block; }
.token-run-label small { margin-top: 4px; color: var(--muted); font-weight: 500; }
.token-run-label .accuracy { color: var(--ink); font-weight: 800; }
.item-return { display: flex; margin-bottom: 14px; }
.forensic-finding .section-head { margin-bottom: 16px; }
.forensic-finding .section-head p:last-child { max-width: 980px; }
.version-evidence-table { min-width: 780px; }
.version-evidence-table th:first-child { width: 140px; }
.version-evidence-table th:nth-child(2) { width: 48%; }
.version-evidence-table td strong, .version-evidence-table td small { display: block; }
.version-evidence-table td small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.finding-conclusion { margin: 18px 0 0; padding: 12px 14px; border-left: 3px solid var(--warning); background: var(--soft); color: var(--muted); line-height: 1.55; }
.finding-conclusion strong { color: var(--ink); }
.error-current-table { max-height: 72vh; }
.error-current-table table { min-width: 2760px; table-layout: fixed; }
.error-current-table th:first-child, .error-current-table td:first-child { width: 120px; }
.error-current-table th:nth-child(n+2), .error-current-table td:nth-child(n+2) { width: 350px; }
.error-condition-cell { vertical-align: top; background: color-mix(in srgb, var(--fail-bg) 35%, var(--surface)); }
.clean-condition-cell { vertical-align: top; }
.condition-causes { margin-top: 12px; }
.condition-cause { padding: 10px 11px; border-left: 3px solid var(--red); background: var(--surface); color: var(--muted); }
.condition-cause + .condition-cause { margin-top: 8px; }
.condition-cause strong, .condition-cause span { display: block; }
.condition-cause strong { margin-bottom: 5px; color: var(--ink); font-size: 11px; line-height: 1.3; text-transform: uppercase; }
.condition-cause span { font-size: 12px; line-height: 1.5; }
.results-analysis-page { width: min(1180px, calc(100vw - 32px)); }
.analysis-intro { align-items: flex-start; }
.analysis-index { display: flex; gap: 24px; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.analysis-index a { padding: 7px 0; border-bottom: 2px solid transparent; color: var(--muted); }
.analysis-index a:hover, .analysis-index a:focus-visible { border-color: var(--accent); color: var(--ink); text-decoration: none; }
.analysis-band { padding: 34px 0 10px; scroll-margin-top: 20px; }
.analysis-band + .analysis-band { margin-top: 28px; border-top: 1px solid var(--line); }
.analysis-section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 420px); column-gap: 40px; align-items: end; margin-bottom: 18px; }
.analysis-section-heading .eyebrow, .analysis-section-heading h2 { grid-column: 1; }
.analysis-section-heading h2 { margin: 0; font-size: 1.45rem; }
.analysis-section-heading > p:last-child { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin: 0; color: var(--muted); }
.analysis-section-heading .analysis-byline { color: var(--ink); font-weight: 800; }
.analysis-copy { max-width: 980px; }
.analysis-point { padding: 13px 0; }
.analysis-point + .analysis-point { border-top: 1px solid var(--line); }
.analysis-point p { margin: 0; color: var(--muted); font-size: 0.96rem; line-height: 1.68; }
.analysis-point strong { color: var(--ink); }
.analysis-subsection { margin-top: 27px; padding-top: 25px; border-top: 1px solid var(--line); }
.analysis-subsection h3 { margin-bottom: 5px; font-size: 1.08rem; }
.original-discussion .analysis-point { padding-left: 16px; border-left: 2px solid var(--line); }
.original-discussion .analysis-point + .analysis-point { border-top: 0; }
.original-discussion .analysis-subsection .analysis-point { margin-top: 8px; }
.analysis-summary-table { margin: 22px 0 6px; }
.analysis-summary-table table { min-width: 700px; }
.analysis-summary-table th:first-child { width: 34%; }
.analysis-summary-table td { font-variant-numeric: tabular-nums; }
.follow-up-copy { margin-top: 26px; }
.archive-entry { margin-top: 30px; border-top: 1px solid var(--line); }
.archive-notice { display: flex; gap: 12px; align-items: center; margin: 0 0 18px; padding: 12px 14px; border-left: 3px solid var(--warning); background: var(--soft); }
.archive-notice span { color: var(--muted); }
.archive-return { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 28px; border-bottom: 1px solid var(--line); background: var(--surface); }
.archive-return span { color: var(--muted); font-size: 13px; font-weight: 700; }
@media (max-width: 900px) {
  .intro-band, .archive-entry { align-items: flex-start; }
  .current-nav-row { display: block; }
  .page-tabs { border-top: 1px solid var(--line); }
  .timeline-list::before { left: 9px; }
  .timeline-entry { display: block; padding: 0 0 32px 38px; }
  .timeline-entry::before { top: 5px; left: 1px; }
  .timeline-date { display: flex; gap: 7px; align-items: baseline; margin-bottom: 9px; padding: 0; text-align: left; }
  .timeline-date time, .timeline-date span { display: inline; margin: 0; }
  .timeline-content { padding-bottom: 28px; }
  .model-comparison, .insight-grid { grid-template-columns: 1fr; }
  .insight-grid article + article { border-left: 0; border-top: 1px solid var(--line); }
  .run-grid.three-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item-condition-analyses { grid-template-columns: 1fr; }
  .analysis-section-heading { display: block; }
  .analysis-section-heading > p:last-child { margin-top: 8px; }
}
@media (max-width: 620px) {
  .intro-band, .archive-entry, .table-controls { display: block; }
  .benchmark-tabs a, .page-tabs a { padding-left: 8px; padding-right: 8px; font-size: 12px; }
  .summary-facts { margin-top: 18px; }
  .condition-pair, .run-grid.three-up { grid-template-columns: 1fr; }
  .no-udt-card-body { grid-template-columns: 1fr; }
  .no-udt-score { border-right: 0; border-bottom: 1px solid var(--line); }
  .condition-metric + .condition-metric { border-left: 0; border-top: 1px solid var(--line); }
  .table-controls label { display: block; margin-bottom: 10px; }
  .table-controls input, .table-controls select { width: 100%; min-width: 0; }
  .table-controls span { display: block; margin: 8px 0 0; }
  .table-scroll-hint { display: block; }
  .timeline-scores { grid-template-columns: 1fr; }
  .timeline-scores span + span { border-left: 0; border-top: 1px solid var(--line); }
  .archive-entry .button { display: inline-block; margin-top: 16px; }
  .analysis-index { display: block; }
  .analysis-index a { display: block; }
  .analysis-point { padding-top: 11px; padding-bottom: 11px; }
}
