:root {
  color-scheme: light;
  --paper: #fbfbf9;
  --ink: #1a1a1a;
  --secondary: #5c5c5c;
  --hairline: #e4e4e0;
  --accent: #2348a8;
  --pass: #2f7d4f;
  --worse: #a6423a;
  --progress: #b07a1a;
  --pending: #9a9a96;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.report { width: min(100% - 48px, 980px); margin: 0 auto; padding: 42px 0 64px; }
.report-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 30px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
h1 { margin-bottom: 5px; font-size: clamp(38px, 6vw, 52px); line-height: 1.08; letter-spacing: -.025em; }
h2 { margin-bottom: 15px; font-size: 30px; line-height: 1.2; }
h3 { margin-bottom: 5px; font-size: 20px; line-height: 1.3; }
.subtitle { margin-bottom: 7px; color: var(--secondary); }
.byline { margin-bottom: 0; font-size: 14px; }
.updated-at { margin: 9px 0 0; color: var(--secondary); font: 12px/1.4 var(--mono); white-space: nowrap; }
.page-section { border-top: 1px solid var(--hairline); padding: 31px 0 34px; }
.project-section p { max-width: 820px; margin-bottom: 0; }
.test-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.test-steps li { display: grid; grid-template-columns: 27px minmax(0, 1fr); gap: 9px; align-items: start; }
.step-number { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font: 12px var(--mono); }
.test-steps h3 { margin: -2px 0 6px; font-size: 19px; }
.test-steps p { margin: 0; color: var(--secondary); font-size: 14px; line-height: 1.5; }
.benchmarks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 22px 0 0; padding-top: 15px; border-top: 1px solid var(--hairline); }
.benchmarks p { margin: 0; font-size: 14px; }
.benchmarks strong { font-weight: 600; }
.reference-note, .benchmark-glossary { max-width: 850px; margin: 10px 0 0; color: var(--secondary); font-size: 13px; }
.benchmark-glossary strong { color: var(--ink); font-weight: 600; }
.trust-details { margin-top: 18px; }
summary { cursor: pointer; color: var(--accent); }
.trust-details > p { margin: 12px 0; color: var(--secondary); font-size: 14px; }
.table-scroll { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th { color: var(--secondary); font-weight: 500; }
th, td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
td:last-child, th:last-child { padding-right: 0; }
.task-check-table { min-width: 590px; }
.source-note { margin: 10px 0 0 !important; font-size: 13px !important; }
.running-sentence { margin: 0 0 15px; }
.alert-note { margin: -2px 0 17px; color: var(--worse); font-size: 14px; }
.alert-note[hidden] { display: none; }
.alert-note a { margin-left: 4px; }
.stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.stat-cell { min-width: 0; padding: 14px 18px 13px 0; }
.stat-cell + .stat-cell { padding-left: 18px; border-left: 1px solid var(--hairline); }
.stat-cell h3 { margin-bottom: 5px; color: var(--secondary); font: 12px/1.45 var(--mono); }
.stat-value { margin: 0; font: 15px/1.5 var(--mono); }
.stat-detail { margin: 3px 0 0; color: var(--secondary); font: 11px/1.5 var(--mono); }
.sparkline { display: block; width: 100%; height: 28px; margin: 5px 0 0; overflow: visible; }
.sparkline polyline { fill: none; stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.section-intro { max-width: 740px; margin: -4px 0 19px; color: var(--secondary); }
.ideas-list { border-top: 1px solid var(--hairline); }
.idea-entry { padding: 18px 0 20px; border-bottom: 1px solid var(--hairline); }
.idea-toggle { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: start; width: 100%; gap: 8px 12px; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.idea-title-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 12px; }
.idea-toggle > .idea-title-line { grid-column: 1; }
.idea-title-line strong { font: 500 23px/1.25 var(--serif); }
.idea-id { color: var(--secondary); font: 12px/1.5 var(--mono); }
.queue-label { grid-column: 2; align-self: start; color: var(--secondary); font: 12px/1.5 var(--mono); }
.idea-chevron { grid-column: 3; grid-row: 1; justify-self: end; color: var(--accent); font: 16px/1.4 var(--mono); }
.idea-toggle[aria-expanded="true"] .idea-chevron { transform: rotate(90deg); }
.queued-ideas { margin-top: 18px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.queued-ideas > summary { padding: 12px 0; color: var(--ink); font: 500 17px/1.4 var(--sans); }
.queued-ideas[open] > summary { border-bottom: 1px solid var(--hairline); }
.queued-item { border-bottom: 1px solid var(--hairline); }
.queued-item:last-child { border-bottom: 0; }
.queued-row { display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 3px 12px; align-items: center; padding: 11px 0; color: var(--ink); list-style: none; cursor: pointer; }
.queued-row::-webkit-details-marker { display: none; }
.queued-row-title { grid-column: 1; display: flex; min-width: 0; flex-wrap: wrap; align-items: baseline; gap: 3px 11px; }
.queued-row-title strong { font: 500 17px/1.3 var(--serif); }
.queued-biology { grid-column: 1; min-width: 0; overflow: hidden; color: var(--secondary); font-size: 13px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.queued-chevron { grid-column: 2; grid-row: 1 / span 2; justify-self: end; color: var(--accent); font: 16px/1.4 var(--mono); }
.queued-item[open] > .queued-row .queued-chevron { transform: rotate(90deg); }
.queued-item > .idea-entry { padding-top: 13px; }
.idea-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 24px; margin: 11px 0 15px; }
.idea-copy p { margin: 0; font-size: 14px; }
.idea-copy strong { font-weight: 600; }
.stage-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 3px 0 0; padding: 0; list-style: none; }
.stage-step { position: relative; min-width: 0; display: grid; grid-template-rows: 26px auto; justify-items: center; align-content: start; text-align: center; }
.stage-node { z-index: 1; display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid var(--pending); border-radius: 50%; background: var(--paper); color: var(--pending); font: 15px/1 var(--mono); }
.stage-step.is-done .stage-node { border-color: var(--pass); background: var(--pass); color: var(--paper); }
.stage-step.is-active .stage-node { border: 2px solid var(--progress); color: var(--progress); }
.stage-step.is-stopped .stage-node { border-color: var(--worse); color: var(--worse); font-size: 19px; }
.stage-label { margin-top: 5px; font: 11px/1.35 var(--mono); }
.stage-note { max-width: 215px; margin: 4px 4px 0; color: var(--secondary); font-size: 12px; line-height: 1.4; }
.stage-step:nth-child(2) .stage-note { color: var(--ink); }
.is-faded { opacity: .45; }
.track-link { position: absolute; z-index: 0; top: 8px; left: 50%; width: 100%; height: 8px; overflow: visible; }
.track-link line { stroke: var(--hairline); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.track-link line.is-active { stroke: var(--accent); stroke-dasharray: 4 4; animation: dash-flow 1.5s linear infinite; }
.track-link.vertical, .track-link.is-hidden { display: none; }
@keyframes dash-flow { to { stroke-dashoffset: -16; } }
.idea-details { padding-top: 18px; }
.result-panel + .result-panel { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--hairline); }
.result-panel h4 { margin: 0 0 7px; font: 500 17px/1.35 var(--serif); }
.idea-details[hidden] { display: none; }
.plot-wrap { width: 100%; margin: 3px 0 14px; }
.forest-plot { display: block; width: 100%; height: auto; overflow: visible; }
.forest-plot .meaning-band { fill: var(--hairline); }
.forest-plot .zero-line { stroke: var(--pending); stroke-width: 1; }
.forest-plot .axis-line, .forest-plot .tick-line { stroke: var(--secondary); stroke-width: .8; }
.forest-plot .interval { stroke: var(--accent); stroke-width: 2; }
.forest-plot .cap { stroke: var(--accent); stroke-width: 1.5; }
.forest-plot .point { fill: var(--accent); }
.forest-plot text { fill: var(--secondary); font: 12px var(--mono); }
.plot-caption { margin: 0 0 14px; color: var(--secondary); font-size: 13px; }
.result-table { min-width: 660px; }
.result-table td, .result-table th { white-space: nowrap; }
.table-hint { display: none; }
.decision-rule { margin: 15px 0 8px; font-size: 14px; }
.record-links { display: flex; flex-wrap: wrap; gap: 5px 16px; margin-top: 11px; font-size: 13px; }
.no-results { margin: 16px 0 5px; color: var(--secondary); font-size: 14px; }
.source-line { margin: 11px 0 0; color: var(--secondary); font: 11px/1.5 var(--mono); overflow-wrap: anywhere; }
.standard-methods { margin-top: 31px; padding-top: 23px; border-top: 1px solid var(--hairline); }
.standard-methods h3 { margin-bottom: 5px; font-size: 22px; }
.standard-methods > p { margin-bottom: 13px; color: var(--secondary); font-size: 14px; }
.standard-methods > .table-hint { margin: -5px 0 9px; }
.baseline-table { min-width: 410px; }
.baseline-table td:first-child { width: 52%; }
.baseline-id { display: block; color: var(--secondary); font: 11px/1.4 var(--mono); }
.queue-note { margin: 12px 0 0; color: var(--secondary); font-size: 13px; }
.source-record-links { color: var(--secondary); }
.explainer-copy { max-height: 220px; overflow: auto; padding: 13px 15px; border: 1px solid var(--hairline); border-radius: 3px; }
.explainer-copy p { margin-bottom: 11px; font-size: 14px; }
.explainer-copy p:last-child { margin-bottom: 0; }
.report-footer { padding-top: 22px; padding-bottom: 0; }
.project-log { margin-bottom: 16px; }
.project-log[hidden] { display: none; }
.log-entries { max-height: 250px; overflow: auto; margin: 11px 0 0; padding: 0; list-style: none; }
.log-entries li { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--hairline); font-size: 13px; }
.log-entries time { color: var(--secondary); font: 11px/1.5 var(--mono); }
.footer-note { margin: 0; color: var(--secondary); font-size: 12px; }
.source-dialog { width: min(900px, calc(100% - 30px)); max-width: none; max-height: 85vh; padding: 18px; border: 1px solid var(--hairline); border-radius: 3px; background: var(--paper); color: var(--ink); }
.source-dialog::backdrop { background: rgb(0 0 0 / 55%); }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.dialog-head h2 { margin: 0; font-size: 24px; }
.dialog-head button { padding: 4px 8px; border: 1px solid var(--hairline); border-radius: 3px; background: transparent; color: var(--ink); cursor: pointer; }
.source-name { margin: 5px 0 12px; color: var(--secondary); font: 12px var(--mono); }
.source-dialog pre { max-height: 65vh; overflow: auto; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.55 var(--mono); }
.mono { font-family: var(--mono); }
[hidden] { display: none !important; }

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #141414;
    --ink: #e8e8e6;
    --secondary: #aaa9a5;
    --hairline: #383835;
    --accent: #8fa8e8;
    --pass: #62b27c;
    --worse: #e27d74;
    --progress: #d6a84e;
    --pending: #858581;
  }
}

