/* Subjectively Worse. House style (Tenenbaum AI) via the scottsui token block:
   warm stone neutrals at hue 85, one electric blue, Geist + Source Serif 4 + Geist Mono, self-hosted. */

@font-face { font-family: "Geist"; src: url(/fonts/Geist-Variable.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/fonts/GeistMono-Variable.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(/fonts/SourceSerif4-Variable.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  color-scheme: light;
  --n-0: #fff;
  --n-25: oklch(0.985 0.004 85);
  --n-50: oklch(0.970 0.007 85);
  --n-100: oklch(0.952 0.008 85);
  --n-200: oklch(0.919 0.006 85);
  --n-300: oklch(0.862 0.008 85);
  --n-400: oklch(0.686 0.005 85);
  --n-500: oklch(0.60 0.005 85);
  --n-600: oklch(0.528 0.004 85);
  --n-700: oklch(0.40 0.004 85);
  --n-800: oklch(0.29 0.004 85);
  --n-900: oklch(0.178 0.002 85);

  --brand: #3B5EFF;
  --brand-hover: #2D4BDB;
  --brand-ink: #2D4BDB;
  --brand-deep: #20201E;
  --brand-soft: oklch(0.955 0.018 268);
  --brand-glow: 0 2px 12px oklch(0.561 0.241 268 / 0.2);

  --amber-ink: oklch(0.46 0.09 65);
  --amber-soft: oklch(0.975 0.03 85);
  --amber-ring: oklch(0.90 0.05 82);
  --green-ink: oklch(0.42 0.08 158);
  --green-soft: oklch(0.965 0.025 158);
  --red-ink: oklch(0.48 0.14 25);
  --red-soft: oklch(0.965 0.02 25);
  --red-ring: oklch(0.90 0.04 25);

  --bg: var(--n-50);
  --surface: var(--n-0);
  --ink: var(--n-900);
  --ink-2: var(--n-700);
  --muted: var(--n-600);
  --line: var(--n-200);
  --line-soft: var(--n-100);

  --sans: "Geist", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-lg: 12px;
  --r-md: 8px;
  --r-sm: 6px;
  --r-pill: 999px;

  --ring: 0 0 0 1px oklch(0.178 0.002 85 / 0.10);
  --shadow-1: var(--ring), 0 1px 2px oklch(0.25 0.01 85 / 0.04), 0 2px 8px oklch(0.25 0.01 85 / 0.04);
  --shadow-2: var(--ring), 0 1px 2px oklch(0.25 0.01 85 / 0.05), 0 8px 24px oklch(0.25 0.01 85 / 0.08);
  --focus: 0 0 0 2px var(--n-0), 0 0 0 4px oklch(0.561 0.241 268 / 0.55);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --t-fast: 140ms;
  --t-med: 240ms;
}

* { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
a { color: var(--brand-ink); text-decoration: none; }
h1, h2, h3, p, ol, ul, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 12px; }
.dim { color: var(--muted); }
.mt { margin-top: 14px; }
.eyebrow { font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.13em; color: var(--muted); margin-bottom: 8px; display: block; }
.hint { color: var(--muted); font-size: 12.5px; }
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: oklch(0.970 0.007 85 / 0.88);
  backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.topbar-in { max-width: 1180px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark {
  width: 28px; height: 28px; border-radius: var(--r-md); background: var(--brand-deep); color: var(--n-50);
  display: grid; place-items: center; font: 600 11px/1 var(--mono); letter-spacing: 0.04em;
}
.brand-name { font: 400 19px/1 var(--serif); letter-spacing: -0.01em; }
.seg { margin-left: auto; display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-pill); background: var(--n-100); box-shadow: inset 0 0 0 1px var(--line); }
.seg-btn {
  min-height: 34px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: transparent;
  font: 500 13px/1 var(--sans); color: var(--ink-2); cursor: pointer;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease;
  touch-action: manipulation; user-select: none;
}
.seg-btn[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.byline { font: 400 13px/1 var(--serif); color: var(--muted); white-space: nowrap; }
.byline span { font: 500 12px/1 var(--sans); color: var(--brand-ink); }

/* ---------- layout ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 28px 20px 0; }
.intro { max-width: 680px; margin-bottom: 20px; }
.page-title { font: 400 30px/1.12 var(--serif); letter-spacing: -0.02em; text-wrap: balance; }
.lede { margin-top: 10px; color: var(--ink-2); font-size: 15px; line-height: 1.55; text-wrap: pretty; }

.picker { padding: 16px 18px; margin-bottom: 16px; }
.combo { position: relative; }
.combo-icon { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); fill: none; stroke: var(--n-500); stroke-width: 1.6; stroke-linecap: round; pointer-events: none; }
.input {
  width: 100%; min-height: 42px; padding: 0 12px; border: 0; border-radius: var(--r-md);
  background: var(--n-25); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 14px var(--sans);
  transition: box-shadow var(--t-fast) ease;
}
.combo .input { padding-left: 36px; }
.input::placeholder { color: var(--n-400); }
.input:focus-visible { box-shadow: inset 0 0 0 1px var(--brand), 0 0 0 3px oklch(0.561 0.241 268 / 0.18); border-radius: var(--r-md); }
.combo-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 10; max-height: 320px; overflow-y: auto;
  padding: 4px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-2);
  animation: pop var(--t-med) var(--ease-out); transform-origin: top center;
}
@keyframes pop { from { opacity: 0; transform: scale(0.97) translateY(-4px); } }
.combo-opt { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: var(--r-md); cursor: pointer; }
.combo-opt.active { background: var(--brand-soft); }
.combo-empty { padding: 10px; color: var(--muted); }
.featured { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }

.party { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--r-pill); font: 600 11px/1 var(--mono); background: var(--n-100); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); vertical-align: middle; }

/* chips + buttons */
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 0;
  border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font: 500 13px/1 var(--sans); color: var(--ink); cursor: pointer;
  transition: background-color var(--t-fast) ease, box-shadow var(--t-fast) ease, transform var(--t-fast) var(--ease-out);
  touch-action: manipulation; user-select: none;
}
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--brand-soft); box-shadow: inset 0 0 0 1px oklch(0.561 0.241 268 / 0.45); color: var(--brand-ink); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn {
  min-height: 40px; padding: 0 18px; border: 0; border-radius: var(--r-pill); font: 500 14px/1 var(--sans);
  background: var(--surface); color: var(--ink); box-shadow: var(--ring); cursor: pointer;
  touch-action: manipulation; user-select: none;
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast) ease;
}
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--brand); color: #fff; box-shadow: var(--brand-glow); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn.busy { opacity: 0.7; }
.link-btn { border: 0; background: none; padding: 6px 0; color: var(--brand-ink); font: 500 13px var(--sans); cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .chip:hover { background: var(--n-25); }
  .chip[aria-pressed="true"]:hover, .chip[aria-checked="true"]:hover { background: var(--brand-soft); }
  .btn:hover { background: var(--n-50); }
  .btn.primary:hover:not(:disabled) { background: var(--brand-hover); }
  .link-btn:hover { text-decoration: underline; }
  .combo-opt:hover { background: var(--n-50); }
  .combo-opt.active:hover { background: var(--brand-soft); }
  a:hover { text-decoration: underline; }
  .nav-link:hover { background: var(--n-100); text-decoration: none; }
  .cite:hover { background: var(--brand-soft); }
  .mp-opt:hover { background: var(--n-50); }
}

