/* ------------------------------------------------------------------
   Driftcast — stylesheet
   Tokens first (light, then dark under both the OS media query and an
   explicit data-theme stamp), then layout, then components.
   ------------------------------------------------------------------ */

:root {
  color-scheme: light;
  --bg: #eef1f3;
  --surface: #ffffff;
  --surface-2: #f5f7f9;
  --ink: #15202b;
  --ink-2: #4b5a68;
  --ink-3: #7b8896;
  --line: #d6dde3;
  --grid: #e7ebef;
  --accent: #123f6b;
  --accent-hover: #0d3157;
  --accent-ink: #ffffff;
  --link: #1d5fb8;
  --focus: #2a78d6;

  /* Flight stages: these are data colours (validated blue/orange/aqua set). */
  --ascent: #2a78d6;
  --descent: #eb6834;
  --float: #1baf7a;

  /* Status colours: reserved for warnings and errors only. */
  --warn-bg: #fff6de;
  --warn-line: #f0c65a;
  --warn-ink: #6b4d00;
  --bad-bg: #fdeceb;
  --bad-line: #e89a95;
  --bad-ink: #8e1f1a;

  --shadow: 0 1px 2px rgba(21, 32, 43, 0.08), 0 4px 14px rgba(21, 32, 43, 0.08);
  --radius: 8px;
  --font-ui: 'B612', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'B612 Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --map-filter: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e1317;
    --surface: #161c22;
    --surface-2: #1e262e;
    --ink: #eef2f5;
    --ink-2: #b3bfca;
    --ink-3: #83909c;
    --line: #2b353f;
    --grid: #232d36;
    --accent: #5b9cf0;
    --accent-hover: #74acf4;
    --accent-ink: #0b1622;
    --link: #79b0f7;
    --focus: #79b0f7;
    --ascent: #3987e5;
    --descent: #e8703f;
    --float: #22b57f;
    --warn-bg: #2e2612;
    --warn-line: #7a5d10;
    --warn-ink: #f4d27a;
    --bad-bg: #331a19;
    --bad-line: #7a2f2b;
    --bad-ink: #f3a9a4;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 14px rgba(0, 0, 0, 0.4);
    --map-filter: brightness(0.82) saturate(0.85);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1317;
  --surface: #161c22;
  --surface-2: #1e262e;
  --ink: #eef2f5;
  --ink-2: #b3bfca;
  --ink-3: #83909c;
  --line: #2b353f;
  --grid: #232d36;
  --accent: #5b9cf0;
  --accent-hover: #74acf4;
  --accent-ink: #0b1622;
  --link: #79b0f7;
  --focus: #79b0f7;
  --ascent: #3987e5;
  --descent: #e8703f;
  --float: #22b57f;
  --warn-bg: #2e2612;
  --warn-line: #7a5d10;
  --warn-ink: #f4d27a;
  --bad-bg: #331a19;
  --bad-line: #7a2f2b;
  --bad-ink: #f3a9a4;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 14px rgba(0, 0, 0, 0.4);
  --map-filter: brightness(0.82) saturate(0.85);
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.45 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); }
h2, h3 { margin: 0; text-wrap: balance; }
code, .mono { font-family: var(--font-mono); font-size: 0.93em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* -------------------------------------------------------------- layout */

.app { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 30px; height: 30px; fill: var(--accent); stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; }
.brand-mark path:last-child { fill: none; }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: 0.01em; line-height: 1.1; }
.brand-tag { font-size: 12px; color: var(--ink-3); }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.chip {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-2); font-size: 12px; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.shell { display: grid; grid-template-columns: 420px minmax(0, 1fr); min-height: 0; }
.side {
  min-height: 0; overflow-y: auto;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.pane { padding: 16px; }
.pane + .pane { border-top: 1px solid var(--line); }
.map-wrap { position: relative; min-height: 0; background: var(--surface-2); }
#map { position: absolute; inset: 0; }
#map .leaflet-tile-pane { filter: var(--map-filter); }

@media (max-width: 880px) {
  .app { height: auto; display: block; }
  .topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 1100; }
  .shell { display: flex; flex-direction: column; }
  .side { display: contents; }
  #flight-form { order: 1; background: var(--surface); }
  .map-wrap { order: 2; height: min(60vh, 520px); border-block: 1px solid var(--line); }
  #results-region { order: 3; background: var(--surface); border-top: 0; }
  .foot { order: 4; background: var(--surface); }
  .brand-tag { display: none; }
}
@media (max-width: 480px) {
  .topbar-right { display: none; }
}

