@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* Tesla's own UI materials: #171a20 dark, #3e6ae1 blue, #e82127 red */
  --bg: #171a20;
  --panel: #1d212a;
  --panel-2: #232834;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f4;
  --dim: #a2a7b0;
  --muted: #6d7380;
  --accent: #63dcff;          /* restrained neon brand accent */
  --data: #3e6ae1;            /* Tesla blue — the FSD path color */
  --data-bright: #5d85f2;
  --data-dim: rgba(62, 106, 225, 0.16);
  --red: #ff5d5d;             /* disengagement */
  --amber: #f5a623;           /* intervention */
  --green: #58d7ff;           /* clean / highlight */
  --coral: #f08662;           /* near miss */
  --laneyellow: #4e78ff;      /* center-line divider motif */
  --sans: 'Manrope', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 10px;
  /* legacy aliases (review.html) */
  --surface-0: var(--bg);
  --surface-1: var(--panel);
  --surface-2: var(--panel-2);
  --border: var(--line);
  --border-strong: var(--line-strong);
  --text-primary: var(--text);
  --text-secondary: var(--dim);
  --text-muted: var(--muted);
  --accent-bg: var(--data-dim);
  --grid: var(--line);
}
* { box-sizing: border-box; margin: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, canvas, iframe { max-width: 100%; }
button, input, select, a { touch-action: manipulation; }
::selection { background: rgba(62, 106, 225, 0.4); }
a { color: var(--data-bright); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- header ---------- */
header {
  display: flex; align-items: center; gap: 28px;
  padding: 0 32px; height: 88px;
  border-bottom: 1px solid var(--line);
  background: rgba(23, 26, 32, 0.88);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 50;
}
header .brand {
  font-weight: 800; font-size: 15px;
  letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
  color: var(--text); text-decoration: none;
}
header .brand em { font-style: normal; color: var(--accent); }
header .brand .sep { color: var(--muted); margin: 0 8px; font-weight: 400; }
header .brand span.sub { color: var(--dim); font-weight: 600; letter-spacing: 0.18em; font-size: 12px; }
header nav { display: flex; gap: 2px; min-width: 0; }
header nav a {
  padding: 6px 15px; border-radius: 6px;
  color: var(--dim); font-size: 13.5px; font-weight: 600;
}
header nav a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
header nav a.active { background: var(--panel-2); color: var(--text); }
header .tagline { margin-left: auto; color: var(--muted); font-size: 11px; font-family: var(--mono); }

main { max-width: 1180px; margin: 0 auto; padding: 44px 32px 60px; }

main > *, .card > *, .split > *, .section-head > * { min-width: 0; }
/* ---------- typography ---------- */
h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.015em;
  margin-bottom: 12px; max-width: 21ch;
}
h2 { font-size: 21px; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.01em; }
.sub { color: var(--dim); font-size: 14.5px; margin-bottom: 24px; max-width: 68ch; }
.eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 12px;
}
.num, td.num, th.num { font-variant-numeric: tabular-nums; }

/* road center-line divider — the one decorative motif, used once per page */
.laneline {
  height: 3px; border: 0; margin: 34px 0;
  background: repeating-linear-gradient(90deg,
    var(--laneyellow) 0 34px, transparent 34px 58px);
  opacity: 0.45; border-radius: 2px;
}

/* ---------- stat band (trip-meter) ---------- */
.statband {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--panel); margin: 30px 0 18px;
}
.statband .kpi { padding: 20px 22px 18px; border-left: 1px solid var(--line); }
.statband .kpi:first-child { border-left: 0; }
.statband .label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.statband .value { font-weight: 800; font-size: 32px; letter-spacing: -0.02em; margin-top: 2px; }
.statband .hint { font-size: 11.5px; color: var(--muted); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 20px 0; }
.kpis .kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi .label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.kpi .value { font-weight: 800; font-size: 26px; }
.kpi .hint { font-size: 11.5px; color: var(--muted); }

/* ---------- cards / sections ---------- */
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 26px 28px; margin-bottom: 26px;
}
.chart-wrap { position: relative; width: 100%; height: 340px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }

/* ---------- controls (Tesla UI pills) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; align-items: center; }
input[type="search"], select {
  background: var(--panel-2); color: var(--text);
  border: 1px solid transparent; border-radius: 8px;
  padding: 9px 13px; font-size: 13.5px; font-family: var(--sans); font-weight: 500;
  outline: none;
}
input[type="search"]:focus, select:focus { border-color: var(--data); }
input[type="search"] { -webkit-appearance: none; appearance: none; }
.filters input[type="search"] { flex: 1; min-width: 210px; }
.count { color: var(--muted); font-size: 12px; font-family: var(--mono); }

.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--panel-2); border-radius: 10px; padding: 4px; }
.seg button {
  border: 0; background: transparent; color: var(--dim);
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  padding: 7px 14px; border-radius: 7px; cursor: pointer; white-space: nowrap;
}
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--data); color: #fff; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th {
  text-align: left; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  padding: 10px 12px; border-bottom: 1px solid var(--line-strong);
  cursor: pointer; user-select: none; white-space: nowrap;
}
th:hover { color: var(--text); }
th.sorted { color: var(--data-bright); }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr { transition: background 0.12s; }
tbody tr:hover { background: var(--panel-2); cursor: pointer; }
.event-table .ev-date { text-align: left; white-space: nowrap; color: var(--dim); }
.event-table .ev-cause { color: var(--dim); }
.event-table .ev-description { max-width: 340px; }
.event-table .ev-at { color: var(--muted); }
td.num, th.num { text-align: right; }

/* ---------- pills ---------- */
.pill {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.03em; white-space: nowrap;
}
.pill.disengagement, .pill.critical { background: rgba(255, 93, 93, 0.13); color: var(--red); }
.pill.critical { box-shadow: inset 0 0 0 1px rgba(255, 93, 93, 0.4); }
.pill.intervention { background: rgba(245, 166, 35, 0.13); color: var(--amber); }
.pill.near_miss { background: rgba(240, 134, 98, 0.14); color: var(--coral); }
.pill.highlight { background: rgba(62, 207, 122, 0.12); color: var(--green); }
/* version numbers as road-sign plates */
.pill.version {
  background: transparent; color: var(--text);
  border: 1.5px solid rgba(255, 255, 255, 0.45); border-radius: 5px;
  font-family: var(--mono); font-weight: 700; font-size: 10.5px;
  padding: 1px 8px;
}

/* ---------- explorer split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 22px; align-items: start; }
@media (max-width: 940px) { .split { grid-template-columns: 1fr; } }
/* Stick the direct grid child, not a panel trapped inside a short wrapper. */
.event-explorer { scroll-padding-top: var(--explorer-sticky-top, 120px); }
@media (min-width: 941px) {
  .explorer-sidebar {
    position: sticky;
    top: var(--explorer-sticky-top, 120px);
    align-self: start;
    max-height: calc(100vh - var(--explorer-sticky-top, 120px) - 16px);
    max-height: calc(100dvh - var(--explorer-sticky-top, 120px) - 16px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
}
.explorer-sidebar:focus-visible { outline: 2px solid var(--data-bright); outline-offset: 3px; }
.player-panel .placeholder { color: var(--muted); font-size: 13px; padding: 60px 20px; text-align: center; font-family: var(--mono); }
.player-panel iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 8px; background: #000; display: block; }
.player-frame { position: relative; border-radius: 8px; overflow: hidden; }
.player-poster {
  position: absolute; inset: 0; background-position: center; background-size: cover;
  display: flex; align-items: flex-end; padding: 12px; cursor: pointer;
  opacity: 1; transition: opacity 0.7s ease;
}
.player-poster::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,26,32,0.15), rgba(23,26,32,0.7));
}
.player-poster.gone { opacity: 0; pointer-events: none; }
.player-poster .poster-cap { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; }
.player-poster .cueing { font-family: var(--mono); font-size: 11.5px; color: var(--text); letter-spacing: 0.06em; }
.player-poster .cueing i { font-style: normal; animation: cuedot 1.2s infinite; }
.player-poster .cueing i:nth-child(2) { animation-delay: 0.2s; }
.player-poster .cueing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes cuedot { 0%, 60% { opacity: 0.25; } 30% { opacity: 1; } }
.player-panel .ev-desc { font-size: 13.5px; margin-top: 12px; }
.player-panel .ev-meta { font-size: 11.5px; color: var(--muted); margin-top: 6px; font-family: var(--mono); }

