/* Roadlie — shared styles. Dark, automotive, one accent (record red). No build step. */
:root {
  --bg: #0d0f13;
  --bg-2: #12151a;
  --surface: #1a1d23;
  --surface-2: #22262e;
  --line: #2b3039;
  --text: #eceef1;
  --muted: #9aa1ab;
  --faint: #6b727d;
  --red: #ef3e42;
  --red-dim: rgba(239, 62, 66, 0.14);
  --ok: #3ccf8e;
  --warn: #f2b84b;
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--red); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 6.5vw, 4.2rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

/* ---------- header / footer ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(13, 15, 19, .78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; align-items: center; gap: 22px; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
@media (max-width: 720px) { .nav .nav-link { display: none; } }

.site-footer { border-top: 1px solid var(--line); margin-top: 80px; padding: 40px 0 56px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: flex-start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: 600 .98rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--surface-2); border-color: #3a404b; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: #ff4f53; border-color: #ff4f53; }
.btn-ghost { background: transparent; }
.btn-danger { color: #ff8a8d; border-color: rgba(239,62,66,.35); background: transparent; }
.btn-danger:hover { background: var(--red-dim); border-color: var(--red); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .88rem; }
.btn svg { width: 18px; height: 18px; }

.play-badge {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px;
  border-radius: 14px; background: #000; border: 1px solid #3a3f48; text-decoration: none; color: #fff;
  position: relative;
}
.play-badge svg { width: 28px; height: 28px; }
.play-badge .pb-text { display: flex; flex-direction: column; line-height: 1.1; }
.play-badge .pb-small { font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: #c9cdd3; }
.play-badge .pb-big { font-size: 1.15rem; font-weight: 650; }
.play-badge .soon {
  position: absolute; top: -10px; right: -10px; background: var(--red); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
}

/* ---------- landing ---------- */
.hero { position: relative; padding: 72px 0 64px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(239,62,66,.18), transparent 70%);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--muted);
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 22px; background: rgba(26,29,35,.6); }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(239,62,66,.6); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(239,62,66,.55); } 70% { box-shadow: 0 0 0 9px rgba(239,62,66,0); } 100% { box-shadow: 0 0 0 0 rgba(239,62,66,0); } }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } html { scroll-behavior: auto; } }
.hero h1 .accent { color: var(--red); }
.lede { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 34em; margin-bottom: 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 18px; font-size: .88rem; color: var(--faint); }