/* ---------------------------------------------------------------- form */

.group { display: grid; gap: 10px; }
.group + .group { margin-top: 20px; }
.group-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
}
.field { display: grid; gap: 4px; min-width: 0; }
.field > label, .check { font-size: 12px; color: var(--ink-2); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inline { display: flex; align-items: center; gap: 8px; min-width: 0; }
.inline.wrap { flex-wrap: wrap; row-gap: 6px; }
.inline > input[type="search"] { flex: 1 1 auto; min-width: 0; }
.grow { flex: 1 1 auto; }
.hint { font-size: 12px; color: var(--ink-3); margin: 0; }

input[type="number"], input[type="search"], input[type="url"], input[type="text"], input[type="datetime-local"] {
  width: 100%; height: 36px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface-2); color: var(--ink);
  font: inherit; font-variant-numeric: tabular-nums;
}
input:disabled { color: var(--ink-3); background: var(--surface); }
input::placeholder { color: var(--ink-3); }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input-unit { position: relative; min-width: 0; }
.input-unit input { padding-right: 40px; }
.input-unit span {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-size: 12px; color: var(--ink-3); pointer-events: none;
}
.check { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; }
.check input { margin: 0; accent-color: var(--accent); }

.segmented {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  background: var(--surface-2);
}
.segmented input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.segmented label {
  text-align: center; padding: 8px 6px; font-size: 13px; cursor: pointer;
  color: var(--ink-2); user-select: none;
}
.segmented label + input + label { border-left: 1px solid var(--line); }
.segmented input:checked + label { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.segmented input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: -2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap;
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s;
}
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); flex: 1 1 auto; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { font-weight: 400; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12px; }