/* ---------- version cards as Tesla release notes ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.vcard {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 0; overflow: hidden;
}
.vcard .vhead {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 16px 20px 14px; border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}
.vcard h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.vcard .vhead .install { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.08em; text-align: right; }
.vcard .vbody { padding: 16px 20px 18px; }
.vcard .rn-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--data-bright); margin-bottom: 8px;
}
.vcard .stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px 8px; margin: 4px 0 12px; }
.vcard .stats div { font-size: 10px; font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.vcard .stats b { display: block; font-family: var(--sans); font-size: 19px; font-weight: 800; color: var(--text); letter-spacing: -0.01em; margin-top: 2px; }
.vcard .causes { font-size: 13px; color: var(--dim); margin-top: 4px; }
.vcard .causes ul { margin: 4px 0 0; padding-left: 18px; }
.vcard .links { margin-top: 12px; font-size: 12.5px; }
.vcard .dates { color: var(--muted); font-size: 11.5px; font-family: var(--mono); margin-top: 8px; }

/* ---------- featured moments ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 18px 0 34px; }
.feat-card {
  position: relative; display: block; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--text); text-decoration: none;
}
.feat-card:hover { text-decoration: none; border-color: var(--line-strong); }
.feat-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; filter: saturate(0.94); transition: transform 0.25s ease, filter 0.25s ease; }
.feat-card:hover img { transform: scale(1.03); filter: saturate(1.05); }
.feat-card .cap { padding: 12px 14px 14px; }
.feat-card .tag {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(23, 26, 32, 0.85); color: var(--text);
  padding: 3px 9px; border-radius: 5px; border: 1px solid var(--line-strong);
}
.feat-card .cap p { font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.feat-card .cap .when { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.feat-card.hero-card .cap p { font-size: 16px; font-weight: 700; }
.feat-card .play {
  position: absolute; right: 12px; top: 12px; font-family: var(--mono); font-size: 10.5px;
  background: rgba(23, 26, 32, 0.85); border: 1px solid var(--line-strong);
  color: var(--text); padding: 3px 9px; border-radius: 5px;
}

td img.vthumb { width: 88px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; display: block; }

/* ---------- sponsors ---------- */
.sponsorband { margin: 4px 0 30px; }
.sponsor-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.sponsor-card {
  display: block; padding: 13px 16px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--text); font-size: 13px; line-height: 1.45;
}
.sponsor-card:hover { border-color: var(--data); text-decoration: none; }
.sponsor-card b { display: block; font-weight: 700; font-size: 13.5px; }
.sponsor-card span { color: var(--dim); font-size: 12.5px; }
.sponsor-card em { display: inline-block; font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--amber); margin-top: 5px; letter-spacing: 0.06em; }

/* ---------- vote bar ---------- */
.votebar { display: inline-flex; gap: 8px; margin-top: 12px; }
.votebar button {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel-2); color: var(--dim);
  border: 1px solid transparent; border-radius: 8px;
  padding: 6px 13px; font-family: var(--sans); font-weight: 600; font-size: 12px;
  cursor: pointer;
}
.votebar button b { color: var(--text); font-weight: 800; }
.votebar button:hover { color: var(--text); border-color: var(--data); }
.votebar button.voted { border-color: var(--data); color: var(--data-bright); background: var(--data-dim); cursor: pointer; }
.votebar button[data-vote="incorrect"].voted { border-color: var(--amber); color: var(--amber); background: rgba(245, 166, 35, 0.1); }

.note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel); padding: 14px 18px;
  font-size: 13px; color: var(--dim); margin: 8px 0 28px;
}
button.more {
  display: block; margin: 18px auto; padding: 9px 24px;
  background: var(--panel-2); color: var(--text);
  border: 0; border-radius: 8px;
  font-size: 13px; font-weight: 600; font-family: var(--sans); cursor: pointer;
}
button.more:hover { background: var(--data); color: #fff; }
footer { text-align: center; color: var(--muted); font-size: 11.5px; font-family: var(--mono); padding: 40px 20px 50px; line-height: 2; }

/* ---------- conversion paths ---------- */
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.home-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(20px, 4vw, 42px) 0 12px;
}
.home-hero::after {
  content: ""; position: absolute; z-index: -1; top: -120px; right: -100px;
  width: 520px; height: 360px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(57, 145, 255, .15), transparent 68%);
}
.home-hero h1 { max-width: 980px; font-size: clamp(42px, 6.5vw, 74px); line-height: .98; }
.home-hero .sub { max-width: 890px; font-size: clamp(15px, 2vw, 18px); line-height: 1.65; }
#explore { scroll-margin-top: 92px; }

