@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/static/fonts/AtkinsonHyperlegibleNext-wght.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #edf5f2;
  --night: #16332f;
  --night-soft: #e7f1ed;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-solid: #ffffff;
  --line: rgba(22, 51, 47, 0.12);
  --line-strong: rgba(22, 51, 47, 0.22);
  --text: #17322f;
  --muted: #667b77;
  --signal: #ff9d2e;
  --signal-soft: rgba(255, 157, 46, 0.16);
  --cyan: #168f88;
  --older: #849994;
  --danger: #d95e4b;
  --radius: 22px;
  --shadow: 0 20px 55px rgba(35, 70, 64, 0.16);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* { box-sizing: border-box; }
*[hidden] { display: none !important; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--canvas);
  color: var(--text);
  font-family: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  font-size: 16px;
}

button,
input { font: inherit; }
button,
a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.observatory,
#concept-map {
  position: fixed;
  inset: 0;
}

#concept-map {
  z-index: 0;
  background: #dfece7;
}

#concept-map .maplibregl-canvas,
#concept-map .leaflet-tile-pane {
  filter: saturate(0.72) brightness(1.03) contrast(0.94);
}

/* Leaflet uses `plus-lighter` to hide tile seams in Chromium. On the pale
   desktop canvas that blending mode can wash the complete vector map out. */
@media (min-width: 721px) {
  #concept-map .leaflet-tile {
    mix-blend-mode: normal;
  }

  #concept-map .leaflet-tile-pane {
    filter: saturate(0.78) brightness(0.99) contrast(1.04);
  }
}

.map-grade {
  position: fixed;
  z-index: 400;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 52% 42%, transparent 32%, rgba(231, 243, 238, 0.04) 70%, rgba(196, 219, 211, 0.18) 120%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 28%, transparent 74%, rgba(217, 233, 227, 0.16));
}

.command-bar,
.live-readout,
.time-dock,
.map-tools,
.search-panel,
.control-drawer,
.strike-detail,
.concept-toast {
  position: fixed;
  z-index: 800;
}

.command-bar {
  top: calc(22px + var(--safe-top));
  left: calc(22px + var(--safe-left));
  right: calc(22px + var(--safe-right));
  height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 10px 8px 9px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(1.25);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 54px;
  height: 54px;
  display: block;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(22,51,47,.1), 0 10px 25px rgba(31,70,63,.16);
}

.brand span,
.network-state span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand b {
  font-size: 1.16rem;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.brand small,
.network-state small {
  margin-top: 4px;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.network-state {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-left: auto;
  padding: 0 14px;
  border-right: 1px solid var(--line);
}

.network-state > i {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 6px var(--signal-soft), 0 0 18px var(--signal);
}

.network-state > i.is-loading { animation: breathe 1s ease-in-out infinite; }
.network-state > i.is-live { animation: live-heartbeat 3.2s ease-out infinite; }
.network-state > i.is-error { background: var(--danger); box-shadow: 0 0 0 6px rgba(255,143,120,.12); }
.network-state b { font-size: .88rem; }

.command-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.round-action,
.language-switcher summary {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 16px;
  background: transparent;
  cursor: pointer;
  list-style: none;
  font-weight: 750;
}

.theme-glyph {
  font-size: 1.4rem;
  line-height: 1;
}

.round-action:hover,
.round-action:focus-visible,
.language-switcher summary:hover,
.language-switcher summary:focus-visible {
  outline: none;
  background: rgba(22,51,47,.07);
}

.round-action svg,
.map-tools svg,
.layer-symbol svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.language-switcher { position: relative; }
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher div {
  position: absolute;
  top: 60px;
  right: 0;
  width: 180px;
  max-height: min(460px, 70vh);
  padding: 8px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
}

.language-switcher a {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
}

.language-switcher a:hover,
.language-switcher a[aria-current="true"] { color: var(--text); background: rgba(22,51,47,.06); }

.live-readout {
  top: calc(116px + var(--safe-top));
  left: calc(22px + var(--safe-left));
  width: 270px;
  padding: 19px 20px 17px;
  border-left: 2px solid var(--signal);
  border-radius: 0 19px 19px 0;
  background: linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.82));
  box-shadow: 18px 18px 42px rgba(39,78,71,.12);
  backdrop-filter: blur(18px);
}

.readout-heading,
.search-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--signal);
  font-size: .72rem;
  font-weight: 720;
  letter-spacing: .17em;
}

.readout-heading i {
  width: 42px;
  height: 2px;
  background: linear-gradient(90deg, var(--signal), transparent);
}

.readout-value {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 8px;
}

.readout-value strong {
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  line-height: .92;
  letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
}

.readout-value span { color: var(--muted); font-size: .95rem; }
.readout-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
}

.readout-meta span:first-child { color: var(--cyan); }