.actions { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.status { font-size: 12px; color: var(--ink-3); min-height: 1.4em; font-variant-numeric: tabular-nums; }

details.advanced { margin-top: 14px; }
details.advanced summary { font-size: 12px; color: var(--ink-3); cursor: pointer; }
details.advanced .field { margin-top: 10px; }

/* ------------------------------------------------------------- results */

#results-region { display: grid; gap: 18px; }
#results, #scan-results { display: grid; gap: 18px; transition: opacity 0.15s; }
#results.busy, #scan-results.busy { opacity: 0.55; }

.error {
  padding: 10px 12px; border-radius: var(--radius);
  background: var(--bad-bg); border: 1px solid var(--bad-line); color: var(--bad-ink);
}
.error-title { font-weight: 700; }
.error-hint { font-size: 12px; margin-top: 2px; overflow-wrap: anywhere; }

.hero { display: grid; gap: 4px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.hero .big { font-size: 34px; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.hero .sub { color: var(--ink-2); }
.coords { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.coords code { padding: 4px 8px; background: var(--surface-2); border-radius: 6px; border: 1px solid var(--line); }

.warnings { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.warnings li {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 8px 10px; border-radius: 6px; font-size: 12.5px;
  background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink);
}
.warnings li::before { content: "!"; flex: none; width: 16px; height: 16px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: 11px; border: 1.5px solid currentColor; margin-top: 1px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.tile .label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.tile .value { font-size: 21px; font-weight: 700; line-height: 1.2; margin-top: 2px; overflow-wrap: anywhere; }
.tile .sub { font-size: 12px; color: var(--ink-2); margin-top: 2px; }

.chart-card { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chart-head h3 { font-size: 13px; font-weight: 700; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.legend .key { display: inline-flex; align-items: center; gap: 6px; }
.legend .key i { display: inline-block; width: 16px; height: 0; border-top: 2px solid currentColor; border-radius: 2px; }
.legend .key.ascent i { color: var(--ascent); }
.legend .key.descent i { color: var(--descent); }
.legend .key.float i { color: var(--float); }

.chart { position: relative; min-height: 240px; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font-ui); }
.chart-svg:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.ch-grid { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.ch-axis { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.ch-tick { fill: var(--ink-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.ch-unit { fill: var(--ink-3); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.ch-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-area { opacity: 0.1; }
.ch-ascent { stroke: var(--ascent); fill: var(--ascent); }
.ch-descent { stroke: var(--descent); fill: var(--descent); }
.ch-float { stroke: var(--float); fill: var(--float); }
.ch-dot { stroke: var(--surface); stroke-width: 2; }
.ch-label { fill: var(--ink); font-size: 11px; font-weight: 700; }
.ch-label-sub { fill: var(--ink-2); font-size: 11px; }
.ch-cross { stroke: var(--ink-3); stroke-width: 1; shape-rendering: crispEdges; }
.ch-focus { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.ch-hit { fill: transparent; cursor: crosshair; }

.chart-tip {
  position: absolute; z-index: 5; pointer-events: none;
  min-width: 150px; padding: 6px 9px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: var(--shadow); font-size: 12px; line-height: 1.35;
}
.chart-tip .v { font-weight: 700; font-size: 14px; }
.chart-tip .k { color: var(--ink-2); }
.chart-tip .stage { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); }
.chart-tip .stage i { width: 12px; border-top: 2px solid currentColor; }
.chart-tip .stage.ascent i { color: var(--ascent); }
.chart-tip .stage.descent i { color: var(--descent); }
.chart-tip .stage.float i { color: var(--float); }

.kv { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 6px 14px; margin: 0; font-size: 13px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.kv dd .dim { color: var(--ink-3); }

.exports { display: flex; flex-wrap: wrap; gap: 6px; }

details.traj summary { font-size: 13px; color: var(--ink-2); cursor: pointer; }
.traj-wrap { margin-top: 8px; max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; }
.traj-wrap table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.traj-wrap th, .traj-wrap td { padding: 4px 8px; text-align: right; border-bottom: 1px solid var(--grid); white-space: nowrap; }
.traj-wrap th { position: sticky; top: 0; background: var(--surface-2); color: var(--ink-2); font-weight: 700; z-index: 1; }
.traj-wrap th.l, .traj-wrap td.l { text-align: left; }
.traj-wrap tr.boundary td { border-bottom-color: var(--line); font-weight: 700; }

.foot { font-size: 12px; color: var(--ink-3); margin-top: auto; }

/* ------------------------------------------------------------ Leaflet */

.leaflet-container { font-family: var(--font-ui); font-size: 12px; background: var(--surface-2); }
.leaflet-bar a, .leaflet-bar a:hover, .leaflet-control-layers, .leaflet-control-layers-expanded {
  background: var(--surface); color: var(--ink); border-color: var(--line);
}
.leaflet-bar a.leaflet-disabled { color: var(--ink-3); background: var(--surface-2); }
.leaflet-bar { border: 1px solid var(--line); box-shadow: var(--shadow); }
.leaflet-bar a { border-bottom-color: var(--line); }
.leaflet-touch .leaflet-bar, .leaflet-touch .leaflet-control-layers { border: 1px solid var(--line); }
.leaflet-control-layers { box-shadow: var(--shadow); border-radius: 6px; }
.leaflet-control-scale-line { background: color-mix(in srgb, var(--surface) 80%, transparent); border-color: var(--ink-2); color: var(--ink); }
.leaflet-control-attribution { background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--ink-3); }
.leaflet-control-attribution a { color: var(--link); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.leaflet-popup-content { margin: 10px 12px; font-size: 12.5px; line-height: 1.4; }
.leaflet-popup-content b { display: block; font-size: 13px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--ink-3); }

.map-legend {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  padding: 6px 10px; margin-bottom: 8px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow);
  font-size: 12px; color: var(--ink-2);
}
.map-legend .key { display: inline-flex; align-items: center; gap: 6px; }
.map-legend .key i { display: inline-block; width: 16px; height: 0; border-top: 3px solid currentColor; border-radius: 2px; }
.map-legend .key.ascent i { color: var(--ascent); }
.map-legend .key.descent i { color: var(--descent); }
.map-legend .key.float i { color: var(--float); }
.map-legend .key svg { width: 14px; height: 14px; }

.path-casing { stroke: var(--surface); }
.path-ascent { stroke: var(--ascent); }
.path-descent { stroke: var(--descent); }
.path-float { stroke: var(--float); }

.mk { background: none; border: 0; }
.mk svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.35)); }
.mk .ring { fill: none; stroke: #ffffff; stroke-width: 2.5; }
.mk .core { fill: #ffffff; }
.mk-launch .fill { fill: var(--ascent); }
.mk-launch .core { fill: #ffffff; }
.mk-apex .fill { fill: var(--descent); stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: round; }
.mk-apex.float .fill { fill: var(--float); }
.mk-end .fill { fill: var(--descent); stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: round; }
.mk-end.float .fill { fill: var(--float); }
.mk-probe .fill { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.mk-launch { cursor: grab; }
.leaflet-marker-draggable.mk-launch:active { cursor: grabbing; }

/* ------------------------------------------------ launch-window mode */

/* Ordered launch times share one blue ramp: lighter = earlier. Mode-invariant. */
:root {
  --ramp-0: #86b6ef; --ramp-1: #6da7ec; --ramp-2: #5598e7; --ramp-3: #3987e5;
  --ramp-4: #2a78d6; --ramp-5: #256abf; --ramp-6: #1c5cab; --ramp-7: #184f95;
}
.ramp-0 { --c: var(--ramp-0); } .ramp-1 { --c: var(--ramp-1); } .ramp-2 { --c: var(--ramp-2); } .ramp-3 { --c: var(--ramp-3); }
.ramp-4 { --c: var(--ramp-4); } .ramp-5 { --c: var(--ramp-5); } .ramp-6 { --c: var(--ramp-6); } .ramp-7 { --c: var(--ramp-7); }

.segmented.mode { margin-bottom: 18px; }
.segmented.tiny { display: inline-grid; }
.segmented.tiny label { padding: 4px 9px; font-size: 12px; }
.label-text { font-size: 12px; color: var(--ink-2); }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 10px; }
select {
  width: 100%; height: 36px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface-2); color: var(--ink); font: inherit;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 4px;
  height: 30px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink-2);
  font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap;
}
.chip-btn b { color: var(--ink); }
.chip-btn:hover:not(:disabled) { background: var(--surface-2); }
.chip-btn[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip-btn[aria-checked="true"] b { color: inherit; }
.chip-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.slider-field { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.slider-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.slider-head output { font-weight: 700; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; margin: 8px 0 4px; accent-color: var(--accent); }
input[type="range"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }

.table-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
#results-label { margin-bottom: -8px; }

.scan-table { max-height: 300px; }
.scan-table tbody tr { cursor: pointer; }
.scan-table tbody tr:hover td { background: var(--surface-2); }
.scan-table tr.sel td { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); font-weight: 700; }
.scan-table tr.fail { cursor: default; }
.scan-table tr.fail td { color: var(--ink-3); }
.swatch {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px;
  background: var(--c, var(--ascent)); box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 2.5px var(--line);
}
.tag {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--accent); color: var(--accent-ink); vertical-align: 1px;
}

.legend .key.dot i, .map-legend .key.dot i { width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--c, var(--ascent)); }

.ch-bar { fill: var(--c, var(--ascent)); transition: opacity 0.1s; }
.ch-bar.hover { opacity: 0.75; }
.ch-bar.selected { stroke: var(--ink); stroke-width: 2; }
.ch-bar-fail { fill: var(--ink-3); opacity: 0.6; }
.ch-day { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.ch-hit.click { cursor: pointer; }

.scan-path { stroke: var(--c, var(--ascent)); }
.scan-path.emph { stroke-width: 4; stroke-opacity: 1; }
.scan-pt { fill: var(--c, var(--ascent)); stroke: var(--surface); cursor: pointer; }
.scan-pt.selected { stroke: var(--ink); }
.leaflet-tooltip { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); font-size: 12px; }
.leaflet-tooltip-top::before { border-top-color: var(--line); }