@media (max-width: 760px) {
  .report { width: min(100% - 34px, 600px); padding-top: 27px; }
  .report-header { gap: 12px; padding-bottom: 24px; }
  .updated-at { max-width: 115px; white-space: normal; text-align: right; font-size: 10px; }
  h1 { font-size: 42px; }
  h2 { font-size: 27px; }
  .test-steps { grid-template-columns: 1fr; gap: 15px; }
  .test-steps li { grid-template-columns: 27px minmax(0, 1fr); }
  .test-steps p { max-width: 520px; }
  .benchmarks { grid-template-columns: 1fr; gap: 10px; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat-cell, .stat-cell + .stat-cell { padding: 12px 0; border-left: 0; }
  .stat-cell + .stat-cell { border-top: 1px solid var(--hairline); }
  .sparkline { max-width: 220px; }
  .idea-copy { grid-template-columns: 1fr; gap: 6px; }
  .table-hint { display: block; margin: 4px 0 7px; color: var(--secondary); font-size: 11px; }
  .stage-track { grid-template-columns: 1fr; gap: 0; justify-items: stretch; }
  .stage-step { min-height: 61px; grid-template-columns: 25px minmax(0, 1fr); grid-template-rows: auto auto; justify-items: start; column-gap: 10px; text-align: left; }
  .stage-node { grid-column: 1; grid-row: 1 / span 2; }
  .stage-label { grid-column: 2; margin: 0; }
  .stage-note { grid-column: 2; max-width: none; margin: 2px 0 0; }
  .track-link.horizontal { display: none; }
  .track-link.vertical { display: block; top: 23px; left: 8px; width: 8px; height: 38px; }
  .track-link.vertical line { stroke-width: 1.5; }
  .log-entries li { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 420px) {
  .report { width: calc(100% - 28px); padding-top: 21px; }
  .report-header { align-items: flex-start; gap: 8px; }
  h1 { font-size: 38px; }
  .subtitle { max-width: 255px; font-size: 14px; line-height: 1.45; }
  .updated-at { max-width: 98px; margin-top: 4px; font-size: 9px; }
  .page-section { padding: 25px 0 27px; }
  .idea-title-line strong { font-size: 21px; }
  .idea-toggle { gap: 6px 8px; }
  .result-table { min-width: 610px; }
}

@media (prefers-reduced-motion: reduce) {
  .track-link line.is-active { animation: none; }
}
