:root {
  color-scheme: light;
  --ink: #242424;
  --muted: #666;
  --accent: #397d9c;
  --line: #e7e7e7;
  --paper: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.62; -webkit-font-smoothing: antialiased; }
.ambient-background { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ambient-background video { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .12; filter: saturate(.65); }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 8px 16px; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.paper-header, main, footer { position: relative; z-index: 1; width: min(900px, calc(100% - 64px)); margin-inline: auto; }
.paper-header { text-align: center; padding: 34px 0 38px; }
.venue-logo { display: block; width: 176px; max-width: 45vw; height: auto; margin: 0 auto 26px; }
h1 { max-width: 870px; margin: 0 auto 21px; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.2; letter-spacing: -.025em; font-weight: 600; text-wrap: balance; }
.authors { margin: 0; font-size: 15px; line-height: 1.8; }
.author { display: inline-block; white-space: nowrap; }
.authors strong { font-weight: 600; }
.authors sup { margin-left: 2px; font-size: .72em; font-weight: 400; line-height: 0; }
.authors sup a { padding: 0 1px; }
.affiliations { list-style: none; max-width: 860px; margin: 12px auto 23px; padding: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.affiliations li { margin: 5px 0; scroll-margin-top: 24px; }
.affiliations sup { color: var(--accent); font-size: .8em; }
.affiliations li:target { background: rgb(57 125 156 / .06); }
.paper-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; }
.paper-links a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.5; padding: 2px 14px; }
.paper-links a + a { border-left: 1px solid var(--line); }
.resource-icon { width: 18px; height: 18px; flex: 0 0 auto; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 30px 46px; max-width: 100%; margin: 32px auto 0; padding: 0; background: transparent; }
.logo-row img { display: block; height: auto; max-width: 100%; object-fit: contain; }
.logo-row .crab-logo { width: 270px; }
.logo-row .qbios-logo { width: 350px; }
section { border-top: 1px solid var(--line); padding: 30px 0 36px; }
h2 { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; margin: 0 0 20px; }
.abstract-section { max-width: 800px; margin: auto; }
.abstract-section p { margin: 0 0 16px; font-size: 16px; line-height: 1.62; }
.abstract-section p:last-child { margin-bottom: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; }
.section-heading a { margin: 0; font-size: 13px; }
.video-frame { aspect-ratio: 16/9; background: #f5f5f5; border: 1px solid var(--line); overflow: hidden; }
iframe { display: block; width: 100%; height: 100%; border: 0; }
.figure-controls { display: flex; align-items: center; gap: 15px; }
.figure-controls button { display: inline-flex; justify-content: center; align-items: center; width: 36px; height: 34px; padding: 0; border: 1px solid #d9d9d9; border-radius: 3px; background: #fff; color: var(--accent); font-size: 20px; cursor: pointer; }
.figure-controls button:hover:not(:disabled) { background: #f4f8fa; border-color: var(--accent); }
.figure-controls button:disabled { color: #bcbcbc; cursor: default; }
#figure-counter { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 34px; text-align: center; }
.figure-hint { margin: -7px 0 16px; font-size: 13px; color: var(--muted); }
.figure-panel { border: 1px solid var(--line); background: #fff; }
.figure-track { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #b9c9d0 #f5f5f5; }
figure { margin: 0; min-width: 0; }
.figure-slide { flex: 0 0 100%; width: 100%; scroll-snap-align: start; padding: 24px; }
.figure-image { display: flex; width: 100%; height: 500px; align-items: center; justify-content: center; padding: 4px; border: 0; background: #fff; cursor: zoom-in; }
.figure-image img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
figcaption { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 16px; }
.figure-number { display: block; margin-bottom: 4px; font-size: 12px; color: var(--muted); }
h3 { font-size: 17px; font-weight: 600; line-height: 1.3; margin: 0 0 6px; }
figcaption p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0 28px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
dialog { border: 1px solid var(--line); border-radius: 4px; padding: 54px 28px 24px; max-width: min(96vw, 1250px); max-height: 94dvh; background: #fff; color: var(--ink); }
dialog::backdrop { background: rgb(0 0 0 / .7); }
dialog form { position: absolute; right: 16px; top: 12px; }
.close-dialog { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid #d9d9d9; border-radius: 3px; padding: 5px 12px; font-size: 13px; cursor: pointer; color: var(--ink); }
.close-dialog span { font-size: 20px; line-height: 1; }
#enlarged-figure { display: block; max-width: 100%; max-height: 76dvh; width: auto; height: auto; object-fit: contain; margin: auto; }
#enlarged-caption { max-width: 850px; font-size: 14px; color: var(--muted); line-height: 1.6; margin: 18px auto 0; }
body:has(dialog[open]) { overflow: hidden; }
@media (max-width: 700px) {
  .paper-header, main, footer { width: calc(100% - 36px); }
  .paper-header { padding: 26px 0 30px; }
  .venue-logo { width: 154px; margin-bottom: 24px; }
  h1 { font-size: 29px; margin-bottom: 18px; }
  .authors { font-size: 14px; }
  .desktop-break { display: none; }
  .affiliations { font-size: 12px; line-height: 1.6; }
  .logo-row { gap: 24px 32px; padding: 0; }
  .logo-row .crab-logo { width: 240px; }
  .logo-row .qbios-logo { width: min(320px, 100%); }
  section { padding: 26px 0 30px; }
  .abstract-section p { font-size: 16px; }
  h2 { font-size: 24px; }
  .section-heading { gap: 12px; margin-bottom: 18px; }
  .section-heading a { font-size: 12px; }
  .figure-controls { gap: 10px; }
  .figure-controls button { width: 34px; }
  .figure-hint { font-size: 12px; max-width: 270px; }
  .figure-slide { padding: 16px; }
  .figure-image { height: 430px; }
  figcaption { margin-top: 18px; }
  footer { font-size: 11px; flex-direction: column; gap: 4px; padding-top: 18px; }
  dialog { padding: 52px 14px 20px; max-width: 96vw; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