.map-tools {
  right: calc(22px + var(--safe-right));
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 7px;
  width: 94px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.map-tools button {
  min-height: 68px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 7px;
  border: 0;
  border-radius: 14px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.map-tools button + button { border-top: 1px solid var(--line); border-radius: 0; }
.map-tools button:first-child { border-radius: 14px 14px 0 0; }
.map-tools button:last-child { border-radius: 0 0 14px 14px; }
.map-tools button:hover,
.map-tools button:focus-visible,
.map-tools button.is-active { outline: none; color: #d96b09; background: var(--signal-soft); }
.map-tools span { font-size: .68rem; font-weight: 650; }
.map-tools button.is-loading svg { animation: spin .8s linear infinite; }
.map-tools .globe-tool-icon { display: block; font-size: 1.55rem; line-height: 1; }

.time-dock {
  left: 50%;
  bottom: calc(22px + var(--safe-bottom));
  width: min(760px, calc(100vw - 270px));
  min-height: 118px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 155px minmax(160px, 1fr) 190px;
  grid-template-rows: 1fr auto;
  gap: 10px 18px;
  align-items: center;
  padding: 18px 20px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(1.2);
}

.time-copy { display: flex; flex-direction: column; gap: 6px; }
.time-copy span { color: var(--signal); font-size: .67rem; font-weight: 720; letter-spacing: .14em; }
.time-copy strong { font-size: 1rem; line-height: 1.2; }

.activity-histogram {
  height: 50px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line-strong);
}

.activity-histogram i {
  flex: 1;
  min-height: 3px;
  height: var(--h, 3%);
  border-radius: 3px 3px 0 0;
  background: var(--older);
  opacity: .52;
  transition: height .35s ease;
}

.activity-histogram i.recent { background: var(--cyan); opacity: .72; }
.activity-histogram i.now { background: var(--signal); opacity: 1; box-shadow: 0 0 12px rgba(255,157,46,.3); }
.activity-histogram i.now:last-child { animation: live-bin 2.8s ease-in-out infinite; }

.time-options {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 13px;
  background: rgba(22,51,47,.055);
}

.time-options button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 680;
}

.time-options button.is-active { color: var(--night); background: var(--signal); }
.timeline-playback:not([hidden]) {
  grid-column: 2 / 4;
  display: grid;
  grid-template-columns: auto 42px minmax(110px, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 13px;
  background: rgba(22,51,47,.055);
}
.timeline-playback button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 680;
}
.timeline-playback button.is-active { color: var(--night); background: var(--signal); }
.timeline-playback input { min-width: 80px; accent-color: var(--signal); }
.timeline-playback output { min-width: 74px; color: var(--night); font-size: .75rem; font-weight: 680; text-align: right; }
.time-legend { grid-column: 2 / 4; display: flex; justify-content: flex-end; gap: 18px; color: var(--muted); font-size: .68rem; }
.time-legend span { display: flex; align-items: center; gap: 6px; }
.time-legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--older); }
.time-legend i.now { background: var(--signal); }
.time-legend i.recent { background: var(--cyan); }

.search-panel {
  top: calc(106px + var(--safe-top));
  right: calc(22px + var(--safe-right));
  width: min(390px, calc(100vw - 44px));
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
}

.search-title button,
.control-drawer header button,
.strike-detail header button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(22,51,47,.06);
  cursor: pointer;
  font-size: 1.7rem;
}

.search-panel label { display: block; margin: 14px 0 8px; color: var(--muted); font-size: .82rem; }
.search-input-row { display: flex; gap: 7px; }
.search-input-row input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  outline: none;
  color: var(--text);
  background: rgba(22,51,47,.045);
}
.search-input-row input:focus { border-color: var(--cyan); }
.search-input-row button { min-width: 58px; border: 0; border-radius: 13px; color: var(--night); background: var(--signal); font-weight: 750; cursor: pointer; }
.search-panel p { min-height: 18px; margin: 9px 0 0; color: var(--muted); font-size: .78rem; }

.control-drawer {
  z-index: 1000;
  top: calc(108px + var(--safe-top));
  right: calc(22px + var(--safe-right));
  bottom: calc(22px + var(--safe-bottom));
  width: min(420px, calc(100vw - 44px));
  padding: 24px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,255,255,.97);
  box-shadow: var(--shadow);
  transform: translateX(calc(100% + 48px));
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}

.control-drawer.is-open { transform: translateX(0); }
.control-drawer header,
.strike-detail header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.control-drawer header span,
.strike-detail header span { color: var(--signal); font-size: .7rem; font-weight: 750; letter-spacing: .16em; }
.control-drawer h2 { margin: 6px 0 0; font-size: 2rem; letter-spacing: -.04em; }
.control-drawer h3 { margin: 34px 0 10px; color: var(--muted); font-size: .75rem; letter-spacing: .13em; text-transform: uppercase; }