/* phone mockup */
.phone {
  width: min(100%, 520px); aspect-ratio: 2.05 / 1; margin-left: auto;
  border-radius: 34px; padding: 12px; background: linear-gradient(145deg, #2a2e36, #121418);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.08);
  transform: rotate(-2deg);
}
.screen { position: relative; width: 100%; height: 100%; border-radius: 24px; overflow: hidden; background: #0a0c0f; }
.screen svg.scene { width: 100%; height: 100%; }
.hud { position: absolute; inset: 0; padding: 12px 14px; display: flex; flex-direction: column; justify-content: space-between;
  font-family: var(--mono); font-size: clamp(.58rem, 1.5vw, .78rem); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.hud-top, .hud-bot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hud .rec { display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.45); padding: 3px 8px; border-radius: 6px; font-weight: 700; }
.hud .speed { font-size: 1.9em; font-weight: 800; line-height: 1; }
.hud .speed small { font-size: .45em; font-weight: 600; opacity: .8; margin-left: 3px; }
.hud .pip { position: absolute; right: 14px; bottom: 40px; width: 24%; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden;
  border: 2px solid rgba(255,255,255,.7); background: linear-gradient(160deg, #2c2420, #15110f); }
.hud .pip svg { width: 100%; height: 100%; }
.hud .tag { background: rgba(0,0,0,.45); padding: 3px 8px; border-radius: 6px; }

section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.kicker { color: var(--red); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; display: block; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; background: var(--red-dim); color: var(--red); font-weight: 800; margin-bottom: 16px; }
.step p { color: var(--muted); margin: 0; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); margin-bottom: 16px; color: var(--text); }
.feature .ico svg { width: 22px; height: 22px; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }
.feature.wide { grid-column: span 2; }

.privacy-band { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.checks li svg { width: 22px; height: 22px; flex: none; color: var(--ok); margin-top: 2px; }
.checks b { display: block; }
.checks span { color: var(--muted); font-size: .95rem; }

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 650; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--muted); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-right: 30px; }

.cta-band { text-align: center; }
.cta-card { background: radial-gradient(120% 140% at 50% 0%, rgba(239,62,66,.16), transparent 60%), var(--bg-2);
  border: 1px solid var(--line); border-radius: 28px; padding: 56px 24px; }
.cta-card .cta-row { justify-content: center; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .phone { margin: 0 auto; transform: rotate(-1.5deg); }
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .feature.wide { grid-column: span 2; }
  .privacy-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .hero { padding: 40px 0 36px; }
  section { padding: 52px 0; }
  .steps, .features { grid-template-columns: 1fr; }
  .feature.wide { grid-column: auto; }
}

/* ---------- document pages (privacy/terms/support/delete) ---------- */
.doc { max-width: 760px; padding-top: 48px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc h2 { font-size: 1.35rem; margin-top: 2.2em; }
.doc h3 { margin-top: 1.6em; }
.doc p, .doc li { color: #c8ccd2; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: .35em 0; }
.doc .meta { color: var(--muted); margin-bottom: 2em; }
.doc table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--text); font-weight: 650; }
.doc td { color: #c8ccd2; }
.table-scroll { overflow-x: auto; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 10px; padding: 16px 18px; margin: 1.5em 0; }
.callout p:last-child { margin: 0; }

.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .95rem; }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: 1rem var(--font);
}
.input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-dim); }
.notice { padding: 12px 14px; border-radius: 12px; font-size: .95rem; margin-top: 14px; }
.notice.ok { background: rgba(60,207,142,.1); color: #8ff0c2; border: 1px solid rgba(60,207,142,.3); }
.notice.err { background: var(--red-dim); color: #ffb3b5; border: 1px solid rgba(239,62,66,.35); }

/* ---------- app pages (viewer/share/admin) ---------- */
.app-main { padding-top: 24px; padding-bottom: 40px; }
.app-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.app-bar h1 { font-size: 1.6rem; margin: 0; }
.usage { min-width: 220px; flex: 1; max-width: 360px; }
.usage .bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.usage .bar > i { display: block; height: 100%; background: var(--red); border-radius: inherit; width: 0; transition: width .4s; }
.usage .lbl { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); }

.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ev { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  text-align: left; padding: 0; color: inherit; font: inherit; transition: border-color .15s, transform .15s; display: block; width: 100%; }
.ev:hover { border-color: #3b414c; }
.ev:active { transform: scale(.995); }
.ev .thumb { aspect-ratio: 16 / 9; background: #07080a; position: relative; display: grid; place-items: center; color: var(--faint); }
.ev .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ev .thumb .badge { position: absolute; top: 10px; left: 10px; }
.ev .thumb .kept { position: absolute; top: 10px; right: 10px; }
.ev .info { padding: 14px 16px 16px; display: grid; gap: 4px; }
.ev .when { font-weight: 650; }
.ev .sub { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .88rem; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; background: rgba(0,0,0,.6); color: #fff; border: 1px solid rgba(255,255,255,.15); }
.badge.crash { background: var(--red); border-color: var(--red); }
.badge.hazard { background: #b7791f; border-color: #b7791f; }
.badge.manual { background: rgba(20,22,27,.8); }
.badge.keep { background: rgba(60,207,142,.18); color: #8ff0c2; border-color: rgba(60,207,142,.4); }
.badge.up { background: rgba(242,184,75,.15); color: #ffd58a; border-color: rgba(242,184,75,.4); text-transform: none; letter-spacing: 0; }

.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty { text-align: center; padding: 64px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.empty h2 { color: var(--text); font-size: 1.3rem; }

/* player */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.72); }
.sheet-card { width: 100%; max-width: 900px; max-height: 100%; overflow-y: auto; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 22px 22px 0 0; padding: 14px 16px 22px; }
@media (min-width: 760px) { .sheet { align-items: center; padding: 24px; } .sheet-card { border-radius: 22px; padding: 18px 22px 24px; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sheet-head h2 { font-size: 1.1rem; margin: 0; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn svg { width: 18px; height: 18px; }
.tabs { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 12px; }
.tabs button { border: 0; background: transparent; color: var(--muted); font: 600 .9rem var(--font); padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface-2); color: var(--text); }
.player { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; display: grid; place-items: center; color: var(--muted); }
.player video { width: 100%; height: 100%; background: #000; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .92rem; margin: 14px 0; }
.meta-row b { color: var(--text); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-weight: 600; font-size: .95rem; }
.switch input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); position: relative; cursor: pointer; margin: 0; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #cfd3d9; transition: transform .15s; }
.switch input:checked { background: var(--ok); border-color: var(--ok); }
.switch input:checked::after { transform: translateX(18px); background: #fff; }
.share-box { margin-top: 14px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.chip { border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 8px 14px; border-radius: 999px; font: 600 .9rem var(--font); cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--red); background: var(--red-dim); }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { font-family: var(--mono); font-size: .85rem; min-height: 42px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #2b3039; color: #fff; padding: 12px 18px; border-radius: 12px;
  z-index: 80; font-size: .95rem; box-shadow: 0 10px 30px rgba(0,0,0,.5); max-width: calc(100% - 32px); }

.danger-zone { margin-top: 48px; border: 1px solid rgba(239,62,66,.3); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.danger-zone p { margin: 0; color: var(--muted); max-width: 540px; }

/* admin */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi .k { color: var(--muted); font-size: .82rem; }
.kpi .v { font-size: 1.6rem; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi .s { color: var(--faint); font-size: .78rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; margin-bottom: 16px; }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; }
.panel h3 { font-size: .95rem; margin-bottom: 10px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .axis { fill: var(--faint); font-size: 10px; font-family: var(--font); }
.chart .gridline { stroke: var(--line); stroke-width: 1; }
.chart .bar { fill: var(--red); }
.chart .bar:hover { fill: #ff6a6d; }
.chart .line { fill: none; stroke: var(--red); stroke-width: 2; }
.chart .area { fill: var(--red-dim); }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th, .tbl td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 600; font-size: .8rem; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .meter { height: 6px; background: var(--surface-2); border-radius: 999px; min-width: 60px; overflow: hidden; }
.tbl .meter i { display: block; height: 100%; background: #8a919c; }
.stack { font-family: var(--mono); font-size: .75rem; white-space: pre-wrap; word-break: break-all; color: #c8ccd2; background: var(--bg); padding: 10px; border-radius: 8px; max-height: 320px; overflow: auto; margin-top: 8px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.select { min-height: 38px; border-radius: 10px; background: var(--surface); color: var(--text); border: 1px solid var(--line); padding: 0 10px; font: .9rem var(--font); }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--muted); cursor: pointer; }
.actions.mt { margin-top: 12px; }
.shared-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.shared-head h1 { font-size: 1.5rem; margin: 0; }
.expiry { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.player-wrap { max-width: 960px; margin: 0 auto; }
.chart-tip { position: fixed; z-index: 90; pointer-events: none; background: #2b3039; color: var(--text); border: 1px solid #3a404b; padding: 6px 10px; border-radius: 8px; font-size: .82rem; white-space: nowrap; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
details summary { cursor: pointer; }
.ev .thumb .badge.kept { left: auto; right: 10px; }
.meta-row a { display: inline-flex; align-items: center; gap: 6px; }
.meta-row svg { width: 16px; height: 16px; flex: none; }
.player p { display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; text-align: center; }
.app-main section { padding: 0; }
.tbl td { vertical-align: middle; }
.tbl td details { vertical-align: top; }
#delete-form .cta-row { margin-top: 18px; }
.usage.budget { max-width: none; margin-bottom: 16px; }
.usage .bar.warn > i { background: var(--warn); }
.usage .notice { margin: 12px 0 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
textarea.input { resize: vertical; min-height: 140px; line-height: 1.5; }
select.input { appearance: auto; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact { position: relative; }
#turnstile { margin: 4px 0 16px; min-height: 0; }
.contact .cta-row { gap: 14px; }
.mt-panel { margin-top: 16px; }
[id] { scroll-margin-top: 84px; }
