:root {
  --bg: #04060c;
  --bg2: #070b16;
  --panel: rgba(13, 20, 38, 0.72);
  --panel-solid: #0c1426;
  --border: rgba(120, 160, 255, 0.14);
  --border-hi: rgba(120, 190, 255, 0.35);
  --text: #e6edf9;
  --muted: #8392b3;
  --faint: #4a5878;
  --accent: #4cc9f0;
  --accent2: #7b6cff;
  --go: #2ee59d;
  --caution: #ffb020;
  --nogo: #ff4d5e;
  --unknown: #6b7895;
  --trail: #4cc9f0;
  --pred: #b9a6ff;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --sans: Inter, system-ui, -apple-system, sans-serif;
  --display: Orbitron, Inter, sans-serif;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 var(--sans); }
body { min-height: 100vh; overflow-x: hidden; }
.bg-stars {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 75% -10%, rgba(76, 201, 240, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(123, 108, 255, 0.12), transparent 60%),
    radial-gradient(1px 1px at 20% 30%, #fff8, transparent), radial-gradient(1px 1px at 80% 60%, #fff6, transparent),
    radial-gradient(1px 1px at 50% 80%, #fff5, transparent), radial-gradient(1px 1px at 65% 15%, #fff7, transparent),
    linear-gradient(180deg, var(--bg2), var(--bg));
}
h2 { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; }
h3 { font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
button { font: inherit; color: inherit; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px;
  padding: 10px 20px; background: rgba(4, 6, 12, 0.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #9be7ff, #1b6bd1 55%, #0a1b40 75%);
  box-shadow: 0 0 18px rgba(76, 201, 240, .55); position: relative;
}
.brand-mark::after { content: ""; position: absolute; inset: -6px -10px; border: 1.5px solid rgba(155, 231, 255, .6); border-radius: 50%; transform: rotate(-25deg); }
.brand-name { font: 800 15px/1 var(--display); letter-spacing: .18em; }
.brand-sub { font-size: 11px; color: var(--muted); margin-top: 3px; }
.vehicle-tabs { display: flex; gap: 8px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.vtab {
  display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; white-space: nowrap;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--border); cursor: pointer; transition: .15s;
}
.vtab:hover { border-color: var(--border-hi); }
.vtab.active { background: rgba(76, 201, 240, .14); border-color: var(--accent); }
.vtab .vt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--go); box-shadow: 0 0 8px var(--go); }
.vtab.stale .vt-dot { background: var(--caution); box-shadow: none; }
.vtab .vt-type { font-size: 10px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.tag-sim { font: 600 9px/1 var(--mono); padding: 3px 5px; border-radius: 4px; background: var(--accent2); color: #fff; }
.clocks { display: flex; align-items: center; gap: 18px; }
.clock { display: flex; flex-direction: column; align-items: flex-end; }
.clock-label { font-size: 9px; letter-spacing: .16em; color: var(--muted); }
.clock-val { font: 600 15px/1.2 var(--mono); }
.clock-val.met { font: 700 20px/1.1 var(--display); color: var(--accent); letter-spacing: .04em; }
.clock-val.met.hold, .lc-count.hold, #rdMet.hold { color: var(--caution); animation: holdblink 1.2s steps(2, start) infinite; }
@keyframes holdblink { 50% { opacity: .5; } }
.lc-changed { color: var(--caution) !important; }
.link-state { display: flex; align-items: center; gap: 6px; font: 600 10px/1 var(--mono); letter-spacing: .1em; color: var(--muted); }
.link-state .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--caution); }
.link-state.live .dot { background: var(--go); box-shadow: 0 0 10px var(--go); animation: pulse 2s infinite; }
.link-state.down .dot { background: var(--nogo); }
@keyframes pulse { 50% { opacity: .4; } }
.icon-btn { background: none; border: 1px solid var(--border); border-radius: 10px; width: 34px; height: 34px; cursor: pointer; font-size: 16px; }
.icon-btn:hover { border-color: var(--border-hi); }

/* ---------- layout ---------- */
.grid {
  display: grid; gap: 14px; padding: 14px;
  grid-template-columns: 310px minmax(0, 1fr) 380px;
  grid-template-areas: "left center right" "bottom bottom right";
  align-items: start;
}
.col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.col-left { grid-area: left; } .col-center { grid-area: center; } .col-right { grid-area: right; }
.col-bottom { grid-area: bottom; display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.col-bottom > .panel:first-child { grid-column: 1 / -1; }
@media (max-width: 1400px) {
  .grid { grid-template-columns: 300px minmax(0, 1fr); grid-template-areas: "left center" "right right" "bottom bottom"; }
  .col-right { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
}
@media (max-width: 900px) {
  .grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "center" "left" "right" "bottom"; padding: 10px 16px; }
  .col-bottom { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
  .vehicle-tabs { order: 3; flex-basis: 100%; }
  .hide-sm { display: none; }
  .brand { min-width: 0; }
}

.panel {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; backdrop-filter: blur(10px); position: relative; min-width: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .03);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.badge { font: 600 10px/1 var(--mono); letter-spacing: .08em; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--border); color: var(--muted); text-transform: uppercase; }
.badge.go { color: var(--go); border-color: rgba(46, 229, 157, .4); background: rgba(46, 229, 157, .08); }
.badge.caution { color: var(--caution); border-color: rgba(255, 176, 32, .4); background: rgba(255, 176, 32, .08); }
.badge.nogo { color: var(--nogo); border-color: rgba(255, 77, 94, .45); background: rgba(255, 77, 94, .1); }
.badge.info { color: var(--accent); border-color: rgba(76, 201, 240, .4); }

.seg { display: inline-flex; background: rgba(255, 255, 255, .03); border: 1px solid var(--border); border-radius: 9px; padding: 2px; flex-wrap: wrap; }
.seg button { background: none; border: 0; padding: 5px 9px; border-radius: 7px; font-size: 11.5px; color: var(--muted); cursor: pointer; }
.seg button.active { background: rgba(76, 201, 240, .16); color: var(--text); }
.select {
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border); color: var(--text); border-radius: 9px;
  padding: 7px 10px; font: inherit; width: 100%;
}
.select option { background: var(--panel-solid); }

/* ---------- telemetry ---------- */
.veh-label { font: 700 18px/1.2 var(--display); letter-spacing: .04em; margin: -4px 0 12px; }
.gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.gauge { position: relative; aspect-ratio: 1; }
.gauge svg { width: 100%; height: 100%; transform: rotate(135deg); }
.g-track, .g-fill { fill: none; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 235.6 314.2; }
.g-track { stroke: rgba(255, 255, 255, .07); }
.g-fill { stroke: url(#none); stroke: var(--accent); stroke-dashoffset: 0; transition: stroke-dasharray .8s ease; filter: drop-shadow(0 0 6px rgba(76, 201, 240, .6)); }
#gSpd .g-fill { stroke: var(--accent2); filter: drop-shadow(0 0 6px rgba(123, 108, 255, .7)); }
.g-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.g-val { font: 700 22px/1 var(--mono); }
.g-unit { font-size: 10px; color: var(--muted); letter-spacing: .06em; margin-top: 4px; }
.readouts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 0; }
.readouts div { background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .04); border-radius: 9px; padding: 7px 9px; }
.readouts dt { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.readouts dd { margin: 2px 0 0; font: 600 14px/1.2 var(--mono); }
.readouts dd small { color: var(--muted); font-weight: 400; font-size: 11px; }
.readouts .wide { grid-column: span 2; }
.orbit-diagram svg { width: 100%; height: auto; display: block; margin-bottom: 8px; }

.sources { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sources li { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; font-size: 12px; }
.sources .sdot { width: 8px; height: 8px; border-radius: 50%; background: var(--unknown); }
.sources .ok .sdot { background: var(--go); }
.sources .warn .sdot { background: var(--caution); }
.sources .err .sdot { background: var(--nogo); }
.sources .age { font: 11px var(--mono); color: var(--muted); }
.sources .note { grid-column: 2 / 4; font-size: 11px; color: var(--muted); margin-top: -4px; }

/* ---------- globe ---------- */
.globe-panel { padding: 0; overflow: hidden; height: min(62vh, 640px); min-height: 380px; }
.globe { position: absolute; inset: 0; }
.globe canvas { display: block; }
.globe-hud { position: absolute; inset: 0; pointer-events: none; }
.globe-hud > * { position: absolute; pointer-events: auto; }
.hud-tl { top: 14px; left: 16px; pointer-events: none; }
.hud-tr { top: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 70%; }
.hud-bl { bottom: 12px; left: 16px; }
.hud-br { bottom: 12px; right: 16px; text-align: right; }
.chip-btn { background: rgba(5, 10, 22, .7); border: 1px solid var(--border); border-radius: 999px; padding: 5px 10px; font-size: 11px; cursor: pointer; color: var(--muted); }
.chip-btn.active { color: var(--text); border-color: rgba(76, 201, 240, .5); }
.legend { display: flex; gap: 12px; font-size: 11px; color: var(--muted); background: rgba(5, 10, 22, .6); padding: 6px 10px; border-radius: 8px; flex-wrap: wrap; }
.lg { display: inline-block; width: 14px; height: 3px; margin-right: 5px; vertical-align: middle; border-radius: 2px; }
.lg-trail { background: var(--trail); } .lg-pred { background: repeating-linear-gradient(90deg, var(--pred) 0 4px, transparent 4px 7px); }
.lg-site { width: 8px; height: 8px; border-radius: 50%; background: #ffd166; } .lg-land { width: 8px; height: 8px; border-radius: 50%; background: #06d6a0; }
.hud-big { font: 700 13px/1.3 var(--mono); text-shadow: 0 1px 6px #000; }
.globe-label {
  position: absolute; transform: translate(-50%, -140%); font: 600 11px/1 var(--mono); white-space: nowrap; pointer-events: none;
  padding: 4px 7px; border-radius: 6px; background: rgba(5, 10, 22, .75); border: 1px solid rgba(76, 201, 240, .45);
}
.globe-label.site { border-color: rgba(255, 209, 102, .35); color: #ffd166; font-size: 10px; transform: translate(-50%, -160%); }
.globe-label.land { border-color: rgba(6, 214, 160, .35); color: #06d6a0; font-size: 10px; }
.globe-label.dim { opacity: .55; }

/* ---------- charts ---------- */
.chart-box { position: relative; height: 210px; }
.chart-box.tall { height: 260px; }
.chart-box.short { height: 120px; }
.chart-box.profile { height: 230px; flex: 1; min-width: 0; }

/* ---------- timeline ---------- */
.timeline-bar { position: relative; height: 46px; margin: 4px 8px 10px; }
.timeline-bar .tl-line { position: absolute; left: 0; right: 0; top: 22px; height: 2px; background: rgba(255, 255, 255, .1); border-radius: 2px; }
.timeline-bar .tl-done { position: absolute; left: 0; top: 22px; height: 2px; background: linear-gradient(90deg, var(--accent2), var(--accent)); box-shadow: 0 0 8px var(--accent); }
.timeline-bar .tl-ev { position: absolute; top: 17px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--panel-solid); border: 2px solid var(--faint); cursor: default; }
.timeline-bar .tl-ev.past { border-color: var(--accent); background: var(--accent); }
.timeline-bar .tl-now { position: absolute; top: 6px; bottom: 6px; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 10px #fff; }
.timeline-bar .tl-tick { position: absolute; top: 34px; font: 10px var(--mono); color: var(--muted); transform: translateX(-50%); }
.timeline-list { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 14px; }
.timeline-list li { display: grid; grid-template-columns: 82px 1fr; gap: 8px; font-size: 12.5px; padding: 5px 6px; border-radius: 6px; color: var(--muted); }
.timeline-list li.past { color: var(--text); }
.timeline-list li.next { background: rgba(76, 201, 240, .1); color: var(--text); outline: 1px solid rgba(76, 201, 240, .35); }
.timeline-list .tt { font: 600 11.5px var(--mono); color: var(--accent); }

/* ---------- weather ---------- */
.go-banner { display: flex; align-items: center; gap: 10px; margin: 12px 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, .03); flex-wrap: wrap; }
.go-banner .go-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--unknown); }
.go-banner #goText { font: 800 18px/1 var(--display); letter-spacing: .12em; }
.go-banner.go { border-color: rgba(46, 229, 157, .4); background: rgba(46, 229, 157, .07); }
.go-banner.go .go-dot { background: var(--go); box-shadow: 0 0 14px var(--go); } .go-banner.go #goText { color: var(--go); }
.go-banner.caution { border-color: rgba(255, 176, 32, .45); background: rgba(255, 176, 32, .07); }
.go-banner.caution .go-dot { background: var(--caution); box-shadow: 0 0 14px var(--caution); } .go-banner.caution #goText { color: var(--caution); }
.go-banner.nogo { border-color: rgba(255, 77, 94, .5); background: rgba(255, 77, 94, .08); }
.go-banner.nogo .go-dot { background: var(--nogo); box-shadow: 0 0 14px var(--nogo); } .go-banner.nogo #goText { color: var(--nogo); }
.wx-now { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.wx-cell { background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .04); border-radius: 9px; padding: 7px 8px; min-width: 0; }
.wx-cell .k { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wx-cell .v { font: 600 14px/1.25 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-cell .s { font-size: 10.5px; color: var(--muted); }
.wx-cell.hero { grid-column: span 3; display: flex; align-items: center; gap: 12px; }
.wx-cell.hero .icon { font-size: 30px; }
.wx-cell.hero .v { font-size: 22px; }
.rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.rule { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: 12.5px; padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, .02); border-left: 3px solid var(--unknown); }
.rule.go { border-left-color: var(--go); } .rule.caution { border-left-color: var(--caution); } .rule.nogo { border-left-color: var(--nogo); background: rgba(255, 77, 94, .06); }
.rule .rv { font: 600 12px var(--mono); }
.rule .bar { grid-column: 1 / 3; height: 4px; background: rgba(255, 255, 255, .06); border-radius: 2px; position: relative; overflow: hidden; }
.rule .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--go); }
.rule.caution .bar i { background: var(--caution); } .rule.nogo .bar i { background: var(--nogo); } .rule.unknown .bar i { background: var(--unknown); }
.rule .bar b { position: absolute; top: -1px; bottom: -1px; width: 1px; background: rgba(255, 255, 255, .5); }
.alert { margin-top: 10px; padding: 9px 11px; border-radius: 9px; border: 1px solid rgba(255, 176, 32, .4); background: rgba(255, 176, 32, .07); font-size: 12.5px; }
.alert strong { color: var(--caution); }
.wind-row { display: flex; gap: 10px; align-items: center; }
.compass { width: 120px; flex: none; }
.compass svg { width: 100%; display: block; }
input[type=range] { width: 100%; accent-color: var(--accent); margin-top: 8px; }
.status-strip { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin-bottom: 8px; gap: 1px; }
.status-strip i { flex: 1; background: var(--unknown); }
.status-strip i.go { background: rgba(46, 229, 157, .75); } .status-strip i.caution { background: var(--caution); } .status-strip i.nogo { background: var(--nogo); }

/* ---------- bottom ---------- */
.upcoming { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.launch-card { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #0a1122 center/cover; min-height: 150px; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer; transition: .15s; text-align: left; }
.launch-card:hover { border-color: var(--border-hi); transform: translateY(-1px); }
.launch-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 6, 12, .15), rgba(4, 6, 12, .92) 70%); }
.launch-card > * { position: relative; }
.launch-card .lc-title { font: 700 14px/1.2 var(--display); letter-spacing: .03em; }
.launch-card .lc-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.launch-card .lc-count { font: 700 17px/1 var(--mono); color: var(--accent); margin-top: 8px; }
.launch-card .lc-go { position: absolute; top: 10px; right: 10px; }
.space-wx { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: 10px; }
.brief { font-size: 13px; max-height: 330px; overflow: auto; }
.brief p { margin: 0 0 8px; color: var(--text); opacity: .88; }
.brief img { width: 100%; border-radius: 10px; margin: 6px 0 10px; border: 1px solid var(--border); }
.brief a { color: var(--accent); }

/* ---------- dialog / toast ---------- */
.settings { background: var(--panel-solid); color: var(--text); border: 1px solid var(--border-hi); border-radius: 16px; padding: 20px 22px; width: min(560px, calc(100vw - 32px)); }
.settings::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); }
.settings h2 { margin-bottom: 14px; }
.settings fieldset { border: 1px solid var(--border); border-radius: 12px; margin: 12px 0; padding: 10px 12px; }
.settings legend { font-size: 12px; color: var(--accent); padding: 0 6px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
.row > span { min-width: 110px; color: var(--muted); }
.row.end { justify-content: flex-end; }
.row .select { flex: 1; width: auto; }
.btn { background: rgba(76, 201, 240, .16); border: 1px solid rgba(76, 201, 240, .5); color: var(--text); border-radius: 9px; padding: 7px 12px; cursor: pointer; text-decoration: none; font-size: 13px; }
.btn.ghost { background: transparent; border-color: var(--border); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 30px); opacity: 0; transition: .25s; background: var(--panel-solid); border: 1px solid var(--border-hi); padding: 10px 16px; border-radius: 10px; z-index: 50; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .1); border-radius: 4px; }

