*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fafafa;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f5f5;
  --bg-elevated: #f0f0f2;
  --border: #e2e2e8;
  --text: #1a1a1e;
  --text-muted: #5a5a63;
  --text-dim: #8a8a96;
  --accent: #2b7bbf;
  --accent-2: #2fb38c;
  --accent-dim: rgba(43, 123, 191, 0.08);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}

html { scroll-behavior: smooth; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text); font-family: var(--font-body);
  line-height: 1.6; overflow-x: hidden; width: 100%; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button { font: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container.narrow { max-width: 860px; }
section { padding: 3rem 0; }

/* TITLE */
#hero { padding: 4.5rem 0 2.5rem; text-align: center; position: relative; }
#hero::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(800px, 100%); height: 600px; pointer-events: none;
  background: radial-gradient(ellipse, rgba(43,123,191,0.07) 0%, transparent 70%);
}
.hero-title {
  font-family: var(--font-display); font-size: 4.2rem; font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.08; margin: 0 auto 1.4rem; max-width: 1000px; position: relative;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-authors { font-size: 1.05rem; color: var(--text-dim); margin-bottom: 1.75rem; line-height: 1.8; position: relative; }
.hero-authors span { color: var(--text-muted); }
.btn-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; position: relative; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.6rem; border-radius: 8px;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text); text-decoration: none;
}
.btn:hover { background: var(--bg-card-hover); border-color: var(--text-dim); text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: #2370b0; border-color: #2370b0; }

/* WHAT? AND POSITION */
#intro { padding-top: 1.5rem; padding-bottom: 1rem; }
.row + .row { margin-top: 2.25rem; }
.row-label { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; line-height: 1.2; margin-bottom: 0.6rem; }
.row-text { font-size: 1.3rem; line-height: 1.7; color: var(--text-muted); }
.row-text b { color: var(--text); font-weight: 600; }

/* WHAT WE THINK? */
#think { padding-bottom: 2rem; }
.center-label { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; text-align: center; margin-bottom: 1.25rem; }
.marquee {
  overflow: hidden; padding: 0.75rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track.reverse { animation-direction: reverse; }
#marquee-2 { padding-top: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.chip {
  flex: none; margin-right: 1rem; padding: 0.85rem 1.5rem; border-radius: 999px; cursor: pointer; white-space: nowrap;
  border: 1.5px solid var(--border); background: var(--bg-card); color: var(--text); box-shadow: var(--shadow-card);
  font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.hint { text-align: center; font-size: 0.9rem; color: var(--text-dim); margin-top: 0.5rem; }
.on-touch { display: none; }
@media (hover: none) { .on-hover { display: none; } .on-touch { display: inline; } }

.qa {
  position: relative; margin-top: 1.5rem; background: var(--bg-card); border: 1px solid var(--border);
  border-top: 3px solid var(--accent); border-radius: 14px; padding: 1.75rem 2rem; box-shadow: 0 8px 24px rgba(15,23,42,0.08);
  animation: rise 0.25s ease;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.qa h3 { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.3; margin-bottom: 0.8rem; padding-right: 2rem; }
.qa p { font-size: 1.02rem; color: var(--text-muted); line-height: 1.7; }
.qa p + p { margin-top: 0.8rem; }
.qa strong { color: var(--text); }
sub { line-height: 0; font-size: 0.75em; }
.qa-close {
  position: absolute; top: 0.9rem; right: 1rem; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; color: var(--text-muted); font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.qa-close:hover { border-color: var(--accent); color: var(--accent); }
.mini { width: 100%; max-width: 420px; margin-top: 1rem; border-collapse: collapse; font-size: 0.95rem; }
.mini th { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; color: var(--text-dim); text-align: right; padding: 0.3rem 0.6rem; border-bottom: 1px solid var(--border); }
.mini td { padding: 0.35rem 0.6rem; text-align: right; color: var(--text-muted); font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--bg-elevated); }
.mini td:first-child { text-align: left; color: var(--text); }
.mini b { color: var(--accent); }

/* COMPETITIONS */
#competitions { padding-top: 1.5rem; }
.comp-toggle {
  display: inline-flex; align-items: center; gap: 0.7rem; padding: 0.9rem 1.6rem; border-radius: 14px; cursor: pointer;
  border: 2px solid var(--text); background: var(--bg-card); color: var(--text);
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; line-height: 1.2;
}
.comp-toggle:hover { border-color: var(--accent); color: var(--accent); }
.comp-toggle .tri { font-size: 1.3rem; transition: transform 0.2s; display: inline-block; }
.comp-toggle[aria-expanded="true"] .tri { transform: rotate(180deg); }
.comp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.comp-grid[hidden] { display: none; }
.comp-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; animation: rise 0.25s ease;
}
.comp-card img { display: block; width: 100%; aspect-ratio: 1200 / 833; object-fit: cover; border-bottom: 1px solid var(--border); }
.comp-body { padding: 1.1rem 1.15rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.comp-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 0.4rem; }
.comp-head h3 { font-family: var(--font-display); font-size: 1.2rem; }
.place { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; padding: 0.15rem 0.7rem; border-radius: 999px; background: var(--bg-elevated); color: var(--text-muted); white-space: nowrap; }
.place.gold { background: #fdf3d0; color: #8a6a00; }
.place.silver { background: #eceff3; color: #4b5563; }
.place.bronze { background: #f6e3d3; color: #8a4a17; }
.comp-task { color: var(--text-muted); font-size: 0.93rem; }
.comp-metric { font-size: 0.88rem; margin-top: 0.6rem; color: var(--text-muted); line-height: 1.6; }
.comp-metric b { font-family: var(--font-display); color: var(--text); }
.comp-metric span { color: var(--text-dim); }
details { margin-top: 0.8rem; border-top: 1px solid var(--border); padding-top: 0.7rem; }
summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 0.93rem; color: var(--text); list-style: none; display: flex; align-items: center; gap: 0.4rem; }
summary::-webkit-details-marker { display: none; }
summary::before { content: '▸'; color: var(--accent); transition: transform 0.2s; display: inline-block; }
details[open] summary::before { transform: rotate(90deg); }
details p { font-size: 0.88rem; color: var(--text-muted); margin-top: 0.5rem; line-height: 1.6; }
.comp-link { margin-top: auto; padding-top: 0.8rem; font-size: 0.88rem; font-weight: 500; }

/* BIBTEX */
.bibtex-wrap { position: relative; }
.bibtex { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); white-space: pre; overflow-x: auto; }
.copy-btn { position: absolute; top: 1rem; right: 1rem; background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-muted); padding: 0.4rem 0.8rem; border-radius: 6px; font-family: var(--font-mono); font-size: 0.7rem; cursor: pointer; }
footer { padding: 3rem 1rem; text-align: center; font-size: 0.8rem; color: var(--text-dim); border-top: 1px solid var(--border); }

@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; gap: 0.75rem; padding: 0 1rem; }
  .marquee-track .chip { margin-right: 0; }
  .marquee-track .chip[aria-hidden="true"] { display: none; }
}

