@font-face {
  font-family: 'Noto Sans SC';
  src: url('assets/fonts/body.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #faf9f5;
  --paper-light: #ffffff;
  --surface: #f0eee6;
  --surface-hover: #ebe8df;
  --ink: #242422;
  --muted: #68675f;
  --line: #d9d6cc;
  --accent: #cd785a;
  --accent-dark: #995039;
  --accent-soft: #f0e2d8;
  --rust: #995039;
  --green: #5e6c58;
  --valid-soft: #e9ede5;
  --moss: var(--accent);
  --plot-grid: #e0ddd5;
  --plot-valid: #65715f;
  --plot-invalid: #b5694f;
  --plot-selection: #cd785a24;
  --sans: 'Noto Sans SC', sans-serif;
  --serif: var(--sans);
  --latin: var(--sans);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --fast: 180ms;
  --space: clamp(24px, 5vw, 72px);
  --report-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 106px; }
html.switching-projection { overflow-anchor: none; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.85 var(--sans); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; border-radius: 0; }
button:disabled { cursor: default; opacity: .4; }
button, a, input, select { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; text-underline-offset: 5px; }
a, button, select { transition: color var(--fast), background-color var(--fast), border-color var(--fast); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, canvas:focus-visible {
  outline: 2px solid var(--accent-dark); outline-offset: 5px;
}
img { display: block; max-width: 100%; }
p, figure, dl { margin: 0; }
p + p { margin-top: 18px; }
h1, h2, h3 { margin: 0; font-family: var(--sans); font-weight: 500; letter-spacing: -.025em; }
h1, h2 { line-height: 1.35; }
h2 { font-size: 46px; }
h3 { font-size: 26px; line-height: 1.4; }
small { font-size: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; clip: rect(0, 0, 0, 0); overflow: hidden; }
.skip-link { position: fixed; top: -80px; left: 24px; z-index: 200; padding: 12px 18px; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 12px; }
.eyebrow, .caption { font-size: 16px; letter-spacing: 0; line-height: 1.8; }
.eyebrow { color: var(--muted); }
.lead { font-size: 20px; line-height: 1.9; }
.caption { color: var(--muted); }
.text-link, .text-button { font-size: 16px; text-decoration: none; border-bottom: 1px solid currentColor; padding: 5px 0; background: none; }
.text-link:hover, .text-button:hover { color: var(--accent-dark); }
.quiet-button { background: none; padding: 8px 14px; font-size: 15px; border: 1px solid var(--line); border-radius: 4px; }
.quiet-button:hover { border-color: var(--ink); background: var(--surface); }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px; font-size: 16px; line-height: 1.7; }
.status.valid { color: var(--green); background: var(--valid-soft); }
.status.invalid { color: var(--rust); background: var(--accent-soft); }
.valid-dot, .invalid-dot { display: inline-block; width: 8px; height: 8px; background: var(--green); border-radius: 50%; flex-shrink: 0; }
.invalid-dot { background: var(--rust); border-radius: 0; transform: rotate(45deg); }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 82px;
  padding: 0 var(--space); display: flex; align-items: center; gap: 40px;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.wordmark { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.wordmark > span { font-size: 23px; font-weight: 500; line-height: 1.15; letter-spacing: 1px; }
.site-header nav { display: flex; gap: clamp(20px, 2.5vw, 36px); margin: auto; }
.site-header nav a { position: relative; font-size: 16px; text-decoration: none; padding: 22px 0; }
.site-header nav a::after { content: ''; position: absolute; bottom: 16px; left: 0; right: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--fast); }
.site-header nav a[aria-current], .site-header nav a:hover { color: var(--accent-dark); }
.site-header nav a[aria-current]::after, .site-header nav a:hover::after { transform: scaleX(1); }
.reading-progress { position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; }
.reading-progress i { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

.opening { position: relative; }
.opening-frame {
  position: relative; width: min(var(--report-width), calc(100% - var(--space) * 2));
  margin: 0 auto; padding: 164px 0 72px; border-bottom: 1px solid var(--line);
}
.opening-frame::after {
  content: ''; position: absolute; height: 1px; bottom: -1px; left: 0; right: 0;
  background: var(--accent); transform: scaleX(var(--opening-progress, 0)); transform-origin: left;
}
.opening-copy { display: grid; grid-template-columns: 1.2fr 1fr; column-gap: 76px; align-items: start; }
.opening .eyebrow { grid-column: 1 / -1; margin-bottom: 28px; font-size: 16px; }
.opening h1 { grid-column: 1; grid-row: 2 / span 2; font-size: clamp(48px, 4.8vw, 70px); line-height: 1.28; }
.title-dot { color: var(--ink); }
.opening-lead { grid-column: 2; grid-row: 2; font-size: 19px; line-height: 1.85; }
.opening-facts { grid-column: 2; grid-row: 3; display: flex; justify-content: space-between; gap: 20px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.opening-facts strong { font-size: 31px; font-weight: 500; line-height: 1.4; font-variant-numeric: tabular-nums; }
.opening-facts span { display: block; font-size: 16px; margin-top: 6px; color: var(--muted); }
.read-link { grid-column: 1; grid-row: 4; display: inline-flex; align-items: center; gap: 30px; justify-self: start; font-size: 17px; margin-top: 28px; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 6px; }
.read-link span { font-size: 24px; transition: transform var(--fast) var(--ease); }
.read-link:hover { color: var(--accent-dark); border-color: var(--accent-dark); }
.read-link:hover span { transform: translateY(4px); }

.chapter { width: min(var(--report-width), calc(100% - var(--space) * 2)); margin: 0 auto; padding: 76px 0 84px; position: relative; }
.chapter-heading { display: flex; align-items: center; gap: 20px; margin-bottom: 32px; }
.chapter-no { font-size: 18px; font-weight: 500; color: var(--accent-dark); }
.chapter-rule { height: 1px; background: var(--line); flex: 1; margin-left: 12px; transform-origin: left; }
.section-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 76px; align-items: start; margin-bottom: 46px; }
.section-top > .lead, .section-top > div > .lead { max-width: 480px; }
.research-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 76px; align-items: start; }
.section-intro .lead { margin-top: 28px; }
.section-intro > p:not(.lead) { font-size: 18px; }
.label-key { display: flex; flex-wrap: wrap; gap: 24px; font-size: 16px; margin-top: 28px; }
.label-key span { display: flex; align-items: center; gap: 8px; }
.specimen { padding: 28px 30px; background: var(--surface); border: 1px solid var(--line); }
.specimen figcaption { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.specimen-text { margin-top: 26px; }
.specimen-text small, .detail-title small { display: block; color: var(--muted); font-size: 16px; margin-bottom: 10px; }
.specimen-text p { font-size: 21px; line-height: 1.55; overflow-wrap: anywhere; }
.specimen-text.original { border-top: 1px solid var(--line); padding-top: 20px; }
.specimen-text.original p { color: var(--ink); }
.specimen-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; gap: 15px; flex-wrap: wrap; }
.abstract-note { display: flex; gap: 48px; padding: 28px 0; margin-top: 52px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.abstract-note > span { font-size: 16px; min-width: 78px; color: var(--muted); }
.abstract-note p { font-size: 18px; max-width: 870px; }

.corpus-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 46px 0 56px; }
.stage-number { font-size: 16px; color: var(--muted); }
.corpus-stage strong { display: block; font-weight: 400; font-size: clamp(34px, 4vw, 54px); line-height: 1.5; margin-top: 10px; font-variant-numeric: tabular-nums; }
.corpus-stage p { font-size: 16px; color: var(--muted); }
.flow-track { height: 2px; background: var(--line); margin-top: 25px; overflow: hidden; }
.flow-track i { display: block; width: 100%; height: 100%; background: var(--accent); transform-origin: left; }
.data-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 76px; }
.split-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.split-heading h3 { font-size: 23px; }
.split-heading > span { font-size: 16px; color: var(--muted); }
.split-band { display: flex; min-height: 110px; color: var(--paper); }
.split-band > div { width: 80%; padding: 18px 22px; background: var(--ink); }
.split-band > div:last-child { width: 20%; min-width: 128px; background: var(--accent-soft); color: var(--ink); }
.split-band b, .test-band b { font-weight: 400; font-size: 24px; }
.split-band span { display: block; font-size: 16px; margin-top: 8px; }
.test-band { border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0; margin: 0 0 20px; font-size: 16px; }
.audit-notes > div { padding: 0 0 23px; margin-bottom: 23px; border-bottom: 1px solid var(--line); }
.audit-notes dt { font-size: 16px; margin-bottom: 8px; }
.audit-notes dd { font-size: 16px; color: var(--muted); margin: 0; }
.evidence-details { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 17px; }
.evidence-details summary { cursor: pointer; list-style: none; font-size: 16px; display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 16px; }
.evidence-details summary::-webkit-details-marker { display: none; }
.evidence-details summary span { font-size: 19px; }
.evidence-details[open] summary span { transform: rotate(45deg); }
.evidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 25px 0; }
.evidence-grid dl > div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); font-size: 16px; padding: 9px 0; }
.evidence-grid dd { margin: 0; }
pre, code { font-family: var(--sans); font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; max-width: 100%; }
code { display: block; }
pre { white-space: pre-wrap; max-height: 400px; overflow: auto; padding: 18px; background: var(--surface); }
.evidence-grid code { margin: 10px 0 18px; }