/* ---------- personalized Tesla garage guide ---------- */
.garage-form {
  display: grid; grid-template-columns: minmax(180px, 1fr) minmax(160px, .7fr) auto;
  gap: 14px; align-items: end; margin: 24px 0 12px;
}
.garage-field { display: grid; gap: 7px; }
.garage-field label {
  color: var(--muted); font: 700 10.5px var(--mono);
  letter-spacing: .14em; text-transform: uppercase;
}
.garage-field select { width: 100%; min-height: 46px; border-color: var(--line); }
.garage-form .cta { min-height: 46px; cursor: pointer; font-family: var(--sans); }
.garage-intro { max-width: 880px; }
.garage-result { margin-top: 28px; }
.garage-result[hidden] { display: none; }
.garage-result-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 16px; margin-bottom: 18px;
}
.garage-result-head h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 5px; }
.garage-confidence {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px;
  border: 1px solid rgba(245,166,35,.35); border-radius: 999px;
  background: rgba(245,166,35,.08); color: var(--amber); font: 700 10.5px var(--mono);
}
.garage-hardware {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px; margin: 18px 0 30px;
}
.garage-spec {
  padding: 18px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--panel);
}
.garage-spec .label {
  color: var(--data-bright); font: 700 10px var(--mono);
  letter-spacing: .13em; text-transform: uppercase;
}
.garage-spec h3 { margin: 8px 0 6px; font-size: 17px; }
.garage-spec p { color: var(--dim); font-size: 12.5px; line-height: 1.55; }
.garage-columns { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.garage-list { display: grid; gap: 11px; padding: 0; margin: 16px 0 0; list-style: none; }
.garage-list li { padding: 14px 15px; border-left: 3px solid var(--data); background: var(--panel-2); border-radius: 0 9px 9px 0; }
.garage-list li.watch { border-color: var(--amber); }
.garage-list b, .garage-list span { display: block; }
.garage-list b { margin-bottom: 3px; font-size: 13.5px; }
.garage-list span { color: var(--dim); font-size: 12.5px; line-height: 1.55; }
.garage-facts { display: grid; gap: 10px; margin-top: 16px; }
.garage-fact { padding: 14px 15px; border: 1px solid var(--line); border-radius: 9px; background: rgba(57,145,255,.05); color: var(--dim); font-size: 13px; line-height: 1.55; }
.garage-verify { margin-top: 18px; }
.garage-verify ol { margin: 14px 0 0; padding-left: 22px; color: var(--dim); }
.garage-verify li + li { margin-top: 8px; }
.garage-sources { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font: 11.5px var(--mono); }
.garage-sources a { color: var(--dim); }

.cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 9px 17px; border-radius: 8px;
  border: 1px solid var(--line-strong); color: var(--text);
  font-size: 13.5px; font-weight: 700; text-decoration: none;
}
.cta:hover { border-color: var(--data); text-decoration: none; }
.cta.primary { background: var(--data); border-color: var(--data); color: #fff; }
.cta.primary:hover { background: var(--data-bright); }
.cta.compact { min-height: 36px; padding: 7px 13px; font-size: 12.5px; }

.path-grid, .offer-grid, .support-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px; margin: 18px 0 34px;
}
.path-card, .offer-card, .support-card {
  display: flex; flex-direction: column; align-items: flex-start;
  min-height: 100%; padding: 22px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); text-decoration: none;
}
.path-card:hover { border-color: var(--data); text-decoration: none; transform: translateY(-1px); }
.path-card b, .offer-card h2, .support-card h2 { font-size: 17px; line-height: 1.3; margin-bottom: 7px; }
.path-card span, .offer-card p, .support-card p { color: var(--dim); font-size: 13px; }
.path-card em {
  margin-top: auto; padding-top: 14px; font-style: normal;
  color: var(--data-bright); font-family: var(--mono); font-size: 11px;
}

.disclosure {
  padding: 14px 17px; margin: 20px 0 28px;
  border: 1px solid rgba(245, 166, 35, 0.35); border-radius: 10px;
  background: rgba(245, 166, 35, 0.08); color: var(--dim); font-size: 13px;
}
.disclosure b { color: var(--amber); }
.offer-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.offer-card { padding: 0; overflow: hidden; }
.offer-card .offer-top { width: 100%; padding: 20px 22px 14px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.offer-card .offer-body { display: flex; flex-direction: column; flex: 1; padding: 18px 22px 22px; }
.offer-kind {
  display: inline-block; margin-bottom: 8px; color: var(--data-bright);
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
}
.offer-card dl { margin: 14px 0 18px; }
.offer-card dt { color: var(--muted); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .13em; }
.offer-card dd { margin: 3px 0 12px; color: var(--dim); font-size: 13px; }
.offer-card .cta { margin-top: auto; }
.code-box {
  display: inline-block; padding: 2px 7px; border-radius: 5px;
  background: rgba(245,166,35,.12); color: var(--amber); font-family: var(--mono); font-size: 11px;
}

.support-card .number {
  color: var(--data-bright); font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; margin-bottom: 12px;
}
.support-card .cta { margin-top: auto; padding-top: 9px; }
.contribute-feature {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 26px 34px; margin: 26px 0 30px; padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(57, 145, 255, .55); border-radius: 14px;
  background: linear-gradient(135deg, rgba(57, 145, 255, .15), rgba(57, 145, 255, .04) 55%, var(--panel));
  box-shadow: 0 14px 40px rgba(0, 0, 0, .18);
}
.contribute-copy h2 { max-width: 660px; margin-bottom: 10px; font-size: clamp(24px, 3.5vw, 38px); }
.contribute-copy > p { max-width: 700px; color: var(--dim); font-size: 15px; }
.contribute-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: contribute; }
.contribute-list li {
  position: relative; padding: 14px 15px 14px 48px; border: 1px solid var(--line);
  border-radius: 10px; background: rgba(15, 18, 24, .55); counter-increment: contribute;
}
.contribute-list li::before {
  content: "0" counter(contribute); position: absolute; left: 15px; top: 15px;
  color: var(--data-bright); font: 700 11px var(--mono); letter-spacing: .1em;
}
.contribute-list b, .contribute-list span { display: block; }
.contribute-list b { margin-bottom: 3px; font-size: 14px; }
.contribute-list span { color: var(--dim); font-size: 12.5px; line-height: 1.5; }
.contribute-note {
  grid-column: 1 / -1; margin: -4px 0 0; padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--muted); font: 11.5px/1.6 var(--mono);
}
.principles { display: grid; gap: 12px; margin: 18px 0 26px; }
.principle { padding: 16px 18px; border-left: 3px solid var(--data); background: var(--panel); border-radius: 0 9px 9px 0; }
.principle b { display: block; margin-bottom: 3px; }
.principle p { color: var(--dim); font-size: 13.5px; }