/* member card */
.member-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 24px; padding: 20px; margin-bottom: 24px; }
.member-name { font: 400 30px/1.1 var(--serif); letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.member-meta { margin-top: 10px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 8px; }
.sep { color: var(--n-400); }
.method { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); font-size: 13px; max-width: 52ch; }
.method li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; }
.tick { width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232D4BDB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 8.5 2.2 2.2 4.8-5'/%3E%3C/svg%3E") center/12px no-repeat; }
.run-box { border-left: 1px solid var(--line-soft); padding-left: 24px; }
.run-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.run-row .hint { flex: 1; min-width: 160px; }

/* model picker */
.mp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.model-chip { cursor: default; padding-right: 4px; }
.chip-full { color: var(--muted); font-weight: 400; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-x { width: 24px; height: 24px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--muted); font-size: 15px; cursor: pointer; }
.chip-x:hover { background: var(--n-100); color: var(--ink); }
.mp-toggle { margin-top: 4px; }
.reveal { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-med) var(--ease-out); }
.reveal.open { grid-template-rows: 1fr; }
.reveal > div { overflow: hidden; }
.mp-panel { padding: 8px 0 4px; }
.mp-list { max-height: 240px; overflow-y: auto; margin-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.mp-opt {
  display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 10px; align-items: center; text-align: left;
  padding: 8px 8px; border: 0; border-radius: var(--r-md); background: none; color: var(--ink); font: 13px var(--sans); cursor: pointer;
}
.mp-opt .mono { grid-column: 2; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-check { grid-row: span 2; width: 16px; height: 16px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--n-300); }
.mp-opt[aria-selected="true"] .mp-check { background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 8.5 2.5 2.5L12 5.5'/%3E%3C/svg%3E") center/12px no-repeat; box-shadow: none; }
.mp-hint { margin-top: 6px; }
.mtag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: var(--r-pill);
  background: var(--n-100); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font: 500 11px/1 var(--mono); letter-spacing: 0.02em; white-space: nowrap; flex: none;
}

/* ---------- results layout ---------- */
.results-layout { display: grid; grid-template-columns: 188px minmax(0, 1fr); gap: 32px; align-items: start; }
.lens-nav { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 2px; }
.nav-link { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: var(--r-md); color: var(--ink-2); font-size: 13px; }
.lens-body { min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.lens-body > :empty { display: none; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.block-title { font: 400 22px/1.2 var(--serif); letter-spacing: -0.01em; }
.count { font: 500 12px/1 var(--mono); color: var(--muted); margin-left: 4px; vertical-align: 3px; }
h3.sub { font: 600 14px/1.3 var(--sans); margin: 18px 0 10px; }
.empty-line { padding: 14px 0; border-top: 1px solid var(--line); }

.progress { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 10px; }
.prog { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.prog-dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--n-400); }
.prog-pending .prog-dot { animation: breathe 1.4s ease-in-out infinite; background: var(--n-300); box-shadow: none; }
.prog-done .prog-dot { background: var(--green-ink); box-shadow: none; }
.prog-failed .prog-dot { background: var(--red-ink); box-shadow: none; border-radius: 2px; }

/* notes */
.note { padding: 12px 14px; border-radius: var(--r-md); background: var(--n-100); color: var(--ink-2); font-size: 13.5px; }
.note.amber { background: var(--amber-soft); box-shadow: inset 0 0 0 1px var(--amber-ring); color: var(--amber-ink); margin-bottom: 14px; }
.note.red { background: var(--red-soft); box-shadow: inset 0 0 0 1px var(--red-ring); color: var(--red-ink); margin-top: 8px; }
.note strong { font-weight: 600; }

/* summary */
.verdicts { display: flex; flex-direction: column; gap: 10px; }
.verdicts li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: 15px; line-height: 1.5; }
.verdicts .mtag { justify-self: start; }
.agreed { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.agreed li + li { border-top: 1px solid var(--line-soft); }
.agreed-link { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; color: var(--ink); }
.agreed-link:hover { text-decoration: none; background: var(--n-25); }
.agreed-lens { font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.agreed-what { font-weight: 500; }

/* agreement + severity */
.agree { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ad-row { display: inline-flex; gap: 3px; }
.ad { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--n-300); }
.ad.on { background: var(--brand); box-shadow: none; }
.agree-word { font: 500 12px/1 var(--sans); color: var(--ink-2); }
.agree-word.solo { color: var(--amber-ink); }
.sev { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--mono); color: var(--ink-2); }
.sev-bar { display: inline-flex; gap: 2px; }
.sev-bar i { width: 4px; height: 12px; border-radius: 2px; background: var(--n-200); }
.sev-bar i.on { background: var(--n-800); }

/* findings */
.finding { padding: 18px 20px; }
.finding + .finding { margin-top: 12px; }
.finding-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.finding-head h3 { font: 600 15px/1.35 var(--sans); max-width: 60ch; }
.finding-stats { display: flex; gap: 14px; align-items: center; }
.versus { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: stretch; }
.vs { align-self: center; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.13em; color: var(--muted); }
.against { display: flex; flex-direction: column; gap: 8px; }
.reads { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.reads li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: baseline; color: var(--ink-2); }
.reads .mtag { justify-self: start; }
.reads strong { color: var(--ink); font-weight: 600; }

/* evidence */
.ev { padding: 12px 14px; border-radius: var(--r-md); background: var(--n-25); box-shadow: inset 0 0 0 1px var(--line-soft); transition: box-shadow var(--t-med) ease, background-color var(--t-med) ease; }
.ev-list { display: flex; flex-direction: column; gap: 8px; }
.ev-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; color: var(--ink-2); }
.ev-kind { font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); }
.src { margin-left: auto; font-size: 12px; font-weight: 500; white-space: nowrap; }
.quote { margin-top: 8px; font: 400 15.5px/1.5 var(--serif); color: var(--ink); text-wrap: pretty; }
.quote::before { content: "“"; } .quote::after { content: "”"; }
.ev-text { margin-top: 6px; color: var(--ink); }
.ev-context { margin-top: 3px; font-size: 12px; color: var(--muted); }
.nav-link[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.reads .cite, .verdicts .cite, .mc-reason .cite { min-height: 0; padding: 1px 7px; vertical-align: 1px; }
.ev.compact .quote { font-size: 14.5px; }
.vote-pos { font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 7px; border-radius: var(--r-pill); }
.vote-pos.yea { background: var(--green-soft); color: var(--green-ink); }
.vote-pos.nay { background: var(--red-soft); color: var(--red-ink); }
.ev.flash { background: var(--brand-soft); box-shadow: inset 0 0 0 1.5px var(--brand); }
.cites { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cite {
  border: 0; padding: 4px 9px; min-height: 26px; border-radius: var(--r-pill); background: var(--n-100); color: var(--brand-ink);
  font: 500 12px/1.2 var(--sans); cursor: pointer; text-align: left; transition: background-color var(--t-fast) ease;
}

/* model cards (vote judge + agenda) */
.model-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.model-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.mc-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; min-width: 0; }
.mc-head .dim { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conf { margin-left: auto; font: 500 11.5px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.mc-pick { font-weight: 600; }
.mc-verdict { font: 400 15.5px/1.45 var(--serif); }
.mc-reason { color: var(--ink-2); }
.mc-reason.ink { color: var(--ink); font-size: 14.5px; line-height: 1.55; }
.mc-foot { display: flex; gap: 14px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 12px; }
.agree-line { font-size: 12.5px; color: var(--brand-ink); font-weight: 500; }
.pill { display: inline-flex; align-items: center; min-height: 26px; padding: 0 11px; border-radius: var(--r-pill); background: var(--brand-soft); color: var(--brand-ink); font: 500 12.5px/1 var(--sans); }
.pill.ink { background: var(--n-900); color: var(--n-50); }
.pill.outline { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
#v-votes-note { margin: 0; }
#v-results { margin-bottom: 32px; }
#v-custom { margin-top: 10px; }

/* states */
.state-block { text-align: center; padding: 48px 16px; }
.icon-well { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; margin: 0 auto 14px; }
.icon-well svg { width: 22px; height: 22px; fill: none; stroke: var(--brand-ink); stroke-width: 1.6; stroke-linecap: round; }
.sk { height: 12px; margin: 8px 0; border-radius: var(--r-sm); background: var(--n-100); animation: breathe 1.4s ease-in-out infinite; }
.sk.tall { height: 26px; }
@keyframes breathe { 50% { opacity: 0.55; } }
.enter { animation: enter var(--t-med) var(--ease-out) both; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); filter: blur(2px); } }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  padding: 10px 16px; border-radius: var(--r-pill); background: var(--brand-deep); color: var(--n-50); font-size: 13.5px; box-shadow: var(--shadow-2);
  transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* footer */
.foot { max-width: 1180px; margin: 56px auto 0; padding: 20px 20px calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.foot p { max-width: 70ch; }
.foot a { color: var(--ink-2); }
.foot-by { white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .member-card { grid-template-columns: 1fr; gap: 18px; }
  .run-box { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-soft); padding-top: 16px; }
  .results-layout { grid-template-columns: 1fr; gap: 16px; }
  .lens-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .lens-nav .eyebrow { display: none; }
  .nav-link { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r-pill); padding: 6px 12px; min-height: 32px; align-items: center; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  main { padding: 20px 14px 0; }
  .topbar-in { padding: 8px 14px; gap: 10px; flex-wrap: wrap; }
  .brand-name { font-size: 17px; }
  .byline { margin-left: auto; }
  .seg { order: 3; margin-left: 0; width: 100%; }
  .seg-btn { flex: 1; min-height: 40px; }
  html { scroll-padding-top: 116px; }
  .page-title { font-size: 26px; }
  .picker, .member-card { padding: 16px; }
  .member-name { font-size: 26px; }
  .run-row .btn { width: 100%; min-height: 48px; font-size: 16px; }
  .versus { grid-template-columns: 1fr; }
  .vs { justify-self: center; }
  .finding { padding: 16px; }
  .reads li, .verdicts li { grid-template-columns: 1fr; gap: 4px; }
  .agreed-link { grid-template-columns: 1fr; gap: 6px; }
  .src { margin-left: 0; }
  .lens-nav {
    position: sticky; top: 100px; z-index: 10; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin: 0 -14px; padding: 8px 14px; background: oklch(0.970 0.007 85 / 0.92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  }
  .lens-nav::-webkit-scrollbar { display: none; }
  .nav-link { flex: none; }
  html { scroll-padding-top: 164px; }
  .chip { min-height: 40px; }
  .nav-link { min-height: 40px; }
  .cite { min-height: 32px; }
  .foot { flex-direction: column; }
}
@media (pointer: coarse) { .input { font-size: 16px; } }

@media (prefers-reduced-motion: reduce) {
  .enter { animation: fade 160ms ease both; }
  @keyframes fade { from { opacity: 0; } }
  .combo-list { animation: fade 120ms ease; }
  .btn:active, .chip:active { transform: none; }
  .reveal { transition: none; }
  .sk, .prog-pending .prog-dot { animation: none; }
  .toast { transition: opacity 160ms ease; transform: translate(-50%, 0); }
}