.layer-row {
  min-height: 86px;
  display: grid;
  grid-template-columns: 50px 1fr 42px;
  align-items: center;
  gap: 13px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.layer-symbol { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: var(--cyan); background: rgba(22,143,136,.1); }
.layer-symbol.lightning-symbol { color: var(--signal); background: var(--signal-soft); }
.layer-symbol.live-network-symbol { color: var(--cyan); background: rgba(22,143,136,.1); font-size: 1.4rem; font-weight: 800; }
.layer-symbol.strike-sound-symbol { color: var(--signal); background: rgba(255,157,46,.12); font-size: 1.25rem; font-weight: 800; }
.layer-row:has(input:disabled) { cursor: not-allowed; opacity: .58; }
.layer-row > span:nth-child(2) { display: flex; flex-direction: column; gap: 4px; }
.layer-row strong { font-size: .98rem; }
.layer-row small { color: var(--muted); line-height: 1.3; }
.layer-row input { position: absolute; opacity: 0; pointer-events: none; }
.layer-row > i { width: 42px; height: 24px; position: relative; border-radius: 30px; background: rgba(22,51,47,.14); transition: background .2s; }
.layer-row > i::after { content: ""; position: absolute; top: 4px; left: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.layer-row input:checked + i { background: var(--signal-soft); }
.layer-row input:checked + i::after { transform: translateX(18px); background: var(--signal); }
.strike-sound-test-button {
  min-height: 42px;
  width: 100%;
  margin: 0 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255,157,46,.1);
  font: inherit;
  font-size: .86rem;
  font-weight: 750;
  cursor: pointer;
}
.strike-sound-test-button:active { transform: translateY(1px); }

.drawer-note { margin-top: 28px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(22,51,47,.035); }
.drawer-note b { color: var(--cyan); }
.drawer-note p { margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
.explain-link { min-height: 62px; display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 0 17px; border-radius: 15px; color: var(--text); background: rgba(22,51,47,.055); text-decoration: none; }
.explain-link b { color: var(--signal); font-size: 1.4rem; }

.drawer-scrim { position: fixed; z-index: 950; inset: 0; border: 0; background: rgba(28,57,52,.22); backdrop-filter: blur(3px); }

.strike-detail {
  right: calc(134px + var(--safe-right));
  top: 50%;
  width: 310px;
  padding: 20px;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
}
.strike-fold > summary { display: none; }
.strike-detail h2 { margin: 13px 0 17px; font-size: 1.65rem; }
.strike-detail dl { margin: 0; }
.strike-detail dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.strike-detail dt { color: var(--muted); }
.strike-detail dd { margin: 0; font-variant-numeric: tabular-nums; }
.strike-quality { margin-top: 9px; padding-top: 11px; border-top: 1px solid var(--line); }
.strike-quality h3 { margin: 0 0 8px; color: var(--signal); font-size: .65rem; font-weight: 760; letter-spacing: .13em; }
.strike-quality-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.strike-quality-grid div { min-width: 0; padding: 8px; border-radius: 9px; background: rgba(22,51,47,.045); }
.strike-quality-grid span,
.strike-quality-grid strong { display: block; }
.strike-quality-grid span { min-height: 2.4em; color: var(--muted); font-size: .62rem; line-height: 1.2; }
.strike-quality-grid strong { margin-top: 4px; color: var(--text); font-size: .82rem; font-variant-numeric: tabular-nums; }
.strike-quality > small { display: block; margin-top: 7px; color: var(--muted); font-size: .65rem; line-height: 1.35; }
.strike-station-list { max-height: 126px; margin-top: 8px; overflow-y: auto; }
.strike-station-list button { width: 100%; display: block; padding: 6px 8px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font: inherit; font-size: .75rem; text-align: left; }
.strike-station-list strong,
.strike-station-list small { display: block; }
.strike-station-list strong { font-size: .75rem; font-weight: 680; }
.strike-station-list small { margin-top: 2px; color: var(--muted); font-size: .67rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.strike-station-list button:nth-child(odd) { background: rgba(22,51,47,.035); }
.strike-station-list button.is-used { color: var(--cyan); font-weight: 700; }
.strike-station-list button.is-interactive { cursor: pointer; outline: none; transition: background .16s ease, transform .16s ease; }
.strike-station-list button.is-interactive:hover,
.strike-station-list button.is-interactive:focus-visible { background: rgba(22,143,136,.1); transform: translateX(2px); }
.strike-station-list button.is-own { border: 1px solid rgba(255,157,46,.32); color: #9a5910; background: rgba(255,157,46,.11); }
.strike-station-list button.is-own small { color: #80684c; }
#concept-map.is-picking-location { cursor: crosshair; }
#concept-map.is-picking-location .leaflet-interactive { cursor: crosshair; }
.strike-lines-toggle { min-height: 40px; display: flex; align-items: center; gap: 9px; margin-top: 8px; color: var(--text); font-size: .8rem; cursor: pointer; }
.strike-lines-toggle input { width: 18px; height: 18px; accent-color: var(--cyan); }
.live-network-shape { transition: opacity 1.6s ease, fill-opacity 1.6s ease; }
.live-network-link { stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 2px rgba(248,252,250,.8)); }
.strike-share-button {
  min-height: 42px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 0;
  border: 1px solid rgba(22,143,136,.24);
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(22,143,136,.08);
  font: inherit;
  font-size: .82rem;
  font-weight: 750;
  cursor: pointer;
}

.station-popup-shell .leaflet-popup-content-wrapper,
.station-popup-shell .leaflet-popup-tip {
  border: 1px solid rgba(22,51,47,.1);
  background: rgba(248,252,250,.92);
  box-shadow: 0 14px 36px rgba(25,57,51,.18);
  backdrop-filter: blur(18px) saturate(1.12);
}
.station-popup-shell .leaflet-popup-content-wrapper { border-radius: 17px; }
.station-popup-shell .leaflet-popup-content { margin: 13px 14px; }
.station-map-popup > strong,
.station-map-popup > small { display: block; }
.station-map-popup > strong { margin-top: 7px; color: var(--text); font-size: 1rem; }
.station-map-popup > small { margin-top: 2px; color: var(--muted); font-size: .75rem; }
.station-popup-status { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .64rem; font-weight: 740; letter-spacing: .08em; text-transform: uppercase; }
.station-popup-status::before { width: 7px; height: 7px; border-radius: 50%; background: var(--older); content: ""; }
.station-popup-status.is-online::before { background: var(--cyan); box-shadow: 0 0 0 4px rgba(22,143,136,.1); }
.station-map-popup.is-own > strong { color: #9a5910; }
.station-map-popup > div { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-top: 11px; }
.station-map-popup button { min-height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: rgba(255,255,255,.55); font-size: .72rem; font-weight: 680; cursor: pointer; }
.station-map-popup button:first-child { border-color: rgba(22,143,136,.22); color: var(--cyan); background: rgba(22,143,136,.07); }

.station-detail {
  position: fixed;
  z-index: 1300;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(24px, var(--safe-top)) max(24px, var(--safe-right)) max(24px, var(--safe-bottom)) max(24px, var(--safe-left));
  background: rgba(17,42,38,.25);
  backdrop-filter: blur(7px) saturate(.9);
}
.station-detail[hidden] { display: none; }
.station-detail-surface {
  width: min(760px, 100%);
  max-height: min(810px, calc(100dvh - 48px));
  overflow-y: auto;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(252,255,254,.94), rgba(239,247,244,.9));
  box-shadow: 0 30px 90px rgba(14,42,36,.28);
}
.station-detail-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.station-detail-header > span { color: var(--signal); font-size: .65rem; font-weight: 780; letter-spacing: .16em; }
.station-detail-back,
.station-detail-close { border: 0; color: var(--text); background: transparent; cursor: pointer; }
.station-detail-back { justify-self: start; display: flex; align-items: center; gap: 7px; padding: 8px 0; color: var(--muted); font-size: .8rem; font-weight: 680; }
.station-detail-back span { color: var(--signal); font-size: 1.2rem; }
.station-detail-close { justify-self: end; width: 38px; height: 38px; border-radius: 50%; background: rgba(22,51,47,.055); font-size: 1.35rem; }
.station-detail-hero { display: flex; align-items: center; gap: 17px; margin-top: 22px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.52); }
.station-detail-hero > i { flex: 0 0 auto; width: 17px; height: 17px; border: 4px solid rgba(102,123,119,.2); border-radius: 50%; background: var(--older); }
.station-detail-hero > i.is-online { border-color: rgba(22,143,136,.16); background: var(--cyan); box-shadow: 0 0 24px rgba(22,143,136,.3); }
.station-detail-hero > i.is-offline { background: #778783; }
.station-detail-hero p,
.station-detail-hero h2 { margin: 0; }
.station-detail-hero p:first-child { color: var(--signal); font-size: .62rem; font-weight: 780; letter-spacing: .13em; }
.station-detail-hero h2 { margin-top: 3px; font-size: clamp(1.55rem, 4vw, 2.3rem); line-height: 1.05; }
.station-detail-hero p:last-child { margin-top: 5px; color: var(--muted); }
.station-detail-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.station-detail-metrics > div { min-width: 0; padding: 16px; border-radius: 16px; background: rgba(22,51,47,.045); }
.station-detail-metrics span,
.station-detail-metrics strong,
.station-detail-metrics small { display: block; }
.station-detail-metrics span { color: var(--muted); font-size: .68rem; }
.station-detail-metrics strong { margin-top: 7px; font-size: 1.22rem; font-variant-numeric: tabular-nums; }
.station-detail-metrics small { margin-top: 4px; color: var(--muted); font-size: .66rem; line-height: 1.35; }
.station-participation { margin-top: 25px; }
.station-section-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.station-section-title span { color: var(--signal); font-size: .6rem; font-weight: 780; letter-spacing: .14em; }
.station-section-title h3 { margin: 3px 0 0; font-size: 1.15rem; }
.station-section-title > small { color: var(--muted); font-size: .67rem; }
.station-participation-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(230px, .85fr); gap: 10px; margin-top: 11px; }
.station-participation-chart-card,
.station-participation-recent-card { min-width: 0; padding: 15px; border: 1px solid rgba(22,51,47,.08); border-radius: 16px; background: rgba(255,255,255,.46); }
.station-participation-card-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.station-participation-card-title strong { font-size: .82rem; }
.station-participation-card-title span { color: var(--muted); font-size: .62rem; }
.station-participation-chart-card canvas { display: block; width: 100%; height: 190px; margin-top: 8px; }
.station-participation-empty { min-height: 150px; display: grid; place-items: center; margin: 8px 0 0; color: var(--muted); text-align: center; font-size: .72rem; }
.station-participation-empty[hidden] { display: none; }
.station-participation-farthest { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding-top: 11px; border-top: 1px solid var(--line); }
.station-participation-farthest span,
.station-participation-farthest small { color: var(--muted); font-size: .64rem; }
.station-participation-farthest strong { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--signal); font-size: 1.12rem; font-variant-numeric: tabular-nums; }
.station-participation-recent-card ol { margin: 9px 0 0; padding: 0; list-style: none; }
.station-participation-recent-card li { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 7px; padding: 7px 0; border-top: 1px solid var(--line); font-size: .68rem; }
.station-participation-recent-card li:first-child { border-top: 0; }
.station-participation-recent-card li strong { color: var(--signal); font-variant-numeric: tabular-nums; }
.station-participation-recent-card li span,
.station-participation-recent-card li time,
.station-participation-recent-card li small { color: var(--muted); }
.station-participation-recent-card li time { text-align: right; }
.station-participation-recent-card li small { grid-column: 1 / -1; }
.station-participation-recent-card li.is-empty { display: block; color: var(--muted); }
.station-hardware { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.station-hardware > div { padding: 12px 15px; border-radius: 14px; background: rgba(22,51,47,.035); }
.station-hardware span,
.station-hardware strong { display: block; }
.station-hardware span { color: var(--muted); font-size: .66rem; }
.station-hardware strong { margin-top: 3px; }
.station-hardware p { grid-column: 1 / -1; margin: 2px 4px 0; color: var(--muted); font-size: .68rem; }
.station-detail-share { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; border: 1px solid rgba(22,143,136,.22); border-radius: 14px; color: var(--cyan); background: rgba(22,143,136,.08); font-weight: 720; cursor: pointer; }
.strike-share-button:hover { background: rgba(22,143,136,.13); }

@media (min-width: 721px) {
  .command-bar {
    height: 58px;
    gap: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    pointer-events: none;
  }

  .command-bar > * { pointer-events: auto; }

  .brand {
    min-width: 226px;
    height: 58px;
    padding: 7px 14px 7px 7px;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 19px;
    background: rgba(238, 247, 243, .14);
    box-shadow: 0 4px 16px rgba(22, 51, 47, .08);
    backdrop-filter: blur(8px) saturate(1.08);
  }

  .brand span { text-shadow: 0 1px 3px rgba(255, 255, 255, .9); }

  .brand img {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .network-state {
    display: none;
  }

  .command-actions {
    margin-left: auto;
    width: 94px;
    min-height: 52px;
    padding: 0 4px;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .58);
    border-bottom-color: rgba(22, 51, 47, .1);
    border-radius: 20px 20px 0 0;
    background: rgba(238, 247, 243, .14);
    box-shadow: 0 4px 16px rgba(22, 51, 47, .08);
    backdrop-filter: blur(8px) saturate(1.08);
  }

  #concept-search-button { display: none; }

  .live-readout {
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 19px;
    background: rgba(238, 247, 243, .14);
    box-shadow: 0 4px 16px rgba(22, 51, 47, .08);
    backdrop-filter: blur(8px) saturate(1.08);
  }

  .search-panel {
    top: calc(22px + var(--safe-top));
    left: calc(270px + var(--safe-left));
    right: auto;
    width: min(360px, calc(100vw - 700px));
    min-width: 250px;
    padding: 5px;
    border-color: rgba(255, 255, 255, .58);
    border-radius: 18px;
    background: rgba(238, 247, 243, .14);
    box-shadow: 0 4px 16px rgba(22, 51, 47, .08);
    backdrop-filter: blur(8px) saturate(1.08);
  }

  .search-panel .search-title,
  .search-panel label { display: none; }

  .search-input-row { gap: 5px; }

  .search-input-row input {
    min-height: 46px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    text-shadow: 0 1px 3px rgba(255, 255, 255, .9);
  }

  .search-input-row input:focus {
    border-color: transparent;
    background: rgba(22, 51, 47, .045);
  }

  .search-input-row button {
    min-width: 52px;
    border-radius: 14px;
  }

  .search-panel p {
    position: absolute;
    top: calc(100% + 6px);
    left: 8px;
    max-width: 340px;
    min-height: 0;
    margin: 0;
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 8px 22px rgba(35, 70, 64, .13);
  }

  .search-panel p:empty { display: none; }

  .map-tools {
    top: calc(73px + var(--safe-top));
    transform: none;
    border-color: rgba(255, 255, 255, .58);
    border-top-color: rgba(22, 51, 47, .1);
    border-radius: 0 0 20px 20px;
    background: rgba(238, 247, 243, .14);
    box-shadow: 0 4px 16px rgba(22, 51, 47, .08);
    backdrop-filter: blur(8px) saturate(1.08);
  }

  .time-dock {
    width: min(840px, calc(100vw - 220px));
    min-height: 112px;
    grid-template-columns: 150px minmax(160px, 1fr) minmax(230px, 250px);
    gap: 8px 14px;
    padding: 14px 16px 12px;
    border-color: rgba(255, 255, 255, .58);
    background: rgba(238, 247, 243, .14);
    box-shadow: 0 4px 16px rgba(22, 51, 47, .08);
    backdrop-filter: blur(8px) saturate(1.08);
  }

  .time-options,
  .time-options button {
    min-width: 0;
  }

  .time-options button {
    width: 100%;
    padding-inline: 3px;
  }

  .strike-detail {
    top: calc(108px + var(--safe-top));
    bottom: calc(22px + var(--safe-bottom));
    max-height: none;
    transform: none;
    overflow-y: auto;
  }

  .strike-detail > header {
    position: sticky;
    z-index: 2;
    top: -20px;
    margin: -20px -20px 0;
    padding: 16px 20px 10px;
    background: var(--panel-solid);
  }

  .strike-fold {
    margin-top: 9px;
    border-top: 1px solid var(--line);
  }

  .strike-fold > summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--cyan);
    cursor: pointer;
    list-style: none;
    font-size: .76rem;
    font-weight: 750;
  }

  .strike-fold > summary::-webkit-details-marker { display: none; }
  .strike-fold > summary span { color: var(--muted); font-size: 1.1rem; transition: transform .2s ease; }
  .strike-fold[open] > summary span { transform: rotate(180deg); }
  .strike-fold .strike-quality { margin-top: 0; padding-top: 0; border-top: 0; }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .brand {
    min-width: 58px;
    width: 58px;
    padding-right: 7px;
  }

  .brand span { display: none; }

  .search-panel {
    left: calc(92px + var(--safe-left));
    width: min(300px, calc(100vw - 260px));
    min-width: 220px;
  }
}

.strike-share-button:active { transform: translateY(1px); }
.estimate-note { display: block; margin-top: 8px; color: var(--muted); font-size: .68rem; line-height: 1.4; }

.data-credit { position: fixed; z-index: 700; right: calc(24px + var(--safe-right)); bottom: calc(8px + var(--safe-bottom)); color: rgba(22,51,47,.52); font-size: .62rem; pointer-events: none; }
.data-credit a { color: inherit; pointer-events: auto; }
.concept-toast { left: 50%; top: 108px; transform: translateX(-50%); max-width: min(460px, calc(100vw - 32px)); padding: 12px 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-solid); box-shadow: var(--shadow); }

