
:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #1a1a1a;
  --accent: #7a6a9a;
  --accent-soft: #f1eef6;
  --border: #e5e7eb;
  --card-bg: #fafafa;
  --soft: #f6f8fb;
  --ok: #2e7d32;
  --fail: #b3261e;
  --counting: #5b6b7a;
  --permanence: #218c82;
  --reference: #b4561e;
  --psi0: #a3adb7;
  --uniform: #7d94aa;
  --nav-h: 56px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.7; font-size: 1rem; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Outfit', 'Inter', sans-serif; font-weight: 700; text-wrap: balance; }
img, video { max-width: 100%; display: block; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
sub { font-size: .72em; }

.container { max-width: var(--container, 1040px); margin: 0 auto; padding: 0 2rem; }

.draft {
  background: #fff8e1; border-bottom: 1px solid #f0d98a; color: #6b5300;
  font-size: .85rem; text-align: center; padding: .45rem 1rem;
}
.draft code { font-size: .8rem; }

.site-nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.site-nav .container { display: flex; align-items: center; gap: 1.5rem; height: var(--nav-h); }
.site-nav .brand { font: 700 1.08rem/1 'Outfit', sans-serif; color: var(--text); text-decoration: none; white-space: nowrap; }
.site-nav ul { display: flex; gap: 1.15rem; list-style: none; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.site-nav ul::-webkit-scrollbar { display: none; }
.site-nav ul a { color: var(--text); text-decoration: none; font-size: .9rem; white-space: nowrap; padding: .2rem 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover, .site-nav ul a.active { color: var(--accent); border-bottom-color: var(--accent); }

header { padding: 3.6rem 0 3rem; text-align: center; border-bottom: 1px solid var(--border); }

header h1 { font-size: min(2.7rem, calc((min(100vw, var(--container, 1040px)) - 4rem) / 27.2)); line-height: 1.12; margin: 0 auto 1rem; }
header h1 .tl { display: block; white-space: nowrap; }
@media (max-width: 700px) { header h1 { font-size: 1.85rem; } header h1 .tl { display: inline; white-space: normal; } }
header h1 .mem { color: var(--accent); }
.authors-panel {
  max-width: 44rem; margin: 1.1rem auto 1.6rem; padding: 1rem 1.4rem;
  border: 1px solid var(--border); border-radius: 12px; background: var(--card-bg); text-align: center;
}
.authors-panel .authors { font-size: 1.02rem; color: var(--text); font-weight: 600; }
.authors-panel .affiliations { font-size: .95rem; color: var(--text-secondary); }
.authors-panel .author-notes { font-size: .85rem; color: var(--text-secondary); margin-top: .1rem; }
.hero-video {
  max-width: 680px; margin: 0 auto 1rem; border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: #000; box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}
.hero-video video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.hero-caption { margin-bottom: .4rem; }

.resource-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .55rem; max-width: 53.75rem; margin: 1.6rem auto 0; }
.resource-pill {
  display: inline-flex; align-items: stretch; overflow: hidden; border-radius: 6px; color: #fff; text-decoration: none;
  font-weight: 600; font-size: .95rem; line-height: 1; box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
  transition: transform .18s ease, box-shadow .18s ease;
}
.resource-pill:hover { transform: translateY(-2px); box-shadow: 0 7px 18px rgba(0, 0, 0, .16); }
.resource-pill.resource-disabled { cursor: default; opacity: .8; }
.resource-pill.resource-disabled:hover { transform: none; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.resource-prefix, .resource-value { display: inline-flex; align-items: center; min-height: 40px; padding: .55rem .75rem; white-space: nowrap; }
.resource-prefix { background: #4a4a4a; }
.resource-red .resource-value { background: #b31b1b; }
.resource-green .resource-value { background: #7dbd00; }
.resource-indigo .resource-value { background: #4f6bdc; }
.resource-gold .resource-value { background: #c9a600; }
.resource-blue .resource-value { background: #0084c8; }
.resource-slate .resource-value { background: #697386; }
.resource-steel .resource-value { background: var(--accent); }

section { padding: 3.2rem 0; border-bottom: 1px solid var(--border); }
section:last-child { border-bottom: none; }
section.soft { background: var(--soft); }
section h2 { font-size: 1.8rem; margin-bottom: 1.1rem; text-align: center; }
.section-intro { max-width: 48.75rem; margin: 0 auto 1.6rem; text-align: center; color: var(--text); }
.sub-title { font-size: 1.25rem; margin: 2.4rem 0 1rem; padding-bottom: .35rem; border-bottom: 2px solid var(--accent); display: inline-block; }
.sub-title:first-child { margin-top: 0; }

.teaser-img { width: 100%; max-width: 980px; margin: 1.2rem auto .6rem; border-radius: 8px; }
.caption { text-align: center; font-size: .88rem; color: var(--text); max-width: 51.25rem; margin: .5rem auto 0; line-height: 1.6; }
.caption strong { color: var(--text); }

#abstract p { max-width: 820px; margin: 0 auto; text-align: justify; color: var(--text); }
.prose { max-width: 51.25rem; margin: 0 auto; color: var(--text); }
.prose p + p { margin-top: .9rem; }

.category { margin-bottom: 2.4rem; }
.category:last-child { margin-bottom: 0; }
.category h3 { font-size: 1.25rem; margin-bottom: 1rem; padding-bottom: .4rem; border-bottom: 2px solid var(--accent); display: inline-block; }
.category > .cat-intro { font-size: .9rem; color: var(--text); margin: -.4rem 0 1rem; max-width: 51.25rem; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.video-item { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: box-shadow .2s ease; }
.video-item:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
.video-item video, .video-item > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e9ecef; cursor: pointer; }
[hidden] { display: none !important; }
.video-item .pending { aspect-ratio: 16 / 9; display: grid; place-items: center; background: repeating-linear-gradient(45deg, #f1f3f5 0 10px, #f7f8fa 10px 20px); color: var(--text-secondary); font-size: .85rem; font-weight: 600; }

.wipe { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #e9ecef; cursor: pointer; touch-action: pan-y; -webkit-user-select: none; user-select: none; --x: 50%; }
.video-item .wipe video { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.wipe .w-top { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.wipe .w-line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1), 0 0 8px rgba(0, 0, 0, .3); pointer-events: none; }
.wipe .w-knob { position: absolute; top: 50%; left: var(--x); display: grid; place-items: center; width: 30px; height: 30px; margin: -15px 0 0 -15px; border: 2px solid var(--accent); border-radius: 50%; background: #fff; color: var(--accent); box-shadow: 0 2px 8px rgba(0, 0, 0, .28); cursor: ew-resize; touch-action: none; }
.wipe .w-knob svg { width: 16px; height: 16px; }
.wipe .w-lab { position: absolute; bottom: 8px; padding: 1px 8px; border-radius: 999px; background: rgba(22, 24, 29, .72); color: #fff; font: 600 .68rem/1.5 'Inter', sans-serif; pointer-events: none; transition: opacity .2s ease; }
.wipe .w-lab.l { left: 8px; } .wipe .w-lab.r { right: 8px; }
.wipe.hide-l .w-lab.l, .wipe.hide-r .w-lab.r { opacity: 0; }
.wipe.no-sam3 .w-top, .wipe.no-sam3 .w-line, .wipe.no-sam3 .w-knob, .wipe.no-sam3 .w-lab { display: none; }
.video-item { position: relative; }
.speed-pill { position: absolute; top: 8px; right: 8px; z-index: 2; padding: 1px 8px; border-radius: 999px; background: rgba(22, 24, 29, .72); color: #fff; font: 600 .68rem/1.5 'Inter', sans-serif; pointer-events: none; }
.video-item .media { position: relative; }
.view-pill { position: absolute; bottom: 8px; left: 8px; z-index: 2; padding: 1px 8px; border-radius: 999px; background: rgba(22, 24, 29, .72); color: #fff; font: 600 .68rem/1.5 'Inter', sans-serif; pointer-events: none; }
.video-item.dual .wipe, .video-item.dual .pending { border-top: 2px solid #fff; }
.video-item.still > img { object-fit: contain; background: #fff; cursor: default; }
.video-item p { padding: .7rem .85rem .8rem; font-size: .85rem; color: var(--text); line-height: 1.5; text-align: left; }
.video-item p b { color: var(--text); }
.tag {
  display: inline-block; margin-right: .45rem; padding: .05rem .45rem; border-radius: 4px; font-size: .7rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: #fff; background: #697386; vertical-align: 1px;
}
.tag-c { background: var(--counting); } .tag-p { background: var(--permanence); } .tag-r { background: var(--reference); }
.tag-ok { background: var(--ok); } .tag-auto { background: var(--accent); }
.hint { font-size: .8rem; color: var(--text); text-align: center; margin: -.8rem 0 1.4rem; }
.level-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin: -.4rem 0 1.2rem; }
.level-bar .hint { margin: 0; text-align: left; max-width: 40rem; }
.level-bar .seg button { padding: .45rem 1.1rem; font-size: .88rem; }
.level-bar .bar-ctrls { display: flex; flex-wrap: wrap; gap: .5rem; }

.task-card { border: 1px solid var(--border); border-radius: 12px; background: #fff; padding: 1.1rem 1.2rem 1.2rem; margin-bottom: 1.2rem; }
.task-card h4 { font-size: 1.05rem; margin-bottom: .2rem; }
.task-card .card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; margin-bottom: .3rem; }
.task-card .card-head h4 { margin: 0; }
.task-card .instr { font-size: .92rem; color: var(--text); margin-bottom: .8rem; }
.task-card .instr b { color: var(--text); }
.task-card video { width: 100%; border-radius: 8px; background: #000; }
.task-card .note { font-size: .82rem; color: var(--text-secondary); margin-top: .55rem; }

.method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: 1.6rem; }
.method-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 1.3rem 1.4rem; }
.method-card h3 { font-size: 1.08rem; margin-bottom: .45rem; color: var(--accent); }
.method-card p { font-size: .92rem; color: var(--text-secondary); line-height: 1.6; }
.subfigure { margin-top: 2.6rem; }
.subfigure.first { margin-top: .4rem; }

.story { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.story figure img { border-radius: 6px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border: 3px solid transparent; }
.story figure.cue img { border-color: var(--accent); }
.story figcaption { margin-top: .3rem; font-size: .84rem; color: var(--text); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 .5rem; }
.story figcaption span { color: var(--text-secondary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.story figure.cue figcaption { color: var(--accent); font-weight: 600; }
.memcompare { margin-top: 1.1rem; border: 1px solid var(--border); border-radius: 10px; background: var(--card-bg); padding: 1rem 1.1rem; }
.mc-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; margin-bottom: .8rem; }
.mc-title { font-size: .92rem; color: var(--text); font-weight: 600; }
.verdict.yes { color: var(--accent); } .verdict.no { color: var(--fail); }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: #fff; }
.seg button { border: 0; background: transparent; padding: .38rem .9rem; border-radius: 999px; cursor: pointer; font: 600 .82rem/1 'Inter', sans-serif; color: var(--text-secondary); }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.slots { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; }
.slot { position: relative; }
.slot .pic { aspect-ratio: 16 / 9; border-radius: 5px; background: #e9ecef center / cover no-repeat; border: 2px solid transparent; }
.slot.cue .pic { border-color: var(--accent); }
.slot.now .pic { outline: 1px dashed #888; outline-offset: 2px; }
.slot.empty .pic { background: repeating-linear-gradient(45deg, #eef0f2 0 6px, #fff 6px 12px); border: 1px dashed var(--border); }
.slot .t { margin-top: .25rem; font-size: .72rem; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.slot.cue .t { color: var(--accent); font-weight: 600; }
.slot .flag { position: absolute; top: 4px; left: 4px; padding: 1px 5px; border-radius: 3px; background: var(--accent); color: #fff; font-size: .6rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

.explorer { border: 1px solid var(--border); border-radius: 12px; background: #fff; padding: 1.1rem 1.2rem 1.2rem; }
.xp-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.3rem; align-items: start; }
.xp-view { position: relative; border-radius: 8px; overflow: hidden; background: #000; }
.xp-view video { width: 100%; aspect-ratio: 16 / 9; }
.xp-hud { position: absolute; left: 8px; bottom: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.xp-hud span { padding: 3px 7px; border-radius: 4px; background: rgba(0, 0, 0, .65); color: #fff; font-size: .74rem; font-variant-numeric: tabular-nums; }
.xp-hud .blink { background: #f2c230; color: #1a1400; font-weight: 700; }
.xp-side p { font-size: .92rem; color: var(--text); line-height: 1.6; }
.xp-controls { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.btn {
  display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: 6px; border: 1px solid var(--border);
  background: #fff; color: var(--text); font: 600 .84rem/1 'Inter', sans-serif; cursor: pointer; transition: all .2s ease;
}
.btn svg { width: 13px; height: 13px; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, .08); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.xp-count { margin-top: 1rem; display: grid; gap: .35rem; font-size: .86rem; }
.xp-count div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--border); padding-bottom: .35rem; }
.xp-count .ok { color: var(--accent); } .xp-count .miss { color: var(--fail); }
.timeline { margin-top: 1.1rem; }
.tl-track { position: relative; height: 62px; border-radius: 8px; background: #f1f3f5; overflow: hidden; }
.tl-lane { position: absolute; left: 0; right: 0; height: 18px; }
.tl-lane.u { top: 10px; } .tl-lane.w { top: 34px; }
.tl-lane i { position: absolute; top: 0; width: 3px; height: 18px; margin-left: -1px; border-radius: 2px; }
.tl-lane.u i { background: var(--uniform); } .tl-lane.w i { background: var(--accent); }
.tl-blink { position: absolute; top: 0; bottom: 0; background: rgba(242, 194, 48, .6); min-width: 3px; }
.tl-dec { position: absolute; top: 0; bottom: 0; border-left: 2px dashed #444; }
.tl-cursor { position: absolute; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: #111; }
.tl-future { position: absolute; top: 0; bottom: 0; right: 0; background: rgba(255, 255, 255, .55); }
.tl-labels { display: flex; justify-content: space-between; margin-top: .25rem; font-size: .74rem; color: var(--text-secondary); }
.xp-label { display: block; margin-top: .5rem; font-size: .78rem; color: var(--text-secondary); }
#xp-t { width: 100%; accent-color: var(--accent); }
.tl-key { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin-top: .4rem; font-size: .76rem; color: var(--text-secondary); }
.tl-key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .35rem; vertical-align: -1px; }
.tl-key .k-blink { background: rgba(242, 194, 48, .8); } .tl-key .k-u { background: var(--uniform); } .tl-key .k-w { background: var(--accent); }
.tl-key .k-dec { width: 0; height: 10px; border-left: 2px dashed #444; border-radius: 0; }
.xp-rows { display: grid; gap: .9rem; margin-top: 1.1rem; }
.xp-head { font-size: .85rem; color: var(--text-secondary); margin-bottom: .4rem; }
.xp-head b { color: var(--text); }

.results-text { max-width: 53.75rem; margin: 0 auto 1rem; }
.results-text p { color: var(--text); }
.results-text p + p { margin-top: .9rem; }
.result-block { margin-top: 2.4rem; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.2rem; font-size: .82rem; color: var(--text); margin-bottom: .6rem; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .4rem; vertical-align: -1px; }
.legend .chance-key { width: 16px; height: 0; border-top: 2px dashed #444; border-radius: 0; vertical-align: 3px; }
.chart-wrap { overflow-x: auto; }
.chart { width: 100%; height: auto; display: block; margin: 0 auto; max-width: 53.75rem; }
.chart text { font-family: 'Inter', sans-serif; fill: var(--text-secondary); font-size: 11px; }
.chart .t-ink { fill: var(--text); }
.chart .t-strong { fill: var(--text); font-weight: 700; }
.chart .halo { paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.chart .axis { stroke: #cfd5db; stroke-width: 1; }
.chart .grid { stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 3; }
.chart .chance { stroke: #444; stroke-width: 1.5; stroke-dasharray: 4 3; }
.table-tools { display: flex; justify-content: flex-end; margin-bottom: .5rem; }
.table-tools label { display: inline-flex; align-items: center; gap: .4rem; font-size: .84rem; color: var(--text); cursor: pointer; }
.tbd { display: inline-block; padding: 0 .35rem; border: 1px dashed var(--reference); border-radius: 4px; color: var(--reference); font-size: .72rem; font-weight: 700; line-height: 1.5; }

.task-table-wrapper { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.task-table { width: 100%; min-width: 920px; border-collapse: collapse; font-size: .83rem; line-height: 1.45; }
.task-table th, .task-table td { padding: .65rem .75rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.task-table th { background: #f6f7fb; color: var(--text); font-weight: 700; white-space: nowrap; }
.task-table tbody tr:last-child td, .task-table tbody tr:last-child th { border-bottom: none; }
.task-table tbody tr:not(.suite-row):nth-child(odd) { background: #fcfcfd; }
.suite-row td { background: var(--accent-soft); color: #4a3f63; font-weight: 700; }
.memory-type { color: var(--accent); font-weight: 700; white-space: nowrap; }
.steps { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.res { min-width: 760px; font-variant-numeric: tabular-nums; }
table.res th, table.res td { text-align: center; vertical-align: middle; white-space: nowrap; }
table.res th[scope="row"] { text-align: left; font-weight: 600; }
table.res th[scope="row"] .id { color: var(--text-secondary); font-weight: 400; margin-right: .35rem; }
table.res .lv { display: block; font-size: .72rem; color: var(--text-secondary); font-weight: 400; }
table.res td.best { font-weight: 800; color: var(--text); }
table.res td.second { text-decoration: underline; text-underline-offset: 3px; }
table.res .ours { background: var(--accent-soft) !important; }
table.res tr.sum th, table.res tr.sum td { border-top: 2px solid #d6dbe1; font-weight: 700; }

.bib { position: relative; max-width: 47.5rem; margin: 0 auto; }
pre { background: #f5f5f5; padding: 1.2rem 1.5rem; border-radius: 8px; overflow-x: auto; font-size: .85rem; border: 1px solid var(--border); }
code { color: var(--text); font-family: 'SF Mono', 'Fira Code', Menlo, monospace; }
.bib .btn { position: absolute; top: .6rem; right: .6rem; }

footer { text-align: center; padding: 2rem; font-size: .85rem; color: var(--text-secondary); border-top: 1px solid var(--border); }
footer a { color: var(--text-secondary); }

@media (max-width: 900px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xp-top { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  header { padding-top: 2.4rem; }
  .site-nav .brand { display: none; }
  .site-nav ul { margin-left: 0; }
  .video-grid { grid-template-columns: 1fr; }
  .resource-links { gap: .45rem; max-width: 27.5rem; }
  .resource-pill { font-size: .86rem; }
  .resource-prefix, .resource-value { min-height: 36px; padding: .5rem .62rem; }
  .method-grid { grid-template-columns: 1fr; }
  .story { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #abstract p { text-align: left; }
}

@media (min-width: 1400px) { html { font-size: 17px; } :root { --container: 1180px; } header .hero-video { max-width: 800px; } }
@media (min-width: 1760px) { html { font-size: 18px; } :root { --container: 1340px; } header .hero-video { max-width: 920px; } }
@media (min-width: 2200px) { html { font-size: 20px; } :root { --container: 1520px; } header .hero-video { max-width: 1040px; } }

.evtl { padding: .8rem .85rem .3rem; }
.evtl-area { position: relative; }
.evtl-stems { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.evtl-stem path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; }
.evtl-stem circle { fill: var(--accent); }
.evtl-stem.d path { stroke: #3b6e94; } .evtl-stem.d circle { fill: #3b6e94; }
.evtl-stem, .evtl-box, .evtl-dep { transition: opacity .35s ease, transform .35s ease; }
.evtl-stem.future, .evtl-box.future, .evtl-dep.future { opacity: 0; visibility: hidden; }
.evtl-box.future, .evtl-dep.future { transform: translateY(6px); }
.evtl-stem:not(.cur) { opacity: .45; }
.evtl-box { position: absolute; top: 0; box-sizing: border-box; padding: .42rem .58rem .48rem; border: 1px solid #e3ddec; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.evtl-box .hd { display: flex; align-items: center; gap: .35rem; white-space: nowrap; }
.evtl-box .id { padding: .06rem .45rem; border-radius: 999px; background: var(--accent); color: #fff; font: 700 .62rem/1.4 Inter, system-ui, sans-serif; letter-spacing: .02em; }
.evtl-box .tm { color: #7a7f87; font: 500 .62rem/1 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.evtl-box .tx { margin-top: .32rem; color: #1d2025; font: 500 .74rem/1.38 Inter, system-ui, sans-serif; }
.evtl-box.cur { border-color: #b9abd3; box-shadow: 0 0 0 3px rgba(122, 106, 154, .14), 0 6px 16px rgba(16, 24, 40, .08); }
.evtl-box.d .id { background: #3b6e94; }
.evtl-box.d.cur { border-color: #a9c1d6; box-shadow: 0 0 0 3px rgba(59, 110, 148, .14), 0 6px 16px rgba(16, 24, 40, .08); }
.evtl-dep { position: absolute; display: flex; flex-direction: column; gap: .16rem; padding: .1rem .2rem; border-radius: 4px; background: var(--evtl-bg, #fff); color: #6d5f88; font: 500 .65rem/1.3 Inter, system-ui, sans-serif; }
.video-item .evtl { --evtl-bg: var(--card-bg, #fafafa); }
.evtl-dep > div { display: flex; align-items: baseline; gap: .28rem; }
.evtl-dep .ar { color: var(--accent); font-weight: 700; }
.evtl-dep .dk { flex-shrink: 0; padding: 0 .32rem; border: 1px solid #cfc5e0; border-radius: 999px; color: var(--accent); font-size: .6rem; font-weight: 700; line-height: 1.35; }
.evtl-dep.d .ar, .evtl-dep.d .dk { color: #3b6e94; border-color: #b9cde0; } .evtl-dep.d .why { color: #4d6a82; }
.evtl-dep:not(.cur) { opacity: .8; }
.evtl-axis { position: relative; height: 6px; border-radius: 3px; background: #ebe8f0; }
.evtl-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #e6e0ef, #cfc5e0); }
.evtl-band { position: absolute; top: -3px; bottom: -3px; border-radius: 3px; background: #d8cfe6; transition: background .3s ease; }
.evtl-band.on { background: var(--accent); }
.evtl-dmark { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 2px; background: #c3d4e3; transform: rotate(45deg); transition: background .3s ease; }
.evtl-dmark.on { background: #3b6e94; }
.evtl-break { position: absolute; top: 50%; transform: translate(-50%, -52%); padding: 0 2px; background: var(--card-bg, #fafafa); color: #a7abb2; font: 700 .72rem/1 Inter, system-ui, sans-serif; }
.evtl-head { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; border: 2px solid #16181d; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.evtl-gaps { position: relative; height: 1rem; }
.evtl-gap { position: absolute; top: .3rem; transform: translateX(-50%); color: #a7abb2; font: 500 .6rem/1 Inter, system-ui, sans-serif; }
.timeline .evtl-area { margin-bottom: 0; }
.evtl-area.compact .evtl-box { padding: .35rem .4rem .4rem; }
.evtl-area.compact .evtl-box .tx { font-size: .66rem; }
.evtl-area.compact .evtl-box .hd { flex-wrap: wrap; row-gap: .2rem; white-space: normal; }
.evtl-area.compact .evtl-box .tm { font-size: .58rem; }
.evtl-area.compact .evtl-dep { position: static; margin-top: .3rem; padding: .25rem 0 0; border-top: 1px dashed #e3ddec; border-radius: 0; background: none; font-size: .6rem; transform: none; }
.cat-intro code, .caption code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; background: var(--accent-soft); padding: 0 .3em; border-radius: 4px; }
@media (min-width: 769px) { .video-grid.cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