.methods-chapter { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.methods-inner { padding-top: 76px; padding-bottom: 72px; }
.methods-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 76px; align-items: start; margin-top: 54px; }
.method-stage { position: sticky; top: 108px; align-self: start; padding: 0 0 15px; }
.method-stage figcaption { font-size: 20px; font-weight: 500; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.method-visual { padding: 18px 0 24px; border-bottom: 1px solid var(--line); line-height: 1.5; }
.pipeline-input { width: fit-content; margin: auto; padding: 10px 28px; border: 1px solid var(--ink); background: var(--paper); font-size: 20px; font-weight: 500; }
.pipeline-connector { position: relative; height: 36px; }
.pipeline-connector::before, .pipeline-connector::after { content: ''; position: absolute; border-color: var(--line); border-style: solid; border-width: 0; }
.input-connector::before { left: 0; right: 50%; top: 50%; border-top-width: 1px; }
.input-connector::after { left: 50%; top: 0; height: 50%; border-left-width: 1px; }
.output-connector::before { left: 50%; right: 0; top: 50%; border-top-width: 1px; }
.output-connector::after { left: 50%; top: 50%; bottom: 0; border-left-width: 1px; }
.pipeline-routes { position: relative; display: grid; gap: 7px; padding: 0 23px; }
.pipeline-routes::before, .pipeline-routes::after { content: ''; position: absolute; width: 1px; background: var(--line); }
.pipeline-routes::before { left: 0; top: -18px; bottom: 0; }
.pipeline-routes::after { right: 0; top: 0; bottom: -18px; }
.model-route { position: relative; padding: 11px 19px; border-left: 2px solid var(--line); background: var(--paper); transition: background-color var(--fast), border-color var(--fast); }
.model-route::before, .model-route::after { content: '→'; position: absolute; width: 23px; top: 50%; transform: translateY(-50%); text-align: center; color: var(--muted); font-size: 17px; }
.model-route::before { left: -25px; }
.model-route::after { right: -23px; }
.route-name { display: block; font-size: 16px; font-weight: 500; }
.route-process { display: grid; grid-template-columns: 1fr 30px 110px; gap: 12px; align-items: center; font-size: 17px; }
.route-arrow { color: var(--muted); text-align: center; }
.pipeline-output { display: flex; justify-content: center; gap: 14px; align-items: center; }
.pipeline-output .status { font-size: 17px; padding: 5px 12px; }
.output-divider { color: var(--muted); font-size: 16px; }
.method-visual[data-active-step='0'] [data-route='0'],
.method-visual[data-active-step='1'] [data-route='1'],
.method-visual[data-active-step='2'] [data-route='2'],
.method-visual[data-active-step='3'] [data-route='3'],
.method-visual[data-active-step='4'] [data-route='4'] { border-left-color: var(--accent-dark); background: var(--accent-soft); }
.method-step { min-height: 440px; padding: 30px 0 64px; border-top: 1px solid var(--line); }
.method-step:last-child { min-height: 370px; padding-bottom: 26px; }
.method-no { font-size: 16px; color: var(--accent-dark); display: block; margin-bottom: 21px; }
.method-step h3 { font-size: 30px; margin-bottom: 24px; }
.method-step p { font-size: 18px; }
.method-formula { font-size: 16px; color: var(--muted); line-height: 1.8; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.motion-ready .flow-track i { transform: scaleX(var(--flow-progress, 0)); }
.motion-static .method-stage { position: relative; top: auto; }
.motion-static .model-route { background: var(--paper) !important; border-left-color: var(--line) !important; }

.run-status { font-size: 16px; color: var(--muted); margin-top: 18px; }
.error-message { border: 1px solid var(--rust); padding: 24px; margin-bottom: 30px; }
.error-message button { margin-top: 16px; padding: 10px 18px; background: var(--ink); color: var(--paper); }
.comparison-controls { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 16px; }
.comparison-controls label { display: flex; align-items: center; gap: 14px; }
.comparison-controls > a { margin-left: auto; font-size: 16px; }
select { border: 0; border-bottom: 1px solid var(--line); background: none; border-radius: 0; font-size: 16px; padding: 8px 22px 8px 4px; min-height: 42px; }
.comparison-chart { padding: 26px 0 24px; }
.bar-row { display: grid; grid-template-columns: 190px 1fr 95px; gap: 28px; align-items: center; width: 100%; background: none; padding: 17px 0; text-align: left; }
.bar-row:hover { background: var(--surface); }
.bar-name { font-size: 16px; }
.bar-track { height: 23px; background: var(--surface-hover); }
.bar-fill { display: block; height: 100%; background: #aaa79c; transition: width 360ms var(--ease), background-color var(--fast); }
.bar-row[aria-pressed='true'] .bar-fill { background: var(--accent); }
.bar-value { font-size: 25px; font-variant-numeric: tabular-nums; text-align: right; }
.metric-table-wrap { overflow-x: auto; }
.metric-table { width: 100%; border-collapse: collapse; text-align: right; }
.metric-table th, .metric-table td { padding: 16px 14px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 400; font-variant-numeric: tabular-nums; }
.metric-table th { color: var(--muted); border-top: 1px solid var(--ink); }
.metric-table th:first-child, .metric-table td:first-child { text-align: left; padding-left: 0; }
.metric-table th:last-child, .metric-table td:last-child { padding-right: 0; }
.metric-table .selected { background: var(--surface); }
.result-detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; margin-top: 56px; }
.result-detail-grid > div { min-width: 0; }
.subheading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
.subheading span { font-size: 16px; color: var(--muted); }
.model-selector { display: flex; gap: 24px; flex-wrap: wrap; }
.model-selector button { background: none; font-size: 16px; padding: 8px 0; min-height: 42px; border-bottom: 1px solid transparent; }
.model-selector button[aria-pressed='true'] { color: var(--accent-dark); border-color: var(--accent-dark); }
.result-detail-grid .model-selector { flex-wrap: nowrap; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; padding-bottom: 4px; }
.result-detail-grid .model-selector button { flex: 0 0 auto; white-space: nowrap; }
.confusion-matrix { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 8px; margin: 20px 0; }
.matrix-label { font-size: 16px; color: var(--muted); align-self: center; text-align: center; line-height: 1.7; }
.matrix-label:nth-child(3n + 1) { text-align: left; }
.matrix-cell { min-height: 128px; padding: 18px 12px; background: var(--surface); border: 1px solid transparent; color: var(--ink); }
.matrix-cell.error-cell { background: var(--accent-soft); }
.matrix-cell:hover, .matrix-cell[aria-pressed='true'] { border-color: var(--accent-dark); }
.matrix-cell strong { display: block; font-size: 37px; font-weight: 400; line-height: 1.4; }
.matrix-cell span { display: block; font-size: 16px; margin-top: 8px; }
.model-notes h3 { margin-bottom: 24px; }
.model-notes dl > div { display: grid; grid-template-columns: 118px 1fr; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.model-notes dd { margin: 0; color: var(--muted); }

.search-form { display: flex; align-items: stretch; border-bottom: 1px solid var(--ink); padding-bottom: 14px; margin-bottom: 24px; gap: 22px; }
.search-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 19px; padding: 14px 0; }
.search-form input::placeholder { color: var(--muted); }
.search-form button { min-width: 120px; background: var(--ink); color: var(--paper); padding: 13px 24px; display: flex; align-items: center; justify-content: space-between; gap: 25px; font-size: 16px; border-radius: 4px; }
.search-form button:hover { background: #484840; }
.samples-layout { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 40px; align-items: start; }
.sample-model-panel { position: sticky; top: 108px; max-height: calc(100svh - 136px); overflow-y: auto; background: var(--paper); }
.sample-model-panel h3 { font-size: 18px; font-weight: 500; margin-bottom: 16px; }
.sample-model-buttons { flex-direction: column; gap: 0; }
.sample-model-buttons button { width: 100%; padding: 14px 12px; text-align: left; line-height: 1.65; border-bottom: 1px solid var(--line); border-left: 2px solid transparent; }
.sample-model-buttons button:hover { background: var(--surface); }
.sample-model-buttons button[aria-pressed='true'] { border-left-color: var(--accent-dark); border-bottom-color: var(--line); background: var(--surface); }
.sample-model-compact { display: none; }
.samples-content { min-width: 0; }
.prediction-columns .is-current { color: var(--ink); font-weight: 500; }
.prediction-marks .is-current { box-shadow: inset 0 -1px 0 currentColor; }
.sample-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 25px; }
.filter-buttons { display: flex; gap: 22px; flex-wrap: wrap; }
.filter-buttons button { font-size: 16px; background: none; padding: 10px 0; border-bottom: 1px solid transparent; min-height: 42px; }
.filter-buttons button[aria-pressed='true'] { border-color: var(--accent-dark); color: var(--accent-dark); }
.compact-select { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.active-filters { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 40px; font-size: 16px; color: var(--muted); margin-bottom: 14px; }
.active-filters button { font-size: 16px; }
.sample-list-head { display: grid; grid-template-columns: 1fr 128px 250px; gap: 26px; padding: 15px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); font-size: 16px; color: var(--muted); }
.sample-list-head > span:last-child { text-align: center; white-space: nowrap; font-size: 15px; }
.sample-list { min-height: 700px; }
.sample-row { width: 100%; display: grid; grid-template-columns: 1fr 128px 250px; gap: 26px; background: none; text-align: left; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.sample-row:hover { background: var(--surface); }
.sample-title { display: block; min-width: 0; }
.sample-id { display: block; font-size: 15px; color: var(--muted); margin-bottom: 7px; overflow-wrap: anywhere; }
.sample-title p, .sample-title .empty-title { font-size: 18px; line-height: 1.65; overflow-wrap: anywhere; }
.sample-title .empty-title { color: var(--muted); font-style: italic; }
.prediction-marks { display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; text-align: center; gap: 8px; font-size: 22px; }
.prediction-marks .wrong { color: var(--rust); background: var(--accent-soft); }
.prediction-marks .pending { opacity: .35; }
.sample-empty { padding: 75px 0; text-align: center; color: var(--muted); font-size: 18px; }
.sample-empty p { margin-top: 14px; font-size: 16px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 21px 0; font-size: 16px; }
.pagination > div { display: flex; gap: 22px; align-items: center; }
.pagination button { height: 42px; width: 42px; background: none; border: 1px solid var(--line); font-size: 19px; border-radius: 4px; }
.pagination button:hover:enabled { border-color: var(--ink); background: var(--surface); }

.projection-method { max-width: 900px; margin: -16px 0 34px; font-size: 18px; line-height: 1.9; }
.space-controls { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 20px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.space-controls > label { font-size: 16px; display: flex; align-items: center; gap: 14px; }
.space-layout { display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: start; padding-top: 22px; }
.plot-frame { position: relative; border: 1px solid var(--line); background: var(--paper); min-width: 0; }
.plot-frame canvas { display: block; width: 100%; height: 460px; touch-action: pan-y; cursor: crosshair; }
.plot-empty { min-height: 460px; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 40px; background: var(--surface); }
.plot-empty p { font-size: 18px; }
.plot-caption { display: flex; flex-direction: column; gap: 7px; font-size: 16px; padding: 15px 20px; border-top: 1px solid var(--line); color: var(--muted); }
.plot-tooltip { position: absolute; max-width: 280px; pointer-events: none; background: var(--ink); color: var(--paper); font-size: 16px; line-height: 1.7; padding: 12px 15px; z-index: 5; }
.plot-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 16px; margin-bottom: 26px; }
.plot-legend span { display: flex; align-items: center; gap: 8px; }
.selection-note strong { display: block; font-size: 43px; font-weight: 400; line-height: 1.25; }
.selection-note > span { font-size: 16px; color: var(--muted); }
.space-side > p { font-size: 16px; margin-top: 24px; line-height: 1.9; color: var(--muted); }
.selected-samples { margin-top: 22px; }
.selected-samples button { display: block; width: 100%; background: none; text-align: left; border-bottom: 1px solid var(--line); padding: 11px 0; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.space-side .text-button { font-size: 16px; margin-top: 20px; }

.conclusion-chapter { background: var(--surface); border-top: 1px solid var(--line); }
.conclusion-inner { padding-top: 76px; padding-bottom: 32px; }
.conclusion-grid { display: block; }
.findings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 42px; }
.finding { padding: 22px 0; border-top: 1px solid var(--line); }
.finding p { font-size: 18px; }
.finding > span { font-size: 19px; font-weight: 500; color: var(--ink); display: block; margin-bottom: 12px; }
.finding strong { font-weight: 500; color: var(--accent-dark); }
.limits-note { padding: 30px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 200px 1fr; gap: 40px; margin-top: 40px; }
.limits-note h3 { font-size: 24px; }
.limits-note p { font-size: 18px; }
.reproduce-row { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; padding: 30px 0; border-top: 1px solid var(--line); font-size: 16px; }
.reproduce-row > div { width: 100%; }
.reproduce-row > div p:last-child { font-size: 15px; margin-top: 10px; color: var(--muted); overflow-wrap: anywhere; }
.reproduce-row > a { text-decoration: none; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.source-notes { font-size: 15px; color: var(--muted); margin-bottom: 30px; max-width: 910px; }
.report-footer { display: flex; align-items: center; justify-content: space-between; gap: 25px; border-top: 1px solid var(--line); padding-top: 30px; font-size: 16px; }
.report-footer > a:last-child { text-decoration: none; }

.sample-dialog { border: 1px solid var(--line); background: var(--paper); color: var(--ink); width: min(760px, calc(100% - 32px)); max-height: 88svh; padding: 32px 40px; box-shadow: 0 16px 64px #24242224; overflow: auto; }
.sample-dialog::backdrop { background: #24242266; }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.dialog-top > button { background: none; font-size: 29px; line-height: 1; width: 44px; height: 44px; flex-shrink: 0; }
.dialog-top > .eyebrow { font-size: 16px; overflow-wrap: anywhere; }
.sample-dialog h2 { font-size: 34px; margin-top: 6px; }
.detail-title { padding: 23px 0; border-bottom: 1px solid var(--line); }
.detail-title > p { font-size: 20px; line-height: 1.6; overflow-wrap: anywhere; }
.detail-truth { font-size: 16px; margin: 21px 0; }
.detail-predictions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 24px 0; }
.detail-predictions > div { border-top: 1px solid var(--ink); padding-top: 14px; }
.detail-predictions .prediction-name { font-size: 15px; display: block; margin-bottom: 10px; }
.prediction-score { font-size: 15px; color: var(--muted); display: block; margin-top: 10px; line-height: 1.8; }
.dialog-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line); font-size: 16px; }
.dialog-bottom button { background: none; padding: 8px 0; font-size: 16px; }
.noscript-note { padding: 30px; background: var(--surface); text-align: center; font-size: 16px; }
[hidden] { display: none !important; }

@media (max-width: 1100px) {
  .site-header { gap: 24px; }
  .site-header nav { gap: 18px; }
  .site-header nav a { font-size: 15px; }
  .opening-copy { gap: 48px; }
  .opening-facts { gap: 18px; }
  .opening-facts strong { font-size: 27px; }
  .opening-facts span { font-size: 15px; }
  .research-grid, .section-top, .data-grid, .methods-layout, .result-detail-grid { gap: 48px; }
  .comparison-controls > a { margin-left: 0; }
  .space-layout { grid-template-columns: 1fr 220px; gap: 30px; }
  .metric-table th, .metric-table td { padding: 14px 12px; }
  .findings { gap: 28px; }
}

@media (max-width: 1000px) {
  .samples-layout { display: block; }
  .sample-model-panel { z-index: 20; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; padding: 12px 0; margin-bottom: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: visible; }
  .sample-model-panel h3 { margin: 0; }
  .sample-model-buttons { display: none; }
  .sample-model-compact { display: block; }
  .sample-model-compact select { width: 100%; min-width: 0; }
}


@media (max-width: 850px) {
  :root { --space: 32px; }
  .site-header { height: 76px; gap: 20px; }
  .wordmark > span { font-size: 20px; }
  .site-header nav { gap: 13px; }
  .site-header .quiet-button { padding: 8px; }
  .opening-frame { padding: 144px 0 56px; }
  .opening-copy { grid-template-columns: 1fr; gap: 0; }
  .opening .eyebrow { grid-column: auto; margin-bottom: 28px; }
  .opening h1 { grid-column: auto; grid-row: auto; font-size: 58px; }
  .opening-lead { grid-column: auto; grid-row: auto; margin-top: 28px; max-width: 600px; }
  .opening-facts { grid-column: auto; grid-row: auto; justify-content: flex-start; gap: 50px; width: 100%; max-width: 600px; }
  .read-link { grid-column: auto; grid-row: auto; margin-top: 26px; }
  .chapter { padding: 64px 0 72px; }
  .section-top, .research-grid, .data-grid, .result-detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-top > .lead, .section-top > div > .lead { max-width: 650px; }
  .specimen { padding: 26px; }
  .methods-layout { grid-template-columns: 1fr; gap: 35px; }
  .method-stage { position: relative; top: 0; width: 100%; max-width: 540px; }
  .method-step h3 { font-size: 27px; }
  .method-step p { font-size: 17px; }
  .bar-row { grid-template-columns: 160px 1fr 90px; }
  .sample-row, .sample-list-head { grid-template-columns: 1fr 110px 230px; gap: 18px; }
  .sample-model-panel { top: 92px; }
  .space-layout { grid-template-columns: 1fr; }
  .space-side { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 35px; }
  .selected-samples { grid-column: 2; grid-row: 2 / span 2; margin-top: 0; }
  .space-side > p { margin-top: 0; }
  .findings { grid-template-columns: 1fr; gap: 0; }
  .finding { display: grid; grid-template-columns: 160px 1fr; gap: 30px; }
  .limits-note { grid-template-columns: 160px 1fr; gap: 30px; }
  .metric-table { min-width: 700px; }
}

@media (max-width: 640px) {
  :root { --space: 22px; }
  html { scroll-padding-top: 116px; }
  body { font-size: 17px; }
  h2 { font-size: 33px; }
  h3 { font-size: 23px; }
  .site-header { padding: 0 20px; height: 96px; flex-wrap: wrap; gap: 0; align-content: center; }
  .site-header .wordmark { width: 60%; height: 40px; }
  .wordmark > span { font-size: 19px; }
  .site-header .quiet-button { order: 2; margin-left: auto; height: 36px; min-width: 80px; font-size: 15px; padding: 5px 9px; }
  .site-header nav { order: 3; width: 100%; justify-content: space-between; gap: 8px; margin: 0; height: 34px; }
  .site-header nav a { padding: 5px 0; line-height: 24px; font-size: 15px; }
  .site-header nav a::after { bottom: 2px; }
  .opening-frame { padding: 144px 0 42px; }
  .opening .eyebrow { font-size: 15px; margin-bottom: 23px; }
  .opening h1 { font-size: clamp(35px, 9.3vw, 52px); }
  .opening-lead { font-size: 17px; margin-top: 24px; }
  .opening-lead br { display: none; }
  .opening-facts { gap: 22px; margin-top: 25px; padding-top: 19px; justify-content: space-between; }
  .opening-facts strong { font-size: 25px; }
  .opening-facts span { font-size: 15px; }
  .read-link { font-size: 16px; margin-top: 25px; }
  .chapter { padding: 54px 0 60px; }
  .chapter-heading { gap: 14px; margin-bottom: 28px; }
  .chapter-no { font-size: 18px; }
  .chapter-rule { margin-left: 5px; }
  .section-top { gap: 24px; margin-bottom: 34px; }
  .lead, .section-intro .lead { font-size: 18px; }
  .section-intro > p:not(.lead), .abstract-note p, .method-step p, .finding p, .limits-note p { font-size: 17px; }
  .caption, .label-key, .specimen figcaption, .specimen-text small, .status, .abstract-note > span,
  .stage-number, .corpus-stage p, .split-heading > span, .split-band span, .test-band,
  .audit-notes dt, .audit-notes dd, .evidence-details summary, .evidence-grid dl > div,
  .method-no, .run-status, .comparison-controls, .comparison-controls > a, .bar-name,
  .subheading span, .model-selector button, .matrix-label, .matrix-cell span,
  .model-notes dl > div, .filter-buttons button, .compact-select, .active-filters,
  .active-filters button, .sample-list-head, .pagination, .space-controls > label,
  .plot-caption, .plot-tooltip, .plot-legend, .selection-note > span, .space-side > p,
  .space-side .text-button, .reproduce-row, .source-notes, .report-footer,
  .detail-truth, .dialog-bottom, .dialog-bottom button { font-size: 15px; }
  .specimen { padding: 22px; }
  .specimen-text p { font-size: 19px; }
  .abstract-note { display: block; padding: 22px 0; margin-top: 34px; }
  .abstract-note > span { display: block; margin-bottom: 12px; }
  .corpus-flow { grid-template-columns: 1fr; gap: 24px; margin: 32px 0 40px; }
  .corpus-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
  .corpus-stage strong { grid-column: 2; grid-row: 1 / span 2; align-self: center; justify-self: end; font-size: 33px; margin: 0; }
  .flow-track { grid-column: 1 / -1; margin-top: 9px; }
  .split-heading { align-items: start; flex-direction: column; gap: 10px; }
  .split-band > div { padding: 17px 20px; }
  .split-band > div:last-child { min-width: 120px; }
  .test-band { flex-wrap: wrap; }
  .test-band span:last-child { width: 100%; }
  .evidence-grid { grid-template-columns: 1fr; gap: 28px; }
  .methods-layout { display: flex; flex-direction: column; gap: 24px; margin-top: 34px; }
  .method-stage { position: relative; top: 0; width: 100%; padding: 0; }
  .pipeline-routes { padding: 0 19px; }
  .model-route { padding: 12px 13px; }
  .model-route::before, .model-route::after { width: 19px; }
  .model-route::before { left: -21px; }
  .model-route::after { right: -19px; }
  .route-process { grid-template-columns: minmax(0, 1fr) 24px 90px; gap: 8px; font-size: 16px; }
  .method-step, .method-step:last-child { min-height: 0; padding: 27px 0 35px; }
  .method-step h3 { font-size: 26px; margin-bottom: 18px; }
  .method-formula { font-size: 15px; }
  .comparison-controls { gap: 13px 24px; }
  .comparison-controls label { gap: 7px; flex-wrap: wrap; }
  select { font-size: 15px; }
  .bar-row { grid-template-columns: 106px 1fr 75px; gap: 12px; padding: 13px 0; }
  .bar-value { font-size: 20px; }
  .bar-track { height: 18px; }
  .metric-table th, .metric-table td { padding: 13px 11px; }
  .result-detail-grid { margin-top: 40px; gap: 36px; }
  .confusion-matrix { grid-template-columns: 75px 1fr 1fr; }
  .matrix-cell { min-height: 114px; padding: 12px 8px; }
  .model-notes dl > div { grid-template-columns: 104px 1fr; gap: 15px; }
  .search-form { gap: 14px; padding-bottom: 10px; }
  .search-form input { font-size: 17px; padding: 10px 0; }
  .search-form button { min-width: 77px; padding: 12px 14px; font-size: 15px; gap: 15px; }
  .sample-toolbar { flex-direction: column; align-items: start; gap: 13px; }
  .sample-model-panel { top: 108px; }
  .filter-buttons { gap: 9px 18px; }
  .active-filters { line-height: 1.7; gap: 15px; }
  .sample-list-head, .sample-row { grid-template-columns: 1fr 120px; gap: 10px 18px; }
  .sample-list-head > span:last-child { display: none; }
  .sample-title { grid-column: 1 / -1; grid-row: 1; }
  .sample-title p, .sample-title .empty-title { font-size: 17px; }
  .sample-row > .status { grid-column: 1; grid-row: 2; justify-content: center; justify-self: start; align-self: center; padding: 3px 5px; }
  .prediction-marks { grid-column: 2; grid-row: 2; gap: 5px; font-size: 20px; align-self: center; }
  .pagination > div { gap: 13px; }
  .pagination button { height: 39px; width: 39px; }
  .space-controls { gap: 12px; padding: 12px 0; }
  .projection-method { margin: -10px 0 28px; font-size: 17px; }
  .space-controls .model-selector { width: 100%; }
  .space-layout { padding-top: 10px; }
  .plot-frame canvas { height: 360px; }
  .plot-empty { min-height: 360px; padding: 24px; }
  .plot-caption { padding: 12px; }
  .plot-tooltip { max-width: 220px; }
  .space-side { gap: 25px; }
  .space-side > p { grid-column: 1 / -1; }
  .selected-samples { grid-column: 1 / -1; grid-row: auto; display: block; }
  .space-side > .text-button { grid-column: 1 / -1; }
  .finding { display: block; padding: 20px 0; }
  .finding > span { font-size: 18px; }
  .findings { margin-top: 30px; }
  .limits-note { display: block; margin-top: 20px; padding: 23px 0; }
  .limits-note p { margin-top: 14px; }
  .reproduce-row { gap: 20px; }
  .report-footer { gap: 16px; align-items: start; flex-wrap: wrap; }
  .report-footer > span { width: 45%; }
  .report-footer .wordmark { width: 100%; }
  .report-footer > a:last-child { margin-left: auto; }
  .sample-dialog { padding: 22px; max-height: 90svh; }
  .sample-dialog h2 { font-size: 29px; }
  .detail-title > p { font-size: 18px; }
  .detail-title small { font-size: 15px; }
  .detail-predictions { grid-template-columns: 1fr; gap: 20px; }
  .detail-predictions > div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
  .detail-predictions .prediction-name { font-size: 16px; margin: 0; }
  .detail-predictions .status { font-size: 15px; justify-self: end; }
  .prediction-score { font-size: 15px; margin: 0; }
  .sample-dialog .caption { font-size: 15px; }
}

@media (max-height: 680px) {
  .method-stage { position: relative; top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media print {
  body { background: white; font-size: 11pt; }
  .site-header, .read-link, .motion-toggle, .sample-toolbar, .search-form, .sample-dialog, .plot-tooltip { display: none !important; }
  .opening-frame { padding-top: 40px; }
  .chapter { width: 90%; padding: 40px 0; }
  .methods-chapter, .conclusion-chapter { background: white; }
  .method-stage { position: relative; top: 0; }
  .method-step { min-height: 0; padding: 20px 0; }
  .chapter-rule, .flow-track i, .opening-frame::after { transform: none !important; }
  .sample-row, .finding, .specimen { break-inside: avoid; }
  .sample-list { min-height: 0; }
  .sample-model-panel { display: none; }
  .samples-layout { display: block; }
  .bar-fill, .matrix-cell, .split-band { print-color-adjust: exact; }
  a { text-decoration: none; }
}

.prediction-columns { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.training-status { font-size: 17px; line-height: 1.8; margin-top: 14px; color: var(--accent-dark); }
.paired-comparison { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.paired-comparison > h3 { font-size: 25px; margin-bottom: 16px; }
.paired-comparison > p { font-size: 18px; max-width: 880px; }
.paired-comparison .metric-table-wrap { margin-top: 24px; }
.materials-note { margin-top: 48px; font-size: 18px; line-height: 1.85; }
.materials-note a { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 700px) { .materials-note { font-size: 17px; } }
