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

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-500.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-600.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-700.woff2") format("woff2");
}

:root {
  --bg: #f9fafb;
  --surface: #ffffff;
  --card: #ffffff;
  --ink: #18181b;
  --ink-soft: #3f3f46;
  --muted: #71717a;
  --faint: #a1a1aa;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  --accent: #b85d19;
  --accent-hover: #9a4e14;
  --accent-soft: #fdf4e7;
  --hover: #f9f9fb;
  --header: #ffffff;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  --serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  --mono: Consolas, "SFMono-Regular", monospace;
  --pill-bg: #f4f4f6;
  --pill-hover: #ebebf0;
  --highlight: #b85d19;
  --highlight-soft: #fdf4e7;
  --kept-bg: #e3f1e7;
  --kept-fg: #186337;
  --leak-bg: #fae3df;
  --leak-fg: #991b1b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  color-scheme: light;
  background: #fff;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  font-feature-settings: "kern";
}

h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

a { color: inherit; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 40;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection { background: #fdf4e7; }

.wrap {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--line);
}

.subnav-bar { border-top: 1px solid var(--line); }

.subnav {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav::-webkit-scrollbar { display: none; }

.subnav a {
  flex: none;
  padding: 12px 0 10px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 14.5px;
  text-decoration: none;
  white-space: nowrap;
}

.subnav a:hover { color: var(--ink); }

.subnav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 620;
  border-bottom-color: var(--accent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 620;
  letter-spacing: -0.024em;
  font-size: 15.5px;
}

.brand-mark { display: block; flex: none; width: 28px; height: 28px; }

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14.5px;
  padding: 6px 10px;
  border-radius: 8px;
}

.nav a:hover { color: var(--ink); background: rgba(94, 179, 239, 0.12); }

.nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(94, 179, 239, 0.16);
  font-weight: 600;
}

main { padding-bottom: 72px; }

.page-intro { padding: 16px 0 0; }