.method-section { margin-bottom: 16px; }
.method-section h2 { margin-bottom: 9px; }
.method-section p, .method-section li { color: var(--dim); font-size: 14px; }
.method-section ul { padding-left: 20px; margin-top: 8px; }
.method-section li + li { margin-top: 7px; }
.scn-search { max-width: 720px; margin: 22px 0 4px; }
.scn-search input[type="search"] { min-height: 44px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 8px; }
.footer-links a { color: var(--dim); }
.footer-links a:hover { color: var(--text); }

.upload-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 16px; margin: 18px 0 30px;
}
.upload-card {
  display: grid; grid-template-columns: 180px 1fr; min-height: 180px;
  overflow: hidden; border: 1px solid var(--line); border-radius: 13px;
  background: var(--panel); color: var(--text); text-decoration: none;
}
.upload-card:hover { border-color: var(--data); text-decoration: none; transform: translateY(-1px); }
.upload-card > img { width: 100%; height: 100%; object-fit: cover; }
.upload-card-body { display: flex; flex-direction: column; padding: 18px; }
.upload-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font: 10.5px var(--mono); }
.upload-card h3 { margin: 10px 0 6px; font-size: 17px; line-height: 1.3; }
.upload-card p { color: var(--dim); font-size: 13px; line-height: 1.5; }
.upload-card em { margin-top: auto; padding-top: 12px; color: var(--data-bright); font: 11px var(--mono); font-style: normal; }

/* Larger desktop reading scale. Phones keep the compact scale below. */
@media (min-width: 1100px) {
  body { font-size: 17px; }
  header { height: 98px; gap: 30px; padding-inline: 36px; }
  header .brand { font-size: 16.5px; }
  header .brand span.sub { font-size: 13px; }
  header nav a { padding: 8px 16px; font-size: 14.5px; }
  header .tagline { font-size: 12px; }
  main { max-width: 1320px; padding: 54px 38px 76px; }
  h1 { font-size: clamp(38px, 4.6vw, 54px); }
  h2 { font-size: 24px; }
  .sub { font-size: 16.5px; }
  .eyebrow { font-size: 12px; }
  .card { padding: 30px 32px; }
  input[type="search"], select { min-height: 46px; padding: 10px 15px; font-size: 15px; }
  .seg button { min-height: 40px; padding: 8px 16px; font-size: 14px; }
  .count { font-size: 13px; }
  table { font-size: 15px; }
  th { padding: 12px 14px; font-size: 11.5px; }
  td { padding: 13px 14px; }
  .pill { padding: 3px 11px; font-size: 12px; }
  .pill.version { font-size: 11.5px; }
  .statband .label, .kpi .label { font-size: 11.5px; }
  .statband .hint, .kpi .hint { font-size: 13px; }
  .statband .value { font-size: 36px; }
  .kpi .value { font-size: 30px; }
  .cta { min-height: 46px; padding: 10px 19px; font-size: 15px; }
  .path-card b, .offer-card h2, .support-card h2 { font-size: 19px; }
  .path-card span, .offer-card p, .support-card p { font-size: 15px; }
  .path-card em { font-size: 12.5px; }
  .player-panel .placeholder, .player-panel .ev-desc { font-size: 15px; }
  .player-panel .ev-meta { font-size: 12.5px; }
  .vcard .causes, .feat-card .cap p, .sponsor-card span,
  .garage-spec p, .garage-list span, .path-card span,
  .offer-card p, .offer-card dd, .support-card p,
  .principle p, .scn-clip-body p { font-size: 14.5px; }
  .vcard .links, .garage-list b, .sponsor-card b,
  .contribute-list b, .brief-verdict a { font-size: 14px; }
  .vcard .dates, .feat-card .cap .when, .sponsor-card em,
  .offer-kind, .offer-card dt, .support-card .number { font-size: 11.5px; }
  .method-section p, .method-section li { font-size: 16px; }
  .upload-card h3 { font-size: 19px; }
  .upload-card p { font-size: 14.5px; }
  .upload-meta { font-size: 11.5px; }
  .upload-card em { font-size: 12.5px; }
  .votebar button, button.more { min-height: 42px; font-size: 13.5px; }
  footer { font-size: 12.5px; }
}
@media (max-width: 1360px) {
  header { height: auto; min-height: 88px; flex-wrap: wrap; gap: 10px 16px; padding: 16px 20px 0; }
  header nav {
    order: 3; width: calc(100% + 40px); margin: 0 -20px;
    padding: 0 12px 9px; overflow-x: auto; scrollbar-width: thin;
  }
  header nav a { white-space: nowrap; padding: 9px 12px; min-height: 40px; }
  header .tagline { display: none; }
}