/* TABLET */
@media (max-width: 1000px) {
  .hero-title { font-size: 3.2rem; }
  .comp-grid { grid-template-columns: 1fr 1fr; }
}

/* PHONE */
@media (max-width: 640px) {
  .container { padding: 0 1.15rem; }
  section { padding: 2.25rem 0; }
  #hero { padding: 3rem 0 2rem; }
  .hero-title { font-size: 2.3rem; }
  .btn { padding: 0.6rem 1.1rem; font-size: 0.95rem; }
  .row-label, .center-label { font-size: 1.5rem; }
  .row-text { font-size: 1.08rem; }
  .marquee-track { animation-duration: 28s; }
  .chip { padding: 0.65rem 1.1rem; font-size: 0.95rem; margin-right: 0.7rem; }
  .qa { padding: 1.3rem 1.2rem; }
  .qa h3 { font-size: 1.2rem; }
  .qa p { font-size: 0.97rem; }
  .comp-toggle { font-size: 1.5rem; padding: 0.75rem 1.25rem; }
  .comp-grid { grid-template-columns: 1fr; }
  .comp-body { padding: 1.1rem 1.2rem 1.25rem; }
  .comp-task, .comp-metric, details p { font-size: 0.95rem; }
  .bibtex { font-size: 0.72rem; padding: 1.1rem; padding-top: 2.6rem; }
}

/* FIGURES INSIDE ANSWERS */
.qa-fig { margin: 1.3rem 0 1.3rem; }
.qa-fig img { display: block; width: 100%; border-radius: 10px; border: 1px solid var(--border); }
.qa-fig figcaption { font-size: 0.85rem; color: var(--text-dim); line-height: 1.5; margin-top: 0.55rem; }
.qa-fig .note { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim); letter-spacing: 0.02em; }

/* Screenshot with a target marker */
.shot { position: relative; }
.target {
  position: absolute; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  border: 4px solid #ffd60a; box-shadow: 0 0 0 2px rgba(0,0,0,0.55), inset 0 0 0 2px rgba(0,0,0,0.55);
}