h1 {
  font-family: var(--serif);
  font-weight: 520;
  font-size: clamp(34px, 4vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

.subtitle {
  margin-top: 10px;
  max-width: none;
  color: var(--muted);
  font-size: 17.5px;
  line-height: 1.45;
  text-wrap: pretty;
}

.snapshot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin-top: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.snapshot strong { color: var(--ink-soft); font-weight: 600; }
.snapshot .dot { margin: 0 8px; color: var(--faint); }

.bench {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 12px;
}

.bench-main { min-width: 0; }
.bench-main .kpis { margin: 0; width: 100%; align-items: stretch; }
.drop-tools .toolbar { margin: 10px 0 0; }
.bench-main .drop-block { margin-top: 8px; }
.drop-tools[hidden],
.kpis[hidden] { display: none !important; }

.side-filters {
  position: sticky;
  top: 116px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 12px 16px;
}

.filter-clear {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.filter-clear[hidden] { display: none; }

.facet + .facet { margin-top: 22px; }

.facet h2 {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.facet ul {
  list-style: none;
  display: grid;
  gap: 2px;
}

.facet-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 5px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  line-height: 1.35;
}

.facet-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.facet-option .mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  font-size: 10px;
}

.facet-option:hover { background: rgba(94, 179, 239, 0.1); }

.facet-option[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-weight: 600;
}

.facet-count {
  flex: none;
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.facet-option[aria-pressed="true"] .facet-count { color: var(--accent); }

.filter-empty {
  margin: 8px 0 0;
  color: var(--muted);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 24px;
  margin: 0 0 8px;
}

.filter {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.filter select,
.form select,
.form input,
.form textarea {
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--ink);
  font-weight: 500;
}

.filter select {
  min-width: min(280px, 78vw);
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%235d6572' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.form select {
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%235d6572' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-color: var(--surface);
}

.sort-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.scroll-hint {
  display: none;
  margin: 0 0 8px;
  color: var(--faint);
  font-size: 12.5px;
}

.table-scroll {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.board {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 14px;
}

.board caption { caption-side: bottom; }

.board th,
.board td {
  padding: 8px 12px;
  text-align: left;
  vertical-align: middle;
}

.board th:first-child,
.board td:first-child { padding-left: 16px; }

.board th:last-child,
.board td:last-child { padding-right: 16px; }

.board thead th {
  background: #f7fbfe;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.board thead th.col-score {
  white-space: normal;
  vertical-align: bottom;
}

.col-hint {
  display: block;
  margin: 3px 0 0 auto;
  max-width: 16rem;
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: right;
}

.board tbody td { transition: background 120ms ease; }

.board tbody tr + tr td { border-top: 1px solid var(--line); }

.board tbody tr { cursor: pointer; }

.board tbody tr:hover td,
.board tbody tr:focus-within td { background: var(--hover); }

.board tbody tr:hover td:first-child,
.board tbody tr:focus-within td:first-child {
  box-shadow: inset 2px 0 0 var(--accent);
}

.board tr[hidden],
.scroll-hint[hidden],
.table-scroll[hidden],
.filter-empty[hidden] { display: none !important; }

.col-rank { width: 6%; }
.col-agent { width: 16%; }
.col-llm { width: 22%; }
.col-provider { width: 16%; }
.col-scenario { width: 18%; }
.col-score { width: 22%; }

.num { text-align: right; font-variant-numeric: tabular-nums; }

th.num .sort-btn { width: 100%; justify-content: flex-end; }

.sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
}

.sort-btn:hover { color: var(--accent); }

.chevron {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.sort-btn[data-direction="asc"] .chevron { transform: rotate(180deg); }

.rank {
  font-weight: 600;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

tr[data-rank="1"] .rank,
tr[data-rank="2"] .rank,
tr[data-rank="3"] .rank { color: var(--ink); }

.model {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 13px;
  font-weight: 650;
  background: color-mix(in srgb, var(--lab) 12%, white);
  color: var(--lab);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lab) 24%, transparent);
}

.model-link {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.model-name {
  overflow-wrap: anywhere;
}

.agent-name,
.provider-name,
.model-name {
  font-weight: 650;
  font-size: 1em;
  line-height: 1.25;
  letter-spacing: -0.013em;
  color: var(--ink);
}

.model-link:hover .model-name { color: var(--accent); }

.provider,
.metric {
  color: var(--faint);
  font-size: 12.5px;
}

.scenario-name { color: var(--ink-soft); }

.scenario-name,
.metric { display: block; }

.metric { margin-top: 1px; }

.agent-name { overflow-wrap: normal; }

.pill {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: 1px;
  line-height: 1.65;
}

.score-line { overflow-wrap: anywhere; }

.score-val {
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.ci {
  margin-left: 5px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.meter {
  display: block;
  height: 2px;
  width: 92px;
  max-width: 100%;
  margin: 6px 0 0 auto;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}

.meter > span {
  display: block;
  height: 100%;
  background: #b45309;
}

.meter[data-band="low"] > span { background: #3d7a4a; }
.meter[data-band="mid"] > span { background: #b45309; }
.meter[data-band="high"] > span { background: #b91c1c; }

.kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.kpis li {
  flex: 1 1 140px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 8px 12px;
}

.kpis span,
.kpis em {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  font-style: normal;
}

.kpis strong {
  display: block;
  margin-top: 2px;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.kpis em { margin-top: 2px; color: var(--faint); }

.drop-block { margin-top: 8px; }
.drop-block + .drop-block {
  margin-top: 40px;
  padding-top: 8px;
}
.drop-block[hidden] { display: none !important; }

.drop-block h2 {
  margin: 22px 0 0;
  font-size: 22px;
  font-weight: 640;
  letter-spacing: -0.02em;
}

.drop-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13.5px;
}

.drop-meta a { color: var(--accent); text-underline-offset: 3px; }

.means {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.mean {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px 16px;
}

.mean-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mean h2 {
  font-size: 16px;
  font-weight: 640;
  letter-spacing: -0.02em;
}

.mean-score {
  margin-top: 10px;
  font-size: 32px;
  line-height: 1;
  font-weight: 640;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.mean-metric,
.mean p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  text-wrap: pretty;
}

.mean .meter,
.score-panel .meter {
  margin: 10px 0 0;
  width: 100%;
}

.toolbar-note {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.agent {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.agent .pill { margin-left: 0; }

.pill.outlier {
  border-color: #e7c4b0;
  background: #fdf6f1;
  color: #9a3412;
}

.sheet-scroll,
.sheet-fit {
  overflow-x: auto;
  margin-top: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.bench-view[hidden] { display: none !important; }

.bench-view h2 {
  margin: 8px 0;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 640;
  letter-spacing: -0.02em;
}

.view-note {
  margin: 0;
  max-width: 68ch;
  color: var(--muted);
}

#scenarios .view-note { max-width: none; }

.scenario-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
}

.scenario-jump a { font-weight: 650; text-decoration: none; }
.scenario-jump a:hover { color: var(--accent); }

.scenario-block { margin-top: 22px; }

.scenario-block h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.scenario-block p { margin: 0 0 12px; }

.scenario-wrap {
  margin-top: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.scenario-sheet {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}

.scenario-sheet th,
.scenario-sheet td {
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.scenario-sheet thead th {
  background: var(--hover);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.scenario-sheet tbody th {
  font-weight: 650;
  color: var(--ink);
}

.view-drop {
  margin: 22px 0 0;
  font-size: 16px;
  font-weight: 640;
}

.sheet {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.sheet th,
.sheet td {
  padding: 7px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.sheet th {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: #f7fbfe;
}

.sheet td.num,
.sheet th.num { text-align: right; }

.sheet-fit .sheet { width: 100%; }
.sheet-fit .sheet th.num,
.sheet-fit .sheet td.num { width: 1%; }

.sheet th.col-on { background: var(--accent-soft); }
.sheet td.col-on { box-shadow: inset 0 0 0 999px rgba(15, 92, 86, 0.08); }

.sheet td.band-low,
.sheet td.hit-none,
.sheet td.read-yes { background: #e7f3ea; }

.sheet td.band-mid,
.sheet td.hit-some,
.sheet td.read-no { background: #fdf6e3; }

.sheet td.band-high,
.sheet td.hit-all { background: #f8e8e8; }

.sub {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.hash { overflow-wrap: anywhere; }

.sheet tr:last-child td { border-bottom: 0; }

.quiet {
  margin-left: 6px;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.table-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
}

.verdict {
  color: var(--accent);
  font-weight: 650;
}

.job { font-variant-numeric: tabular-nums; }

.excerpt {
  margin: 12px 0 0;
}

.excerpt figcaption {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
}

.excerpt pre {
  margin: 0;
  padding: 10px 12px;
  overflow-x: auto;
  white-space: pre-wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.45;
}

.outcome {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.noscript, .read {
  margin-top: 22px;
  max-width: 68ch;
  color: var(--muted);
  font-size: 14.5px;
  text-wrap: pretty;
}

.read a, .prose a, .facts a, .entry-section a, .mail, .form-status a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.read a:visited, .prose a:visited, .facts a:visited, .entry-section a:visited {
  color: var(--accent-hover);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 13.5px;
}

.footer-inner {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.footer-nav { display: flex; gap: 14px; flex: none; }

.footer-nav a { text-decoration: none; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--accent); }

.page-narrow { padding-top: 16px; }

.prose { max-width: 68ch; }

.page-narrow.prose { max-width: none; }

.page-narrow.prose > :where(p, h1) { max-width: 68ch; }

.about-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 8px 56px;
  margin-top: 8px;
}

.about-cols h2:first-child { margin-top: 22px; }

.about-cols p { max-width: 62ch; }
.prose .lede, .lede {
  margin-top: 12px;
  color: var(--muted);
  font-size: 17.5px;
  line-height: 1.45;
  text-wrap: pretty;
}

.prose h2, .entry-section h2 {
  margin: 34px 0 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
  font-weight: 640;
}

.prose p, .entry-section p { margin: 0 0 12px; text-wrap: pretty; }
.prose p:last-child, .entry-section p:last-child { margin-bottom: 0; }

.rules { list-style: none; margin-top: 8px; }

.rules li {
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.rules h3 {
  font-size: 16px;
  font-weight: 640;
  letter-spacing: -0.015em;
}

.rules h3::before {
  content: counter(rule, decimal-leading-zero);
  counter-increment: rule;
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  font-family: var(--sans);
}

.rules { counter-reset: rule; }
.rules p { margin-top: 6px; color: var(--ink-soft); }

.back { margin: 0 0 10px; font-size: 14px; }
.back a { color: var(--muted); text-decoration: none; }
.back a:hover { color: var(--accent); }

.kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 620;
}

.byline {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

.setup-id {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 24px;
  margin-top: 4px;
}

.setup-id span {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.setup-id strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.entry-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 16px;
}

.score-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px 18px;
}

.score-kicker {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 620;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.score-big {
  margin: 4px 0 6px;
  font-size: 40px;
  line-height: 0.95;
  font-weight: 620;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.score-ci {
  margin-left: 8px;
  font-size: 18px;
  font-weight: 520;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.score-metric { color: var(--ink-soft); font-size: 14.5px; }
.score-range { margin-top: 4px; color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
  margin: 0;
}

.facts > div {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.facts > div:nth-child(-n + 2) { padding-top: 0; }
.facts dt { color: var(--muted); font-size: 13.5px; }
.facts dd { margin: 0; }

.entry-section { margin-top: 20px; max-width: 70ch; }
.entry-section.wide { max-width: none; }
.entry-section.wide > h2 { max-width: 70ch; }
.entry-section.wide > p { max-width: none; }
.entry-section h2 { margin-top: 0; }

.setup {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
}

.note {
  max-width: 70ch;
  margin-top: 28px;
  padding: 16px 18px;
  background: var(--accent-soft);
  border-radius: var(--radius);
}

.note h2 { margin-bottom: 6px; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 36px;
}

.related-grid h2 { margin: 0 0 10px; font-size: 16px; letter-spacing: -0.015em; }

.related {
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.related a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 14px;
  text-decoration: none;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.related li:first-child a { border-top: 0; }
.related a:hover { background: var(--hover); color: var(--ink); }

.rel-rank {
  display: inline-block;
  min-width: 2.2ch;
  margin-right: 8px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.rel-score {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  color: var(--ink);
  white-space: nowrap;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 40px;
  margin-top: 28px;
  align-items: start;
}

.mail {
  display: inline-block;
  margin: 6px 0 10px;
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.form fieldset {
  display: grid;
  gap: 14px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px 14px;
}

.form legend {
  padding: 0 4px;
  font-size: 13px;
  font-weight: 620;
  color: var(--ink);
}

.form {
  display: grid;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 620;
  color: var(--ink-soft);
}

.form input,
.form select,
.form textarea { width: 100%; font-weight: 450; }

.form textarea { resize: vertical; min-height: 140px; line-height: 1.45; }

.primary {
  justify-self: start;
  appearance: none;
  border: 0;
  background: #d9eefb;
  color: #2f6f9e;
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 620;
}

.primary:hover { background: #c9e6f8; }

code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: rgba(94, 179, 239, 0.1);
  padding: 0.05em 0.35em;
  border-radius: 4px;
}

.form-status { color: var(--ink-soft); font-size: 14px; }
.draft {
  margin: 0;
  white-space: pre-wrap;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.45;
  background: var(--bg);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink-soft);
}

.secret-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: 18px;
}

.secret-main { min-width: 0; }

.secret-field {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
}

.secret-search {
  width: 100%;
  appearance: none;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--ink);
  font-weight: 500;
}

.secret-list {
  list-style: none;
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.secret-list li[hidden] { display: none; }

.secret-bundle {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.secret-bundle .filter-clear { margin: 0; }

.secret-bundle .facet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.secret-bundle .facet + .facet { margin-top: 0; }

.secret-bundle .facet h2 {
  margin: 0;
  min-width: 8.5rem;
}

.secret-bundle .facet ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.secret-bundle .facet-option {
  width: auto;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 4px 10px;
}

@media (max-width: 900px) {
  .bench,
  .secret-layout { grid-template-columns: 1fr; gap: 18px; }
  .side-filters { position: static; }
}

@media (max-width: 800px) {
  .means, .entry-grid, .contact-grid, .about-cols, .facts, .setup-id { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .score-panel { max-width: 420px; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 28px); }
  .header-inner {
    min-height: 0;
    padding: 12px 0 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .nav { margin-left: -8px; }
  .page-intro, .page-narrow { padding-top: 12px; }
  h1 { font-size: 32px; }
  .subtitle, .lede { font-size: 16px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .sort-note { text-align: left; }
  .board { font-size: 13px; }
  .board th,
  .board td { padding: 8px 4px; }
  .board th:first-child,
  .board td:first-child { padding-left: 8px; }
  .board th:last-child,
  .board td:last-child { padding-right: 8px; }
  .col-rank { width: 8%; }
  .col-agent { width: 18%; }
  .col-llm { width: 24%; }
  .col-provider { width: 16%; }
  .col-scenario { width: 16%; }
  .col-score { width: 18%; }
  .col-hint { display: none; }
  .mark { width: 22px; height: 22px; font-size: 12px; }
  .score-line { display: flex; flex-direction: column; align-items: flex-end; }
  .ci { margin-left: 0; }
  .board thead th { white-space: normal; line-height: 1.25; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .score-big { font-size: 44px; }
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
}

.pager[hidden] { display: none; }

.pager button {
  min-width: 2.2rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 8px;
  padding: 4px 10px;
}

.pager button[aria-current="page"] {
  font-weight: 700;
  border-color: var(--ink);
}

.pager button:disabled {
  color: var(--faint);
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  .board tbody td { transition: none; }
}

body {
  background: var(--bg);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

.site-footer {
  background: #fff;
}

.footer-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

h1 {
  font-family: var(--sans);
  font-weight: 640;
  font-size: 28px;
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.status-line {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--pill-bg);
}

.page-intro { padding-top: 8px; }

.contact-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  column-gap: 48px;
  row-gap: 22px;
  margin-top: 0;
  align-items: start;
}

.contact-copy {
  max-width: 36ch;
  padding-top: 6px;
}

@media (max-width: 1000px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-copy {
    max-width: 42ch;
  }
}

.contact-copy .lede {
  margin-top: 14px;
}

.contact-copy p:not(.lede) {
  margin-top: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
  text-wrap: pretty;
}

#contact-form {
  justify-self: end;
  max-width: 520px;
  width: 100%;
  margin-top: 0;
}

.filter-header {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px 14px;
  min-width: 0;
  margin: 0;
  padding: 8px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.site-header .clear-link { margin-left: 2px; }

.site-header .f-popover { z-index: 40; }

.site-header .f-col:nth-last-child(-n+2) .f-popover {
  left: auto;
  right: 0;
}

.filter-dropdowns { display: contents; }

.filter-header[data-view="scenarios"] .f-col:not(:has(#dd-scenario)) {
  display: none;
}

.board.log th.num,
.board.log td.num {
  text-align: right;
}

body[data-page="index"] {
  background: #fff;
}

.view-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 14px;
}

.view-tabs a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--pill-bg);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
}

.view-tabs a:hover {
  background: var(--pill-hover);
  color: var(--ink);
}

.view-tabs a[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  font-weight: 600;
}

.f-col {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.f-caption {
  padding-left: 2px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

details.f-dropdown { position: relative; }

details.f-dropdown > summary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 156px;
  max-width: 100%;
  height: 36px;
  padding: 0 13px;
  list-style: none;
  background: var(--pill-bg);
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

details.f-dropdown > summary::-webkit-details-marker { display: none; }

details.f-dropdown > summary:hover { background: var(--pill-hover); }

details.f-dropdown[open] > summary,
details.f-dropdown.has-val > summary {
  background: var(--card);
  border-color: #d4d4d8;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

details.f-dropdown.has-val .f-trig-text {
  color: var(--highlight);
  font-weight: 600;
}

.f-trig-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.f-chev {
  color: var(--muted);
  font-size: 11px;
  transition: transform 0.15s;
}

details.f-dropdown[open] .f-chev { transform: rotate(180deg); }

.f-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  min-width: 240px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.05);
}

.f-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 13.5px;
  cursor: pointer;
  user-select: none;
}

.f-option:hover { background: var(--pill-bg); }

.f-option input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--ink);
  cursor: pointer;
}

.f-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.f-opt-label {
  flex: 1;
  font-weight: 500;
  white-space: nowrap;
}

.clear-link {
  height: 36px;
  margin-left: auto;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.clear-link:hover {
  border-color: #d4d4d8;
  color: var(--ink);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

#benchmarks.card {
  border-radius: 6px;
}

.card .table-scroll {
  overflow-x: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.board.log {
  min-width: 984px;
  table-layout: fixed;
  font-family: var(--sans);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}

.c-rank { width: 52px; }
.c-agent { width: 120px; }
.c-provider { width: 104px; }
.c-scenario { width: 148px; }
.c-secrets { width: 146px; }
.c-runs { width: 76px; }
.c-score { width: 118px; }

.board.log th,
.board.log td {
  padding: 12px 10px;
  font-family: var(--sans);
}

.board.log thead th {
  background: transparent;
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.board.log .sort-btn {
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.board.log .sort-btn:hover {
  color: var(--ink);
}

.board.log .sort-btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}

.board.log tbody tr:hover td,
.board.log tbody tr:focus-within td {
  background: #f9f9fb;
}

.board.log tbody tr:hover td:first-child,
.board.log tbody tr:focus-within td:first-child {
  box-shadow: none;
}

.board.log tbody tr.rank-1 td { background: var(--highlight-soft); }

.board.log tbody tr.rank-1:hover td,
.board.log tbody tr.rank-1:focus-within td {
  background: #faecd8;
}

.rank-pill {
  display: inline-block;
  min-width: 26px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--pill-bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.rank-1 .rank-pill {
  background: var(--highlight);
  color: #fff;
}

.cell-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.board.log .model-link {
  display: inline-flex;
  flex-direction: row;
  color: inherit;
  text-decoration: none;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--pill-bg);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
}

.score-val,
.hm-score,
.stat-num,
.board.log td.num,
.drill .sheet td.num {
  font-family: var(--mono);
}

.score-val { font-weight: 700; }

.meter { display: none; }

.hm-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  margin-bottom: 18px;
}

.hm-note {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 13.5px;
}

.hm-note strong { color: var(--ink); }

.hm-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.hm-bar {
  width: 150px;
  height: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: linear-gradient(90deg, #dcfce7 0%, #fef3c7 45%, #f87171 78%, #991b1b 100%);
}

.heatmap-scroll { overflow-x: auto; }

.heatmap-wrap {
  display: grid;
  gap: 6px;
  min-width: 640px;
  padding: 6px;
  border-radius: 12px;
  background: #ebebf0;
}

.hm-corner,
.hm-colhead,
.hm-rowhead {
  border-radius: 8px;
  background: var(--card);
}

.hm-colhead {
  padding: 12px 10px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
}

.hm-colhead small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
}

.hm-rowhead {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.hm-cell {
  display: block;
  padding: 20px 16px;
  border-radius: 8px;
  color: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.hm-cell:hover {
  position: relative;
  z-index: 1;
  transform: scale(1.015);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.hm-cell.dimmed { opacity: 0.22; }

.hm-cell.hm-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  color: var(--faint);
  cursor: default;
}

.hm-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0.85;
}

.hm-score {
  margin: 10px 0 4px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hm-sub {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  opacity: 0.9;
}

.dd-top {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.dd-top h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.dd-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.stat-box {
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.stat-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stat-num {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 600;
}

.stat-sub {
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
}

.drill h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
}

.drill .sheet-scroll {
  margin-top: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.drill .sheet th {
  background: transparent;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pill {
  display: inline-block;
  margin-left: 0;
  padding: 2px 9px;
  border: 0;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
  vertical-align: baseline;
}

.pill.kept {
  background: var(--kept-bg);
  color: var(--kept-fg);
}

.pill.leaked {
  background: var(--leak-bg);
  color: var(--leak-fg);
}

.method-note {
  margin-top: 16px;
  padding: 13px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.method-title {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.method-note strong { color: var(--ink); }

.sheet th { background: var(--pill-bg); }

.sheet .mono {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.secret-bundle .facet-option { border-radius: 2px; }

.score-big {
  font-family: var(--mono);
  font-size: 56px;
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 28px); }

  .views,
  .bench-view,
  .card .table-scroll,
  .heatmap-scroll {
    max-width: 100%;
  }

  .filter-header {
    justify-content: flex-start;
    width: 100%;
    padding: 4px 0 0;
  }

  .site-header .f-col { flex: 1 1 calc(50% - 14px); }

  .site-header details.f-dropdown,
  .site-header details.f-dropdown > summary {
    width: 100%;
    min-width: 0;
  }

  .card { padding: 14px; }

  .stat-strip { grid-template-columns: 1fr 1fr; }

  .hm-score { font-size: 22px; }

  .hm-cell { padding: 12px 8px; }

  .score-big { font-size: 40px; }

  .sheet-scroll,
  .sheet-fit,
  .scenario-wrap,
  .secret-main { max-width: 100%; }

  .scroll-hint { display: block; }

  .site-header details.f-dropdown > summary,
  .view-tabs a,
  .clear-link { min-height: 44px; }

  .site-header .f-popover {
    width: min(240px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
  }

  .site-header .f-col:nth-child(even) .f-popover {
    left: auto;
    right: 0;
  }

  .board.log {
    min-width: 0;
  }

  .card .table-scroll { overflow: visible; }

  .board.log,
  .board.log thead,
  .board.log tbody { display: block; }

  .board.log thead tr {
    display: flex;
    justify-content: flex-end;
  }

  .board.log thead th { display: none; }

  .board.log thead th.col-score {
    display: block;
    width: auto;
    padding: 0 0 8px;
  }

  .board.log tbody tr {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    align-items: start;
    column-gap: 12px;
    row-gap: 12px;
    padding: 14px 0;
    container-type: inline-size;
  }

  @container (max-width: 300px) {
    .board.log tbody td:nth-child(5) .tag {
      width: 0;
      min-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }

  .board.log tbody tr + tr {
    border-top: 1px solid var(--line);
  }

  .board.log tbody td {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    width: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    text-align: left;
    color: var(--ink);
  }

  .board.log tbody td::before {
    content: attr(data-label);
    color: var(--faint);
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .board.log tbody tr.rank-1,
  .board.log tbody tr.rank-1:hover,
  .board.log tbody tr.rank-1:focus-within {
    background: var(--highlight-soft);
    border-radius: 10px;
    margin-right: -12px;
    margin-left: -12px;
    padding: 16px 12px;
  }

  .board.log tbody tr.rank-1 td,
  .board.log tbody tr.rank-1:hover td,
  .board.log tbody tr.rank-1:focus-within td,
  .board.log tbody tr:hover td,
  .board.log tbody tr:focus-within td {
    background: transparent;
  }

  .board.log tbody td:nth-child(1) { grid-area: 1 / 1; }

  .board.log tbody td:nth-child(8) {
    grid-area: 1 / 1 / 2 / -1;
    justify-self: end;
    width: max-content;
    align-items: flex-end;
    text-align: right;
    white-space: nowrap;
  }

  .board.log tbody td:nth-child(2),
  .board.log tbody td:nth-child(5) {
    grid-column: 1;
    min-width: 0;
  }

  .board.log tbody td:nth-child(2) {
    grid-row: 2;
    min-width: max-content;
    white-space: nowrap;
  }

  .board.log tbody td:nth-child(5) {
    grid-row: 3;
    min-width: max-content;
    white-space: nowrap;
  }

  .board.log tbody td:nth-child(3),
  .board.log tbody td:nth-child(6) {
    grid-column: 2;
    min-width: 0;
    overflow: hidden;
  }

  .board.log tbody td:nth-child(3) {
    grid-row: 2;
    white-space: nowrap;
  }

  .board.log tbody td:nth-child(6) { grid-row: 3; }

  .board.log tbody td:nth-child(6)::before {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .board.log tbody td:nth-child(4),
  .board.log tbody td:nth-child(7) {
    grid-column: 3;
    min-width: max-content;
    white-space: nowrap;
  }

  .board.log tbody td:nth-child(4) { grid-row: 2; }

  .board.log tbody td:nth-child(7) { grid-row: 3; }

  .board.log tbody td:nth-child(4),
  .board.log tbody td:nth-child(6),
  .board.log tbody td:nth-child(7) {
    justify-self: start;
    width: max-content;
    max-width: 100%;
  }

  .board.log tbody td:nth-child(4)::before,
  .board.log tbody td:nth-child(6)::before,
  .board.log tbody td:nth-child(7)::before {
    align-self: stretch;
    text-align: left;
  }

  .board.log tbody td:nth-child(4) .cell-val,
  .board.log tbody td:nth-child(6) .cell-val,
  .board.log tbody td:nth-child(7) .cell-val {
    align-self: stretch;
    text-align: center;
  }

  .board.log tbody td:nth-child(8) .score-val { font-size: 20px; }

  .board.log tbody td:nth-child(3) .model-link,
  .board.log tbody td:nth-child(3) .cell-with-icon {
    display: flex;
    max-width: 100%;
    min-width: 0;
  }

  .board.log tbody td:nth-child(3) .f-icon { flex: none; }

  .board.log tbody td:nth-child(3) .cell-with-icon > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .board.log .cell-with-icon { max-width: 100%; }

  .drill .sheet {
    width: 100%;
    min-width: 0;
  }

  .drill .sheet,
  .drill .sheet tbody { display: block; }

  .drill .sheet thead { display: none; }

  .drill .sheet tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    padding: 10px 0;
  }

  .drill .sheet td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    text-align: left;
    white-space: normal;
  }

  .drill .sheet td:nth-child(1) {
    order: 1;
    font-weight: 600;
  }

  .drill .sheet td:nth-child(7) {
    order: 2;
    margin-left: auto;
    font-size: 18px;
    text-align: right;
  }

  .drill .sheet td:nth-child(2) {
    order: 3;
    flex: 1 1 100%;
  }

  .drill .sheet td:nth-child(n+3):nth-child(-n+6) { order: 4; }

  .drill .sheet td[data-label]::before {
    content: attr(data-label);
    margin-right: 4px;
    color: var(--faint);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .scenario-sheet {
    min-width: 0;
  }

  .scenario-sheet,
  .scenario-sheet tbody { display: block; }

  .scenario-sheet thead { display: none; }

  .scenario-sheet tr {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .scenario-sheet th,
  .scenario-sheet td {
    display: block;
    width: auto;
    padding: 2px 0;
    border: 0;
  }

  .scenario-sheet td:nth-child(2)::before { content: "Where it sits"; }

  .scenario-sheet td:nth-child(3)::before { content: "How it can leave"; }

  .scenario-sheet td::before {
    display: block;
    margin-bottom: 2px;
    color: var(--faint);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .heatmap-wrap { min-width: 0; }

  .hm-corner,
  .hm-rowhead {
    position: sticky;
    left: 0;
    z-index: 2;
    box-shadow: 6px 0 0 #ebebf0;
  }
}