@media (max-width: 760px) {
  .contribute-feature { grid-template-columns: 1fr; }
  .garage-form, .garage-columns { grid-template-columns: 1fr; }
  .garage-form .cta { width: 100%; }
}

@media (max-width: 620px) {
  main { padding: 30px 16px 48px; }
  header .tagline { display: none; }
  header .brand span.sub, header .brand .sep { display: none; }
  h1 { font-size: clamp(30px, 10vw, 40px); }
  .home-hero { padding-top: 12px; }
  .home-hero h1 { font-size: clamp(36px, 11.5vw, 48px); }
  .card { padding: 20px 16px; }
  .statband { grid-template-columns: 1fr 1fr; }
  .statband .kpi { padding: 15px; border-bottom: 1px solid var(--line); }
  .statband .kpi:nth-child(odd) { border-left: 0; }
  .statband .value { font-size: 25px; }
  .cards-grid, .offer-grid { grid-template-columns: 1fr; }
  .path-grid { grid-template-columns: 1fr; }
  .upload-grid { grid-template-columns: 1fr; }
  .upload-card { grid-template-columns: 1fr; }
  .upload-card > img { height: auto; aspect-ratio: 16 / 9; }
  .chart-wrap { height: 300px; }
  table:not(.event-table) { display: block; overflow-x: auto; }

  .filters input[type="search"], .filters select { flex: 1 0 100%; width: 100%; }
  .filters .count { flex-basis: 100%; }
  .event-table, .event-table tbody { display: block; width: 100%; }
  .event-table thead { display: none; }
  .event-table tbody { display: grid; gap: 12px; }
  .event-table tr {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
    padding: 15px 16px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--panel); box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
  }
  .event-table td { display: block; width: auto; padding: 0; border: 0; text-align: left; }
  .event-table .ev-type { order: 1; }
  .event-table .ev-version { order: 2; }
  .event-table .ev-date {
    order: 3; margin-left: auto; color: var(--muted);
    font: 11.5px var(--mono); white-space: nowrap;
  }
  .event-table .ev-cause {
    order: 4; flex-basis: 100%; color: var(--text);
    font-size: 16px; font-weight: 750; line-height: 1.35;
  }
  .event-table .ev-description {
    order: 5; flex-basis: 100%; max-width: none;
    color: var(--dim); font-size: 14px; line-height: 1.5;
  }
  .event-table .ev-at {
    order: 6; flex-basis: 100%; margin-top: 2px; color: var(--data-bright);
    font: 700 12px var(--mono); text-align: left;
  }
  .event-table .ev-at::before { content: "Watch at "; color: var(--muted); font-weight: 500; }
  .event-table tr:active { border-color: var(--data); background: var(--panel-2); }
}


