/* Stepswitch replay. Tokens: the Open Design "claude" package (tokens.css, names kept),
   with its documented substitutes for the proprietary faces (Newsreader, self-hosted under
   the OFL, for the serif; the system sans; ui-monospace). Dark values are the package's
   documented dark surfaces. Model colours: a categorical palette checked with the dataviz
   validator in both modes (adjacent pairs; every badge also names its model). */

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* Surface */
  --bg: #f5f4ed;
  --surface: #faf9f5;
  --surface-warm: #e8e6dc;
  /* Foreground */
  --fg: #141413;
  --fg-2: #3d3d3a;
  --muted: #5e5d59;
  --meta: #87867f;
  /* Border */
  --border: #f0eee6;
  --border-soft: #e8e6dc;
  --ring-warm: #d1cfc5;
  /* Accent */
  --accent: #c96442;
  --accent-on: #faf9f5;
  --accent-hover: color-mix(in oklab, var(--accent), black 8%);
  --accent-active: color-mix(in oklab, var(--accent), black 14%);
  --accent-text: #954a31;   /* terracotta darkened 26%: 4.5:1 on every light surface */
  /* Semantic */
  --success: #17a34a;
  --success-text: #1d6b3a;
  --warn: #eab308;
  --warn-text: #8a5a00;
  --danger: #b53333;
  /* Typography */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: system-ui, "Segoe UI", Arial, sans-serif;
  --font-mono: ui-monospace, Menlo, Consolas, monospace;
  --text-xs: 10px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 20px;
  --text-xl: 25px;
  --text-2xl: 32px;
  --text-3xl: 52px;
  --text-4xl: 64px;
  --leading-body: 1.6;
  --leading-tight: 1.1;
  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --section-y-desktop: 96px;
  --section-y-tablet: 64px;
  --section-y-phone: 48px;
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  /* Elevation */
  --elev-ring: 0 0 0 1px var(--border);
  --elev-raised: rgba(0, 0, 0, 0.05) 0px 4px 24px;
  --focus-ring: 0 0 0 3px rgba(56, 152, 236, 0.3);
  /* Motion */
  --motion-fast: 150ms;
  --motion-base: 200ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  /* Layout */
  --container-max: 1200px;
  /* Charts and models (validated light steps, fixed order) */
  --m-super: #2f6fb4;
  --m-lightning: #1f8f6b;
  --m-ultra: #7356b0;
  --m-gptoss: #b07d12;
  --m-nano: #c4507a;
  --m-other: #87867f;
  --s-single: #b0aea5;
  --s-uncached: #5e5d59;
  --s-cached: #d1cfc5;
  --grid: #e8e6dc;
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --bg: #141413;
    --surface: #1f1e1c;
    --surface-warm: #30302e;
    --fg: #faf9f5;
    --fg-2: #e8e6dc;
    --muted: #b0aea5;
    --meta: #9c9a92;
    --border: #30302e;
    --border-soft: #3a3a37;
    --ring-warm: #4d4c48;
    --accent-text: #dc8264;
    --success-text: #5fbf83;
    --warn-text: #e0b04a;
    --danger: #d68f8f;
    --elev-raised: rgba(0, 0, 0, 0.3) 0px 4px 24px;
    --m-super: #5b93d6;
    --m-lightning: #2f9e76;
    --m-ultra: #9a80d6;
    --m-gptoss: #b88a1c;
    --m-nano: #c9628a;
    --m-other: #87867f;
    --s-single: #5e5d59;
    --s-uncached: #b0aea5;
    --s-cached: #4d4c48;
    --grid: #30302e;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141413;
  --surface: #1f1e1c;
  --surface-warm: #30302e;
  --fg: #faf9f5;
  --fg-2: #e8e6dc;
  --muted: #b0aea5;
  --meta: #9c9a92;
  --border: #30302e;
  --border-soft: #3a3a37;
  --ring-warm: #4d4c48;
  --accent-text: #dc8264;
  --success-text: #5fbf83;
  --warn-text: #e0b04a;
  --danger: #d68f8f;
  --elev-raised: rgba(0, 0, 0, 0.3) 0px 4px 24px;
  --m-super: #5b93d6;
  --m-lightning: #2f9e76;
  --m-ultra: #9a80d6;
  --m-gptoss: #b88a1c;
  --m-nano: #c9628a;
  --m-other: #87867f;
  --s-single: #5e5d59;
  --s-uncached: #b0aea5;
  --s-cached: #4d4c48;
  --grid: #30302e;
}