/* ---------- 2D map, hazards, passes, alerts ---------- */
.map2d { position: absolute; inset: 0; }
.lg-tfr { background: #ff8c28; } .lg-path { background: repeating-linear-gradient(90deg, #ffd166 0 4px, transparent 4px 7px); }
.lg-sl { width: 8px; height: 8px; border-radius: 50%; background: #8cc0ff; box-shadow: 6px 0 0 #ff8c26; margin-right: 12px; }
.hazard-list, .alerts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow: auto; }
.hazard-list li { padding: 8px 10px; border-radius: 9px; background: rgba(255, 255, 255, .025); border-left: 3px solid #ff8c28; cursor: pointer; font-size: 12.5px; }
.hazard-list li.marine { border-left-color: #00c7ff; }
.hazard-list li.active { background: rgba(255, 140, 40, .1); }
.hazard-list li:hover { background: rgba(255, 255, 255, .06); }
.hazard-list .ht { font-weight: 600; }
.alerts li { font-size: 12px; padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, .025); border-left: 3px solid var(--accent); }
.alerts li.high, .alerts li.urgent { border-left-color: var(--caution); }
.alerts li .at { font: 10.5px var(--mono); color: var(--muted); }
.passes { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow: auto; }
.pass { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 7px 10px; border-radius: 9px; background: rgba(255, 255, 255, .025); font-size: 12.5px; }
.pass.vis { border: 1px solid rgba(46, 229, 157, .45); background: rgba(46, 229, 157, .06); }
.pass .pt { font: 600 13px var(--mono); }
.pass .pe { font: 600 13px var(--mono); color: var(--accent); text-align: right; }
.pass .pd { grid-column: 1 / 3; color: var(--muted); font-size: 11.5px; }
.health-line { margin: 10px 0 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 10px; margin: 6px 0; font-size: 12.5px; }
.checks label { display: flex; gap: 6px; align-items: center; }
.az-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 12px; }
.az-rows label { display: flex; gap: 8px; align-items: center; font-size: 12.5px; }
.az-rows input { width: 80px; }
.custom-sites { list-style: none; padding: 0; margin: 0 0 6px; font-size: 12.5px; }
.custom-sites li { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
.settings { max-height: 88vh; overflow: auto; }
.wx-replay { font-size: 11.5px; color: #b9a6ff; margin: -6px 0 8px; }

/* ---------- flight replay ---------- */
.hidden { display: none !important; }
.replay-panel .row { margin-top: 0; }
.replay-panel .row .select { flex: 1; min-width: 200px; }
.replay-ctl { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.replay-ctl .icon-btn { width: 36px; height: 36px; }
.replay-ctl .icon-btn.play { background: rgba(123, 108, 255, .2); border-color: rgba(123, 108, 255, .6); }
.rp-track { position: relative; flex: 1; min-width: 200px; padding-top: 14px; }
.rp-track input[type=range] { margin: 0; accent-color: var(--accent2); }
.rp-marks { position: absolute; left: 8px; right: 8px; top: 0; height: 14px; }
.rp-marks i { position: absolute; top: 2px; width: 2px; height: 10px; margin-left: -1px; background: var(--pred); opacity: .7; cursor: pointer; border-radius: 1px; }
.rp-marks i:hover { opacity: 1; box-shadow: 0 0 6px var(--pred); }
.rp-time { font: 700 15px/1 var(--mono); color: var(--accent2); min-width: 120px; text-align: right; }
.rp-speed { width: auto !important; flex: none !important; min-width: 0 !important; padding: 6px 8px; }
.rp-jump { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.rp-jump button { background: rgba(185, 166, 255, .08); border: 1px solid rgba(185, 166, 255, .3); color: var(--text); border-radius: 999px; padding: 4px 10px; font-size: 11.5px; cursor: pointer; }
.rp-jump button.past { opacity: .5; }
.rp-jump button:hover { border-color: var(--pred); }
body.replaying .globe-panel { border-color: rgba(123, 108, 255, .7); box-shadow: 0 0 0 1px rgba(123, 108, 255, .35), 0 10px 40px rgba(123, 108, 255, .18); }
body.replaying .replay-panel { border-color: rgba(123, 108, 255, .6); }
.link-state.replay .dot { background: var(--accent2); box-shadow: 0 0 10px var(--accent2); animation: pulse 1.2s infinite; }
.link-state.replay { color: #b9a6ff; }
.timeline-list.seekable li { cursor: pointer; }
.timeline-list.seekable li:hover { background: rgba(123, 108, 255, .1); }

/* ---------- lightning ---------- */
.lg-bolt { width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle, #fff 0, #ffd000 40%, #ff4500 100%); box-shadow: 0 0 6px #ffb020; }
.lt-row { display: flex; gap: 12px; align-items: center; }
.lt-radar { width: 190px; flex: none; }
.lt-radar svg { width: 100%; display: block; }
.lt-stats { margin: 0; flex: 1; display: grid; gap: 6px; min-width: 0; }
.lt-stats div { background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .04); border-radius: 9px; padding: 6px 9px; }
.lt-stats dt { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lt-stats dd { margin: 2px 0 0; font: 600 14px/1.2 var(--mono); }
.lt-stats .up { color: var(--nogo); } .lt-stats .down { color: var(--go); }
.lt-note { margin: 10px 0 0; }
@keyframes flash { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.lt-radar .fresh { animation: flash 1.4s infinite; }
@media (max-width: 420px) { .lt-row { flex-direction: column; } .lt-radar { width: 220px; } }
.globe-hud .legend { max-width: calc(100% - 290px); }
@media (max-width: 900px) { .globe-hud .legend { display: none; } }