@media (hover: none), (pointer: coarse) {
  .cta, header nav a, .seg button, button.more { min-height: 44px; }
  header nav { -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  header nav a { display: inline-flex; align-items: center; scroll-snap-align: start; }
  input[type="search"], select { min-height: 46px; font-size: 16px; }
  .path-card, .feat-card { -webkit-tap-highlight-color: rgba(62,106,225,.22); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- scenario answer pages ---------- */
.scn-clips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.scn-clip {
  display: flex;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.scn-clip:hover { border-color: var(--data); text-decoration: none; transform: translateY(-1px); }
.scn-clip img {
  width: 116px;
  aspect-ratio: 16/9;
  object-fit: cover;
  align-self: flex-start;
  display: block;
  flex: none;
  filter: saturate(0.94);
}
.scn-clip-body { padding: 11px 13px 12px 0; min-width: 0; }
.scn-clip-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.scn-clip-meta .scn-at {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}
.scn-clip-body p { font-size: 12.5px; line-height: 1.45; color: var(--text); }
.scn-clip-src {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scn-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.scn-pill-link {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--dim);
  text-decoration: none;
}
.scn-pill-link:hover { border-color: var(--data); color: var(--text); text-decoration: none; }
.scn-matrix { font-family: var(--mono); font-size: 12px; }
.scn-matrix th { font-size: 10.5px; }
.scn-matrix td.scn-has { color: var(--text); font-weight: 700; }
.scn-matrix td.scn-thin { color: var(--muted); }
.scn-matrix td.scn-none { color: rgba(255, 255, 255, 0.13); }

@media (max-width: 620px) {
  .scn-clips { grid-template-columns: 1fr; }
  .scn-clip img { width: 92px; }
}

/* ---------- current-build briefing ---------- */
.brief-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}
.brief-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.brief-stat {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}
.brief-stat .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.brief-stat .value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 2px;
}
.brief-stat .hint {
  font-size: 11.5px;
  color: var(--dim);
  margin-top: 4px;
  line-height: 1.4;
}
.brief-compare { margin-top: 14px; }
.brief-compare-box {
  font-size: 13.5px;
  color: var(--dim);
  line-height: 1.55;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--data-dim);
  border: 1px solid rgba(62, 106, 225, 0.25);
}
.brief-compare-box b { color: var(--text); }
.brief-caveat {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}
.brief-issues {
  list-style: none;
  margin: 0;
  padding: 0;
}
.brief-issues li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.brief-issues li span { color: var(--dim); }
.brief-issues li b {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
}
.brief-verdict {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.brief-verdict-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.brief-verdict-meta .when {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}
.brief-verdict-meta .hint {
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
}
.brief-verdict p {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 8px;
}
.brief-verdict a { font-size: 12.5px; font-weight: 600; }
.brief-scn {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.brief-scn-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 13px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.brief-scn-cell:hover { border-color: var(--data); text-decoration: none; }
.brief-scn-cell b { font-size: 13px; }
.brief-scn-cell span { font-size: 12px; color: var(--dim); }
.brief-scn-cell em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}
.brief-scn-cell.thin { opacity: 0.85; }
.brief-scn-cell.none {
  border-style: dashed;
  opacity: 0.55;
}
.brief-scn-cell.none span { color: var(--muted); }

@media (max-width: 820px) {
  .brief-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .brief-stats { grid-template-columns: 1fr; }
}
/* ---------- retro perception system ---------- */
:root {
  --bg: #090c12;
  --panel: #101620;
  --panel-2: #171f2c;
  --line: rgba(93, 133, 242, .15);
  --line-strong: rgba(93, 133, 242, .34);
  --dim: #abb5c6;
  --muted: #718097;
  --data: #3c70ff;
  --data-bright: #69a0ff;
  --green: #58d7ff;
  --wire-blue: rgba(91, 145, 255, .92);
  --wire-cyan: rgba(69, 216, 255, .82);
  --wire-violet: rgba(126, 98, 255, .68);
  --radius: 6px;
}
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 76% 4%, rgba(60, 112, 255, .10), transparent 31rem),
    linear-gradient(rgba(105, 160, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 160, 255, .022) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
}
header {
  isolation: isolate;
  border-bottom-color: rgba(91, 137, 255, .24);
  background: #090c12;
  box-shadow: 0 1px 18px rgba(60, 112, 255, .06);
}
header::before {
  content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 12, 18, .96) 0%, rgba(9, 12, 18, .77) 26%, rgba(9, 12, 18, .62) 60%, rgba(9, 12, 18, .91) 100%),
    linear-gradient(110deg, rgba(48, 100, 255, .98), rgba(63, 211, 255, .78)),
    url("assets/fsd-perception-retro.png") center 62% / cover no-repeat;
  background-blend-mode: normal, color, normal;
  filter: saturate(.92) contrast(1.1);
}
header::after {
  content: ""; position: absolute; z-index: 1; inset: auto 0 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, var(--wire-blue), var(--wire-cyan) 72%, var(--wire-violet));
  opacity: .58;
}
header > * { position: relative; z-index: 2; }
header .brand { text-shadow: 0 0 18px rgba(255, 255, 255, .08); }
header nav a { border: 1px solid transparent; border-radius: 4px; }
header nav a:hover { border-color: rgba(91, 137, 255, .24); background: rgba(60, 112, 255, .07); }
header nav a.active {
  border-color: rgba(91, 137, 255, .52); background: rgba(60, 112, 255, .10);
  box-shadow: inset 0 0 14px rgba(60, 112, 255, .06), 0 0 12px rgba(60, 112, 255, .05);
}
.eyebrow { color: var(--data-bright); }
.eyebrow::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 9px 1px 0;
  border: 1px solid var(--wire-cyan); box-shadow: 0 0 8px rgba(69, 216, 255, .24);
}
.laneline {
  height: 2px; opacity: .68;
  background: linear-gradient(90deg, var(--wire-blue), var(--wire-cyan) 74%, var(--wire-violet));
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 24px, transparent 24px 40px);
  mask: repeating-linear-gradient(90deg, #000 0 24px, transparent 24px 40px);
}
.section-head h2::before, .card > h2::before {
  content: "//"; margin-right: .5em; color: var(--data-bright);
  font: 700 .62em var(--mono); letter-spacing: -.08em; vertical-align: .13em;
}
.cta, input[type="search"], select, .seg, .seg button, button.more, .votebar button { border-radius: 4px; }
.cta {
  border-color: rgba(91, 137, 255, .34); background: rgba(9, 12, 18, .42);
  box-shadow: inset 0 0 18px rgba(60, 112, 255, .025);
}
.cta:hover { border-color: var(--wire-blue); box-shadow: inset 0 0 18px rgba(60, 112, 255, .08), 0 0 16px rgba(60, 112, 255, .08); }
.cta.primary {
  background: linear-gradient(180deg, rgba(60, 112, 255, .88), rgba(43, 88, 214, .86));
  border-color: var(--wire-blue); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 0 18px rgba(60, 112, 255, .12);
}
.cta.primary:hover { background: linear-gradient(180deg, #5482ff, #3768eb); }
input[type="search"], select, .seg { border: 1px solid rgba(91, 137, 255, .20); background: rgba(16, 22, 32, .92); }
.seg button.on {
  background: rgba(60, 112, 255, .18); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(91, 137, 255, .64), inset 0 0 14px rgba(60, 112, 255, .09);
}
.card, .path-card, .offer-card, .support-card, .vcard, .upload-card,
.sponsor-card, .scn-clip, .brief-verdict, .brief-scn-cell, .garage-spec, .garage-fact {
  --trace: var(--wire-blue);
  border-radius: 7px; border-color: rgba(91, 137, 255, .19);
  background-color: var(--panel);
  background-image:
    linear-gradient(var(--trace), var(--trace)), linear-gradient(var(--trace), var(--trace)),
    linear-gradient(var(--trace), var(--trace)), linear-gradient(var(--trace), var(--trace));
  background-repeat: no-repeat;
  background-position: left top, left top, right bottom, right bottom;
  background-size: 20px 1px, 1px 20px, 20px 1px, 1px 20px;
}
.path-card { position: relative; overflow: hidden; }
.path-card:nth-child(even) { --trace: var(--wire-cyan); }
.path-card:nth-child(5n) { --trace: var(--wire-violet); }
.path-card::after {
  content: ""; position: absolute; top: 11px; right: 11px; width: 8px; height: 8px;
  border: 1px solid var(--trace); opacity: .55; box-shadow: 0 0 9px var(--trace);
}
.path-card:hover { border-color: var(--trace); box-shadow: inset 0 0 24px rgba(60, 112, 255, .035), 0 0 18px rgba(60, 112, 255, .05); }
.path-card em, .upload-card em { letter-spacing: .035em; }
.statband {
  border-radius: 7px; border-color: rgba(91, 137, 255, .24); background: rgba(16, 22, 32, .88);
  box-shadow: inset 0 0 28px rgba(60, 112, 255, .025);
}
.statband .kpi { position: relative; border-color: rgba(91, 137, 255, .14); }
.statband .kpi::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--wire-blue); opacity: .72; }
.statband .kpi:nth-child(even)::before { background: var(--wire-cyan); }
.statband .value, .kpi .value { text-shadow: 0 0 20px rgba(105, 160, 255, .08); }
th { color: #7f91ad; border-bottom-color: rgba(91, 137, 255, .34); background: rgba(60, 112, 255, .035); }
td { border-bottom-color: rgba(91, 137, 255, .11); }
tbody tr:hover { background: rgba(60, 112, 255, .055); }
td img.vthumb { border: 1px solid rgba(91, 137, 255, .24); border-radius: 3px; }
.pill, .pill.version, .scn-pill-link, .code-box, .feat-card .tag, .feat-card .play { border-radius: 3px; }
.pill { border: 1px solid currentColor; background: transparent; box-shadow: inset 0 0 10px rgba(255, 255, 255, .02); }
.pill.disengagement, .pill.critical, .pill.intervention, .pill.near_miss, .pill.highlight { background: transparent; }
.pill.critical { box-shadow: inset 0 0 11px rgba(255, 93, 93, .10), 0 0 8px rgba(255, 93, 93, .06); }
.feat-card { border-radius: 7px; border-color: rgba(91, 137, 255, .28); }
.feat-card .tag, .feat-card .play { background: rgba(9, 12, 18, .9); border-color: rgba(91, 137, 255, .34); }
.offer-card .offer-top, .vcard .vhead { background: rgba(23, 31, 44, .82); border-bottom-color: rgba(91, 137, 255, .18); }
.contribute-feature {
  border-radius: 7px; border-color: rgba(91, 137, 255, .46);
  background: linear-gradient(135deg, rgba(60, 112, 255, .12), rgba(69, 216, 255, .035) 55%, var(--panel));
  box-shadow: 0 18px 44px rgba(0, 0, 0, .23), inset 0 0 36px rgba(60, 112, 255, .025);
}
.contribute-list li { border-radius: 4px; border-color: rgba(91, 137, 255, .16); background: rgba(9, 12, 18, .46); }
.note, .disclosure, .principle, .brief-compare-box { border-radius: 5px; }
footer { border-top: 1px dashed rgba(91, 137, 255, .16); }

@media (max-width: 620px) {
  header { min-height: 58px; gap: 8px 16px; padding-top: 10px; }
  body { background-size: auto, 48px 48px, 48px 48px; }
  .path-card::after { top: 9px; right: 9px; }
  .event-table tr {
    border-radius: 6px; border-color: rgba(91, 137, 255, .22);
    background-color: var(--panel);
    background-image: linear-gradient(var(--wire-blue), var(--wire-blue)), linear-gradient(var(--wire-blue), var(--wire-blue));
    background-repeat: no-repeat; background-position: left top, right bottom; background-size: 20px 1px, 20px 1px;
  }
}
