:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #0f1419;
  --muted: #5b6573;
  --line: rgba(15, 20, 25, 0.08);
  --accent: #2563eb;
  --accent-2: #14b8a6;
  --accent-soft: #eef2ff;
  --stage: #0b0e13;
  --radius: 14px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.reading { max-width: 760px; }

/* Sticky frosted navigation */
.topnav {
  position: sticky;
  top: 12px;
  z-index: 50;
  width: min(760px, calc(100% - 24px));
  margin: 12px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 10px 8px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(15, 20, 25, 0.06);
}
.topnav-brand { font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.topnav-links { display: flex; gap: 2px; }
.topnav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.topnav-links a:hover { background: var(--accent-soft); color: var(--ink); }

/* Hero */
.hero { padding: 72px 0 24px; text-align: center; }
.eyebrow, .section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.title {
  margin: 0;
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
}
.brand {
  background: linear-gradient(100deg, var(--ink) 0%, var(--accent) 55%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subtitle {
  max-width: 860px;
  margin: 18px auto 28px;
  text-wrap: balance;
  font-size: clamp(19px, 2.3vw, 26px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #2b333d;
}
.authors {
  list-style: none;
  padding: 0;
  margin: 0 0 6px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 22px;
  font-size: 16px;
  font-weight: 500;
}
.affiliation { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.author-note { margin: 0 0 28px; color: var(--muted); font-size: 12px; }
.authors sup, .affiliation sup, .author-note sup { margin-left: 1px; font-size: 0.68em; line-height: 0; }
.affiliation sup, .author-note sup { margin: 0 2px 0 0; }

.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 48px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}
.pill svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pill:hover { transform: translateY(-1px); background: var(--accent); }
.pill.is-disabled { background: var(--surface); color: #9aa3ae; border: 1px solid var(--line); pointer-events: none; }

/* Dark media stage */
.stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(37, 99, 235, 0.18), transparent 60%),
    var(--stage);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 20, 25, 0.18);
}
.stage-square { aspect-ratio: 4 / 3; box-shadow: none; }
.stage-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  padding: 24px;
}
.stage-label { font-size: 18px; font-weight: 600; }
.stage-note { font-size: 14px; color: rgba(255, 255, 255, 0.55); }

/* Sections */
.section { padding: 96px 0 0; scroll-margin-top: 80px; }
main > .section:last-child { padding-bottom: 96px; }
.section-title {
  margin: 0 0 28px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
}
.section-title.small { font-size: 22px; margin: 0 0 16px; }
.section-lead { margin: -16px 0 28px; color: var(--muted); font-size: 17px; }

.tldr {
  margin: 0 0 24px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(37, 99, 235, 0.15);
  font-size: 16px;
}
.tldr strong { color: var(--accent); margin-right: 6px; }
.abstract { margin: 0; font-size: 17px; line-height: 1.75; color: #2b333d; text-align: justify; hyphens: auto; }

/* Figures */
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.figure { margin: 0; padding: 24px; }
.figure img { display: block; width: 100%; height: auto; }
.figure figcaption { margin-top: 14px; color: var(--muted); font-size: 14px; text-align: center; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.card {
  position: relative;
  padding: 26px 22px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(15, 20, 25, 0.05);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s, opacity 0.5s ease-out;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(15, 20, 25, 0.09); border-color: rgba(37, 99, 235, 0.25); }
.card-num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
}
.card h3 { margin: 16px 0 8px; font-size: 17px; font-weight: 650; line-height: 1.3; letter-spacing: -0.01em; }
.card p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.55; }

.rail { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 72px; }
.rail-item {
  font: 500 14px var(--sans);
  color: #b6c0cc;
  background: #141922;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.rail-item:hover { color: #fff; }
.rail-item.is-active { color: #fff; border-color: var(--accent-2); background: rgba(20, 184, 166, 0.12); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* BibTeX */
.code-block { position: relative; }
.code-block pre {
  margin: 0;
  padding: 48px 24px 22px;
  border-radius: 12px;
  background: var(--stage);
  color: #d6dde6;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  overflow-x: auto;
}
.copy {
  position: absolute;
  top: 12px;
  right: 12px;
  font: 600 12px var(--sans);
  color: #d6dde6;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}
.copy:hover { background: rgba(255, 255, 255, 0.16); }

.footer { padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.reveal.is-visible { opacity: 1; transform: none; }
.card.reveal.is-visible:hover { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .pill { transition: none; }
}

@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .topnav-links a { padding: 6px 8px; font-size: 13px; }
  .hero { padding-top: 48px; }
  .cards, .split { grid-template-columns: 1fr; }
  .figure { padding: 12px; }
  .section { padding-top: 72px; }
  .abstract { text-align: left; }
}

@media (max-width: 480px) {
  .topnav-brand { display: none; }
  .topnav { justify-content: center; padding-left: 10px; }
  .topnav-links a { padding: 6px 6px; font-size: 12.5px; }
  .topnav-links a[href="#abstract"] { display: none; }
}

/* Videos inside stages */
.stage-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0d1117; display: block; }

.section-title.comparison-title { margin-top: 72px; }

/* Comparison: four maps in a 2 x 2 grid under one camera; labels sit in each cell's top-left corner */
.compare-options { padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.compare-labels { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; pointer-events: none; }
.compare-label { align-self: start; justify-self: start; margin: 10px 12px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #d6dde6; background: rgba(13, 17, 23, 0.7); }
.compare-label:empty { display: none; }
.compare-label.is-ours { color: #04201c; background: #5eead4; }

/* Interactive viewer */
/* The viewer is the only dark block on the page; the results section itself stays light. */
.viewer {
  border: 1px solid rgba(15, 20, 25, 0.10);
  border-radius: 18px;
  background: #141922;
  color: #e8ecf1;
  box-shadow: 0 24px 60px -30px rgba(15, 20, 25, 0.45);
  overflow: hidden;
}
.seg {
  font: 500 13px var(--sans);
  color: #b6c0cc;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.seg:hover { color: #fff; }
.seg.is-active { color: #04201c; background: #5eead4; border-color: #5eead4; }

.viewer-stage { position: relative; aspect-ratio: 16 / 9; background: #0d1117; }
.viewer-canvas, .viewer-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.viewer-canvas canvas { cursor: grab; }
.viewer-canvas canvas:active { cursor: grabbing; }

.viewer-status {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: #d6dde6; font-size: 14px; background: rgba(13, 17, 23, 0.6); pointer-events: none;
}
.viewer-status[hidden] { display: none; }
.viewer-status-track { width: 220px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.viewer-status-bar { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; transform: scaleX(0); transition: transform 0.15s; }

.viewer-hud { position: absolute; left: 14px; bottom: 12px; font: 500 12px var(--mono); color: rgba(255, 255, 255, 0.6); pointer-events: none; }
.viewer-reset {
  position: absolute; right: 12px; top: 10px; width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(13, 17, 23, 0.7); color: #d6dde6; cursor: pointer;
}
.viewer-reset svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.viewer-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.viewer-play {
  flex: none; width: 38px; height: 38px; border-radius: 999px; border: 0; display: grid; place-items: center; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
}
.viewer-play svg { width: 16px; height: 16px; fill: currentColor; }
.viewer-play .icon-pause { display: none; }
.viewer-play.is-playing .icon-pause { display: block; }
.viewer-play.is-playing .icon-play { display: none; }
.viewer-time { flex: 1; accent-color: var(--accent-2); }
.viewer-clock { font: 500 12px var(--mono); color: #94a0ae; white-space: nowrap; }
.viewer-speed { font: 500 13px var(--sans); color: #d6dde6; background: #0d1117; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 8px; padding: 5px 8px; }

.viewer-options { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 0 16px 14px; font-size: 13px; color: #b6c0cc; }
.viewer-options label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.viewer-options input[type="checkbox"] { accent-color: var(--accent-2); }
.viewer-note { margin-left: auto; color: #7d8896; font-size: 12px; }

@media (max-width: 720px) {
  .viewer-stage { aspect-ratio: 4 / 3; }
  .viewer-note { margin-left: 0; }
}

/* Scene cards driving the viewer */
.scene-cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.scene-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  text-align: left;
  font: inherit;
  color: #b6c0cc;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, color 0.2s;
}
.scene-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: 0.7; transition: opacity 0.2s; }
.scene-card-text { display: flex; flex-direction: column; padding: 8px 10px 9px; line-height: 1.25; }
.scene-card-name { font-size: 13px; font-weight: 600; color: inherit; }
.scene-card-set { font-size: 11px; color: #7d8896; }
.scene-card:hover { transform: translateY(-2px); color: #fff; }
.scene-card:hover img { opacity: 1; }
.scene-card.is-active { border-color: var(--accent-2); color: #fff; box-shadow: 0 0 0 1px var(--accent-2) inset; }
.scene-card.is-active img { opacity: 1; }

.viewer-mode { position: absolute; left: 12px; top: 10px; display: flex; background: rgba(13, 17, 23, 0.7); border-radius: 999px; padding: 3px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); z-index: 3; }
.viewer-mode .seg { border: 0; padding: 5px 12px; }
.viewer-mode[hidden] { display: none; }
.viewer-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0d1117; display: none; z-index: 2; }
.viewer.is-video .viewer-video { display: block; }
.viewer.is-video .viewer-reset, .viewer.is-video .viewer-hud { display: none; }
.viewer-bar[hidden], .viewer-options[hidden] { display: none; }

@media (max-width: 560px) {
  .scene-cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .scene-card { flex: 0 0 42%; scroll-snap-align: start; }
}
@media (max-width: 560px) {
  .viewer-clock { display: none; }
  .viewer-bar { gap: 10px; padding: 10px 12px; }
}

/* Benchmarks: ranked bars, VIStream in the accent colour, every other method in one grey */
.bench { position: relative; }
.bench-controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.seg-group.light { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.seg-group.light .seg { color: var(--muted); border: 0; padding: 6px 14px; }
.seg-group.light .seg:hover { color: var(--ink); }
.seg-group.light .seg.is-active { color: #fff; background: var(--ink); }
.bench-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px 18px; }
.bench-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; margin-bottom: 14px; }
.bench-title { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.bench-legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.bench-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw.ours { background: var(--accent); }
.sw.other { background: #8391a6; }
.bench-chart { --n: 1; }
.bench-row { display: grid; grid-template-columns: 200px repeat(var(--n), minmax(0, 1fr)) 64px; align-items: center; gap: 8px 18px; padding: 5px 6px; border-radius: 8px; outline: none; }
.bench-row:not(.bench-head-row):hover, .bench-row:focus-visible { background: #f1f4f8; }
.bench-name { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.bench-method { font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bench-group { font-size: 11px; color: var(--muted); }
.is-ours .bench-method { font-weight: 700; }
.bench-track { --label-room: 76px; display: flex; align-items: center; gap: 8px; min-width: 0; height: 26px; border-left: 1px solid #c9d1dc; }
.bench-bar { display: block; flex: none; height: 14px; background: #8391a6; border-radius: 0 4px 4px 0; transition: width 0.35s ease; }
.is-ours .bench-bar { background: var(--accent); }
.bench-value { font: 500 13px var(--mono); color: var(--ink); white-space: nowrap; }
.bench-fail { font-size: 13px; color: var(--muted); }
.bench-count { font: 12px var(--mono); color: var(--muted); text-align: right; }
.bench-head-row { padding-bottom: 4px; }
.bench-colhead { font: 600 11px var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; text-align: left; }
.bench-head-row .bench-count { font: 600 11px var(--sans); text-align: right; }
.bench-sort { background: none; border: 0; padding: 2px 0; cursor: pointer; }
.bench-sort:hover { color: var(--ink); }
.bench-sort.is-sorted { color: var(--ink); }
.bench-sort.is-sorted { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.bench-track-fail { grid-column: span var(--n); }
/* Failed on every sequence: a grey hatched band with a ×, explained in the note (no extra colour, the user, 2026-11-24) */
.is-failed .bench-method { color: var(--muted); }
.bench-track-fail { height: 14px; margin: 6px 0; border-left: 0; border-radius: 4px;
  background: repeating-linear-gradient(135deg, rgba(131, 145, 166, 0.28) 0 6px, rgba(131, 145, 166, 0.08) 6px 12px); }
.bench-x { padding-left: 6px; font: 600 12px var(--sans); color: var(--muted); line-height: 14px; }
.sw.failed { background: repeating-linear-gradient(135deg, rgba(131, 145, 166, 0.55) 0 3px, rgba(131, 145, 166, 0.15) 3px 6px); }
.bench-mark { margin-left: 2px; color: var(--muted); font-weight: 600; }
.bench-note { display: flex; flex-direction: column; gap: 4px; }
.bench-note-item { display: inline-flex; align-items: center; gap: 6px; }
.seg-group.light[hidden] { display: none; }
.bench-note { margin: 12px 6px 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.bench-tip { position: absolute; z-index: 5; min-width: 220px; max-width: 320px; padding: 10px 12px; background: var(--ink); color: #e8ecf1; border-radius: 10px; box-shadow: 0 12px 30px -12px rgba(15, 20, 25, 0.5); pointer-events: none; font-size: 12.5px; }
.bench-tip[hidden] { display: none; }
.bench-tip-title { margin: 0 0 6px; font-weight: 600; }
.bench-tip dl { display: grid; grid-template-columns: auto auto; gap: 2px 14px; margin: 0; }
.bench-tip dt { color: #94a0ae; }
.bench-tip dd { margin: 0; font-family: var(--mono); text-align: right; }
.bench-tip dd.is-failed { color: #94a0ae; }
@media (max-width: 720px) {
  .bench-card { padding: 16px 12px 14px; }
  .bench-row { grid-template-columns: repeat(var(--n), minmax(0, 1fr)) 40px; gap: 2px 10px; padding: 6px 2px; }
  .bench-name, .bench-col-name { grid-row: 1; grid-column: 1 / -2; flex-direction: row; gap: 6px; align-items: baseline; }
  .bench-row > .bench-count { grid-row: 1; grid-column: -2 / -1; }
  .bench-track, .bench-col-track { grid-row: 2; }
  .bench-track { --label-room: 54px; gap: 5px; }
  .bench-value { font-size: 11px; }
  .bench-count { font-size: 11px; }
  .bench-method { font-size: 13px; }
  .bench-group { display: none; }
}

/* Qualitative results: eight top-view trajectory panels replayed together */
.traj-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; font-size: 13px; color: var(--ink); }
.traj-key { display: inline-flex; align-items: center; gap: 7px; }
.traj-key.is-ours { font-weight: 700; }
.traj-swatch { width: 18px; height: 3px; border-radius: 2px; display: inline-block; }
.traj-key.is-ours .traj-swatch { height: 4px; }
.traj-swatch.dashed { background: repeating-linear-gradient(90deg, #111 0 4px, transparent 4px 7px); }
.traj-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.traj-row-label { grid-column: 1 / -1; margin: 6px 0 -4px; font: 600 11px var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.traj-panel { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.traj-panel canvas { display: block; width: 100%; aspect-ratio: 1 / 1; }
.traj-panel figcaption { padding: 6px 10px 8px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 720px) {
  .traj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .traj-legend { font-size: 12px; gap: 6px 12px; }
}