/* ---- base ---------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(36px, 6vw, var(--text-4xl)); line-height: var(--leading-tight); margin: 0 0 var(--space-6); letter-spacing: -0.01em; max-width: 16ch; }
h2 { font-size: clamp(var(--text-xl), 4vw, 40px); line-height: 1.2; margin: 0 0 var(--space-3); }
h3 { font-size: var(--text-lg); line-height: 1.2; margin: 0 0 var(--space-2); }
p { margin: 0 0 var(--space-4); }
code { font-family: var(--font-mono); font-size: 0.9em; background: var(--surface-warm); border-radius: 4px; padding: 0.05em 0.35em; }
a { color: var(--accent-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--fg); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }
.wrap { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-6); }
@media (max-width: 640px) { .wrap { padding: 0 var(--space-4); } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--space-4); top: -48px; background: var(--fg); color: var(--bg); padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); z-index: 20; }
.skip-link:focus { top: var(--space-2); }
.overline { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--space-3); }
.eyebrow { font-size: var(--text-sm); color: var(--muted); margin: 0 0 var(--space-4); }
.sub, .note { color: var(--muted); max-width: 68ch; }
.note { font-size: var(--text-sm); margin-top: var(--space-6); }
.meta { color: var(--muted); font-size: var(--text-sm); margin: 0; font-variant-numeric: tabular-nums; }

/* ---- nav ----------------------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--border); }
.nav-row { display: flex; align-items: center; gap: var(--space-6); min-height: 60px; }
.wordmark { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--fg); text-decoration: none; letter-spacing: -0.01em; }
.nav-actions { margin-left: auto; display: flex; gap: var(--space-2); align-items: center; }

/* ---- tabs ----------------------------------------------------------------------------- */
/* Sticks under the nav (60px row + 1px border); scrolls sideways on a narrow screen. */
.tabbar { position: sticky; top: 61px; z-index: 9; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--border-soft); }
.tabs { display: flex; gap: var(--space-1); overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--space-3)); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; appearance: none; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 15px; padding: 14px var(--space-3) 12px; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: color var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard); }
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); font-weight: 600; }
.tab:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); border-radius: var(--radius-sm); }
@media (max-width: 760px) { .tabs { mask-image: linear-gradient(to right, #000 82%, transparent); } }
main { overflow-anchor: none; }
/* At least a screen tall, so a switch can always start the panel just under the bars. */
.panel { min-height: calc(100vh - 112px); }
.next { margin: var(--space-12) 0 0; }
@media (prefers-reduced-motion: reduce) { .tab { transition: none; } }

/* ---- buttons ------------------------------------------------------------------------- */
.btn, select {
  font: inherit; font-size: 15px; line-height: 1.2;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 40px; padding: 8px 16px; border-radius: var(--radius-md); border: 0;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-standard);
}
.btn:active { transform: scale(0.98); }
a, button, select, summary, .hit { touch-action: manipulation; }
.btn-accent { background: var(--accent-active); color: var(--accent-on); box-shadow: 0 0 0 1px var(--accent-active); }
.btn-accent:hover { background: color-mix(in oklab, var(--accent), black 22%); color: var(--accent-on); }
.btn-sand { background: var(--surface-warm); color: var(--fg-2); box-shadow: 0 0 0 1px var(--ring-warm); }
.btn-sand:hover { background: var(--ring-warm); color: var(--fg); }
.btn-ghost { background: transparent; color: var(--muted); box-shadow: 0 0 0 1px var(--border-soft); }
.btn-ghost:hover { color: var(--fg); background: var(--surface); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-md); border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--surface-warm); color: var(--fg); }
#theme .sun, #theme[data-mode="dark"] .moon { display: none; }
#theme[data-mode="dark"] .sun { display: block; }
select { background: var(--surface); color: var(--fg); box-shadow: 0 0 0 1px var(--ring-warm); padding: 8px 12px; max-width: 100%; justify-content: flex-start; }

