:root {
  --paper: #fff;
  --ink: #171717;
  --body: #404040;
  --muted: #737373;
  --line: rgba(229, 229, 229, .7);
  --tint: #fafafa;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--ink); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; background: radial-gradient(ellipse 700px 700px at 90% 240px, #00000006, transparent 75%), #fff; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
a, button, input { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a, button { transition: background .18s, border-color .18s, color .18s; }
a:hover { color: #525252; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid #525252; outline-offset: 4px; }
::selection { background: #dce9ed; }
p, h1, h2, h3, h4, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 600; }
svg { display: block; }
img { max-width: 100%; height: auto; }
.container { width: 100%; max-width: 960px; margin-inline: auto; padding-inline: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 100; padding: 10px 16px; color: white; background: #171717; }
.skip-link:focus { top: 10px; }

/* Compact navigation and an academic title block. */
.header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: #ffffffdf; backdrop-filter: blur(12px); }
.header-inner { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { font-size: 16px; font-weight: 600; letter-spacing: -.4px; white-space: nowrap; }
.header nav { display: flex; align-items: center; justify-content: flex-end; gap: 21px; margin-left: auto; font-size: 13px; color: #525252; }
.header nav a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.header nav a:hover { color: #171717; text-decoration: underline; text-underline-offset: 5px; }
.language { min-width: 38px; min-height: 38px; padding: 5px; border: 1px solid #e5e5e5; border-radius: 9px; background: transparent; font-size: 12px; }
.language:hover { background: #f5f5f5; }
.hero { padding: 64px 0 40px; display: grid; grid-template-columns: 3fr 2fr; gap: 32px; align-items: center; }
.hero-copy { min-width: 0; }
.hero h1 { font-size: 56px; line-height: 1.08; letter-spacing: -1.8px; text-wrap: balance; }
.paper-subtitle { margin-top: 15px; color: #404040; font-size: 20px; line-height: 1.4; font-weight: 500; letter-spacing: -.25px; }
.hero-description { margin-top: 22px; color: #525252; font-size: 18px; line-height: 1.55; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 6px 13px; border: 1px solid #dedede; border-radius: 12px; font-size: 14px; background: #ffffffaa; line-height: 1.4; }
.button svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.button:hover { background: #f5f5f5; border-color: #bdbdbd; color: #171717; }
.authors { margin-top: 17px; color: #404040; font-size: 13px; line-height: 1.8; }
.authors a { text-decoration: underline; text-decoration-color: #a3a3a3; text-underline-offset: 3px; }
.authors a:hover { color: #171717; text-decoration-color: currentColor; }
.authors sup { font-size: 9px; margin-left: 1px; }
.author-note { margin-top: 4px; font-size: 12px; color: #737373; }
.hero-teaser { padding: 12px; border: 1px solid #ececec; border-radius: 24px; background: #ffffff80; }
.hero-teaser img { display: block; width: 100%; border-radius: 16px; }

/* Consistent reading width, neutral typography, and quiet separators. */
.section { border-top: 1px solid var(--line); padding-block: 48px; }
h2 { font-size: 30px; line-height: 1.25; letter-spacing: -.6px; }
h3 { font-size: 18px; line-height: 1.4; letter-spacing: -.2px; }
.prose { margin-top: 20px; color: var(--body); font-size: 16px; line-height: 1.8; }
.prose p + p { margin-top: 16px; }
.section-intro { margin-top: 16px; color: #525252; font-size: 16px; line-height: 1.7; }
.paper-figure { margin-top: 24px; padding: 12px; background: #ffffffa6; border: 1px solid #e5e5e5; border-radius: 20px; }
.figure-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 6px 5px 14px; }
.figure-heading h3 { font-size: 16px; font-weight: 500; }
.figure-heading p { color: #737373; font-size: 12px; margin-top: 4px; }
.figure-open { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 38px; padding: 6px 10px; border: 1px solid #e5e5e5; border-radius: 9px; font-size: 12px; white-space: nowrap; }
.figure-open:hover { background: #f5f5f5; }
.figure-open > span:last-child { font-size: 20px; }
.figure-image { display: block; border-radius: 10px; overflow: hidden; cursor: zoom-in; }
.paper-figure img { display: block; width: 100%; }
.paper-figure figcaption { margin-top: 12px; padding: 0 5px 5px; font-size: 13px; line-height: 1.65; color: #525252; }
.paper-figure figcaption a { text-decoration: underline; text-underline-offset: 3px; }
.method-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.method-step { padding: 18px; border: 1px solid #e5e5e5; border-radius: 16px; }
.method-step h3 { margin-bottom: 10px; }
.method-step p { color: #525252; font-size: 15px; line-height: 1.75; }
.objective { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 22px; padding: 16px 18px; margin-top: 24px; border: 1px solid #e5e5e5; border-radius: 12px; background: #fafafa; }
.objective-label { font-size: 11px; letter-spacing: .6px; color: #737373; }
.equation { font-family: Georgia, serif; font-size: 25px; white-space: nowrap; }
.equation sub { font-family: var(--font); font-size: 10px; }
.objective-detail { font-size: 12px; color: #737373; }

/* The interactive schematic follows the same neutral figure treatment. */
.demo-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; margin-top: 24px; align-items: center; }
.hero-visual { overflow: hidden; border: 1px solid #dedede; border-radius: 16px; background: #f5f5f3; }
.viewer-heading { padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #e5e5e5; }
.viewer-label { font-size: 10px; font-weight: 500; letter-spacing: .9px; color: #525252; }
.viewer-label i { display: none; }
.viewer-index { color: #737373; font-size: 10px; }
.gaze-scene { width: 100%; max-height: 380px; }
.viewer-bottom { background: #fff; border-top: 1px solid #e5e5e5; }
.viewer-controls { display: flex; align-items: center; gap: 15px; padding: 14px 16px 10px; }
.play-button { width: 40px; min-width: 40px; height: 40px; border: 1px solid #d4d4d4; border-radius: 10px; background: #fff; font-size: 12px; }
.play-button:hover { background: #f5f5f5; }
.viewer-controls input { min-width: 0; width: 100%; height: 30px; accent-color: #404040; cursor: pointer; }
.viewer-controls output { font-family: monospace; font-size: 11px; white-space: nowrap; }
.viewer-controls output span { color: #a3a3a3; }
.viewer-caption { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 0 16px 15px; color: #737373; font-size: 10px; }
.viewer-caption > span:first-child { display: flex; align-items: center; gap: 5px; }
.viewer-caption i { width: 5px; height: 5px; background: #809fa5; border-radius: 50%; }
.gaze-line { fill: none; stroke: #737373; stroke-width: 1.6; }
.gaze-node { fill: #e5e5e5; stroke: #737373; stroke-width: 1.5; }
.gaze-node.active { fill: #a9cbd1; stroke: #587e86; stroke-width: 1.5; }
.gaze-number { fill: #262626; font-family: monospace; font-weight: 600; font-size: 10px; text-anchor: middle; dominant-baseline: central; }
.gaze-halo { fill: #83abb4; fill-opacity: .12; stroke: #83abb4; stroke-opacity: .3; }
.demo-explanation { min-width: 0; }
.demo-explanation h3 { font-size: 18px; }
.demo-explanation ol { margin: 20px 0 0; padding-left: 23px; }
.demo-explanation li { padding-left: 4px; font-size: 15px; line-height: 1.7; }
.demo-explanation li + li { margin-top: 18px; }
.demo-explanation strong { font-weight: 600; }
.demo-explanation li p { color: #525252; margin-top: 4px; }
.demo-note { margin-top: 24px; color: #737373; font-size: 12px; line-height: 1.7; }

/* Tables are the primary evidence; the summaries remain understated. */
.result-tabs { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.result-tabs button { border: 1px solid #e5e5e5; border-radius: 9px; background: #fff; padding: 8px 13px; min-height: 40px; font-size: 12px; color: #737373; }
.result-tabs button[aria-selected=true] { background: #f0f0f0; border-color: #cfcfcf; color: #171717; }
.result-tabs button:hover { background: #f5f5f5; color: #171717; }
.results-panel { margin-top: 20px; overflow: hidden; border: 1px solid #e5e5e5; border-radius: 16px; background: #fff; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; }
.results-toolbar h3 { font-size: 17px; font-weight: 600; }
.results-toolbar p { margin-top: 4px; color: #737373; font-size: 12px; }
.segmented { display: flex; gap: 2px; border: 1px solid #e5e5e5; border-radius: 9px; padding: 3px; }
.segmented:empty { display: none; }
.segmented button { border: none; border-radius: 6px; padding: 6px 10px; min-height: 34px; color: #737373; background: transparent; font-size: 11px; white-space: nowrap; }
.segmented button[aria-pressed=true] { color: #171717; background: #ededed; }
.results-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0 20px 20px; }
.comparison-card { padding: 15px; border: 1px solid #e5e5e5; border-radius: 12px; background: #fafafa; }
.comparison-title { font-size: 12px; color: #737373; font-weight: 500; }
.comparison-scoreline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin: 10px 0 15px; }
.comparison-score { font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -.7px; }
.comparison-score small { font-size: 14px; font-weight: 400; color: #737373; margin-left: 2px; }
.comparison-delta { font-size: 10px; color: #525252; line-height: 1.5; }
.comparison-delta.negative { color: #9a4343; }
.comparison-series + .comparison-series { margin-top: 11px; }
.comparison-bar-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 5px; font-size: 10px; color: #737373; font-variant-numeric: tabular-nums; }
.comparison-series.ours .comparison-bar-label { color: #404040; }
.comparison-track { height: 4px; overflow: hidden; border-radius: 3px; background: #ebebeb; }
.comparison-bar { display: block; height: 100%; border-radius: 3px; background: #b5b5b5; }
.comparison-series.ours .comparison-bar { background: #525252; }
.comparison-note { grid-column: 1 / -1; padding: 16px; border: 1px solid #e5e5e5; border-radius: 12px; background: #fafafa; color: #525252; font-size: 14px; line-height: 1.7; }
.table-label { padding: 9px 20px; display: flex; justify-content: space-between; border-top: 1px solid #e5e5e5; background: #fafafa; color: #737373; font-size: 10px; letter-spacing: .5px; }
.scroll-hint { display: none; letter-spacing: 0; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
th, td { padding: 12px 20px; text-align: right; border-bottom: 1px solid #e5e5e5; }
th:first-child, td:first-child { text-align: left; }
thead th { background: #fafafa80; color: #525252; font-size: 12px; font-weight: 500; }
tbody th { font-weight: 400; }
tr.ours { background: #f5f5f5b3; }
tr.ours th, tr.ours td { font-weight: 600; }
.best { font-weight: 700; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: none; }
.results-footnote { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 20px; border-top: 1px solid #e5e5e5; color: #737373; font-size: 11px; }
.results-footnote a { white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }

/* Reproduction commands and citation follow the document rhythm. */
.resource-intro { margin-top: 16px; color: #525252; font-size: 16px; }
.resources-section .button { margin-top: 18px; }
.resource-note { margin-top: 15px; color: #737373; font-size: 13px; }
.code-panel { margin-top: 24px; border: 1px solid #e5e5e5; border-radius: 16px; overflow: hidden; background: #fafafa; }
.code-tabs { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-inline: 20px; border-bottom: 1px solid #e5e5e5; }
.code-tablist { display: flex; gap: 22px; }
.code-tablist button { padding: 13px 0; min-height: 48px; border: 0; border-bottom: 2px solid transparent; color: #737373; background: transparent; font-size: 13px; }
.code-tablist button[aria-selected=true] { color: #171717; border-color: #525252; }
.copy-button { min-height: 36px; padding: 6px 11px; border: 1px solid #d4d4d4; border-radius: 9px; background: #fff; font-size: 12px; }
.copy-button:hover { background: #f5f5f5; border-color: #a3a3a3; }
.code-panel pre { margin: 0; padding: 20px; overflow-x: auto; font-size: 13px; line-height: 1.9; color: #404040; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace; }
.code-guide { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 20px; border-top: 1px solid #e5e5e5; color: #737373; font-size: 12px; }
.code-guide:hover { background: #f0f0f0; }
.citation-section > div > p { margin-top: 16px; color: #525252; font-size: 16px; }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 38px; font-size: 13px; margin-top: 11px; text-decoration: underline; text-underline-offset: 4px; }
.citation-box { margin-top: 20px; border: 1px solid #e5e5e5; border-radius: 16px; overflow: hidden; background: #fafafa; }
.citation-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 17px 0; font-size: 10px; letter-spacing: 1px; color: #737373; }
.citation-box pre { margin: 0; padding: 17px; overflow-x: auto; font-size: 13px; line-height: 1.8; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 26px; border-top: 1px solid var(--line); font-size: 12px; color: #737373; }
.footer > div { display: flex; gap: 18px; }
.footer a { display: inline-flex; align-items: center; min-height: 34px; }

/* Accessible progressive enhancement for figures. */
html.figure-viewer-open { overflow: hidden; }
.figure-dialog { width: min(1440px, calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 48px); padding: 0; color: #171717; border: 1px solid #d4d4d4; border-radius: 16px; background: #fff; }
.figure-dialog::backdrop { background: #0008; backdrop-filter: blur(5px); }
.figure-dialog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; border-bottom: 1px solid #e5e5e5; }
.figure-dialog-title { font-size: 18px; letter-spacing: -.2px; margin: 0; line-height: 1.4; }
.figure-dialog-actions { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.figure-original { font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.figure-close { width: 44px; height: 44px; border: 1px solid #e5e5e5; border-radius: 10px; background: #fafafa; font-size: 24px; }
.figure-dialog-canvas { padding: 20px; overflow: auto; max-height: calc(100dvh - 230px); }
.figure-dialog-canvas img { display: block; max-width: 100%; width: auto; min-width: 0; max-height: calc(100dvh - 260px); margin-inline: auto; }
.figure-dialog-caption { padding: 12px 20px 18px; color: #737373; font-size: 12px; }
html[lang=zh-CN] .hero h1 { font-size: 48px; line-height: 1.25; letter-spacing: -1px; }
html[lang=zh-CN] .hero-description { font-size: 17px; line-height: 1.8; }

@media (max-width: 900px) {
  .header-inner { gap: 16px; }
  .header nav { gap: 16px; font-size: 12px; }
  .hero h1 { font-size: 47px; }
  .paper-subtitle { font-size: 18px; }
  .hero-description { font-size: 17px; }
  .authors { font-size: 12px; }
  .hero-teaser { padding: 10px; }
  .results-toolbar { gap: 15px; }
  .results-toolbar h3 { font-size: 16px; }
  .segmented button { font-size: 10px; padding-inline: 8px; }
  html[lang=zh-CN] .hero h1 { font-size: 42px; }
}
@media (max-width: 767px) {
  html { scroll-padding-top: 112px; }
  .header-inner { flex-wrap: wrap; gap: 0 14px; padding-top: 7px; padding-bottom: 4px; }
  .brand { margin-right: auto; }
  .language { min-width: 40px; min-height: 40px; }
  .header nav { order: 3; flex-basis: 100%; justify-content: flex-start; gap: 10px; overflow-x: auto; margin-top: 4px; font-size: 11px; scrollbar-width: none; }
  .header nav::-webkit-scrollbar { display: none; }
  .header nav a { min-height: 35px; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 28px; }
  .hero h1 { font-size: 38px; line-height: 1.12; letter-spacing: -1px; text-wrap: initial; max-width: 530px; }
  .paper-subtitle { font-size: 18px; line-height: 1.5; margin-top: 14px; }
  .hero-description { font-size: 17px; margin-top: 18px; line-height: 1.65; }
  .hero-buttons { margin-top: 23px; }
  .button { min-height: 42px; padding-inline: 15px; }
  .authors { font-size: 13px; margin-top: 18px; }
  .hero-teaser { width: min(100%, 360px); justify-self: center; padding: 12px; }
  .section { padding-block: 40px; }
  h2 { font-size: 25px; line-height: 1.3; letter-spacing: -.4px; }
  .prose { font-size: 15px; line-height: 1.85; }
  .section-intro { font-size: 15px; }
  .method-flow { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
  .method-step { padding: 18px; }
  .objective { justify-content: center; text-align: center; gap: 12px 20px; }
  .objective-detail { flex-basis: 100%; }
  .paper-figure { padding: 10px; border-radius: 16px; }
  .figure-heading { align-items: center; gap: 12px; padding: 4px 2px 12px; }
  .figure-heading h3 { font-size: 14px; }
  .figure-heading p { font-size: 11px; }
  .figure-open { font-size: 10px; min-height: 40px; padding-inline: 8px; gap: 5px; }
  .figure-open > span:last-child { font-size: 17px; }
  .paper-figure figcaption { font-size: 12px; margin-top: 12px; }
  .demo-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { max-width: 480px; width: 100%; margin-inline: auto; }
  .play-button { width: 44px; min-width: 44px; height: 44px; }
  .demo-explanation li { font-size: 15px; }
  .result-tabs { flex-wrap: nowrap; gap: 6px; }
  .result-tabs button { flex: 1; padding: 8px; font-size: 10px; min-height: 44px; line-height: 1.5; }
  .results-toolbar { padding: 18px; flex-direction: column; align-items: flex-start; gap: 15px; }
  .segmented { max-width: 100%; }
  .segmented button { flex: 1; min-width: 0; font-size: 11px; min-height: 36px; padding-inline: 9px; }
  .results-summary { grid-template-columns: 1fr; gap: 12px; padding: 0 18px 18px; }
  .comparison-card { padding: 16px; }
  .comparison-scoreline { margin-block: 9px 14px; }
  .comparison-score { font-size: 30px; }
  .comparison-delta { font-size: 10px; }
  .comparison-bar-label { font-size: 11px; }
  .comparison-note { padding: 15px; font-size: 13px; }
  .table-label { padding-inline: 16px; font-size: 8px; }
  .scroll-hint { display: inline; }
  th, td { padding: 12px 16px; font-size: 12px; }
  thead th { font-size: 10px; }
  th:first-child { position: sticky; left: 0; z-index: 1; background: white; box-shadow: 1px 0 #e5e5e5; }
  thead th:first-child { background: #fafafa; }
  tr.ours th:first-child { background: #f5f5f5; }
  .results-footnote { flex-direction: column; align-items: flex-start; gap: 10px; padding: 15px 16px; font-size: 10px; }
  .resource-intro, .citation-section > div > p { font-size: 15px; }
  .resource-note { font-size: 12px; }
  .code-tabs { padding-inline: 15px; gap: 12px; }
  .code-tablist { gap: 18px; }
  .code-tablist button { font-size: 11px; }
  .copy-button { min-height: 40px; font-size: 11px; padding-inline: 9px; }
  .code-panel pre { padding: 17px 15px; font-size: 11px; }
  .code-guide { padding-inline: 15px; font-size: 11px; }
  .citation-box pre { padding: 15px; font-size: 11px; }
  .citation-top { padding-inline: 15px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 5px; padding-block: 23px; font-size: 11px; }
  .figure-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 30px); border-radius: 12px; }
  .figure-dialog-toolbar { padding: 13px; gap: 12px; }
  .figure-dialog-title { font-size: 14px; }
  .figure-dialog-actions { gap: 10px; }
  .figure-original { font-size: 11px; }
  .figure-dialog-canvas { padding: 15px; max-height: calc(100dvh - 210px); }
  .figure-dialog-canvas img { min-width: 850px; max-width: none; max-height: none; }
  .figure-dialog-caption { font-size: 11px; padding: 10px 15px 17px; }
  html[lang=zh-CN] .hero h1 { font-size: 36px; line-height: 1.3; }
}
@media (max-width: 370px) {
  .container { padding-inline: 18px; }
  .hero h1 { font-size: 35px; }
  .header nav { gap: 10px; }
  .result-tabs button { font-size: 9px; padding-inline: 5px; }
  .viewer-index { display: none; }
  .code-tablist { gap: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