/* Bar charts */
.bars { display: grid; gap: 0.55rem; }
.bar-group { display: grid; grid-template-columns: 11rem 1fr; align-items: center; gap: 0.75rem; }
.bar-name { font-size: 0.9rem; font-weight: 600; color: var(--text); line-height: 1.25; }
.bar-name small { display: block; font-weight: 400; font-size: 0.75rem; color: var(--text-dim); }
.bar-stack { display: grid; gap: 3px; }
.bar { position: relative; height: 22px; background: var(--bg-elevated); border-radius: 5px; overflow: hidden; }
.bar span {
  position: absolute; inset: 0 auto 0 0; border-radius: 5px; display: flex; align-items: center; justify-content: flex-end;
  padding-right: 0.45rem; font-size: 0.78rem; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums;
}
.bar .gui, .bar .ours { background: var(--accent); }
.bar .api, .bar .base { background: #9aa3b2; }
.legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.7rem; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 0.35rem; vertical-align: -1px; }

/* One action cycle split into prefill, decode and idle time */
.timebar { display: flex; height: 44px; border-radius: 8px; overflow: hidden; font-size: 0.82rem; font-weight: 600; }
.timebar div { display: flex; align-items: center; justify-content: center; color: #fff; white-space: nowrap; }
.timebar .pre { background: #1f5f96; }
.timebar .dec { background: var(--accent); }
.timebar .idle { background: var(--bg-elevated); color: var(--text-muted); }
.timeaxis { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim); margin-top: 0.3rem; }

/* Diagrams built from boxes */
.flow { display: grid; gap: 0.7rem; }
.flow-row { display: grid; grid-template-columns: 6.5rem 1fr 1.6rem 1fr; align-items: stretch; gap: 0.5rem; }
.flow-label { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; line-height: 1.2; }
.box {
  border: 1px solid var(--border); border-radius: 10px; padding: 0.6rem 0.75rem; background: #fff;
  font-size: 0.88rem; line-height: 1.4; color: var(--text);
}
.box .when { display: block; font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 0.15rem; }
.box code { display: inline-block; margin-top: 0.35rem; font-family: var(--font-mono); font-size: 0.78rem; background: var(--bg-elevated); padding: 0.1rem 0.4rem; border-radius: 4px; color: var(--text-muted); }
.box.old { background: #fbfbfc; color: var(--text-muted); }
.box.new { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.box.soft { border-style: dashed; color: var(--text-muted); }
.go { position: relative; align-self: center; height: 2px; background: var(--text-dim); margin-right: 6px; }
.go::after { content: ''; position: absolute; right: -6px; top: -5px; border-left: 8px solid var(--text-dim); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

.grid3 { display: grid; grid-template-columns: 6.5rem repeat(3, 1fr); gap: 0.5rem; }
.grid3 .head { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; line-height: 1.25; padding: 0 0.2rem; }
.grid3 .head small { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 0.68rem; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.split h4 { font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 0.45rem; }
.split ul { list-style: none; display: grid; gap: 0.4rem; }
.split li { border: 1px solid var(--border); border-radius: 8px; padding: 0.45rem 0.65rem; font-size: 0.86rem; line-height: 1.35; background: #fff; }
.split .agent li { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.split li small { display: block; color: var(--text-dim); font-size: 0.75rem; }

.four { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.four figure { position: relative; }
.four img { border-radius: 8px; }
.four span {
  position: absolute; left: 0.45rem; top: 0.45rem; background: rgba(26,26,30,0.82); color: #fff; font-size: 0.75rem; font-weight: 600;
  padding: 0.12rem 0.5rem; border-radius: 999px;
}
.pill {
  display: block; width: max-content; max-width: 100%; margin: 0 auto 0.7rem; padding: 0.45rem 1rem; border-radius: 999px;
  background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; text-align: center;
}

/* Two small screens for the click illustration */
.screens { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.screen { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.screen .bar-top { height: 22px; background: var(--bg-elevated); display: flex; align-items: center; gap: 5px; padding: 0 8px; }
.screen .bar-top i { width: 8px; height: 8px; border-radius: 50%; background: #cfd3da; }
.screen .ui { position: relative; padding: 0.7rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45rem; }
.screen .ui b { position: relative; display: block; height: 26px; border-radius: 6px; background: #eef1f6; border: 1px solid #dfe3ea; }
.screen .ui b.hit { background: #dbe8f5; border-color: var(--accent); }
.screen .ui b em {
  position: absolute; left: -6px; top: -8px; font-style: normal; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600;
  background: #e5484d; color: #fff; border-radius: 4px; padding: 0 3px; line-height: 1.4;
}
.screen .ui .dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid #e5484d; background: rgba(229,72,77,0.15); }
.screen .out { border-top: 1px solid var(--border); padding: 0.5rem 0.7rem; font-size: 0.8rem; color: var(--text-muted); }
.screen .out code { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text); background: var(--bg-elevated); padding: 0.05rem 0.35rem; border-radius: 4px; white-space: nowrap; }
.screen .out .when { display: block; font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); }

/* Token strips for action formats */
.tokens { display: grid; gap: 0.55rem; }
.tok-row { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.6rem; align-items: start; }
.tok-row .who { font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; padding-top: 0.15rem; }
.tok-row .what { font-size: 0.86rem; color: var(--text-muted); line-height: 1.4; }
.tok-row .what code { font-family: var(--font-mono); font-size: 0.76rem; background: var(--bg-elevated); color: var(--text); padding: 0.05rem 0.35rem; border-radius: 4px; }
.tok-row.us .who { color: var(--accent); }

/* One general model */
.model { border: 2px solid var(--accent); border-radius: 14px; padding: 0.9rem; text-align: center; background: linear-gradient(180deg, var(--accent-dim), #fff); }
.model h4 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 0.6rem; }
.skills { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: center; }
.skills span { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.85rem; font-weight: 500; }
.addon { margin: 0.6rem auto 0; max-width: 32rem; border: 1.5px dashed var(--text-dim); border-radius: 10px; padding: 0.45rem 0.8rem; font-size: 0.82rem; color: var(--text-muted); }

.chart svg { display: block; width: 100%; height: auto; font-family: var(--font-body); }

@media (max-width: 640px) {
  .flow-row { grid-template-columns: 1fr; }
  .flow-row .go { display: none; }
  .grid3 { grid-template-columns: 1fr; }
  .grid3 .corner { display: none; }
  .split, .screens { grid-template-columns: 1fr; }
  .bar-group, .tok-row { grid-template-columns: 1fr; gap: 0.3rem; }
  .timebar { font-size: 0.7rem; }
}

.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.phase { border: 1px solid var(--border); border-radius: 12px; background: #fff; overflow: hidden; }
.phase h4 { font-family: var(--font-display); font-size: 0.98rem; padding: 0.55rem 0.75rem 0.5rem; border-bottom: 1px solid var(--border); background: var(--bg-elevated); line-height: 1.25; }
.phase h4 small { display: block; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; }
.phase p { font-size: 0.84rem !important; line-height: 1.45 !important; padding: 0.5rem 0.75rem; margin: 0 !important; }
.phase p + p { border-top: 1px dashed var(--border); }
.phase p b { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); }
.phase p.emb b { color: var(--accent-2); }

.pipe { display: grid; grid-template-columns: 1fr 1.6rem 1fr; align-items: stretch; gap: 0.5rem; }
.pipe .box h4 { font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 0.35rem; }
.pipe .box ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.pipe .box li { font-size: 0.8rem; background: var(--bg-elevated); border-radius: 999px; padding: 0.15rem 0.6rem; color: var(--text-muted); }
.pipe .box .why { font-size: 0.8rem; color: var(--text-dim); margin-top: 0.45rem; }

@media (max-width: 640px) {
  .phases, .pipe { grid-template-columns: 1fr; }
  .pipe .go { display: none; }
}

/* Column charts that stay readable on small screens */
.vtitle { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.vinner { position: relative; height: 150px; display: flex; align-items: flex-end; gap: 0.8rem; border-bottom: 1px solid var(--border); padding: 0 0.3rem; }
.vcol { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.vcol .b { position: relative; width: min(64px, 75%); background: var(--accent); border-radius: 5px 5px 0 0; }
.vcol .b span { position: absolute; left: 50%; transform: translateX(-50%); top: -1.35rem; font-weight: 700; font-size: 0.86rem; white-space: nowrap; }
.vcol .b.dim { background: #9aa3b2; }
.vlabels { display: flex; gap: 0.8rem; padding: 0.4rem 0.3rem 0; }
.vlabels div { flex: 1; text-align: center; font-size: 0.8rem; font-weight: 600; line-height: 1.25; }
.vlabels small { display: block; font-weight: 400; color: var(--text-dim); font-size: 0.7rem; margin-top: 0.1rem; }
.vref { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--accent-2); z-index: 1; pointer-events: none; }
.vref span { position: absolute; left: 0.3rem; top: -1.35rem; font-size: 0.75rem; font-weight: 600; color: #1f8f6e; background: rgba(255,255,255,0.9); padding: 0 0.25rem; border-radius: 3px; }

.timelegend { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.45rem; }
.timelegend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 0.35rem; vertical-align: -1px; }
a.zoom { display: block; cursor: zoom-in; }