/* ---- hero ---------------------------------------------------------------------------- */
.hero { padding: var(--section-y-desktop) 0 var(--section-y-tablet); border-bottom: 1px solid var(--border-soft); }
.lead { font-size: var(--text-lg); color: var(--fg-2); max-width: 62ch; }
.hero-figure { margin: var(--space-8) 0 var(--space-6); }
.figure-head { font-size: var(--text-sm); color: var(--muted); margin: 0 0 var(--space-4); }
.hero-bars { display: grid; gap: var(--space-4); margin: 0 0 var(--space-6); max-width: 560px; }
.hero-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-4); row-gap: var(--space-2); align-items: baseline; }
.hero-bar-who { margin: 0; color: var(--fg-2); }
.hero-bar-value { grid-column: 2; grid-row: 1; margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-bar-value strong { color: var(--fg); font-size: var(--text-lg); font-weight: 600; }
.hero-bar-track { grid-column: 1 / -1; height: 14px; }
.hero-bar-fill { display: block; height: 100%; min-width: 4px; border-radius: 0 4px 4px 0; background: var(--bar, var(--s-single)); }
.hero-bar.is-ladder { --bar: var(--accent); }
@media (max-width: 480px) { .hero-bar { grid-template-columns: minmax(0, 1fr); } .hero-bar-value { grid-column: auto; grid-row: auto; white-space: normal; } }
.figure-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3); margin: 0; font-family: var(--font-body); }
#hero-saving { font-size: clamp(56px, 10vw, 96px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--fg); }
.figure-unit { font-size: var(--text-xl); color: var(--fg-2); }
.figure-caption { color: var(--muted); margin: var(--space-2) 0 0; max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-12); align-items: start; }
@media (min-width: 1100px) { .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.run-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: var(--space-6); }
.run-title { font-size: var(--text-xl); margin-bottom: var(--space-4); }
.run-steps { list-style: none; margin: 0 0 var(--space-4); padding: 0; }
.run-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--space-2); padding: 6px 0; border-top: 1px solid var(--border); font-size: 14px; }
.run-row:first-child { border-top: 0; }
.run-row .badge { margin-right: 0; }
.run-types { color: var(--muted); }
.run-row.escalated { background: color-mix(in srgb, var(--accent) 9%, transparent); border-radius: var(--radius-sm); border-top-color: transparent; padding-left: var(--space-2); padding-right: var(--space-2); margin: 2px calc(-1 * var(--space-2)); }
.run-row.escalated .verdict { color: var(--accent-text); }
.run-row.escalated .verdict::before { content: "\2191"; }
@media (max-width: 640px) { .hero { padding: var(--section-y-phone) 0; } }

/* ---- sections ------------------------------------------------------------------------ */
main > section { padding: var(--section-y-phone) 0 0; }
@media (min-width: 992px) { main > section { padding-top: var(--section-y-tablet); } }
html { scroll-padding-top: 112px; }
h3.minor { font-size: var(--text-xl); margin-top: var(--space-12); }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-4); margin: var(--space-6) 0; }
.kpi { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: var(--space-5) var(--space-6); }
.kpi .label { font-size: var(--text-sm); color: var(--muted); margin: 0 0 var(--space-2); }
.kpi .value { font-size: var(--text-2xl); font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; margin: 0 0 var(--space-2); }
.kpi .detail { font-size: var(--text-sm); color: var(--muted); margin: 0; }

/* charts */
.chart-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-4); margin: var(--space-6) 0; }
.chart-card { margin: 0; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: var(--space-6); min-width: 0; }
#cost-chart { grid-column: span 7; }
#share-chart { grid-column: span 5; }
#token-chart { grid-column: span 12; }
@media (max-width: 900px) { #cost-chart, #share-chart, #token-chart { grid-column: span 12; } }
.chart-card figcaption { margin-bottom: var(--space-3); }
.plot { position: relative; }
.plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.plot text { fill: var(--muted); font-family: var(--font-body); font-size: 13px; }
.plot .value-label { fill: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.plot .gridline { stroke: var(--grid); stroke-width: 1; }
.plot .hit { fill: transparent; cursor: default; }
.plot .hit:focus-visible { outline: none; stroke: var(--fg); stroke-width: 1; }
.plot .mark { transition: opacity var(--motion-fast) var(--ease-standard); }
.plot.hovering .mark { opacity: 0.55; }
.plot.hovering .mark.active { opacity: 1; }
.legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-size: var(--text-sm); color: var(--muted); margin: 0 0 var(--space-3); padding: 0; list-style: none; }
.legend-list { margin-top: var(--space-5); display: block; }
.legend-list li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-3); padding: var(--space-2) 0; border-top: 1px solid var(--border); }
.legend-list li:first-child { border-top: 0; }
.legend-list .who { color: var(--fg); }
.legend-list .pct { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.legend-list .calls { grid-column: 2 / span 2; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.key { display: inline-flex; align-items: center; gap: var(--space-2); }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; flex: none; }
.s-ladder { background: var(--accent); }
.s-single { background: var(--s-single); }
.s-uncached { background: var(--s-uncached); }
.s-cached { background: var(--s-cached); }
.tooltip { position: fixed; z-index: 30; pointer-events: none; background: var(--fg); color: var(--bg); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); font-size: var(--text-sm); line-height: 1.4; box-shadow: var(--elev-raised); max-width: 260px; }
.tooltip strong { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }

/* tables and cards */
.table-view { margin: var(--space-4) 0 var(--space-2); }
.table-view summary { cursor: pointer; color: var(--muted); font-size: 15px; padding: var(--space-2) 0; }
.table-view summary:hover { color: var(--fg); }
.table-view[open] summary { margin-bottom: var(--space-3); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-4); align-items: start; }
.card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: var(--space-5) var(--space-6); min-width: 0; }
.card h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.card .st { margin: var(--space-3) 0 var(--space-1); }
.card dl { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--space-4); margin: 0 0 var(--space-2); font-size: 15px; }
.card dt { color: var(--muted); }
.card dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.card .delta { margin: var(--space-3) 0 0; padding-top: var(--space-3); border-top: 1px solid var(--border-soft); color: var(--fg); font-weight: 600; }
.bill { margin-top: var(--space-4); color: var(--muted); font-size: 15px; max-width: 80ch; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border-soft); border-radius: var(--radius-md); background: var(--surface); margin-top: var(--space-6); }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 15px; }
th, td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border-soft); vertical-align: top; }
th { font-size: 13px; color: var(--muted); font-weight: 500; background: color-mix(in srgb, var(--surface-warm) 40%, transparent); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }

/* model badges: the coloured dot carries identity, the name stays in text colour */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px 1px 8px; border-radius: var(--radius-pill); background: var(--surface-warm); color: var(--fg-2); font-size: 13px; font-weight: 500; margin-right: var(--space-2); white-space: nowrap; vertical-align: 1px; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--m-other)); flex: none; }
.m-lightning { --dot: var(--m-lightning); }
.m-nano { --dot: var(--m-nano); }
.m-super { --dot: var(--m-super); }
.m-ultra { --dot: var(--m-ultra); }
.m-gptoss { --dot: var(--m-gptoss); }
.m-ladder { --dot: var(--accent); }
.m-other { --dot: var(--m-other); }

/* replay */
.controls { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: end; margin: var(--space-6) 0 var(--space-3); }
.controls label { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); gap: var(--space-1); min-width: 0; }
.control-buttons { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.lanes { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: var(--space-4); }
@media (max-width: 420px) { .lanes { grid-template-columns: 1fr; } }
.lane { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: var(--space-5); min-width: 0; }
.lane h3 { font-size: var(--text-lg); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); }
.lane .totals { color: var(--muted); font-size: var(--text-sm); margin-bottom: var(--space-3); font-variant-numeric: tabular-nums; }
.verdict { font-weight: 600; }
.verdict.ok { color: var(--success-text); }
.verdict.bad { color: var(--danger); }
.verdict::before { display: inline-block; width: 1.1em; }
.verdict.ok::before { content: "\2713"; }
.verdict.bad::before { content: "\2715"; }
.events { list-style: none; margin: 0; padding: 0; }
.ev { display: grid; grid-template-columns: 28px 1fr; gap: var(--space-2); padding: var(--space-2) 0; border-top: 1px solid var(--border); }
.ev:first-child { border-top: 0; }
.ev.hidden { display: none; }
.ev .n { color: var(--muted); font-size: 12px; text-align: right; padding-top: 3px; font-variant-numeric: tabular-nums; }
.ev .body { min-width: 0; overflow-wrap: anywhere; font-size: 15px; }
.ev.reveal { animation: rise 320ms var(--ease-standard) both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ev.reveal { animation: none; } }
.st { font-weight: 600; }
.chip { display: inline-flex; align-items: center; font-size: 12px; border-radius: 6px; padding: 0 6px; margin: 4px 4px 0 0; background: var(--surface-warm); color: var(--fg-2); }
.chip.ok { color: var(--success-text); }
.chip.bad { color: var(--danger); font-weight: 600; }
.chip.skip { color: var(--muted); }
.ev.escalation { background: color-mix(in srgb, var(--accent) 9%, transparent); border-radius: var(--radius-sm); border-top-color: transparent; padding-left: var(--space-2); padding-right: var(--space-2); margin: var(--space-1) calc(-1 * var(--space-2)); }
.ev.escalation .body { color: var(--fg); }
.ev.escalation .verdict { color: var(--accent-text); }
.ev.escalation .verdict::before { content: "\2191"; }
.ev.gate .body, .ev.review .body { font-size: 14px; }

/* provenance and footer */
.prov p { margin: 0 0 var(--space-4); color: var(--muted); font-size: var(--text-sm); }
.prov strong { color: var(--fg); font-weight: 600; }
.prov code { display: block; margin-top: var(--space-1); padding: var(--space-2) var(--space-3); overflow-x: auto; white-space: pre; font-size: 12px; line-height: 1.5; }
.foot { margin-top: var(--section-y-tablet); border-top: 1px solid var(--border-soft); padding: var(--space-8) 0 var(--space-12); color: var(--muted); font-size: var(--text-sm); }
.foot p { max-width: 80ch; }
.error { color: var(--danger); font-weight: 600; }
