:root {
  --bg: #f7f7f4; --paper: #fff; --ink: #242724; --body: #404640;
  --muted: #5d6964; --line: #e4e9e6; --accent: #25465a; --teal: #365f50;
  --cream: #f7f1e5; --sage: #edf2ed; --pink: #f6eeeb;
  --sans: 'Source Sans 3', system-ui, sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; padding: 24px; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--teal); text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
button:focus-visible, a:focus-visible, video:focus-visible, iframe:focus-visible, summary:focus-visible, .carousel:focus-visible { outline: 3px solid #326f85; outline-offset: 3px; }
img, video, iframe { max-width: 100%; }
figure, p, h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
.page-shell { max-width: 1144px; margin: auto; background: var(--paper); border: 1px solid #e6e7e2; border-radius: 15px; box-shadow: 0 8px 40px #273e3510; overflow: clip; }
.container { width: calc(100% - 104px); max-width: 940px; margin-inline: auto; }
.top-nav { display: flex; justify-content: space-between; align-items: center; padding: 6px 34px; border-bottom: 1px solid #eef1ee; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.top-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.nav-brand { display: flex; align-items: center; gap: 7px; color: var(--teal); }
.top-nav > div { display: flex; gap: 25px; }
.top-nav > div a { color: var(--muted); }
.hero-section { padding: 30px 0 18px; text-align: center; }
.wordmark { display: block; width: 275px; height: auto; margin: 0 auto 10px; }
h1 { font: 600 clamp(24px, 2.55vw, 32px)/1.33 var(--serif); color: #203b44; max-width: 870px; margin: 0 auto; letter-spacing: -.02em; text-wrap: balance; }
.title-term { white-space: nowrap; }
.authors { max-width: 840px; margin: 16px auto 0; font-size: 18px; line-height: 1.75; text-wrap: balance; }
.author { white-space: nowrap; }
.authors sup, .affiliations sup, .corresponding-note sup { font-size: .7em; line-height: 0; margin-left: 1px; }
.affiliations { display: flex; justify-content: center; gap: 1.3em; max-width: 780px; color: var(--muted); font-size: 15px; line-height: 1.55; margin: 8px auto 0; }
.affiliation { white-space: nowrap; }
.corresponding-note { margin-top: 6px; color: var(--muted); font-size: 13px; }
.link-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.link-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 6px; border: 1px solid #dce4df; background: #f5f7f5; color: #344d43; font-size: 14px; font-weight: 600; transition: background .18s, transform .18s; }
.link-btn:hover { background: #e5ebe3; text-decoration: none; transform: translateY(-1px); }
.link-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.link-btn small { font-size: 11px; color: var(--muted); font-weight: 400; }
.link-btn.unavailable { background: #fafbf9; color: var(--muted); }
.link-btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.link-btn-primary:hover { background: #1c3646; border-color: #1c3646; }
.teaser-section { padding: 12px 0 24px; }
.player-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; color: var(--accent); font-size: 13px; font-weight: 600; }
.duration-label { color: var(--muted); font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }
.duration-label span { margin-inline: 5px; }
.main-player { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #f4f5f2; }
.main-player iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #fff; }
.youtube-embed { border: 0; }
.section { padding-top: 42px; padding-bottom: 17px; }
h2 { color: var(--accent); font: 600 26px/1.28 var(--serif); letter-spacing: -.025em; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 9px 20px; margin-bottom: 16px; }
.section-aside { color: var(--muted); font-size: 13px; }
.section-intro { color: var(--body); font-size: 16px; line-height: 1.7; margin-bottom: 20px; }
.abstract-section { padding-top: 36px; }
.abstract-section h2 { text-align: center; margin-bottom: 18px; font-size: 23px; }
.abstract-text { max-width: 800px; margin: auto; color: var(--body); font-size: 16px; line-height: 1.8; text-align: left; overflow-wrap: break-word; }
.framework-figure { margin-top: 24px; }
.figure-zoom { display: block; position: relative; width: 100%; border: 1px solid #eceee7; border-radius: 6px; padding: 12px 8px 26px; background: #fff; }
.figure-zoom img { display: block; width: 100%; height: auto; }
.figure-zoom > span { position: absolute; right: 12px; bottom: 5px; font-size: 12px; color: var(--muted); }
.framework-download { display: none; margin-top: 12px; min-height: 44px; align-items: center; font-size: 14px; }
.figure-zoom:hover { border-color: #97af9e; }
figcaption { color: var(--muted); font-size: 13px; line-height: 1.55; text-align: center; margin-top: 12px; }
.offline-note { display: flex; align-items: flex-start; gap: 15px; background: #f2f4ee; border: 1px solid #e7ece1; border-radius: 6px; padding: 19px 20px; margin-top: 25px; }
.method-index { font-size: 10px; font-weight: 700; color: var(--teal); letter-spacing: .1em; background: #e3ebde; border-radius: 3px; padding: 4px 7px; margin-top: 3px; }
.offline-note p { color: var(--body); font-size: 14px; line-height: 1.75; }
.method-steps { padding: 0; list-style: none; margin: 9px 0 0; }
.method-steps li { display: grid; grid-template-columns: 35px 1fr; gap: 15px; padding: 22px 0; border-bottom: 1px solid #eceee7; }
.step-number { font: 600 22px var(--serif); color: #627a76; }
.method-steps h3 { font-size: 17px; line-height: 1.4; font-weight: 600; margin-bottom: 6px; }
.method-steps p { color: var(--body); font-size: 14px; line-height: 1.75; }
.step-result { display: inline-block; margin-top: 7px; font-size: 13px; color: var(--teal); }
.optional-note { color: var(--body); font-size: 14px; line-height: 1.75; margin-top: 20px; }
.method-summary { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding: 15px 0 0; margin-top: 16px; border-top: 1px solid #eee; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.method-summary strong { display: block; font-size: 13px; color: var(--teal); text-transform: none; letter-spacing: 0; font-weight: 600; margin-top: 3px; }
.text-button { background: #f5f8f6; border: 1px solid #dce5de; border-radius: 5px; min-height: 44px; min-width: 150px; padding: 8px 12px; font-size: 13px; color: var(--teal); }
.text-button span { margin-left: 5px; }
.dataset-nav { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 20px; }
.dataset-nav a { display: inline-flex; align-items: center; min-height: 44px; border: 1px solid #dde6e1; background: #f6f8f7; border-radius: 5px; padding: 6px 14px; color: var(--teal); font-size: 13px; font-weight: 600; }
.dataset-nav a:hover { background: #eaf0e5; text-decoration: none; }
.stage-legend { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 17px; background: #f6f8f7; border: 1px solid #e5eae7; border-radius: 5px; padding: 10px 12px; color: #4f605c; font-size: 13px; }
.stage-legend i { font-style: normal; color: #c1b9a6; }
.stage-legend .final-stage { color: var(--teal); font-weight: 600; }
.gallery-hint, .gallery-fallback { font-size: 13px; color: var(--muted); margin: 11px 0 22px; }
.dataset-block { border: 1px solid #e6e9e0; border-radius: 7px; background: #fafbf8; padding: 19px 18px 13px; margin: 0 0 18px; scroll-margin-top: 25px; }
.dataset-block:nth-child(2n) { background: #f7f9f8; border-color: #e1e8e3; }
.dataset-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 5px; }
.dataset-title-wrap { display: flex; align-items: baseline; gap: 11px; flex-wrap: wrap; }
.dataset-title-wrap h3 { font: 600 21px var(--serif); color: var(--teal); }
.dataset-tag { font-size: 12px; color: var(--muted); }
.dataset-description { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.carousel-controls { display: flex; gap: 6px; align-items: center; }
.carousel-controls button { border: 1px solid #d5dfd9; border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; background: #fff; color: var(--teal); font-size: 20px; line-height: 1; }
.carousel-controls button:disabled { opacity: .35; }
.carousel-controls button:not(:disabled):hover { background: #eaf0e3; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 3); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; padding: 2px 1px 6px; }
.carousel::-webkit-scrollbar { display: none; }
.case-card { min-width: 0; scroll-snap-align: start; background: #fff; border: 1px solid #e7e9e0; border-radius: 5px; overflow: hidden; }
.case-button { position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 0; background: #e8ebe5; overflow: hidden; }
.case-button:focus-visible { outline-offset: -4px; }
.case-card:focus-within { border-color: #326f85; }
.case-button video { display: block; width: 100%; height: auto; aspect-ratio: 632 / 424; object-fit: contain; }
.case-expand { position: absolute; right: 7px; bottom: 7px; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 4px; background: #ffffffda; color: #315a45; opacity: 0; transition: opacity .2s; font-size: 15px; }
.case-button:hover .case-expand, .case-button:focus-visible .case-expand { opacity: 1; }
.case-info { display: flex; gap: 4px; justify-content: space-between; align-items: center; padding: 8px 10px 0; font-size: 14px; font-weight: 600; }
.case-phase { color: #635a4e; font-size: 12px; font-weight: 400; }
.case-phase[data-stage="4"] { color: #457959; }
.case-meta { padding: 2px 10px 10px; font-size: 12px; color: var(--muted); }
.case-progress { height: 2px; width: 100%; background: #f0f2eb; }
.case-progress span { display: block; width: 100%; height: 100%; background: #92ac90; transform-origin: left; transform: scaleX(0); }
.dataset-footer { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: 12px; }
.dataset-counter { font-variant-numeric: tabular-nums; }
.robot-player { border: 1px solid var(--line); border-radius: 7px; }
.bibtex-block { position: relative; padding: 56px 24px 22px; border: 1px solid #e0e7e2; background: #f6f8f6; border-radius: 6px; }
.bibtex-block pre { margin: 0; overflow: auto; padding-top: 3px; color: #52604d; font: 12px/1.85 'SFMono-Regular', Consolas, monospace; }
.copy-button { position: absolute; right: 12px; top: 8px; color: var(--teal); font-size: 12px; border: 1px solid #dce5dd; border-radius: 4px; background: #fff; min-height: 44px; min-width: 64px; padding: 8px 12px; }
.footer { margin-top: 45px; padding: 25px 0 32px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.footer-brand { font-weight: 700; font-size: 18px; flex-shrink: 0; }
.footer-brand span { font-size: 14px; margin-left: 6px; color: #98a38e; }
.media-dialog { width: min(1100px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 20px; border: 1px solid #e8ebdf; border-radius: 10px; color: var(--ink); box-shadow: 0 24px 90px #0005; }
.media-dialog::backdrop { background: #15231cbb; backdrop-filter: blur(5px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.dialog-heading h2 { color: var(--teal); font-size: 20px; }
#close-dialog { flex-shrink: 0; border: 1px solid #dce5dd; background: #f3f6f3; color: var(--teal); font-size: 28px; line-height: 32px; width: 44px; height: 44px; border-radius: 5px; }
#dialog-content video, #dialog-content img { display: block; margin: auto; max-width: 100%; max-height: calc(100dvh - 165px); width: auto; height: auto; }
#dialog-content video { width: min(960px, 100%); }
#dialog-caption { font-size: 12px; color: var(--muted); margin-top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 10; padding: 8px 15px; background: #fff; color: var(--teal); }
.skip-link:focus { top: 10px; }
@media (max-width: 760px) {
  body { padding: 15px 12px; }
  .container { width: calc(100% - 48px); }
  .top-nav { padding: 6px 24px; }
  .hero-section { padding-top: 28px; }
  .wordmark { width: 265px; }
  h1 { font-size: 25px; }
  .desktop-break { display: none; }
  .carousel { grid-auto-columns: calc((100% - 12px) / 2); }
  h2 { font-size: 24px; }
  .abstract-text { text-align: left; }
  .section { padding-top: 38px; }
  .section-aside { font-size: 12px; }
  .offline-note { display: block; padding: 16px; }
  .offline-note p { margin-top: 9px; }
  .stage-legend { gap: 10px; }
}
@media (max-width: 480px) {
  body { padding: 0; background: #fff; }
  .page-shell { border: 0; border-radius: 0; box-shadow: none; }
  .container { width: calc(100% - 36px); }
  .top-nav { padding: 4px 18px; }
  .top-nav > div { gap: 14px; font-size: 12px; }
  .hero-section { padding: 23px 0 18px; }
  .wordmark { width: 240px; margin-bottom: 10px; }
  h1 { font-size: 23px; }
  .authors { font-size: 16px; margin-top: 17px; }
  .affiliations { font-size: 14px; margin-top: 9px; }
  .link-buttons { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); max-width: 330px; margin-inline: auto; gap: 8px; margin-top: 20px; }
  .link-btn { padding: 7px 11px; font-size: 12px; gap: 6px; }
  .link-btn small { display: inline; font-size: 10px; }
  .link-btn svg { width: 15px; }
  .teaser-section { padding-top: 12px; }
  .section-intro, .abstract-text { font-size: 15px; }
  .method-steps li { grid-template-columns: 27px 1fr; gap: 10px; padding-block: 18px; }
  .method-steps h3 { font-size: 16px; }
  .method-summary { gap: 10px; }
  .method-summary strong { font-size: 12px; }
  .dataset-nav { gap: 5px; }
  .dataset-nav a { padding: 5px 10px; font-size: 12px; }
  .dataset-block { padding: 14px 11px 10px; }
  .dataset-title-wrap { gap: 8px; }
  .dataset-title-wrap h3 { font-size: 20px; }
  .dataset-tag { font-size: 12px; }
  .dataset-description { line-height: 1.4; }
  .carousel { grid-auto-columns: 88%; gap: 10px; }
  .case-info { font-size: 13px; }
  .case-meta { font-size: 12px; }
  .case-expand { opacity: 1; }
  .stage-legend { font-size: 12px; gap: 6px; padding-inline: 8px; }
  .gallery-hint { font-size: 12px; }
  .bibtex-block { padding: 56px 14px 17px; }
  .bibtex-block pre { font-size: 10px; }
  .footer { align-items: flex-start; }
  .media-dialog { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
