:root {
  --ink: #152b38;
  --muted: #536672;
  --accent: #176779;
  --accent-strong: #18556a;
  --line: #dde6eb;
  --wash: #f3f7f9;
  --soft: #e7f2f3;
  --paper: #fff;
  --right: #1d6b45;
  --right-bg: #e9f5ee;
  --wrong: #a23a36;
  --wrong-bg: #fbeeed;
  --star: #d9730d;
  --radius: 16px;
  font-family: Inter, "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 54px; }
body { margin: 0; line-height: 1.65; background: var(--paper); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid #16899b; outline-offset: 4px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
h1, h2, h3 { line-height: 1.22; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: clamp(28px, 2.9vw, 38px); font-weight: 700; }
h4 { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
h3 { font-size: 18px; font-weight: 650; letter-spacing: -.015em; }
sup { font-size: .66em; vertical-align: super; margin-left: 2px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.fine { font-size: 12px; color: var(--muted); }

/* ── Top bar ── */
.topbar { position: sticky; top: 0; z-index: 10; background: #ffffffed; border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 54px; gap: 20px; }
.brand { flex: none; display: flex; align-items: center; gap: 7px; font-weight: 700; color: var(--ink); font-size: 15px; letter-spacing: -.025em; white-space: nowrap; }
.nav-venue { flex: none; margin-left: 14px; margin-right: auto; color: var(--accent); background: var(--soft); border: 1px solid #c9dde2; border-radius: 99px; padding: 3px 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.nav-venue:hover { background: var(--accent); color: white; text-decoration: none; }
.nav-links { min-width: 0; display: flex; gap: 26px; font-size: 13px; font-weight: 550; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { color: var(--muted); white-space: nowrap; }
.nav-links a:hover { color: var(--accent); }
.nav-home { margin-left: 8px; padding-left: 22px; border-left: 1px solid var(--line); opacity: .85; }
.skip-link { position: fixed; top: -100px; left: 20px; background: white; padding: 10px; z-index: 30; }
.skip-link:focus { top: 10px; }

/* ── Hero ── */
.hero { text-align: center; padding-block: 26px 30px; }
h1 { margin: 0 auto 10px; }
.project-name { display: block; font-size: clamp(40px, 4.6vw, 58px); font-weight: 750; letter-spacing: -.055em; line-height: 1.08; background: linear-gradient(100deg, #182f44 20%, #247e88 90%); background-clip: text; -webkit-background-clip: text; color: transparent; }
.project-logo { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -.2em; margin-right: .12em; }
.brand img { display: block; }
.full-title { display: block; font-size: clamp(19px, 1.9vw, 24px); font-weight: 500; line-height: 1.35; letter-spacing: -.02em; margin-top: 8px; text-wrap: balance; }
.venue { margin: 2px 0 12px; }
.venue a { display: inline-block; color: white; background: var(--accent); border-radius: 99px; padding: 6px 18px; font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.venue a:hover { background: var(--accent-strong); text-decoration: none; }
.authors { max-width: 900px; margin: 0 auto; display: flex; justify-content: center; flex-wrap: wrap; column-gap: 19px; row-gap: 3px; font-size: 15.5px; }
.authors span { white-space: nowrap; }
.authors a { color: inherit; border-bottom: 1px solid #b5cdd4; }
.authors a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.affiliations { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 22px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.star { color: var(--star); font-weight: 800; font-size: 1.25em; line-height: 0; margin-left: 1px; }
sup.star { font-size: 1.05em; vertical-align: .18em; }
.contributions { margin-top: 8px; font-size: 16px; font-weight: 400; color: var(--ink); }
.contributions .star { font-size: 1.35em; vertical-align: -.12em; margin-right: 2px; }
.contributions .sep { margin: 0 12px; }
.star.dagger, sup.star.dagger { font-weight: 500; font-size: .8em; vertical-align: .35em; }
.contributions .star.dagger { font-size: 1em; vertical-align: 0; }
.resource-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.resource { display: inline-flex; align-items: center; gap: 9px; border: 1px solid #243f50; background: #223d4e; color: white; padding: 8px 15px; border-radius: 9px; font-size: 13px; font-weight: 550; transition: background .15s; }
a.resource:hover { background: var(--accent); border-color: var(--accent); text-decoration: none; }
.resource:disabled { cursor: default; background: #fff; color: var(--muted); border-color: var(--line); }
.resource svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.soon { font-size: 10px; letter-spacing: .015em; font-weight: 500; background: var(--wash); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; }

/* ── Demo viewer ── */
.viewer { max-width: clamp(820px, calc((var(--screen) - 352px) * 1.875 + 360px), 1160px); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) 360px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: white; box-shadow: 0 18px 50px -24px #142d3e40; }
.viewer:focus-visible { outline-offset: 2px; }
.viewer-stage { position: relative; background: #0c1a23; }
.viewer-image { display: block; }
.viewer-image img { display: block; width: 100%; height: auto; aspect-ratio: 1920 / 1024; object-fit: cover; }
.viewer-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.viewer-badges span span, .badge-real { font-size: 11px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; padding: 4px 9px; border-radius: 5px; color: white; background: #0c1a23b8; backdrop-filter: blur(6px); }
#viewer-conditions { display: contents; }
.badge-real { background: var(--star); }
.badge-real::before { content: "● "; }
.viewer-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: #ffffffe6; color: var(--ink); font-size: 17px; cursor: pointer; box-shadow: 0 2px 10px #0003; }
.viewer-arrow:hover { background: white; color: var(--accent); }
.viewer-prev { left: 12px; }
.viewer-fs { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #ffffffe6; color: var(--ink); cursor: pointer; box-shadow: 0 2px 10px #0003; display: grid; place-items: center; }
.viewer-fs:hover { background: white; color: var(--accent); }
.viewer-fs svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.viewer-fs .fs-close, .is-fullscreen .viewer-fs .fs-open { display: none; }
.is-fullscreen .viewer-fs .fs-close { display: block; }
.is-fullscreen { max-width: none; width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; background: #0c1a23; grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: minmax(0, 1fr) auto; }
.is-fallback { position: fixed; inset: 0; z-index: 40; }
.is-fullscreen .viewer-stage { display: flex; align-items: center; justify-content: center; min-height: 0; }
.is-fullscreen .viewer-image { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.is-fullscreen .viewer-image img { width: auto; height: auto; max-width: 100%; max-height: 100%; aspect-ratio: auto; object-fit: contain; }
.is-fullscreen .viewer-panel { height: auto; min-height: 0; overflow-y: auto; border-left: 0; background: white; padding: 28px 30px; }
.is-fullscreen .viewer-panel .question { font-size: 24px; }
.is-fullscreen .viewer-panel .answer { font-size: 16px; padding: 10px 14px; }
.is-fullscreen .viewer-strip { background: #13293a; border-top: 1px solid #ffffff1a; padding: 10px 12px; gap: 6px; }
.is-fullscreen .viewer-strip img { max-height: 64px; }
.is-fullscreen .viewer-badges { top: 16px; left: 16px; }
.is-fullscreen .viewer-arrow { width: 46px; height: 46px; font-size: 20px; }
.is-fullscreen .viewer-fs { width: 42px; height: 42px; }
.viewer-next { right: 12px; }
.viewer-panel { height: 0; min-height: 100%; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; justify-content: safe center; text-align: center; border-left: 1px solid var(--line); }
.viewer-count { font-size: 11px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.viewer-strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; padding: 8px; border-top: 1px solid var(--line); background: var(--wash); }
.viewer-strip button { padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #0c1a23; cursor: pointer; opacity: .62; transition: opacity .15s; }
.viewer-strip button:hover { opacity: 1; }
.viewer-strip button[aria-current=true] { opacity: 1; border-color: var(--star); }
.viewer-strip img { display: block; width: 100%; aspect-ratio: 1920 / 1024; object-fit: cover; }
.demo-note { margin: 8px auto 0; max-width: 1060px; text-align: center; text-wrap: balance; }
.qa { display: flex; flex-direction: column; }
.question { font-size: 18px; font-weight: 600; letter-spacing: -.015em; line-height: 1.32; }
.choices { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin: 10px 0 12px; font-size: 13px; color: var(--muted); }
.choices li { border: 1px solid var(--line); border-radius: 5px; padding: 1px 8px; }
.choices b { font-weight: 650; color: var(--ink); }
.choices .choice-truth { border-color: #9ccbb2; background: var(--right-bg); color: var(--right); }
.choices .choice-truth b { color: inherit; }
.choices .choice-truth::after { content: " ✓"; }
.reference { font-size: 13.5px; color: var(--right); margin: 10px 0 12px; font-weight: 600; }
.reference span { color: var(--muted); font-weight: 400; }
.answer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 7px; padding: 9px 13px; border-radius: 9px; font-size: 14.5px; line-height: 1.4; text-align: left; }
.answer-model { flex: none; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .75; }
.answer-text { font-weight: 600; text-align: right; }
.answer-mark { display: inline-block; width: 1.3em; }
.answer-wrong { background: var(--wrong-bg); color: var(--wrong); }
.answer-right { background: var(--right-bg); color: var(--right); }

/* ── Sections and figures ── */
.section { padding-block: 40px 44px; border-top: 1px solid var(--line); }
:root { --screen: calc(100vh - 54px); }
.section-tint { background: var(--wash); }
#demo { padding-top: 30px; }
.section-heading { max-width: 1040px; margin: 0 auto 22px; text-align: center; }
.section-heading h2::after { content: ""; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--star); margin: 10px auto 0; }
.section-heading > p { color: var(--muted); font-size: 17px; line-height: 1.5; margin: 10px auto 0; text-wrap: balance; }
#demo .section-heading { margin-bottom: 16px; }
#demo .section-heading h2::after { margin-top: 10px; }
#demo .section-heading > p { margin-top: 10px; }
.tag-data { display: inline-block; vertical-align: .15em; margin: 0 6px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: white; background: var(--star); padding: 2px 7px; border-radius: 4px; white-space: nowrap; }
.tag-data.tag-sim { background: transparent; color: var(--muted); border: 1px solid #c9d3d9; font-weight: 600; }
.paper-figure { border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow: hidden; }
.figure-zoom { display: block; position: relative; padding: 16px; background: white; cursor: zoom-in; }
.figure-zoom img { display: block; width: 100%; height: auto; background: white; }
.zoom-label { position: absolute; bottom: 12px; right: 12px; color: var(--muted); background: #fffffff2; border: 1px solid var(--line); border-radius: 5px; padding: 3px 8px; font-size: 11px; box-shadow: 0 2px 5px #142d3e0a; }
.figure-zoom:hover .zoom-label { color: var(--accent); border-color: var(--accent); }
figcaption { padding: 16px 24px 19px; font-size: 13px; line-height: 1.7; color: var(--muted); border-top: 1px solid #edf1f4; }
figcaption strong { color: var(--ink); }

.highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1060px; margin-inline: auto; text-align: center; }
.highlights > div { padding: 5px 10px 8px; border: 1px solid var(--line); border-radius: 12px; }
.metric { font-size: 27px; letter-spacing: -.05em; line-height: 1.3; font-weight: 650; color: var(--accent); font-variant-numeric: tabular-nums; }
.metric > span { font-size: 14px; font-weight: 500; }
.highlights h3 { font-size: 13px; margin: 2px 0 1px; }
.highlights p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.reading-width { width: min(840px, calc(100% - 40px)); margin: auto; }

/* ── Task ── */
.section-task { padding-block: 34px 36px; }
.section-task .section-heading { margin-bottom: 18px; }
.task-flow { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; max-width: 980px; }
.task-item { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.task-item img { width: 150px; height: 80px; object-fit: cover; border-radius: 6px; margin-bottom: 6px; }
.task-icon { width: 80px; height: 80px; margin-bottom: 6px; border-radius: 6px; display: grid; place-items: center; background: var(--soft); color: var(--accent); }
.task-icon-out { background: var(--right-bg); color: var(--right); }
.task-icon svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.task-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.task-text { font-size: 14px; line-height: 1.45; color: var(--ink); text-wrap: balance; }
.task-arrow { font-size: 26px; color: var(--muted); }

/* ── Motivation ── */
.mot-steps { list-style: none; padding: 0; margin: 0 auto 18px; max-width: 1060px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: mot; }
.mot-steps li { position: relative; counter-increment: mot; padding: 10px 16px 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--wash); font-size: 14px; line-height: 1.45; color: #3d5361; text-align: center; }
.mot-step-label { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15.5px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; margin-bottom: 3px; }
.mot-step-label::before { content: counter(mot); flex: none; width: 21px; height: 21px; border-radius: 50%; background: #244b60; color: white; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.mot-steps li:nth-child(2) .mot-step-label::before { background: var(--star); }
.mot-steps li:nth-child(3) .mot-step-label::before { background: var(--wrong); }
.mot-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1060px; margin-inline: auto; }
.mot-card { padding: 14px 20px 14px; text-align: center; }
.mot-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 2px 14px; }
.mot-card h3 { font-size: 18px; }
.mot-truth { font-size: 14px; color: var(--right); font-weight: 600; }
.mot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); column-gap: 18px; row-gap: 0; margin-top: 10px; text-align: center; }
.mot-col { display: grid; grid-template-rows: subgrid; grid-row: span 5; align-items: end; }
.mot-col .mot-input { align-self: start; }
.mot-method { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.mot-input { font-size: 11.5px; color: var(--muted); margin-bottom: 7px; }
.mot-col img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.mot-answer { margin-top: 8px; font-size: 15px; font-weight: 700; }
.mot-verdict { font-size: 12px; }
.mot-wrong .mot-answer, .mot-wrong .mot-verdict, .mot-restored .mot-answer, .mot-restored .mot-verdict { color: var(--wrong); }
.mot-right .mot-method, .mot-right .mot-answer, .mot-right .mot-verdict { color: var(--right); }
.mot-restored .mot-method { color: var(--star); }
.mot-restored .mot-input { color: var(--star); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 10.5px; line-height: 1.75; }
.mot-restored img { outline: 2px solid var(--star); outline-offset: 3px; }
.mot-right img { outline: 2px solid #7fbf9c; outline-offset: 3px; }
.mot-takeaway { margin: 14px auto 0; max-width: 900px; text-align: center; font-size: 15.5px; color: var(--muted); text-wrap: balance; }
.mot-takeaway strong { color: var(--ink); font-weight: 650; }

.stages { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
#method .wrap { width: min(1260px, calc(100% - 48px)); }
.stage { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 6px; display: flex; flex-direction: column; }
.stage-head { text-align: center; min-height: 86px; }
.stage-head .step-number { display: block; font-size: 11px; color: var(--accent); font-weight: 700; letter-spacing: .08em; margin-bottom: 2px; }
.stage-head h4 { font-size: 15px; }
.stage-head p { margin-top: 3px; font-size: 12px; color: var(--muted); line-height: 1.45; }
.method-svg { display: block; width: 100%; height: auto; margin-top: 6px; font-family: Inter, "Avenir Next", -apple-system, sans-serif; }
.method-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.method-legend span { display: inline-flex; align-items: center; gap: 6px; }
.method-legend i { width: 12px; height: 12px; border-radius: 3px; border: 1px solid; }
.cot-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin: 14px auto 0; max-width: 1160px; padding: 10px 18px; border-radius: 10px; background: #13293a; color: #d9e7ec; font-size: 13px; }
.cot-label { font-size: 12px; font-weight: 700; letter-spacing: .02em; color: #80c5d3; }
.cot-text code { color: #e5bc71; }
.cot-arrow { color: #80c5d3; }
.cot-out { font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.trace-think { color: #e5bc71; }

/* ── Method (old) ── */
.panel-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 25px; background: white; }
.trace-think { color: #e5bc71; }

/* ── Results ── */
.result-panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px 14px; min-width: 0; text-align: center; }
.results-browser { margin-top: 14px; }
.bars { margin: 16px auto 6px; display: grid; gap: 11px; max-width: 760px; text-align: left; }
.bar-row { display: grid; grid-template-columns: minmax(0, 190px) 1fr 38px; align-items: center; gap: 12px; font-size: 12.5px; }
.bar-name { color: var(--muted); }
.bar-track { height: 16px; background: #f0f4f6; border-radius: 4px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: #a9b9c2; border-radius: 4px; }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.bar-ours .bar-name { color: var(--ink); font-weight: 650; }
.bar-ours .bar-fill { background: var(--accent); }
.bar-ours .bar-value { color: var(--accent); }

.figure-tabs button { border: 1px solid #d9e3e8; color: var(--muted); background: #fff; border-radius: 7px; padding: 8px 14px; font-size: 12px; cursor: pointer; }
.figure-tabs button[aria-selected=true] { color: white; background: #244b60; border-color: #244b60; }
.figure-tabs button:hover { border-color: var(--accent); }
.figure-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 0 0 12px; }
.table-scroll { overflow-x: auto; margin-top: 6px; }
table { border-collapse: collapse; width: 100%; font-size: 12.5px; text-align: left; }
th, td { padding: 5px 9px; border-bottom: 1px solid #edf1f3; white-space: nowrap; }
thead th { color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .02em; }
tbody th { font-weight: 450; }
td { font-variant-numeric: tabular-nums; text-align: right; }
thead th:not(:first-child) { text-align: right; }
.result-panel tbody th + th { text-align: left; }
.ours th, .ours td { color: var(--accent-strong); background: #edf5f7; font-weight: 650; }
td.best { font-weight: 750; }
td.na { color: #9aa9b2; }
.table-caption { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 10px auto 0; max-width: 900px; }

#more-demos .paper-figure { max-width: clamp(820px, calc((var(--screen) - 250px) * 3.03), 1160px); margin-inline: auto; }

/* ── BibTeX ── */
.bibtex { position: relative; }
.bibtex pre { margin: 0; padding: 20px 22px; border-radius: 12px; background: #13293a; color: #d9e7ec; font: 12.5px/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-x: auto; }
.copy { position: absolute; top: 12px; right: 12px; border: 1px solid #ffffff30; background: #ffffff14; color: #e0edf1; border-radius: 6px; padding: 4px 12px; font-size: 12px; cursor: pointer; }
.copy:hover { background: #ffffff26; }
.ack { max-width: 820px; margin: 0 auto; text-align: center; font-size: 20px; line-height: 1.6; color: var(--ink); text-wrap: balance; }
.ack-name { font-weight: 700; font-size: 1.12em; color: var(--ink); background: #f9d9b4; padding: 2px 8px; border-radius: 6px; }
.ack-name:hover { color: var(--star); text-decoration: none; }

.footer { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-block: 30px; font-size: 11px; color: var(--muted); }
.footer > a:first-child { font-weight: 650; white-space: nowrap; }
.footer > a:last-child { white-space: nowrap; }
.footer p { text-align: center; }

/* ── Dialogs ── */
dialog { width: min(1500px, 96vw); max-width: 96vw; max-height: 94vh; padding: 0; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 30px 90px #0004; background: white; color: var(--ink); }
dialog::backdrop { background: #102632c9; backdrop-filter: blur(5px); }
.dialog-toolbar { display: flex; gap: 10px; align-items: center; padding: 12px 18px; position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--line); font-size: 13px; z-index: 1; }
.dialog-toolbar > span { margin-right: auto; font-weight: 600; }
.dialog-toolbar a { margin-right: 10px; }
.dialog-toolbar button { border: 1px solid var(--line); border-radius: 6px; background: var(--wash); padding: 5px 12px; cursor: pointer; font-size: 13px; white-space: nowrap; }
.dialog-toolbar button:hover { border-color: var(--accent); }
.dialog-image { padding: 18px; background: white; }
.dialog-image img { display: block; width: 100%; height: auto; }
.no-scroll { overflow: hidden; }

.capture { background: var(--wash); }
.capture main > section:not(#demo), .capture .footer { display: none; }
.capture #demo { border-top: 0; padding-block: 56px 40px; }

/* ── Responsive ── */
@media (max-width: 1180px) and (min-width: 1001px) {
  .viewer-panel { padding: 14px 18px; }
  .question { font-size: 17px; line-height: 1.3; }
  .choices { margin: 8px 0 10px; font-size: 12.5px; }
  .reference { margin: 8px 0 10px; }
  .answer { margin-top: 6px; padding: 7px 12px; font-size: 14px; }
}
@media (max-width: 1000px) {
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .mot-cases, .mot-steps { grid-template-columns: minmax(0, 1fr); }
  .task-flow { grid-template-columns: minmax(0, 1fr); }
  .task-arrow { transform: rotate(90deg); line-height: 1; }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .viewer, #more-demos .paper-figure { max-width: none; }
  .viewer { grid-template-columns: minmax(0, 1fr); }
  .viewer-panel { border-left: 0; order: 3; height: auto; min-height: 0; overflow: visible; }
  .viewer-strip { order: 2; border-bottom: 1px solid var(--line); }
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 40px); }
  .footer { flex-direction: column; gap: 10px; }
  .section { padding-block: 36px; }
  .section-heading > p { font-size: 16px; }
  .ack { font-size: 18px; }
  .authors { font-size: 15px; column-gap: 14px; }
  .nav-links { gap: 17px; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .nav { min-height: 56px; gap: 14px; }
  .nav-venue { display: none; }
  .project-name { font-size: min(34px, 9.2vw); white-space: nowrap; }
  .brand { font-size: 13px; gap: 7px; }
  .nav-links { gap: 15px; font-size: 12px; padding-right: 18px; mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); }
  .authors { font-size: 14px; gap: 6px 12px; }
  .affiliations { gap: 5px 12px; font-size: 12px; }
  .contributions { font-size: 15px; }
  .viewer-strip { display: flex; overflow-x: auto; scrollbar-width: none; }
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .viewer-strip button { flex: 0 0 84px; }
  .viewer-arrow { width: 34px; height: 34px; }
  .viewer-fs { width: 32px; height: 32px; top: 10px; right: 10px; }
  .question { font-size: 17px; }
  .resource { font-size: 12px; padding: 9px 12px; }
  .resource-links { gap: 8px; }
  .figure-zoom { padding: 10px; }
  .zoom-label { font-size: 10px; bottom: 6px; right: 6px; }
  figcaption { padding: 13px 15px; font-size: 12px; }
  .highlights { gap: 22px 12px; }
  .highlights > div { padding-left: 13px; }
  .metric { font-size: 35px; }
  .result-panel, .panel-card { padding: 20px 16px; }
  .stages { grid-template-columns: minmax(0, 1fr); }
  .stage-head { min-height: 0; }
  .venue a { font-size: 14px; }
  .mot-grid { column-gap: 9px; }
  .mot-method { font-size: 12.5px; }
  .mot-answer { font-size: 14px; }
  .bar-row { grid-template-columns: minmax(0, 112px) 1fr 34px; gap: 8px; font-size: 11.5px; }
  .figure-tabs button { font-size: 11.5px; padding: 8px 11px; }
  .dialog-toolbar { gap: 6px; padding: 10px; font-size: 12px; }
  .dialog-toolbar button { font-size: 12px; padding: 5px 9px; }
  .dialog-image { padding: 8px; }
  .viewer-panel { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