.concept-tooltip { border: 1px solid var(--line) !important; border-radius: 10px !important; color: var(--text) !important; background: var(--panel-solid) !important; box-shadow: 0 9px 26px rgba(35,70,64,.18) !important; }
.concept-tooltip::before { border-top-color: var(--panel-solid) !important; }
.leaflet-control-container { display: none; }
.concept-strike { transition: opacity .8s ease; }
.latest-strike-halo {
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform, opacity;
  animation: latest-strike-breathe 3.2s ease-in-out infinite;
}
.strike-impact-wave,
.strike-impact-core {
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform, opacity;
}
.strike-impact-wave { animation: strike-impact-wave 1.28s cubic-bezier(.16,.8,.25,1) both; }
.strike-impact-core { animation: strike-impact-core .82s ease-out both; }
.user-location-dot { width: 18px; height: 18px; border: 4px solid white; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 8px rgba(22,143,136,.18), 0 0 25px rgba(22,143,136,.42); }

@keyframes breathe { 50% { opacity: .38; transform: scale(.78); } }
@keyframes live-heartbeat {
  0%, 12%, 100% { box-shadow: 0 0 0 6px var(--signal-soft), 0 0 18px rgba(255,157,46,.55); }
  5% { box-shadow: 0 0 0 10px rgba(255,157,46,0), 0 0 24px rgba(255,157,46,.72); }
}
@keyframes live-bin {
  0%, 100% { filter: brightness(.96); box-shadow: 0 0 8px rgba(255,157,46,.2); }
  50% { filter: brightness(1.13); box-shadow: 0 0 15px rgba(255,157,46,.42); }
}
@keyframes latest-strike-breathe {
  0%, 100% { opacity: .2; transform: scale(.82); }
  50% { opacity: .5; transform: scale(1.18); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes strike-impact-wave {
  0% { opacity: .96; stroke-width: 2.6; transform: scale(.42); }
  42% { opacity: .72; }
  100% { opacity: 0; stroke-width: .5; transform: scale(3.1); }
}
@keyframes strike-impact-core {
  0% { opacity: 1; transform: scale(.35); }
  32% { opacity: 1; transform: scale(1.75); }
  100% { opacity: 0; transform: scale(.72); }
}

@media (max-width: 900px) {
  .time-dock { width: calc(100vw - 250px); grid-template-columns: 135px 1fr; }
  .time-options { grid-column: 1 / 3; }
  .timeline-playback:not([hidden]) { grid-column: 1 / 3; }
  .time-legend { display: none; }
}

@media (max-width: 720px) {
  html,
  body { font-size: 16px; }

  #concept-map .maplibregl-canvas,
  #concept-map .leaflet-tile-pane { filter: saturate(.66) brightness(1.04) contrast(.94); }

  .command-bar {
    top: calc(8px + var(--safe-top));
    left: calc(8px + var(--safe-left));
    right: calc(8px + var(--safe-right));
    height: 56px;
    gap: 4px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    pointer-events: none;
  }

  .command-bar > * { pointer-events: auto; }
  .brand {
    min-width: 0;
    height: 56px;
    margin-right: auto;
    padding: 4px 10px 4px 4px;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 17px;
    background: rgba(238, 247, 243, .14);
    box-shadow: 0 4px 16px rgba(22, 51, 47, .08);
    backdrop-filter: blur(8px) saturate(1.08);
  }
  .brand span { text-shadow: 0 1px 3px rgba(255, 255, 255, .9); }
  .brand img { width: 46px; height: 46px; border-radius: 13px; }
  .brand b { font-size: .94rem; font-weight: 680; }
  .brand small { display: none; }
  .network-state { display: none; }
  .command-actions {
    height: 56px;
    gap: 1px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 17px;
    background: rgba(238, 247, 243, .14);
    box-shadow: 0 4px 16px rgba(22, 51, 47, .08);
    backdrop-filter: blur(8px) saturate(1.08);
  }
  #concept-menu-button { display: none; }
  .round-action,
  .language-switcher summary { width: 44px; height: 44px; border-radius: 12px; }
  .round-action svg { width: 22px; height: 22px; }
  .language-switcher div { top: 49px; }

  .live-readout {
    top: calc(74px + var(--safe-top));
    left: calc(8px + var(--safe-left));
    width: 178px;
    padding: 10px 12px 9px;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 14px;
    background: rgba(238, 247, 243, .14);
    box-shadow: 0 4px 16px rgba(22, 51, 47, .08);
    backdrop-filter: blur(8px) saturate(1.08);
  }
  .readout-heading { font-size: .57rem; letter-spacing: .14em; }
  .readout-heading i { width: 22px; height: 1px; }
  .readout-value { gap: 6px; margin-top: 5px; }
  .readout-value strong { font-size: 2rem; font-weight: 680; }
  .readout-value span { font-size: .72rem; }
  .readout-meta { margin-top: 7px; padding-top: 6px; font-size: .62rem; }
  .readout-meta span:last-child { display: none; }

  .map-tools {
    top: calc(74px + var(--safe-top));
    right: calc(8px + var(--safe-right));
    width: 52px;
    padding: 3px;
    gap: 0;
    transform: none;
    border-color: rgba(255, 255, 255, .58);
    border-radius: 15px;
    background: rgba(238, 247, 243, .14);
    box-shadow: 0 4px 16px rgba(22, 51, 47, .08);
    backdrop-filter: blur(8px) saturate(1.08);
  }
  .map-tools button { min-height: 46px; padding: 4px; }
  .map-tools button + button { border-top: 1px solid var(--line); }
  .map-tools svg { width: 22px; height: 22px; }
  .map-tools span { display: none; }

  .time-dock {
    left: calc(8px + var(--safe-left));
    right: calc(8px + var(--safe-right));
    bottom: calc(8px + var(--safe-bottom));
    width: auto;
    min-height: 102px;
    transform: none;
    grid-template-columns: minmax(120px, .9fr) 1.2fr;
    grid-template-rows: auto auto;
    gap: 7px 11px;
    padding: 9px 10px 10px;
    border-color: rgba(255, 255, 255, .58);
    border-radius: 17px;
    background: rgba(238, 247, 243, .14);
    box-shadow: 0 4px 16px rgba(22, 51, 47, .08);
    backdrop-filter: blur(8px) saturate(1.08);
  }
  .time-copy { gap: 3px; }
  .time-copy span { font-size: .53rem; letter-spacing: .12em; }
  .time-copy strong { font-size: .78rem; font-weight: 650; }
  .activity-histogram { height: 31px; gap: 3px; padding: 3px 0; }
  .time-options { grid-column: 1 / 3; }
  .time-options { padding: 2px; border-radius: 11px; background: rgba(22,51,47,.04); }
  .time-options button { min-height: 44px; border-radius: 9px; font-size: .83rem; font-weight: 630; }
  .time-options button.is-active { background: rgba(255, 157, 46, .88); }
  .timeline-playback:not([hidden]) { grid-template-columns: auto 42px minmax(70px, 1fr) auto; padding: 2px; }
  .timeline-playback button { min-height: 44px; padding: 0 9px; }
  .timeline-playback output { min-width: 58px; font-size: .68rem; }

  .search-panel {
    z-index: 900;
    top: calc(86px + var(--safe-top));
    right: calc(10px + var(--safe-right));
    width: calc(100vw - 20px - var(--safe-left) - var(--safe-right));
    border-color: rgba(255, 255, 255, .58);
    background: rgba(238, 247, 243, .14);
    box-shadow: 0 4px 16px rgba(22, 51, 47, .08);
    backdrop-filter: blur(8px) saturate(1.08);
  }
  .control-drawer {
    top: auto;
    left: calc(8px + var(--safe-left));
    right: calc(8px + var(--safe-right));
    bottom: calc(8px + var(--safe-bottom));
    width: auto;
    max-height: calc(100dvh - 24px - var(--safe-top) - var(--safe-bottom));
    padding: 22px;
    border-radius: 25px;
    transform: translateY(calc(100% + 30px));
  }
  .control-drawer.is-open { transform: translateY(0); }
  .control-drawer h2 { font-size: 1.75rem; }
  .layer-row { min-height: 92px; }

  .strike-detail {
    top: auto;
    left: calc(10px + var(--safe-left));
    right: calc(10px + var(--safe-right));
    bottom: calc(154px + var(--safe-bottom));
    width: auto;
    transform: none;
    max-height: calc(100dvh - 246px - var(--safe-top) - var(--safe-bottom));
    overflow-y: auto;
  }
  .station-detail {
    place-items: stretch;
    padding: 0;
    background: rgba(17,42,38,.32);
  }
  .station-detail-surface {
    width: 100%;
    min-height: 100dvh;
    max-height: 100dvh;
    padding: calc(12px + var(--safe-top)) calc(16px + var(--safe-right)) calc(20px + var(--safe-bottom)) calc(16px + var(--safe-left));
    border: 0;
    border-radius: 0;
  }
  .station-detail-header {
    position: sticky;
    z-index: 2;
    top: calc(-12px - var(--safe-top));
    margin: calc(-12px - var(--safe-top)) calc(-16px - var(--safe-right)) 0 calc(-16px - var(--safe-left));
    padding: calc(12px + var(--safe-top)) calc(16px + var(--safe-right)) 10px calc(16px + var(--safe-left));
    background: rgba(247,252,250,.88);
    backdrop-filter: blur(16px);
  }
  .station-detail-hero { margin-top: 12px; padding: 17px; }
  .station-detail-metrics { grid-template-columns: 1fr; gap: 7px; }
  .station-detail-metrics > div { padding: 12px 14px; }
  .station-detail-metrics strong { margin-top: 4px; font-size: 1.05rem; }
  .station-participation-layout { grid-template-columns: 1fr; gap: 7px; }
  .station-participation-chart-card,
  .station-participation-recent-card { padding: 12px 14px; }
  .station-participation-chart-card canvas { height: 175px; }
  .station-hardware { grid-template-columns: 1fr; gap: 7px; }
  .station-hardware p { grid-column: 1; }
  .data-credit { right: calc(12px + var(--safe-right)); bottom: calc(146px + var(--safe-bottom)); font-size: .48rem; }
  .concept-toast { top: calc(84px + var(--safe-top)); font-size: .82rem; }
}

@media (max-width: 420px) {
  .brand span { display: none; }
  .live-readout { width: 168px; }
  .time-dock { grid-template-columns: 112px 1fr; }
}

body.globe-open { overflow: hidden; }

.globe-view {
  position: fixed;
  z-index: 1600;
  inset: 0;
  overflow: hidden;
  background: #020b0e;
  color: #edf8f4;
}

.globe-map { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, #153b42 0, #06171c 42%, #010609 100%); }
.globe-map .maplibregl-canvas { cursor: grab; }
.globe-map .maplibregl-canvas:active { cursor: grabbing; }
.globe-map .maplibregl-ctrl-group,
.globe-map .maplibregl-ctrl-attrib { border: 1px solid rgba(255,255,255,.15); background: rgba(4,18,21,.72); color: #c9dcd7; box-shadow: 0 10px 28px rgba(0,0,0,.3); backdrop-filter: blur(14px); }
.globe-map .maplibregl-ctrl-group button { filter: invert(1) opacity(.82); }
.globe-map .maplibregl-ctrl-attrib a { color: #e7f4ef; }

.globe-toolbar {
  position: absolute;
  z-index: 2;
  top: calc(18px + var(--safe-top));
  left: calc(18px + var(--safe-left));
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100vw - 36px - var(--safe-left) - var(--safe-right));
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: rgba(4,18,21,.68);
  box-shadow: 0 14px 40px rgba(0,0,0,.26);
  backdrop-filter: blur(16px) saturate(1.18);
}
.globe-toolbar div { min-width: 0; }
.globe-toolbar span { color: #ffab45; font-size: .62rem; font-weight: 790; letter-spacing: .14em; text-transform: uppercase; }
.globe-toolbar strong { display: block; margin: 2px 0 0; font-size: clamp(1.05rem, 3vw, 1.55rem); line-height: 1.05; }
.globe-close { width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.15); border-radius: 13px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; font-size: 1.25rem; }
.globe-count { margin-left: auto; padding: 8px 10px; border: 1px solid rgba(255,255,255,.15); border-radius: 13px; background: rgba(255,255,255,.06); color: #c9dcd7; font-size: .72rem; white-space: nowrap; }
.globe-help { position: absolute; z-index: 2; right: calc(18px + var(--safe-right)); bottom: calc(18px + var(--safe-bottom)); margin: 0; padding: 9px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; background: rgba(4,18,21,.6); color: #aec4be; font-size: .72rem; backdrop-filter: blur(12px); }

html[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #06110f;
  --night: #edf8f4;
  --night-soft: #122823;
  --panel: rgba(5, 24, 20, .82);
  --panel-solid: #0b211d;
  --line: rgba(224, 244, 237, .13);
  --line-strong: rgba(224, 244, 237, .24);
  --text: #edf8f4;
  --muted: #9db4ae;
  --shadow: 0 20px 55px rgba(0, 0, 0, .36);
}
html[data-theme="dark"] #concept-map { background: #06110f; }
html[data-theme="dark"] #concept-map .maplibregl-canvas,
html[data-theme="dark"] #concept-map .leaflet-tile-pane { filter: saturate(.72) brightness(.48) contrast(1.22); }
html[data-theme="dark"] .command-bar,
html[data-theme="dark"] .live-readout,
html[data-theme="dark"] .map-tools,
html[data-theme="dark"] .time-dock,
html[data-theme="dark"] .search-panel,
html[data-theme="dark"] .control-drawer,
html[data-theme="dark"] .station-detail-header { border-color: rgba(224,244,237,.14); background: rgba(5,24,20,.76); box-shadow: 0 10px 34px rgba(0,0,0,.28); }
html[data-theme="dark"] .live-readout { background: linear-gradient(135deg, rgba(5,24,20,.84), rgba(5,24,20,.58)); }
html[data-theme="dark"] .brand { text-shadow: 0 2px 12px rgba(0,0,0,.55); }
html[data-theme="dark"] .round-action:hover,
html[data-theme="dark"] .round-action:focus-visible,
html[data-theme="dark"] .language-switcher summary:hover,
html[data-theme="dark"] .language-switcher summary:focus-visible { background: rgba(255,255,255,.08); }
html[data-theme="dark"] .time-options { background: rgba(255,255,255,.06); }
html[data-theme="dark"] .station-detail-surface { background: linear-gradient(150deg, #081a16, #06110f); }
html[data-theme="dark"] .station-detail-hero,
html[data-theme="dark"] .station-detail-metrics > div,
html[data-theme="dark"] .station-participation-chart-card,
html[data-theme="dark"] .station-participation-recent-card,
html[data-theme="dark"] .station-hardware { background: rgba(255,255,255,.045); }
html[data-theme="dark"] .station-popup-shell .leaflet-popup-content-wrapper,
html[data-theme="dark"] .station-popup-shell .leaflet-popup-tip { background: #0b211d; color: #edf8f4; }

@media (max-width: 720px) {
  .map-tools .globe-tool-icon { display: block; }
  .globe-toolbar { top: calc(10px + var(--safe-top)); left: calc(10px + var(--safe-left)); gap: 9px; max-width: calc(100vw - 20px - var(--safe-left) - var(--safe-right)); padding: 9px 10px; border-radius: 15px; }
  .globe-close { width: 38px; height: 38px; }
  .globe-count { display: none; }
  .globe-help { right: calc(10px + var(--safe-right)); bottom: calc(12px + var(--safe-bottom)); max-width: 58vw; text-align: right; }
}

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