:root {
  /* Navy "storm desk" theme (2026-11-29): readable panels, not pitch black. */
  --ink: #16171b;
  --ink-2: #1b1d21;
  --surface: rgba(32, 34, 39, 0.97);
  --raised: #2c2f35;
  --line: rgba(200, 205, 215, 0.16);
  --text: #f2f3f5;
  --muted: #a3a8b3;
  --accent: #6cbcff;
  --blue: #2b8ae6;
  --gold: #f5b301;
  --live: #22c55e;
  --down: #5d6b84;
  --danger: #ef4444;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
  --bar-h: 3.15rem;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --glass: rgba(30, 32, 37, 0.95);
  font-family: system-ui, "Segoe UI", "Helvetica Neue", sans-serif;
  letter-spacing: 0.01em;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--text); overflow: hidden; }
.dl-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 3px;
  pointer-events: none;
  background: transparent;
}
.dl-bar[hidden] { display: none; }
.dl-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: #f5c518;
  box-shadow: 0 0 10px rgba(245, 197, 24, 0.85);
  transition: width 0.45s linear;
}
.dl-bar.is-done span { transition: width 0.18s linear; }

#map { position: absolute; inset: 0; }
.maplibregl-ctrl-attrib, .maplibregl-ctrl-bottom-right, .maplibregl-ctrl-bottom-left { display: none !important; }

.topbar {
  position: absolute;
  top: calc(0.55rem + var(--safe-top));
  left: 0.7rem;
  right: 0.7rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.35rem 0.28rem 0.45rem;
  height: var(--bar-h);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 0.45rem; flex: 1; min-width: 0; }
.mark { display: block; border-radius: 7px; }

.icon-btn, .fab {
  appearance: none;
  border: 0;
  background: var(--raised);
  color: var(--text);
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.icon-btn:hover, .fab:hover { background: rgba(42, 48, 62, 0.95); }
.icon-btn:active, .fab:active { transform: scale(0.96); }
.icon-btn svg, .fab svg { width: 1.15rem; height: 1.15rem; }

.badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font: 700 0.62rem/1.05rem system-ui, sans-serif;
  text-align: center;
}

.chip {
  position: absolute;
  top: calc(var(--bar-h) + 4.35rem + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 19;
  max-width: calc(100vw - 1.5rem);
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  border: 0;
  font: 600 0.72rem/1.3 system-ui, sans-serif;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  pointer-events: auto;
  cursor: pointer;
}
.chip[data-state="live"] { background: #2b6b4e; color: #f3fff8; }
.chip[data-state="stale"] { background: #6a5420; color: #fff6df; }
.chip[data-state="old"] { background: #7a2e2e; color: #fff0f0; }
.chip[data-state="busy"] { background: #24344a; color: #d7e8ff; }
.chip[data-state="down-cache"] { background: var(--down); color: #f4f1e8; }
.chip[data-state="down"] { background: #6b3030; color: #f0e6e6; }
.chip[hidden] { display: none; }

.model-bar {
  position: absolute;
  top: calc(var(--bar-h) + 0.85rem + var(--safe-top));
  left: 0.7rem;
  right: 0.7rem;
  z-index: 18;
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.35rem;
  border-radius: 14px;
  scrollbar-width: none;
}
.model-bar::-webkit-scrollbar { display: none; }
.model-chip, .model-chips .model-chip {
  flex: 0 0 auto;
  appearance: none;
  min-height: 2.75rem;
  padding: 0.28rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 10, 14, 0.35);
  color: var(--text);
  font: 700 0.8rem/1.15 system-ui, sans-serif;
  cursor: pointer;
  text-align: left;
}
.model-chip small {
  display: block;
  margin-top: 0.08rem;
  font: 600 0.62rem/1.15 system-ui, sans-serif;
  color: var(--muted);
}
.model-chip.on {
  background: #24344a;
  color: #d7e8ff;
  border-color: rgba(142, 192, 255, 0.5);
}
.model-chip.on small { color: #b7d4f5; }
.model-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.2rem 0 0.7rem;
}

.scale {
  position: absolute;
  right: 0.75rem;
  top: 36%;
  z-index: 12;
  display: flex;
  gap: 0.3rem;
  align-items: stretch;
  pointer-events: none;
}
.scale-bar {
  width: 0.42rem;
  height: 7.6rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.25);
  background: linear-gradient(to top, #4a4a4a 0%, #1db3b3 18%, #1c8f2b 36%, #d6d022 58%, #d46a12 74%, #b41c1c 88%, #9b1ca8 100%);
}
.scale-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font: 600 0.58rem/1 system-ui, sans-serif;
  color: #f2f5ef;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.fabs {
  position: absolute;
  right: 0.75rem;
  bottom: calc(9.4rem + var(--safe-bot));
  z-index: 16;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.fab { box-shadow: 0 6px 18px rgba(0,0,0,0.35); }

.row-btn, .text-btn, .tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 600 0.9rem system-ui, sans-serif;
  cursor: pointer;
}
.row-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.9rem;
}
.row-btn + .row-btn { border-top: 1px solid var(--line); }
.row-btn { background: var(--raised); border-radius: 10px; margin: 0.35rem 0; }
.row-btn[hidden] { display: none; }

.panel, .sheet {
  position: absolute;
  z-index: 30;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}
.panel {
  top: calc(var(--bar-h) + 0.75rem + var(--safe-top));
  left: 0.7rem;
  right: 0.7rem;
  border-radius: 14px;
  padding: 0.7rem;
  max-height: 55vh;
  overflow: auto;
}
.panel input, .field input, .field select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--text);
  padding: 0.6rem 0.7rem;
  font: 0.95rem system-ui, sans-serif;
}
#search-results { list-style: none; margin: 0.4rem 0 0; padding: 0; }
#search-results li {
  padding: 0.55rem 0.2rem;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.hint { color: var(--muted); font-size: 0.75rem; line-height: 1.4; margin: 0.6rem 0 0; }

.handle {
  display: block;
  width: 2.4rem;
  height: 0.28rem;
  border-radius: 99px;
  background: #5b6558;
  margin: 0 auto 0.55rem;
}

.tabs { display: flex; gap: 0.35rem; margin: 0.2rem 0 0.6rem; }
.tab {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--raised);
  color: var(--muted);
  font-size: 0.8rem;
}
.tab.on { background: var(--accent); color: #1a1208; }
.tab.pending { opacity: 0.7; }
.overlay-notice { color: var(--muted); font: 500 0.68rem/1.35 system-ui, sans-serif; margin: 0.2rem 0 0.35rem; max-width: 11rem; }
.overlay-notice[hidden] { display: none; }

.alert-card {
  background: var(--raised);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}

.alert-card .meta { color: var(--muted); font-size: 0.75rem; }

.backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 24;
}
.sheet {
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  max-height: 68vh;
  overflow: auto;
  border-radius: 18px 18px 0 0;
  padding: 0.7rem 0.9rem calc(0.9rem + var(--safe-bot));
  z-index: 26;
}
.sheet-tall { max-height: 86vh; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.sheet-head h2 { margin: 0; font-size: 1.05rem; }
.text-btn { color: var(--accent-2, #e2b07a); padding: 0.35rem; }
.toggle, .field { display: block; margin: 0.65rem 0; font-size: 0.9rem; }
.toggle { display: flex; gap: 0.6rem; align-items: center; }
.field input, .field select { margin-top: 0.35rem; }
.alert-list { display: flex; flex-direction: column; gap: 0.45rem; }
.alert-card h3 { margin: 0 0 0.25rem; font-size: 0.9rem; }
.model-table { width: 100%; font-size: 0.75rem; border-collapse: collapse; }
.model-table th, .model-table td { text-align: right; padding: 0.28rem 0.3rem; border-bottom: 1px solid var(--line); }
.model-table th:first-child, .model-table td:first-child { text-align: left; }
.empty { color: var(--muted); text-align: center; padding: 1.2rem 0.5rem; }
.radar-ctrl {
  position: absolute;
  left: 0.75rem;
  right: 4.2rem;
  bottom: calc(6.5rem + var(--safe-bot));
  z-index: 15;
  display: flex;
  gap: 0.35rem;
  align-items: center;
  padding: 0.35rem 0.45rem;
  background: rgba(22, 28, 21, 0.92);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.mini {
  appearance: none;
  border: 0;
  background: var(--raised);
  color: var(--text);
  border-radius: 8px;
  padding: 0.3rem 0.5rem;
  font: 600 0.72rem system-ui, sans-serif;
  cursor: pointer;
}
.mini.on { background: var(--accent); color: #1a1208; }
#scrub { flex: 1; min-width: 0; }
.chip { pointer-events: auto; cursor: pointer; border: 0; }
.activity-list { font: 0.72rem/1.45 ui-monospace, Consolas, monospace; }
.activity-list div { padding: 0.35rem 0; border-bottom: 1px solid var(--line); }
.activity-list .err { color: #e08a7a; }




.legend-meta { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }

.legend-op { font: 500 0.62rem/1.3 system-ui, sans-serif; color: var(--muted); }
.legend-op input { width: 100%; margin-top: 0.15rem; }
.sat-ctrl {
  position: absolute;
  left: 0.75rem;
  right: 4.2rem;
  bottom: calc(9.55rem + var(--safe-bot));
  z-index: 15;
  display: flex;
  gap: 0.3rem;
  align-items: center;
  padding: 0.35rem 0.45rem;
  background: rgba(22, 28, 21, 0.92);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.sat-ctrl[hidden] { display: none; }
#sat-scrub { flex: 1; min-width: 0; }
.seg { display: flex; flex-wrap: nowrap; gap: 0.3rem; margin: 0.35rem 0 0.55rem; }
.seg.wrap { flex-wrap: wrap; }
.locate-msg {
  position: absolute;
  left: 0.75rem;
  right: 4.2rem;
  bottom: calc(4.35rem + var(--safe-bot));
  z-index: 16;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: rgba(16,20,15,0.9);
  border: 1px solid var(--line);
  font: 600 0.75rem/1.35 system-ui, sans-serif;
}
.locate-msg[hidden] { display: none; }

.radar-ctrl { flex-wrap: wrap; }
.radar-legend-img {
  width: 36px;
  height: 128px;
  object-fit: contain;
  background: #161c15;
  border-radius: 4px;
}
#radar-scale.legend-img .scale-bar,
#radar-scale.legend-img .scale-labels { display: none; }

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
}

.mini, .tab, .row-btn, .text-btn {
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.mini:active, .tab:active, .row-btn:active { transform: scale(0.97); }

.server-side { display: none; }

@media (min-width: 960px) {
  #map, #map-b { left: 0; right: 0; }
  .stage {
    left: auto;
    right: 1rem;
    top: 1rem;
    bottom: 1rem;
    width: 400px;
    max-height: none;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
  }
  .mode-body { max-height: none; }
  .time-card {
    left: 1rem;
    right: auto;
    transform: none;
    top: 1rem;
  }
  .search-float { right: calc(400px + 2rem); top: 1rem; }
  .fabs { right: calc(400px + 2rem); top: 4.5rem; }
  .alert-float { right: calc(400px + 2rem); }
  .server-side { display: none; }
}
.server-kicker {
  font: 700 0.68rem/1.2 system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
#server-status { font-size: 0.82rem; margin-bottom: 0.45rem; }
.server-log {
  overflow: auto;
  font: 0.72rem/1.4 ui-monospace, Consolas, monospace;
  color: var(--muted);
}
.server-log div { padding: 0.15rem 0; border-bottom: 1px solid var(--line); }
.server-log .err { color: #e08a7a; }

.prod-row { display: flex; flex-wrap: wrap; gap: 0.28rem; }
.prod-row[hidden] { display: none; }

.playback {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: calc(3.35rem + var(--safe-bot));
  z-index: 16;
  border-radius: 14px;
  padding: 0.35rem 0.55rem 0.4rem;
}
.play-row {
  display: flex;
  align-items: center;
  gap: 0.28rem;
}
.loop-seg { display: flex; gap: 0.2rem; margin-right: 0.15rem; }
.play-main { width: 2.7rem; height: 2.7rem; background: rgba(142, 192, 255, 0.16); color: #d7e8ff; }
.frame-time {
  margin-left: auto;
  font: 650 0.78rem/1.2 system-ui, sans-serif;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}
.timeline { position: relative; margin-top: 0.15rem; padding-top: 0.95rem; }
.ticks {
  position: absolute;
  left: 0.15rem;
  right: 0.15rem;
  top: 0;
  height: 0.9rem;
  pointer-events: none;
}
.tick {
  position: absolute;
  transform: translateX(-50%);
  font: 600 0.58rem/1 system-ui, sans-serif;
  color: var(--muted);
  white-space: nowrap;
}
.timeline input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: var(--accent);
}

.drawer-block { padding: 0.35rem 0 0.7rem; border-bottom: 1px solid var(--line); }
.drawer-block:last-child { border-bottom: 0; }
.drawer-kicker {
  font: 700 0.68rem/1.2 system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.15rem 0 0.45rem;
}
.conn-result {
  min-height: 1.2rem;
  margin: 0.35rem 0 0.8rem;
  font: 600 0.78rem/1.35 system-ui, sans-serif;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
}
.conn-result[data-ok="true"] { color: var(--live); }
.conn-result[data-ok="false"] { color: var(--danger); }

.sheet, .panel, .locate-msg {
  transition: opacity 0.28s var(--ease), transform 0.32s var(--ease);
}
.sheet { background: var(--glass); }
.seg.wrap { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.2rem 0 0.6rem; }

.afd-text {
  white-space: pre-wrap;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 0.4rem 0 0;
  max-height: 62vh;
  overflow: auto;
  color: var(--text);
}
.obs-list { display: flex; flex-direction: column; gap: 0.45rem; padding-bottom: 0.8rem; }
.obs-card {
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--raised);
}
.obs-card .k { color: var(--accent); font-size: 0.78rem; }
.obs-card .t { color: var(--muted); font-size: 0.72rem; margin-top: 0.15rem; }
.eta-chip {
  position: absolute;
  top: calc(var(--bar-h) + 0.8rem + var(--safe-top));
  left: 0.7rem;
  z-index: 18;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  max-width: 70%;
}

#map-wrap { position: absolute; inset: 0; display: flex; }
#map { position: relative; flex: 1 1 50%; inset: auto; width: auto; height: 100%; }
#map-b { display: none; flex: 1 1 50%; height: 100%; border-left: 1px solid rgba(255,255,255,0.08); }
body.dual #map-b { display: block; }
body.dual #map-b[hidden] { display: block; }
.pane-chip { position: absolute; top: 0.55rem; left: 0.55rem; z-index: 4; padding: 0.2rem 0.4rem; font-size: 0.75rem; display: none; align-items: center; gap: 0.3rem; }
body.dual .pane-chip { display: flex; }
.pane-chip-b { left: calc(50% + 0.55rem); }
.pane-chip select { background: transparent; color: inherit; border: 0; font: inherit; }
.row-inline { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.row-inline label { flex: 1; min-width: 8rem; font-size: 0.85rem; }
#btn-split[aria-pressed="true"] { color: #8fd0ff; }

button, [role="button"] { cursor: pointer; }

.alert-float {
  position: absolute;
  top: calc(4.15rem + var(--safe-top));
  left: 0.75rem;
  z-index: 21;
  width: 2.65rem;
  height: 2.65rem;
  border: 0;
  border-radius: 14px;
  background: #e23b3b;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
.alert-float[hidden] { display: none; }
.alert-float .badge {
  position: static;
  background: transparent;
  min-width: 0;
  height: auto;
  padding: 0;
  font: 700 1.05rem/1 system-ui, sans-serif;
}

.time-card {
  position: absolute;
  top: calc(0.7rem + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  min-width: 11.5rem;
  max-width: calc(100vw - 8.5rem);
  padding: 0.42rem 1rem 0.38rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(12, 14, 18, 0.9);
  color: #7eb6ff;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0,0,0,0.4);
}
.time-card #time-main {
  display: block;
  font: 700 1.02rem/1.2 system-ui, sans-serif;
  letter-spacing: 0.01em;
}
.time-card #time-updated {
  display: block;
  margin-top: 0.08rem;
  color: #c5ccd6;
  font: 500 0.7rem/1.25 system-ui, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#chip[data-state="down"] #time-updated,
#chip[data-state="down-cache"] #time-updated { color: #e7b4b4; }

.search-float {
  position: absolute;
  top: calc(0.85rem + var(--safe-top));
  right: 0.75rem;
  z-index: 21;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 14px;
  background: rgba(18, 22, 28, 0.92);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
.panel { top: calc(4.4rem + var(--safe-top)); }
.eta-chip { top: calc(6.3rem + var(--safe-top)); }   /* below the time box (it hid the arrival chip) */
.fabs {
  top: calc(4.35rem + var(--safe-top));
  bottom: auto;
  right: 0.75rem;
  z-index: 18;
}

.stage {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 17;
  display: flex;
  flex-direction: column;
  max-height: 72vh;
  overflow: hidden;
  background: rgba(16, 18, 22, 0.94);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-bottom: var(--safe-bot);
  box-shadow: 0 -10px 28px rgba(0,0,0,0.28);
}
.stage .scale {
  position: relative;
  flex: 0 0 auto;
  left: auto;
  right: auto;
  top: auto;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.45rem 0.85rem 0.15rem;
  background: #14181e;
}
.stage .scale-bar {
  width: 100%;
  height: 0.42rem;
  border-radius: 99px;
  background: linear-gradient(to right, #4a4a4a 0%, #1db3b3 18%, #1c8f2b 36%, #d6d022 58%, #d46a12 74%, #b41c1c 88%, #9b1ca8 100%);
}
.stage .scale.scale-temp .scale-bar {
  background: linear-gradient(to right, #3d5a99 0%, #7eb6ff 28%, #d7e4c8 52%, #e2b07a 74%, #c4543a 100%);
}
.stage .scale-labels {
  flex-direction: row;
  justify-content: space-between;
  font-size: 0.66rem;
}
.stage .scale[hidden] { display: none; }
.scale-note { font: 600 0.66rem/1.3 system-ui, sans-serif; color: var(--muted, #aeb6c2); }
.scale-note[hidden] { display: none; }
/* Precip type / hail swath keys + the rotation note (B180/B181): one slim row each. */
.ovl-keys { flex: 0 0 auto; display: flex; flex-direction: column; gap: 0.2rem; padding: 0.3rem 0.85rem 0.15rem; background: transparent; pointer-events: none; }
.ovl-keys[hidden] { display: none; }
.ovl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 0.55rem; font: 600 0.66rem/1.3 system-ui, sans-serif; color: #e6eaf0; }
.ovl-row b { font-weight: 700; color: #aeb6c2; margin-right: 0.1rem; }
.ovl-it { display: inline-flex; align-items: center; gap: 0.25rem; white-space: nowrap; }
.ovl-it i { width: 0.7rem; height: 0.5rem; border-radius: 2px; border: 1px solid rgba(255,255,255,0.25); }
.ovl-note { color: #f3c969; font-weight: 600; }

.mode-tabs {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  background: #1a1e24;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.loop-tabs {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.mode-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: #c5ccd4;
  min-height: 48px;
  font: 650 1rem/1 system-ui, sans-serif;
  position: relative;
}
.mode-tab.on { color: #fff; }
.mode-tab.on::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #3dba6a;
}
.sheet-toggle {
  width: 48px;
  color: #9aa3ad;
  display: grid;
  place-items: center;
}
.sheet-toggle svg { width: 1.15rem; height: 1.15rem; transition: transform 0.2s var(--ease); }
/* Owner Dec 4: open panel = DOWN arrow (it pointed up, so people thought there was no way out). */
.stage:not(.collapsed) .sheet-toggle svg { transform: rotate(180deg); }
@media (max-width: 959px) {
  .stage:not(.collapsed) .sheet-toggle svg { width: 1.35rem; height: 1.35rem; padding: 6px; box-sizing: content-box; border-radius: 50%;
    background: rgba(255,255,255,.12); color: #fff; }
}
.stage.collapsed .mode-body { display: none; }

.mode-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  max-height: 26vh;
  background: #161a20;
}
.mode-pane[hidden] { display: none; }
.sec-head {
  margin: 0;
  padding: 0.62rem 0.9rem;
  background: linear-gradient(180deg, #1c3a52, #142838);
  color: #e8eef6;
  font: 650 0.98rem/1.2 system-ui, sans-serif;
}
.mode-body .prod-row {
  display: flex;
  flex-direction: column;
  gap: 0;
}



.more-block { background: #1c2128; }
.more-block summary {
  list-style: none;
  cursor: pointer;
  padding: 0.7rem 0.95rem;
  color: #9aa3ad;
  font: 650 0.86rem/1.2 system-ui, sans-serif;
}
.more-block summary::-webkit-details-marker { display: none; }
.field-note {
  margin: 0.35rem 0.95rem 0;
  color: #e2b07a;
  font: 500 0.75rem/1.35 system-ui, sans-serif;
}
.field-note[hidden] { display: none; }



.stage .pill-row,
#model-bar.pill-row {
  position: static;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.75rem 0.85rem 0.45rem;
  margin: 0;
  background: #1c2128;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
#model-bar .model-chip {
  border-radius: 999px;
  min-height: 42px;
  padding: 0 1rem;
  background: #0c0e12;
  border: 1px solid rgba(255,255,255,0.2);
  color: #f2f4f7;
  font-weight: 700;
}
#model-bar .model-chip small { display: none; }
#model-bar .model-chip.on {
  background: #14181f;
  color: #fff;
  border-color: rgba(255,255,255,0.72);
}

.status-bar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.28rem 0.9rem;
  background: #121418;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.status-kicker { display: flex; flex-direction: column; min-width: 0; }
.status-kicker strong { font-size: 0.95rem; }
.status-kicker span, .status-meta {
  color: #9aa3ad;
  font: 600 0.72rem/1.2 system-ui, sans-serif;
}
#status-product {
  text-align: center;
  color: #7eb6ff;
  font: 700 0.98rem/1.2 system-ui, sans-serif;
}
.status-meta { text-align: right; }

.stage .playback {
  position: static;
  flex: 0 0 auto;
  left: auto;
  right: auto;
  bottom: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #0e1014;
  padding: 0.35rem 0.85rem 0.5rem;
}
.now-playing {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 1.65rem;
  margin-bottom: 0.15rem;
}
.np-state {
  flex: 0 0 auto;
  font: 750 0.66rem/1 system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b7c0ca;
  background: rgba(255,255,255,0.07);
  border-radius: 999px;
  padding: 0.28rem 0.5rem;
}
.playback.is-playing .np-state { color: #e9fff3; background: #1d6a44; }
.np-what {
  flex: 1;
  min-width: 0;
  font: 650 0.86rem/1.2 system-ui, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.np-count, .np-when {
  flex: 0 0 auto;
  margin-left: auto;
  color: #d5dbe3;
  font: 650 0.78rem/1 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.loop-window {
  margin: 0 0 0.35rem;
  color: #d7c27a;
  font: 650 0.78rem/1.3 system-ui, sans-serif;
  letter-spacing: 0.01em;
}
.play-main.is-playing { background: #1d6a44; color: #f4fff8; }
.play-main .ico-pause { display: none; }
.play-main.is-playing .ico-play { display: none; }
.play-main.is-playing .ico-pause { display: block; }
.play-track {
  height: 3px;
  margin: 0.35rem 0 0.2rem;
  border-radius: 99px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.play-progress {
  height: 100%;
  width: 0;
  background: #7eb6ff;
}
.playback.is-playing .play-progress { background: #3dba86; }
.stage .play-row { justify-content: center; gap: 0.45rem; }
.stage .timeline { margin-top: 0; padding-top: 0.85rem; }



.locate-msg {
  top: calc(4.6rem + var(--safe-top));
  bottom: auto;
  left: 4.2rem;
  right: 4.2rem;
}

@media (min-width: 960px) {
  .stage {
    left: auto;
    right: 1rem;
    top: 1rem;
    bottom: 1rem;
    width: 400px;
    max-height: none;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  }
  .mode-body { max-height: none; }
  .time-card { left: 4.6rem; top: 1rem; transform: none; max-width: 16rem; }
  .search-float,
  .fabs { right: calc(400px + 2rem); }
  .search-float { top: 1rem; }
  .fabs { top: 4.5rem; }
  .locate-msg { right: calc(400px + 2.4rem); }

/* Desk chrome: layout below; colors come from the navy theme (shell.css "theme 2026"). */
html, body { background: #1c2836; color: #1f2937; }








.search-float, .fab {
  background: #f6b91a;
  color: #17274f;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}
.icon-btn:hover, .fab:hover, .search-float:hover { background: #e5aa12; color: #17274f; }
.search-float {
  top: calc(4.15rem + var(--safe-top));
  right: 0.7rem;
  z-index: 24;
}
.alert-float {
  top: calc(4.15rem + var(--safe-top));
  right: auto;
  left: 0.7rem;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  background: #f6b91a;
  color: #17274f;
  z-index: 24;
}
.alert-float .badge { color: #17274f; }
.fabs {
  left: auto;
  right: 0.7rem;
  top: calc(7.2rem + var(--safe-top));
  bottom: auto;
}
.time-card {
  top: calc(4.2rem + var(--safe-top));
  background: #fff;
  color: #17274f;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}
.time-card #time-main { color: #17274f; }
.time-card #time-updated { color: #6b7280; }
.stage, .stage .scale, .mode-tabs, .stage .playback, .status-bar, .sheet, .panel {
  background: #fff;
  color: #1f2937;
  border-color: #e5e7eb;
}
.mode-tab { color: #1f2937; }
.mode-tab.on { color: #17274f; background: transparent; }
.mode-tab.on::after { background: #f6b91a; }
.play-main, .play-main.is-playing { background: #f6b91a; color: #17274f; border-radius: 999px; }
.np-what, #status-product, .status-kicker strong { color: #17274f; }
.np-state, .np-count, .np-when, .status-kicker span, .hint { color: #6b7280; }
.row-btn, .panel input, .field input, .field select {
  background: #f3f4f6;
  color: #1f2937;
  border-color: #e5e7eb;
}
.glass { background: #fff; border-color: #e5e7eb; box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16); }
@media (min-width: 960px) {

  .fabs { right: calc(400px + 2rem); left: auto; top: 5.4rem; }
  .search-float { right: calc(400px + 2rem); top: 1.15rem; }
  .alert-float { left: 1rem; right: auto; top: 4.6rem; }
  .time-card { left: 4.4rem; top: 1.15rem; }
}

}

/* Walkthrough 17: sheet selects are real touch targets. */
.sheet label { display: block; font: 600 0.9rem/1.3 system-ui, sans-serif; margin: 0.5rem 0; }
.sheet label.set-toggle { display: flex; margin: 0.4rem 0; }   /* switch beside its words, like Settings (Dec 5: it sat alone under the text) */
.sheet label select, .sheet > select, .sheet select {
  display: block; width: 100%; min-height: 44px; margin-top: 0.3rem; padding: 0 0.7rem;
  font: 600 0.95rem/1.2 system-ui, sans-serif; color: var(--text);
  background: #0f1318; border: 1px solid rgba(255,255,255,0.18); border-radius: 10px;
}
.sheet .row-btn { min-height: 44px; font-size: 0.92rem; }
/* Walkthrough 22: the discussion reads as prose. */
.afd-text { font-family: system-ui, sans-serif; font-size: 0.88rem; line-height: 1.5; }
/* Walkthrough 28: fade edge when the model row scrolls. */
#model-bar.more-r { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
#model-bar.more-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%); mask-image: linear-gradient(90deg, transparent, #000 18%); }
#model-bar.more-l.more-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.day-row .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Walkthrough 28: the Models sheet chip row scrolls sideways (it was clipped, not scrollable). */

/* Loop window line ("7 frames · uneven gaps · 165 h window") hidden for now. */
.loop-window { display: none !important; }







/* ---- Map marks (StormTrace's own designs) ---- */
/* Radar site: charcoal pill with a sky-blue sweep icon, name underneath. */
.site-pill { display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; transform: translateY(-14px); }
.site-pill[hidden] { display: none; }
.site-pill .sp-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 7px; border-radius: 999px;
  background: #1b2129; border: 1.5px solid #3ea6ff; color: #f2f6fb; font: 800 0.8rem/1.1 system-ui, sans-serif; letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.45); }
.site-pill .sp-tag svg { width: 15px; height: 15px; color: #3ea6ff; }
.site-pill .sp-name { font: 700 0.66rem/1 system-ui, sans-serif; color: #eef3f9; text-shadow: 0 0 3px #000, 0 0 6px rgba(0,0,0,0.8); }

/* You: sky-blue dot in a white ring, a soft pulse, and a light beam that
   points where the phone points (rotated with the compass). */
.you-mark { position: relative; width: 22px; height: 22px; pointer-events: none; }
.you-dot { position: absolute; inset: 3px; border-radius: 50%; background: #3ea6ff; border: 3px solid #ffffff; box-shadow: 0 1px 6px rgba(0,0,0,0.55); }
.you-pulse { position: absolute; inset: -9px; border-radius: 50%; background: rgba(62,166,255,0.22); animation: you-pulse 2.4s ease-out infinite; }
.you-beam { display: none; position: absolute; left: 50%; bottom: 50%; width: 84px; height: 76px; transform: translateX(-50%);
  background: radial-gradient(ellipse 60% 100% at 50% 100%, rgba(255,255,255,0.85) 0%, rgba(150,210,255,0.7) 28%, rgba(62,166,255,0.32) 60%, rgba(62,166,255,0) 82%);
  clip-path: polygon(50% 100%, 14% 0, 86% 0); filter: drop-shadow(0 0 2px rgba(0,0,0,0.5)); }
.you-mark.has-heading .you-beam { display: block; }
@keyframes you-pulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .you-pulse { animation: none; } }

/* Saved place: name chip over a small amber pin. */
.place-mark { display: flex; flex-direction: column; align-items: center; background: none; border: 0; padding: 0; cursor: pointer; }
.place-mark .pm-name { padding: 2px 8px; border-radius: 6px; background: rgba(20,24,30,0.92); color: #f4f7fb; font: 700 0.7rem/1.2 system-ui, sans-serif;
  border: 1px solid rgba(255,255,255,0.18); white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,0.4); }
.place-mark .pm-pin { width: 10px; height: 10px; margin-top: 2px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #ffb02e; border: 2px solid #1b2129; }

.place-pop { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); z-index: 40; width: min(20rem, 88vw);
  display: flex; flex-direction: column; gap: 0.45rem; padding: 0.9rem; border-radius: 14px; background: rgba(20,24,30,0.98); border: 1px solid rgba(255,255,255,0.12); }
.place-pop[hidden] { display: none; }
.place-pop small { color: var(--muted, #aab3c0); }
.place-pop input { padding: 0.55rem 0.65rem; border-radius: 9px; border: 1px solid rgba(255,255,255,0.18); background: #0f1318; color: #f4f7fb; font-size: 1rem; }
.place-pop-row { display: flex; justify-content: flex-end; gap: 0.6rem; }
.text-btn.strong { color: #3ea6ff; font-weight: 700; }
.places-list { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.5rem; }
.place-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.55rem; border-radius: 10px; background: rgba(255,255,255,0.04); }
.place-go { flex: 1; display: flex; flex-direction: column; align-items: flex-start; background: none; border: 0; color: inherit; text-align: left; padding: 0; cursor: pointer; }
.place-go small { color: var(--muted, #aab3c0); font-size: 0.7rem; }

/* Saved place under an active alert */
.place-mark.has-alert .pm-name { border-color: #ff5a4f; box-shadow: 0 0 0 2px rgba(255,90,79,0.35), 0 2px 6px rgba(0,0,0,0.4); }
.place-mark.has-alert .pm-pin { background: #ff5a4f; }
.pm-alert { display: inline-block; margin-right: 4px; padding: 0 5px; border-radius: 4px; background: #ff5a4f; color: #fff; font-weight: 900; }
.place-row.alerted { background: rgba(255,90,79,0.12); border: 1px solid rgba(255,90,79,0.35); }
.place-alert { display: inline-block; margin-top: 0.25rem; margin-right: 0.3rem; padding: 0.05rem 0.4rem; border-radius: 5px; background: #ff5a4f; color: #fff; font-size: 0.68rem; font-weight: 700; }

/* Past / now / forecast */
.phase-badge { display: inline-block; margin: 0 auto 0.18rem; padding: 0.08rem 0.55rem; border-radius: 999px;
  font: 800 0.66rem/1.35 system-ui, sans-serif; letter-spacing: 0.06em; color: #0d1117; }
.phase-badge[hidden] { display: none; }
.phase-badge.phase-past { background: #8a94a3; }
.phase-badge.phase-now { background: #22c55e; }
.phase-badge.phase-fcst { background: #ffb02e; }
.phase-badge.flash { animation: phase-flash 1.1s ease-out 1; }
@keyframes phase-flash { 0% { transform: scale(1.35); box-shadow: 0 0 0 6px rgba(255,255,255,0.35); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.phase-strip { position: relative; height: 1.15rem; margin-top: 0.2rem; }
.phase-strip[hidden] { display: none; }
.phase-strip .ps-bar { position: absolute; left: 0; right: 0; top: 0; height: 5px; border-radius: 99px; }
.phase-strip .ps-end { position: absolute; top: 7px; font: 700 0.58rem/1 system-ui, sans-serif; letter-spacing: 0.05em; text-transform: uppercase; }
.phase-strip .ps-past { left: 0; color: #8a94a3; }
.phase-strip .ps-fcst { right: 0; color: #ffb02e; }
.phase-strip .ps-now { position: absolute; top: 7px; transform: translateX(-50%); padding: 0 0.3rem; border-radius: 4px; background: #22c55e; color: #0d1117;
  font: 800 0.58rem/1.3 system-ui, sans-serif; text-transform: uppercase; letter-spacing: 0.05em; }
.phase-strip .ps-now[hidden] { display: none; }

/* Storm arrival, rain timing and lightning (Home line, places sheet, place pins) */
.nowcast-line { display: flex; flex-direction: column; gap: 0.3rem; margin: 0 0 0.75rem; padding: 0.6rem 0.8rem; border-radius: 12px;
  background: rgba(30, 60, 110, 0.55); border: 1px solid rgba(126, 200, 255, 0.25); font-size: 0.85rem; line-height: 1.3; }
.nowcast-line[hidden] { display: none; }
.nowcast-line .nc-storm { color: #ffd27a; font-weight: 650; }
.nowcast-line .nc-light { color: #ffe566; }
.nowcast-line .nc-dry { color: var(--muted, #9aa7b8); }
.place-storm { display: inline-block; margin-top: 0.25rem; margin-right: 0.3rem; padding: 0.05rem 0.4rem; border-radius: 5px; background: #e0a12b; color: #111; font-size: 0.68rem; font-weight: 700; }
.place-mark .pm-eta { margin-left: 0.3rem; padding: 0 0.3rem; border-radius: 4px; background: #e0a12b; color: #111; font-size: 0.66rem; }

/* Public mode: PC out of reach, the phone reads NWS / IEM directly */

/* Phone radar: site row, chaser switch, scan angle, site list */
.site-row { display: flex; align-items: baseline; gap: 0.5rem; width: 100%; margin: 0.2rem 0 0.4rem; padding: 0.6rem 0.8rem;
  border-radius: 10px; background: var(--raised); color: inherit; text-align: left; border: 0; cursor: pointer; }
.site-row-id { font-weight: 800; letter-spacing: 0.04em; color: #3ea6ff; }
.site-row-name { flex: 1; font-weight: 600; }
.site-row-auto { font-size: 0.75rem; opacity: 0.7; }
.chase-toggle, .set-toggle.chase-toggle { border: 1px solid rgba(255, 170, 60, 0.35); border-radius: 10px; padding: 0.5rem 0.7rem; margin: 0.2rem 0 0.4rem; }
.tilt-row[hidden] { display: none; }
.site-item { display: flex; justify-content: space-between; gap: 0.6rem; width: 100%; padding: 0.6rem 0.7rem; margin: 0.25rem 0;
  border-radius: 9px; background: var(--raised); color: inherit; border: 0; text-align: left; cursor: pointer; }
.site-item { font: 500 0.9rem/1.3 system-ui, sans-serif; align-items: center; }   /* app font (was the browser's Arial) */
.site-item.on { outline: 2px solid #3ea6ff; background: rgba(62, 166, 255, 0.14); }
.site-item.on small::before { content: "Showing now · "; color: #8fcaff; font-weight: 700; }
.site-item:hover { background: rgba(255, 255, 255, 0.09); }
.site-item.on:hover { background: rgba(62, 166, 255, 0.2); }
.site-item small { opacity: 0.7; white-space: nowrap; }
.site-item.on small { opacity: 1; }
.site-pill { pointer-events: auto; cursor: pointer; }
.site-dot { width: 9px; height: 9px; border-radius: 50%; background: #3ea6ff; border: 1.5px solid #fff; box-shadow: 0 0 4px #000; cursor: pointer; }
.site-dot[hidden] { display: none; }
.chase-chip { position: absolute; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top, 0px) + 160px); z-index: 6;
  padding: 0.35rem 0.8rem; border-radius: 999px; background: rgba(40, 24, 8, 0.85); color: #ffd08a; font: 700 0.78rem/1.2 system-ui, sans-serif;
  border: 1px solid rgba(255, 170, 60, 0.5); pointer-events: none; white-space: normal; text-align: center; border-radius: 14px;
  width: max-content; max-width: calc(100vw - 7.5rem); }   /* ran off both sides (457 px on a 390 px phone): wraps now */
.chase-chip[hidden] { display: none; }
.home-radar-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Storm chaser button (map) and the Radar card in Settings */
.fab-chase.on { background: #ff9d2e !important; color: #1a1208 !important; box-shadow: 0 0 0 3px rgba(255, 157, 46, 0.35), 0 8px 18px rgba(0, 0, 0, 0.4); }

/* Hourly chart key: solid orange = temperature, dashed green = dew point */
.chart-key { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin: 0.35rem 0 0; font-size: 0.8rem; color: #b9c6d8; }
.chart-key[hidden] { display: none; }
.chart-key .ck-temp, .chart-key .ck-dew { display: inline-block; width: 18px; height: 0; }
.chart-key .ck-temp { border-top: 2.5px solid #ffad42; }
.chart-key .ck-dew { border-top: 2px dashed rgba(92,214,150,0.95); margin-left: 0.8rem; }

/* Nationwide radar: the big first choice in the radar drawer */





.mode-tab[hidden] { display: none; }

/* Tap card (Dec 3): a small card at the tapped spot. */
.maplibregl-popup.tapc-pop { z-index: 22; }
.tapc-pop .maplibregl-popup-content { background: var(--glass); color: var(--text); border-radius: 14px; padding: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45); border: 1px solid var(--line); }
.tapc-pop.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--glass); }
.tapc-pop.maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: var(--glass); }
.tapc-pop.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--glass); }
.tapc-pop.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--glass); }
.tapc { width: min(290px, 78vw); max-height: min(68vh, 560px); overflow-y: auto; overscroll-behavior: contain; padding: 8px 8px 9px; font: 0.8rem/1.35 system-ui, sans-serif; }
.tapc-head { display: flex; align-items: center; gap: 6px; padding: 0 2px 6px 4px; }
.tapc-title { flex: 1; font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tapc-x { appearance: none; border: 0; background: rgba(127,127,127,0.18); color: var(--text); width: 40px; height: 40px; margin: -6px -4px -6px 0;
  border-radius: 50%; font-size: 1.2rem; line-height: 1; cursor: pointer; flex: none; }   /* 40 px touch target (B142) */
.tapc-alert { appearance: none; display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 5px; padding: 7px 8px;
  border: 0; border-left: 4px solid var(--wc); border-radius: 9px; background: color-mix(in srgb, var(--wc) 16%, var(--raised));
  color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.tapc-alert i { color: var(--wc); display: flex; flex: none; }
.tapc-alert i .ln-ic { width: 20px; height: 20px; }
.tapc-alert span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tapc-alert b { font-size: 0.84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tapc-alert em { font-style: normal; color: var(--muted); font-size: 0.72rem; }
.tapc-alert s { text-decoration: none; font-size: 1.3rem; color: var(--muted); line-height: 1; }
.tapc-line { display: flex; justify-content: space-between; gap: 8px; padding: 4px 4px; border-top: 1px solid var(--line); }
.tapc-line span { color: var(--muted); flex: none; max-width: 48%; }
.tapc-line b { text-align: right; font-weight: 600; }
.tapc-note { padding: 4px; color: var(--muted); font-size: 0.74rem; border-top: 1px solid var(--line); }
.tapc-foot { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; padding: 7px 2px 0; border-top: 1px solid var(--line); margin-top: 2px; }
.tapc-chip { appearance: none; border: 1px solid var(--line); background: var(--raised); color: var(--text); border-radius: 999px;
  padding: 3px 10px; font: 600 0.74rem/1.4 system-ui, sans-serif; letter-spacing: 0.02em; cursor: pointer; }
.tapc-chip.on { border-color: var(--accent); color: var(--accent); }
.tapc-fc { appearance: none; margin-left: auto; border: 0; background: none; color: var(--accent); font: 600 0.76rem system-ui, sans-serif;
  padding: 3px 4px; cursor: pointer; }
.tapc-storm + .tapc-fc { margin-left: 6px; }   /* B350: "Storm details" next to "Forecast here" */

/* Alert window (Dec 3): same on the website and in the app. */
.sheet.aw { --wc: #e05252; padding-top: 0.85rem; }
.aw-head { display: flex; align-items: center; gap: 10px; margin-bottom: 0.7rem; }
.aw-icon { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: color-mix(in srgb, var(--wc) 24%, transparent); color: var(--wc); }
.aw-icon .ln-ic { width: 24px; height: 24px; }
.aw-titles { flex: 1; min-width: 0; }
.aw-titles h2 { margin: 0; font-size: 1.12rem; line-height: 1.2; }
.aw-sub { color: var(--muted); font-size: 0.74rem; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aw-x { appearance: none; border: 0; background: rgba(127,127,127,0.18); color: var(--text); width: 32px; height: 32px; border-radius: 50%;
  font-size: 1.25rem; line-height: 1; cursor: pointer; flex: none; align-self: flex-start; }
.aw-pick { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 0.7rem; padding-bottom: 2px; }
.aw-pick[hidden] { display: none; }
.aw-pill { appearance: none; flex: none; border: 1px solid var(--line); border-left: 4px solid var(--wc); background: var(--raised);
  color: var(--text); border-radius: 8px; padding: 4px 9px; font: 600 0.74rem system-ui, sans-serif; cursor: pointer; }
.aw-pill.on { background: color-mix(in srgb, var(--wc) 22%, var(--raised)); }
.aw-time { background: var(--raised); border-radius: 12px; padding: 9px 11px; margin-bottom: 0.55rem; }
.aw-times { display: flex; justify-content: space-between; gap: 8px; font-size: 0.78rem; margin-bottom: 7px; }
.aw-times span:first-child { color: var(--muted); }
.aw-times span:last-child { font-weight: 700; }
.aw-bar { height: 5px; border-radius: 3px; background: rgba(127,127,127,0.25); overflow: hidden; }
.aw-bar i { display: block; height: 100%; width: 0; background: var(--wc); border-radius: 3px; }
.aw-cards { display: grid; grid-template-columns: 1fr 1.6fr; gap: 0.55rem; margin-bottom: 0.7rem; }
.aw-card { background: var(--raised); border-radius: 12px; padding: 8px 11px; min-width: 0; }
.aw-card .k { display: block; color: var(--muted); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.aw-card b { font-size: 0.8rem; font-weight: 600; line-height: 1.3; display: block; }
#aw-area[title] { cursor: pointer; }
.aw-tabs { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 0.6rem; }
.aw-tabs [data-aw] { appearance: none; border: 0; background: none; color: var(--muted); font: 600 0.84rem system-ui, sans-serif;
  padding: 7px 10px; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.aw-tabs [data-aw].on { color: var(--text); border-bottom-color: var(--wc); }
.aw-acts { margin-left: auto; display: flex; gap: 4px; }
.aw-act { appearance: none; border: 0; background: rgba(127,127,127,0.16); color: var(--text); width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; cursor: pointer; }
.aw-act svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.aw-body { font-size: 0.86rem; line-height: 1.5; }
.aw-body p { margin: 0 0 0.6rem; }
.aw-body.raw { white-space: pre-wrap; font: 0.76rem/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--raised);
  border-radius: 10px; padding: 10px 11px; }
.aw-sec { margin-bottom: 0.65rem; }
.aw-sec .k { display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--wc); margin-bottom: 1px; }
.aw-sec p { margin: 0 0 0.35rem; }
.aw-do { background: color-mix(in srgb, var(--wc) 10%, var(--raised)); border-radius: 10px; padding: 8px 11px; }
.aw-src { color: var(--muted); font-size: 0.7rem; margin: 0.6rem 0 0; }
.alert-card[role="button"] { cursor: pointer; border-left: 4px solid var(--wc, transparent); }




/* Radar drawer (Dec 1): Nationwide / your site switch at the top; colour tiles. */
.rp-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 2px 0 8px; }
.rp-sw { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 12px; cursor: pointer; text-align: left;
  border: 1px solid rgba(200, 205, 215, 0.16); background: #23262c; color: #eef3f9; font: inherit; }
.rp-sw .rp-sw-img { width: 54px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; background: #15171b; }
.rp-sw span { display: flex; flex-direction: column; min-width: 0; }
.rp-sw b { font-size: 0.95rem; font-weight: 800; }
.rp-sw small { font-size: 0.72rem; color: #9aa3ad; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-sw.on { border-color: #3ea6ff; background: #17324f; box-shadow: 0 0 0 1px #3ea6ff inset; }
.rp-sw.on small { color: #bcd9f5; }
.rp-grid .prod-tile .pt-time:empty { display: none; }
.rp-head.nat .rp-scan { display: none; }

/* Crosshair probe (Dec 1). */
.fab-probe.on { background: #3ea6ff !important; color: #06121f !important; box-shadow: 0 0 0 3px rgba(62, 166, 255, 0.35), 0 8px 18px rgba(0, 0, 0, 0.4); }
.probe { width: 48px; height: 48px; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 20; pointer-events: none; }
.probe[hidden] { display: none; }
.probe-x { width: 48px; height: 48px; display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7)); }
.probe-bubble { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); width: 236px; min-height: 3.4rem; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 3px; padding: 7px 10px; border-radius: 12px; background: rgba(16, 20, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14); color: #eef3f9; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); pointer-events: auto; }
.probe-bubble b { display: block; font-size: 1rem; font-weight: 800; line-height: 1.2; }
.probe-bubble small { display: block; font-size: 0.72rem; color: #a9b4c2; line-height: 1.25; }
.probe-bubble .pb-warn { border-left: 4px solid var(--wc, #e05252); padding-left: 6px; font-size: 0.78rem; font-weight: 700; cursor: pointer; }

/* Storm cell panel v2 (Dec 1). */
.cell-sheet { padding-top: 0; }
.cp-head { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 12px 2px 10px; border-bottom: 1px solid rgba(200,205,215,.12); }
.cp-badge svg { width: 44px; height: 44px; display: block; }
.cp-title h2 { margin: 0; font-size: 1.35rem; }
.cp-title small, .cp-speed small { color: #9aa3ad; font-size: .78rem; display: block; }
.cp-speed { text-align: right; }
.cp-speed b { font-size: 1.7rem; font-weight: 800; }
.cp-speed span { color: #9aa3ad; }
.cp-sec { padding: 10px 2px; border-bottom: 1px solid rgba(200,205,215,.12); }
.cp-two { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.cp-two small { display: block; color: #9aa3ad; font-size: .76rem; }
.cp-two b { font-size: 1.05rem; }
.cp-two .r { text-align: right; color: #9aa3ad; font-size: .8rem; }
.cp-sh { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.cp-sh span { font-weight: 700; color: #cfd6de; }
.cp-sh small { color: #9aa3ad; font-size: .74rem; }
.cp-profile .cp-svg { width: 100%; height: auto; display: block; }
.cp-grid { stroke: rgba(200,205,215,.18); stroke-width: 1; }
.cp-ax { fill: #9aa3ad; font-size: 10px; text-anchor: end; }
.cp-lab { fill: #eef3f9; font-size: 11px; font-weight: 700; text-anchor: end; }
.cp-col { fill: none; stroke: rgba(220,228,240,.45); stroke-dasharray: 4 3; }
.cp-base { stroke: #fff; stroke-width: 2; }
.cp-core { fill: #fff; stroke: #0b1220; stroke-width: 2; }
.cp-none { fill: #9aa3ad; font-size: 12px; text-anchor: middle; }
.cp-foot { margin: 4px 0 0; color: #9aa3ad; font-size: .76rem; }
.cp-grid3 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.cp-grid3 small { display: block; color: #9aa3ad; font-size: .74rem; }
.cp-grid3 b { font-size: 1.05rem; }
/* Dec 4: second line under a value (all-radar hail size, NWS mesocyclone, chance range) */
.cp-grid3 b em, .cp-grid3 > div > em { display: block; font-style: normal; font-weight: 400; font-size: .74rem; color: #aab4bf; margin-top: 2px; }
.cp-path { margin-top: 12px; }
.cp-path small { display: block; color: #9aa3ad; font-size: .74rem; margin-bottom: 4px; }
.cp-path #cell-path { display: flex; flex-wrap: wrap; gap: 6px; font-weight: 600; }
.cp-town { background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px 10px; font-size: .86rem; }
.cp-town small { display: inline; color: #8fd8ff; font-weight: 500; margin: 0 0 0 4px; }
.cell-struct { display: flex; flex-direction: column; }
.cs-row { display: grid; grid-template-columns: 1fr auto 22px; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(200,205,215,.08); }
.cs-row span { color: #dfe5ec; font-size: .9rem; }
.cs-row b { font-size: .98rem; text-align: right; }
.cs-row b small { color: #9aa3ad; font-weight: 400; font-size: .78rem; }
.cs-tr { font-style: normal; font-weight: 800; text-align: center; }
.cs-tr.up { color: #ff7a6b; } .cs-tr.down { color: #6fb6ff; } .cs-tr.flat, .cs-tr.none { color: #7d8794; }
.cp-fc summary { display: flex; justify-content: space-between; cursor: pointer; list-style: none; font-weight: 700; color: #cfd6de; }
.cp-fc summary small { color: #9aa3ad; font-weight: 400; }
.cp-fc-list div { display: flex; justify-content: space-between; padding: 6px 0; font-size: .82rem; border-bottom: 1px solid rgba(200,205,215,.08); }
.cp-fc-list b { font-weight: 500; color: #9aa3ad; }

/* Storm Track tool: drag handles and impact list (Dec 1). */
.eta-handle { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0,0,0,.6); cursor: grab; touch-action: none; }
.eta-handle-start { background: #38d6ff; }
.eta-handle-end { background: #ffd84a; width: 30px; height: 30px; }
.eta-imp-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(200,205,215,.14); }
.eta-imp-head small { color: #9aa3ad; font-size: .74rem; }
.eta-impact { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; max-height: 30vh; overflow-y: auto; }
.ei-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; border-left: 3px solid #ffa53a; border-radius: 6px; background: rgba(127,127,127,.1); }
.ei-row.mine { border-left-color: #38d6ff; }
.ei-row b { display: block; font-size: .88rem; }
.ei-row small { color: #9aa3ad; font-size: .72rem; }
.ei-row span { font-weight: 800; color: #ffc46b; }

/* Sounding extras (Dec 1): hodograph and SPC-style tables. */
.pt-skewt canvas { width: 100%; height: auto; display: block; border-radius: 10px; }
.snd-hodo { margin-top: 10px; }
.snd-tables { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.snd-block { border: 1px solid #2b6a96; border-radius: 10px; background: #0d1420; padding: 8px 10px; }
.snd-h { color: #5ac8fa; font-weight: 700; font-size: .8rem; margin-bottom: 4px; }
.snd-t { width: 100%; border-collapse: collapse; font-family: ui-monospace, "Roboto Mono", monospace; font-size: .74rem; color: #e6edf5; }
.snd-t td { padding: 2px 3px; text-align: right; white-space: nowrap; }
.snd-t td:first-child, .snd-kv td:nth-child(3) { text-align: left; color: #9fb3c8; }
.snd-t tr.h td { color: #5ac8fa; border-bottom: 1px solid #2b6a96; }
.snd-t .rm { color: #ff8fa3; font-weight: 600; } .snd-t .lm { color: #8fc7ff; font-weight: 600; }
.snd-u { margin: 4px 0 0; color: #7d8794; font-size: .68rem; }
.snd-comp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.snd-comp small { display: block; color: #9fb3c8; font-size: .7rem; }
.snd-comp b { font-size: 1.1rem; font-family: ui-monospace, monospace; }
.snd-haz { grid-column: 1 / -1; text-align: center; border-top: 1px solid #2b6a96; padding-top: 6px; }
.snd-haz b { font-size: 1.15rem; color: #ffd84a; }
.snd-haz.tor b { color: #ff5a6e; } .snd-haz.svr b { color: #ffa53a; } .snd-haz.ff b { color: #5fd38a; } .snd-haz.win b { color: #8fc7ff; } .snd-haz.none b { color: #ffd84a; }

.stn-raw { white-space: pre-wrap; word-break: break-word; font-size: .78rem; background: rgba(127,127,127,.1); padding: 8px; border-radius: 8px; margin: 0; }
/* Storm Track panel: compact once a track is drawn, so the map and handles stay visible. */
.eta-tool:has(.eta-result:not([hidden])) .eta-key { display: none; }
.eta-tool:has(.eta-result:not([hidden])) .eta-lines div:nth-child(n+3) { display: none; }
.eta-tool .eta-impact { max-height: 20vh; }

/* Storm history: scan table and charts (Dec 1). */
.cell-charts { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.ch-table { width: 100%; border-collapse: collapse; font-size: .76rem; }
.ch-table td { padding: 4px 3px; text-align: right; border-bottom: 1px solid rgba(200,205,215,.08); }
.ch-table td:nth-child(-n+2) { text-align: left; color: #9aa3ad; }
.ch-table tr.h td { color: #8fd8ff; font-weight: 700; }
.ch-card { background: rgba(127,127,127,.08); border-radius: 10px; padding: 8px 8px 2px; }
.ch-head { display: grid; grid-template-columns: 1fr auto 20px; gap: 6px; align-items: baseline; }
.ch-head span { color: #cfd6de; font-size: .86rem; }
.ch-head b small { color: #9aa3ad; font-weight: 400; }
.ch-svg { width: 100%; height: auto; display: block; }
.ch-line { fill: none; stroke: #5aa9ff; stroke-width: 2.4; stroke-linejoin: round; }
.ch-area { fill: rgba(90,169,255,.16); }
.ch-dot { fill: #5aa9ff; stroke: #0d1420; stroke-width: 1; }
.ch-x { fill: #9aa3ad; font-size: 10px; text-anchor: middle; }

.pop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pop-grid div { background: rgba(127,127,127,.08); border-radius: 10px; padding: 8px; text-align: center; }
.pop-grid small { display: block; color: #9aa3ad; font-size: .72rem; }
.pop-grid b { display: block; font-size: 1.15rem; }
.pop-grid span { color: #9aa3ad; font-size: .72rem; }
.pop-grid em { display: block; font-style: normal; color: #cfd6de; font-size: .76rem; margin-top: 2px; }

/* Snow Mode (Dec 3): a pane of the radar panel; half the screen stays map. */
.sm-pane { padding: 0.7rem 0.85rem 0.9rem; }
.sm-hero { background: linear-gradient(160deg, rgba(124,200,255,.16), rgba(124,200,255,.04)); border: 1px solid rgba(124,200,255,.22); border-radius: 14px; padding: 0.65rem 0.75rem; }
.sm-hero-top { display: flex; align-items: center; gap: 0.45rem; }
.sm-hero-top .sm-where { flex: 1; margin: 0; }
.sm-flake { color: #8fd0ff; font-size: 1.2rem; }
.sm-where { display: block; color: #9aa3ad; font-size: .76rem; }
.sm-head { font-size: 1.22rem; font-weight: 800; line-height: 1.2; margin: 4px 0 2px; }
.sm-sub, .sm-wx { color: #cfd6de; font-size: .8rem; }
.sm-road { margin: 8px 0 4px; padding: 6px 9px; border-radius: 10px; font-weight: 700; font-size: .86rem; border-left: 4px solid #5fd38a; background: rgba(95,211,138,.12); }
.sm-road[data-tone="warn"] { border-left-color: #ffd84a; background: rgba(255,216,74,.12); }
.sm-road[data-tone="bad"] { border-left-color: #ff6b8a; background: rgba(255,107,138,.14); }
.sm-alert { border-left: 4px solid var(--wc, #7b68ee); padding: 4px 8px; margin-top: 6px; border-radius: 6px; background: rgba(127,127,127,.1); font-weight: 700; font-size: .82rem; }
.sm-alert small { display: block; font-weight: 400; color: #9aa3ad; }
.sm-label { display: flex; align-items: center; gap: 0.4rem; margin: 0.9rem 0 0.4rem; color: #9aa3ad; font: 750 0.7rem/1 system-ui, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }
.sm-prods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
.sm-prod { appearance: none; border: 1px solid rgba(255,255,255,.1); background: #1c2128; color: #dfe6ee; border-radius: 12px; padding: 0.5rem 0.35rem; text-align: center; }
.sm-prod b { display: block; font-size: 1rem; }
.sm-prod small { display: block; color: #9aa3ad; font-size: .64rem; line-height: 1.2; margin-top: 2px; }
.sm-prod.on { border-color: #7cc8ff; background: rgba(124,200,255,.16); box-shadow: 0 0 0 1px #7cc8ff inset; }
.sm-ruler { display: flex; flex-direction: column; gap: 0.3rem; }
.sm-band { display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0.45rem; border-radius: 10px; background: rgba(255,255,255,.03); }
.sm-band i { flex: 0 0 auto; width: 46px; height: 26px; border-radius: 7px; border: 1px solid rgba(255,255,255,.15); }
.sm-band.none i { background: repeating-linear-gradient(45deg, transparent 0 5px, rgba(255,255,255,.08) 5px 7px); }
.sm-band b { display: block; font-size: .86rem; }
.sm-band small { display: block; color: #aab3bd; font-size: .74rem; line-height: 1.25; }
.sm-band em { font-style: normal; font-size: .66rem; background: #7cc8ff; color: #08182a; border-radius: 99px; padding: 1px 7px; margin-left: 4px; vertical-align: 1px; }
.sm-band.here { background: rgba(124,200,255,.13); box-shadow: 0 0 0 1px rgba(124,200,255,.5) inset; }
.sm-toggles { margin-top: 0.8rem; }
.sm-pane .set-group.sm-toggles, .tm-pane .set-group.sm-toggles { margin-left: 0; margin-right: 0; }   /* lines up with the key rows and cards (Dec 5: it sat 12 px further in) */
.sm-src { color: #7d8794; font-size: .68rem; margin: 8px 0 0; }

.mode-tab-snow.on { color: #fff; }
.mode-tab-snow.on::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #7cc8ff; }
@media (max-width: 959px) {
  body.snow-on .stage:not(.collapsed) { max-height: 52vh; }
  body.snow-on .stage:not(.collapsed) .mode-body { max-height: 38vh; }
}
.snow-chip { position: fixed; left: 50%; transform: translateX(-50%); top: calc(var(--safe-top) + 7.4rem); z-index: 16; white-space: nowrap;
  background: rgba(10,22,38,.88); color: #cfe9ff; border: 1px solid rgba(124,200,255,.45); border-radius: 99px; padding: 0.35rem 0.8rem; font: 700 0.8rem/1 system-ui, sans-serif; }
.snow-chip[hidden] { display: none; }
.snow-chip { display: flex; flex-direction: column; align-items: stretch; gap: 5px; border-radius: 14px; padding: 0.4rem 0.6rem 0.45rem; }
.snow-chip .sk-title { display: flex; align-items: center; justify-content: center; gap: 4px; }
.snow-chip .sk-title .ln-ic { width: 14px; height: 14px; }
.snowkey-row { display: flex; gap: 2px; }   /* not "sk-row": that is the precip-type key (shell.css), which made this wrap */
.sk-cell { flex: 1 1 0; min-width: 2.3rem; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sk-cell i { display: block; width: 100%; height: 8px; border-radius: 2px; }
.sk-cell b { font: 700 0.62rem/1 system-ui, sans-serif; color: #cfe9ff; white-space: nowrap; }
/* Dec 5: "Falling now" has its own small key under the forecast key (own warm colours). */
.snow-chip .sk-now { color: #ffd98a; font-size: 0.7rem; margin-top: 1px; }
.snow-chip .sk-nowrow .sk-cell b { color: #ffe7b0; }
.sm-now { margin: 4px 0 2px; font-size: .82rem; color: #9aa3ad; }
.sm-now.on { color: #ffd98a; font-weight: 700; }
.sm-now[hidden] { display: none; }
/* Dec 5: the crosshair bubble never covers the snow colour key. Phones: the bubble sits under
   the crosshair in Snow Mode (the key is at the top); low landscape screens: beside it, and the
   key moves to the left so it is not on the crosshair. */
@media (max-width: 1023px) {
  body.snow-on .probe-bubble { bottom: auto; top: calc(100% + 4px); }
}
@media (max-width: 1023px) and (max-height: 520px) {
  body.snow-on .probe-bubble { top: -4px; bottom: auto; left: calc(100% + 6px); transform: none; width: min(236px, 40vw); }
  body.snow-on .snow-chip { left: 12px; transform: none; }
}

/* Help "?" buttons and their pop-up (Dec 3). */
.help-q { appearance: none; flex: 0 0 auto; display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; padding: 0; margin: 0 0.3rem; vertical-align: middle;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.07); color: #aab3bd; font: 800 0.74rem/1 system-ui, sans-serif; cursor: pointer; }
.help-q:active { background: rgba(124,200,255,.25); color: #fff; }
.help-q { position: relative; user-select: none; }
.help-q::after { content: ""; position: absolute; inset: -10px; }   /* 41 px touch area round the small "?" */
.help-q:focus-visible { outline: 2px solid #7cc8ff; outline-offset: 2px; }
.rp-switch-help { position: absolute; right: 0.55rem; top: 0.35rem; z-index: 2; }
.rp-head { position: relative; }
.help-pop { position: fixed; left: 0.8rem; right: 0.8rem; bottom: calc(var(--safe-bot, 0px) + 6rem); z-index: 95; max-width: 440px; margin: 0 auto;
  border-radius: 18px; padding: 0.85rem 1rem 1rem; box-shadow: 0 18px 50px rgba(0,0,0,.5); }
.help-pop[hidden] { display: none; }
.help-head { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.45rem; }
.help-head b { flex: 1; font-size: 1.05rem; }
.help-q-big { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: rgba(124,200,255,.18); color: #9fd6ff; font-weight: 800; }
.help-body { color: #d5dce4; font-size: .9rem; line-height: 1.45; }
.help-body b { color: #fff; }

/* Compact radar bar (Dec 3): folded = one row of controls plus the slider. */
.mini-what, .mini-more, .mini-hide { display: none; }
.bar-show { display: none; }
@media (max-width: 959px) {
  .stage.collapsed .mini-more { display: grid; place-items: center; margin-left: auto; }
  .stage.collapsed .mini-more svg { width: 1.2rem; height: 1.2rem; transition: transform .2s; }
  .stage.collapsed.bar-full .mini-more svg { transform: rotate(180deg); }
  /* Owner Dec 4: a down arrow hides the whole radar bar; a small 'Radar' button brings it back. */
  .stage.collapsed:not(.bar-full) .mini-hide { display: grid; place-items: center; }
  .mini-hide svg { width: 1.2rem; height: 1.2rem; }
  .stage.collapsed:not(.bar-full) .mini-more { margin-left: 0; }
  .stage.collapsed.bar-hidden { display: none; }
  .bar-show:not([hidden]) { position: absolute; left: 12px; bottom: calc(var(--safe-bot, 0px) + 14px); z-index: 17; display: flex; align-items: center; gap: 6px;
    padding: 9px 14px 9px 11px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(16,18,22,.94); color: #fff;
    font: 600 .86rem system-ui, sans-serif; box-shadow: 0 4px 14px rgba(0,0,0,.45); cursor: pointer; }
  .bar-show svg { width: 1.1rem; height: 1.1rem; }
  .stage.collapsed:not(.bar-full) .mode-tabs,
  .stage.collapsed:not(.bar-full) .status-bar,
  .stage.collapsed:not(.bar-full) .now-playing,
  .stage.collapsed:not(.bar-full) .loop-window,
  .stage.collapsed:not(.bar-full) .play-track,
  .stage.collapsed:not(.bar-full) #btn-step-back,
  .stage.collapsed:not(.bar-full) #btn-step-fwd,
  .stage.collapsed:not(.bar-full) #frame-time,
  .stage.collapsed:not(.bar-full) .ticks { display: none !important; }
  .stage.collapsed:not(.bar-full) .mini-what { display: flex; flex-direction: column; justify-content: center; flex: 1; min-width: 0; text-align: left;
    appearance: none; background: none; border: 0; color: inherit; padding: 0 0.35rem; }
  .mini-what b { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mini-what small { color: #9aa3ad; font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
  .stage.collapsed:not(.bar-full) .play-row { justify-content: flex-start; gap: 0.5rem; }
  .stage.collapsed:not(.bar-full) .playback { padding: 0.35rem 0.75rem 0.3rem; }
  .stage.collapsed:not(.bar-full) .timeline { padding-top: 0.15rem; margin-top: 0.1rem; }
}
.pt-act-main { background: rgba(124,200,255,.14) !important; border-color: rgba(124,200,255,.45) !important; }
body.snow-noradar #dbz-bar, body.snow-noradar #chip { display: none !important; }
body.snow-noradar .snow-chip { top: calc(var(--safe-top) + 0.9rem); }

/* Dec 3b: zoomable sounding charts; Snow Mode keeps the map buttons; seasonal buttons. */
.zoom-wrap { position: relative; overflow: hidden; border-radius: 12px; margin: 0 0 10px; touch-action: pan-y; background: #0d1420; padding-bottom: 20px; }
.zoom-wrap canvas { display: block; width: 100%; height: auto; transform-origin: 0 0; }
.zoom-wrap.zoomed { touch-action: none; box-shadow: 0 0 0 2px rgba(124,200,255,.5) inset; }
.zoom-hint { position: absolute; right: 8px; bottom: 3px; font-size: .68rem; color: #9aa3ad; padding: 2px 7px; border-radius: 99px; pointer-events: none; }
.zoom-wrap.zoomed .zoom-hint { display: none; }
.fab-chase[hidden] { display: none !important; }
body.snow-on #btn-chase, body.snow-on #btn-menu { display: none !important; }
body.snow-noradar .stage .playback, body.snow-noradar .stage .status-bar { display: none !important; }

/* One product menu (Dec 3): "Map shows" button replaces the tabs; one sheet of picture tiles. */
.loop-tabs { display: none !important; }
.prod-pick { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 12px; background: transparent; border: 0; color: #fff; text-align: left; cursor: pointer; min-width: 0; }
.prod-pick:active { background: rgba(255,255,255,.05); }
.pp-swatch { width: 34px; height: 34px; border-radius: 9px; background-color: #2a3442; background-position: center; background-size: cover; background-repeat: no-repeat; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset; }
.pp-text { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 1px; }
.pp-text small { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: #8fa0b3; font-weight: 750; }
.pp-text b { font-size: 1.02rem; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-chev { width: 22px; height: 22px; color: #7cc8ff; flex: 0 0 auto; }
.pm-sheet .pm-sec { margin: 4px 0 16px; }
.pm-sheet .pm-sec[hidden] { display: none; }
.pm-kick { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #9fb0c2; margin: 0 2px 9px; display: flex; gap: 8px; align-items: center; }
.pm-kick small { text-transform: none; letter-spacing: 0; font-weight: 600; color: #6f7d8d; font-size: .72rem; }
.pm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pm-tile { appearance: none; border: 0; background: none; color: #e8edf3; padding: 0; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 3px; min-width: 0; font: inherit; }
.pm-pic { position: relative; display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #243041; box-shadow: 0 0 0 1px rgba(255,255,255,.1) inset; transition: box-shadow .15s; }
.pm-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-pic.pm-all { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; background: #0f151d; }
.pm-pic.pm-all img { border-radius: 4px; }
.pm-big { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 1.15rem; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.pm-tile b { font-size: .84rem; font-weight: 750; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; }
.pm-tile small { font-size: .7rem; color: #94a2b2; line-height: 1.2; }
.pm-tile.on .pm-pic { box-shadow: 0 0 0 3px #3ea6ff; }
.pm-tile.on .pm-pic::after { content: "✓"; position: absolute; right: 5px; top: 5px; width: 22px; height: 22px; border-radius: 50%; background: #3ea6ff; color: #06121f; font-weight: 900; font-size: .78rem; display: grid; place-items: center; }
.pm-g-vis { background: radial-gradient(circle at 30% 35%, #f2f4f7 0 16%, transparent 38%), radial-gradient(circle at 70% 64%, #d9dee5 0 18%, transparent 42%), linear-gradient(160deg, #5b6673, #2c333c) !important; }
.pm-g-ir { background: radial-gradient(circle at 55% 50%, #ff3b3b 0 7%, #ffd23f 15%, #3fd46b 25%, #2f8cff 37%, #c9d3df 52%, #39424d 72%) !important; }
.pm-g-mp { background: linear-gradient(135deg, #ff6fb5, #c43bd6 35%, #4fe0c0 66%, #1d6b8f) !important; }
.pm-g-cth { background: linear-gradient(180deg, #f7f3ff, #a98bff 40%, #3a2d78 75%, #161b24) !important; }
.pm-g-snow { background: radial-gradient(circle at 60% 55%, #c56fd8 0 9%, #3b6fe0 22%, #7fb6ff 40%, #dceaff 58%, #2a3442 78%) !important; }
.pm-g-ice { background: radial-gradient(circle at 50% 50%, #6a0d86 0 10%, #d257c4 26%, #ffd0e9 46%, #2a3442 72%) !important; }
.pm-g-spc { background: linear-gradient(170deg, #8fd18f 0 30%, #f7e26b 30% 55%, #f5a24b 55% 75%, #e2534f 75%) !important; }
.pm-g-ero { background: linear-gradient(170deg, #2c3a2c 0 25%, #74c476 25% 50%, #f8d34a 50% 72%, #e0442f 72%) !important; }
.pm-g-cpc { background: linear-gradient(90deg, #3b7be0, #a8c8f0 45%, #f3b49a 55%, #d8452f) !important; }
.mini-what b::after { content: " ›"; color: #7cc8ff; }

/* Winter extras (Dec 3). */
.sm-prods { grid-template-columns: repeat(3, 1fr) !important; }
.sm-facts { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 2px; }
.sm-fact { display: flex; gap: 9px; align-items: flex-start; padding: 7px 9px; border-radius: 10px; background: rgba(255,255,255,.05); border-left: 4px solid #7cc8ff; }
.sm-fact[data-tone="warn"] { border-left-color: #ffd84a; background: rgba(255,216,74,.10); }
.sm-fact[data-tone="bad"] { border-left-color: #ff6b8a; background: rgba(255,107,138,.12); }
.sm-fact > i { font-style: normal; font-size: 1.05rem; line-height: 1.25; flex: 0 0 auto; width: 1.3rem; text-align: center; }
.sm-fact > span { flex: 1; min-width: 0; }
.sm-fact b { display: block; font-size: .86rem; line-height: 1.25; }
.sm-fact small { display: block; color: #b9c3ce; font-size: .76rem; line-height: 1.3; margin-top: 2px; }
.sm-chances { display: grid; gap: 3px; margin: 5px 0 2px; }
.sm-ch { display: grid; grid-template-columns: 3.4rem 1fr 2.6rem; align-items: center; gap: 6px; font-size: .74rem; color: #cfd6de; }
.sm-ch i { height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; display: block; }
.sm-ch i b { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #7fb6ff, #3b6fe0); }
.sm-ch em { font-style: normal; text-align: right; font-weight: 700; }
.sm-alert.squall { border-left-width: 6px; background: rgba(199,21,133,.22); animation: squallPulse 1.6s ease-in-out infinite; }
@keyframes squallPulse { 50% { background: rgba(199,21,133,.38); } }
@media (prefers-reduced-motion: reduce) { .sm-alert.squall { animation: none; } }
.pm-g-wssi { background: linear-gradient(135deg, #8fb3d9 0 20%, #f2d16b 20% 42%, #f39a3c 42% 62%, #e0473c 62% 82%, #a3245e 82%) !important; }
.pm-g-depth { background: radial-gradient(circle at 50% 75%, #ffffff 0 22%, #c4d6f0 36%, #709ce2 58%, #2a3442 80%) !important; }


/* Report a problem (Dec 3). */
.report-form textarea { width: 100%; box-sizing: border-box; min-height: 8rem; resize: vertical; border-radius: 12px; padding: .6rem .7rem;
  background: rgba(255,255,255,.06); color: inherit; border: 1px solid rgba(255,255,255,.14); font: inherit; }
.report-count { display: block; text-align: right; color: #9aa3ad; margin: -.2rem 0 .4rem; }
.report-send { width: 100%; margin-top: .6rem; background: #2b8ae6 !important; color: #fff !important; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Town search rows (Dec 3) */
#search-results .search-row { display: flex; align-items: center; gap: 0.5rem; }
#search-results .sr-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#search-results .sr-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#search-results .sr-sub { color: var(--muted); font-size: 0.72rem; }
#search-results .sr-save { flex: none; border: 1px solid var(--line); background: transparent; color: inherit;
  border-radius: 999px; padding: 0.2rem 0.7rem; font: 600 0.75rem system-ui, sans-serif; cursor: pointer; }
#search-results .search-empty { color: var(--muted); cursor: default; font-size: 0.85rem; }
#search-results { max-height: 50vh; overflow-y: auto; }
.set-card .set-row { flex-wrap: wrap; }
.set-card .set-row > span small { display: block; font-size: 0.72rem; color: #9aa3ad; font-weight: 400; }
.set-card .set-row .seg { flex-wrap: wrap; }

/* Models are off (owner, Dec 3): their section stays out of sight. */
#models-block[hidden], #pane-model[hidden] { display: none !important; }
.ik-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c); border: 1.5px solid #10141a; }
.ik-dot.ik-glm { width: 8px; height: 8px; border: 0; box-shadow: 0 0 0 5px rgba(255, 230, 80, 0.25); }

/* Line icons instead of emojis (Dec 3) */
.ln-ic { width: 1.05em; height: 1.05em; vertical-align: -0.16em; flex: none; }
.sm-fact > i .ln-ic { width: 1.25rem; height: 1.25rem; }
.sm-fact[data-tone="bad"] > i { color: #ff8a8a; }
.sm-fact[data-tone="warn"] > i { color: #ffd27a; }
.sm-fact[data-tone="info"] > i { color: #8fd0ff; }
.site-fav .ln-ic { color: #ffd27a; fill: currentColor; }

/* Snow by the hour + day-by-day chances (Dec 3) */
.sm-wins { display: grid; gap: 3px; margin: 5px 0 2px; }
.sm-win { display: grid; grid-template-columns: 8.2rem 1fr 3.2rem; align-items: center; gap: 6px; font-size: .76rem; color: #dbe2ea; }
.sm-win.dry { color: #8c96a1; }
.sm-win.gap span { grid-column: 1 / -1; font-style: italic; }
.sm-win i { height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; display: block; }
.sm-win i b { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #9fd0ff, #4a7fe6); }
.sm-win em { font-style: normal; text-align: right; font-weight: 700; }
.sm-day { margin: 6px 0 2px; }
.sm-day > b { display: block; font-size: .78rem; font-weight: 650; color: #dbe2ea; margin-bottom: 3px; }
.sm-day > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.sm-dc { display: flex; flex-direction: column; align-items: center; padding: 4px 2px; border-radius: 8px; background: rgba(255,255,255,.06); font-weight: 750; font-size: .9rem; color: #e8eef5; }
.sm-dc small { font-size: .66rem; font-weight: 600; color: #9aa3ad; }
.sm-dc.mid { background: rgba(90,140,240,.22); }
.sm-dc.hi { background: rgba(90,140,240,.42); }

/* Storm timeline (Dec 3, cell panel v3): one column per scan, newest on the right. */
.cell-tl { margin: 4px -4px 0; }
.cell-tl .tl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; padding-bottom: 4px; }
.tl { border-collapse: separate; border-spacing: 0; font-size: .82rem; min-width: 100%; }
.tl th, .tl td { padding: 7px 8px; text-align: center; white-space: nowrap; border-bottom: 1px solid rgba(200,205,215,.08); }
.tl tr > th:first-child { position: sticky; left: 0; z-index: 1; text-align: left; background: #202227; color: #c9d0d8; font-weight: 600; min-width: 92px; }
.tl tr > th:first-child small { display: block; color: #8b939d; font-weight: 400; font-size: .7rem; }
.tl td { min-width: 62px; color: #e8edf2; font-variant-numeric: tabular-nums; }
.tl .tl-h th { color: #9aa3ad; font-weight: 600; font-size: .76rem; vertical-align: bottom; }
.tl .tl-h th small { display: block; color: #8fd8ff; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tl .now { background: rgba(143,216,255,.07); }
.tl .tl-h th.now { color: #fff; }
.tl-dbz { display: inline-block; min-width: 30px; padding: 2px 6px; border-radius: 6px; color: #111; font-weight: 700; }
.tl-wait { color: #6b737c; }
.tl-rot { font-weight: 600; }
.tl-rot.r0 { color: #9aa3ad; font-weight: 400; }
.tl-rot.r1 { color: #ffd166; }
.tl-rot.r2 { color: #ff9f43; }
.tl-rot.r3 { color: #ff5c5c; }
.tl-arrow { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; color: #8fd8ff; }
.tl-mv small { display: block; color: #8b939d; font-size: .68rem; }
.cell-tl-more { margin: 8px 0 2px; }
.cell-tl-more[hidden], .cell-ch[hidden] { display: none; }
.cell-ch summary { cursor: pointer; color: #8fd8ff; font-weight: 600; padding: 8px 0 4px; }

/* Spot forecast as a page of the radar panel (Dec 3). */
.sp-pane { padding: 0.6rem 0.85rem 0.9rem; }
.sp-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.15rem; }
.sp-head h2 { flex: 1; margin: 0; font-size: 1.1rem; line-height: 1.25; }
.sp-pin { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: rgba(124,200,255,.16); color: #7cc8ff; flex: 0 0 auto; }
.sp-pin .ln-ic { width: 1.1rem; height: 1.1rem; }
.sp-pane .pt-coords { margin: -0.45rem 0 8px 2.4rem; }
.sp-pane .sec-head { margin-top: 0.9rem; }
.spot-pin { width: 30px; height: 40px; cursor: default; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.spot-pin svg { width: 100%; height: 100%; display: block; }
@media (max-width: 959px) {
  body.spot-on .stage:not(.collapsed) { max-height: 58vh; }
  body.spot-on .stage:not(.collapsed) .mode-body { max-height: 44vh; }
}

.sm-prods + .sm-hero { margin-top: 0.75rem; }
/* Dec 3: a new visitor with no place yet */
.noplace-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.7rem; }
.np-btn { font: inherit; font-size: 0.9rem; font-weight: 600; padding: 0.5rem 0.9rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(90,160,255,.16); color: inherit; cursor: pointer; }
.np-btn:hover { background: rgba(90,160,255,.28); }
body.noplace .card:has(#home-hours), body.noplace .card:has(#home-days) { display: none; }
/* Dec 5 review: no radar card ("KTWX radar") or "Now" label before there is a place; Hourly asks too */
body.noplace #home-radar, body.noplace #home-kicker, body.noplace .hourly-chart, body.noplace #home-nowcast { display: none; }
.np-msg { flex-basis: 100%; margin: 0.3rem 0 0; color: var(--muted, #9ba1ac); font-size: 0.85rem; }
.home-make-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 0.7rem; }
.home-make-row[hidden], .home-make-row [hidden] { display: none; }
.home-make-row span { color: #8fe3b0; font-size: 0.85rem; font-weight: 600; }
.home-make-row span:empty { display: none; }
#olp-body .noplace-btns, #hourly-list .noplace-btns { justify-content: center; margin: 0 1rem 1rem; }
/* Hourly/Home day lists: the rain % on its own line (a 2-line clamp cut it: "Patchy Fog 1…") */
.day-row .d.has-pop, .dc-sky.has-pop { display: flex; flex-direction: column; overflow: visible; -webkit-line-clamp: unset; }
.day-row .d .dw, .dc-sky .dw { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.day-row .d em { font-style: normal; color: #6cbcff; font-weight: 650; font-size: 0.75rem; }
.dc-sky em { margin-top: 0.1rem; }
/* Hourly readout: "10 mph SW" ran into "96%" */
.ro-grid { column-gap: 0.7rem; }
.ro-grid span { min-width: 0; }
.ro-grid b { white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
.place-quiet { display: inline-block; margin-top: 0.25rem; padding: 0.05rem 0.4rem; border-radius: 5px; background: rgba(92,214,150,.16); color: #8fe3b0; font-size: 0.68rem; font-weight: 700; }
.lsr-head { margin: 0 0 0.6rem; color: var(--muted, #9ba1ac); font-size: 0.85rem; line-height: 1.4; }
.lsr-head .link-btn { padding: 0 0 0 0.3rem; font-size: 0.85rem; }
.sheet h2[tabindex="-1"]:focus:not(:focus-visible), .sheet h3[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
.saved-note { margin-left: 0.6rem; color: #8fe3b0; font-weight: 600; font-size: 0.88rem; }
/* Dec 3: outlook window */
.aw-link { display: inline-block; margin: 0.6rem 0 0.2rem; padding: 0.5rem 0.9rem; border-radius: 999px; background: rgba(90,160,255,.16); border: 1px solid rgba(255,255,255,.14); color: inherit; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.aw-link:hover { background: rgba(90,160,255,.28); }
/* Dec 3: north-up compass */
.fab-north svg { width: 1.45rem; height: 1.45rem; }
.fab-north[hidden] { display: none; }

/* ---- Tornado Mode (Dec 3): its own pane of the radar panel, like Snow Mode. */
.tm-pane { padding: 0.7rem 0.85rem 0.9rem; }
.tm-hero { background: linear-gradient(160deg, rgba(255,77,77,.17), rgba(255,77,77,.04)); border: 1px solid rgba(255,110,110,.25); border-radius: 14px; padding: 0.65rem 0.75rem; }
.tm-hero-top { display: flex; align-items: center; gap: 0.45rem; }
.tm-hero-top .tm-where { flex: 1; margin: 0; color: #ffb3b3; font: 700 .72rem/1.2 system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.tm-ic { display: inline-flex; color: #ff6b6b; }
.tm-ic .ln-ic { width: 20px; height: 20px; }
.tm-head { font-size: 1.22rem; font-weight: 800; line-height: 1.2; margin: 4px 0 2px; }
.tm-sub { color: #cfd6de; font-size: .8rem; }
.tm-you-line { margin-top: 6px; color: #dfe4ea; font-size: .82rem; }
.tm-alert-you { margin-top: 7px; padding: 6px 9px; border-radius: 9px; background: rgba(255,40,40,.25); border: 1px solid rgba(255,90,90,.6); color: #fff; font-weight: 700; font-size: .85rem; }
.tm-card { border-left: 4px solid var(--wc, #ff0000); background: rgba(127,127,127,.1); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
.tm-card.sel { background: rgba(255,255,255,.12); box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset; }
.tm-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tm-top b { font-size: .92rem; }
.tm-badge { font: 800 .66rem/1 system-ui, sans-serif; letter-spacing: .05em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; background: rgba(255,255,255,.12); color: #fff; }
.tm-badge.tm-emer { background: #b0005a; }
.tm-badge.tm-pds { background: #d4002a; }
.tm-badge.tm-obs { background: #e04000; }
.tm-badge.tm-ri { background: rgba(255,0,0,.35); }
.tm-badge.tm-svr { background: rgba(255,165,0,.3); color: #ffd9a0; }
.tm-place { color: #dfe4ea; font-size: .8rem; margin-top: 3px; }
.tm-facts { color: #9aa3ad; font-size: .76rem; margin-top: 2px; }
.tm-rotline { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; font-size: .8rem; font-weight: 600; color: #cfd6de; }
.tm-rotline i { display: inline-flex; flex: none; }
.tm-rotline .ln-ic { width: 16px; height: 16px; }
.tm-r-weak { color: #f5d000; } .tm-r-moderate { color: #ff8c00; } .tm-r-strong { color: #ff4040; }
.tm-r-none, .tm-r-na { color: #9aa3ad; font-weight: 500; }
.tm-acts { display: flex; gap: 8px; margin-top: 8px; }
.tm-btn { appearance: none; flex: 1; min-height: 34px; border-radius: 9px; border: 1px solid rgba(200,205,215,.22); background: rgba(255,255,255,.06); color: #f2f3f5; font: 650 .8rem system-ui, sans-serif; cursor: pointer; }
.tm-btn:active { background: rgba(255,255,255,.14); }
.tm-unw { appearance: none; display: block; width: 100%; text-align: left; border: 1px solid rgba(200,205,215,.16); border-left: 4px solid currentColor; background: rgba(127,127,127,.08); border-radius: 9px; padding: 7px 10px; margin-bottom: 6px; font: inherit; cursor: pointer; }
.tm-unw b { display: block; font-size: .86rem; }
.tm-unw small { display: block; color: #9aa3ad; font-size: .74rem; margin-top: 2px; }
.tm-empty { color: #8d96a1; font-size: .8rem; margin: 2px 0 6px; }
.mode-tab-torn.on { color: #fff; }
.mode-tab-torn.on::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #ff5a5a; }

/* ---- Storm marks on the radar (Dec 3): tornado icon = on the ground / confirmed;
   spinning mark = radar-indicated or rotation our math found. */
@media (prefers-reduced-motion: reduce) { .stm-spin svg, .stm-torn .stm-ring { animation: none; } }
body.snow-on .stm { display: none; }
.tapc-alert small { display: block; color: #dfe4ea; font-size: 0.74rem; line-height: 1.3; }
.tapc-alert small + small { margin-top: 1px; }
.tapc-alert b { white-space: normal; }
.probe-bubble .pb-hail small { color: #ffd27a; }
/* B376: the crosshair bubble moves (07 probePlace) so the time box and keys never cover it. */
.probe.pb-below .probe-bubble { bottom: auto; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); width: 236px; }
.probe.pb-side .probe-bubble { bottom: auto; top: -4px; left: calc(100% + 6px); transform: none; width: min(236px, 40vw); }
.probe.pb-side-l .probe-bubble { bottom: auto; top: -4px; left: auto; right: calc(100% + 6px); transform: none; width: min(236px, 40vw); }
.tm-grid { display: grid; gap: 3px; margin-top: 8px; }
.tm-fact { display: flex; gap: 8px; justify-content: space-between; align-items: baseline; font-size: .78rem; padding: 3px 0; border-top: 1px solid rgba(255,255,255,.06); }
.tm-fact span { color: #9aa3ad; flex: none; }
.tm-fact b { text-align: right; font-weight: 650; color: #eef2f6; }
.tm-grid:not(.open) .tm-more { display: none; }
.tm-morebtn { appearance: none; border: 0; background: none; color: var(--st-accent, #3ea6ff); font: 650 .78rem system-ui, sans-serif; padding: 6px 0 0; cursor: pointer; }
.tm-watchcard { --wc: #ffff00; }
/* Dec 3 (owner): Snow Mode's box looks like Tornado Mode's (same header row and layout). */
.sm-hero-top .sm-where { color: #9fd6ff; font: 700 .72rem/1.2 system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.sm-place { color: #cfd6de; font-size: .8rem; margin-top: 4px; }
.sm-flake { color: #7cc8ff; }

/* ---- Outlook page (Dec 3): the next 3 days for your place */
.olp-day { padding: 12px 14px; margin-top: 12px; }
.olp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.olp-head h2, .olp-day > h2 { margin: 0 0 6px; font: 700 1.05rem/1.2 system-ui, sans-serif; }
.olp-temp { font: 700 1.05rem/1 system-ui, sans-serif; color: #dfe7ef; }
.olp-impact { border-radius: 10px; padding: 8px 10px; margin: 4px 0 8px; background: rgba(124,200,255,.10); border-left: 4px solid #7cc8ff; }
.olp-impact b { display: block; font-size: .9rem; }
.olp-impact small { display: block; color: #b9c3ce; font-size: .76rem; margin-top: 2px; }
.olp-impact.olp-i1 { background: rgba(255,216,74,.10); border-left-color: #ffd84a; }
.olp-impact.olp-i2 { background: rgba(255,150,60,.13); border-left-color: #ff9a3c; }
.olp-impact.olp-i3 { background: rgba(255,80,80,.15); border-left-color: #ff5050; }
.olp-impact.olp-i4 { background: rgba(220,60,220,.17); border-left-color: #e070ff; }
/* B193 (Dec 5): rows are a grid - icon | label | value | Map - and every row of a card with a Map
   button keeps that column (.olp-gap), so values and buttons line up from row to row. */
.olp-row { display: grid; grid-template-columns: 1.3rem auto minmax(0, 1fr); align-items: center; column-gap: 9px; padding: 7px 2px; border-top: 1px solid rgba(255,255,255,.06); font-size: .86rem; }
.olp-day:has(.olp-map) .olp-row { grid-template-columns: 1.3rem auto minmax(0, 1fr) 2.9rem; }
.olp-row > i { font-style: normal; width: 1.3rem; color: #9fb3c6; }
.olp-row > i .ln-ic { width: 1.2rem; height: 1.2rem; }
.olp-row > .olp-lab { color: #b9c3ce; white-space: nowrap; }
.olp-row > b, .olp-row > .olp-two { justify-self: end; min-width: 0; font-weight: 600; text-align: right; text-wrap: balance; }
.olp-day:not(:has(.olp-map)) .olp-gap { display: none; }
.olp-row.olp-stack > b, .olp-row.olp-stack > .olp-two { grid-column: 2 / 4; grid-row: 2; justify-self: start; text-align: left; margin-top: 3px; }
.olp-row.olp-stack > .olp-two { align-items: flex-start; text-align: left; }
.olp-row.olp-stack > .olp-map, .olp-row.olp-stack > .olp-gap { grid-column: 4; grid-row: 1; }
.olp-row.olp-good > b { color: #8fe3a0; }
.olp-row.olp-bad > b { color: #ffb37a; }
.olp-map { justify-self: end; width: 2.9rem; text-align: center; appearance: none; border: 1px solid rgba(124,200,255,.45); background: rgba(124,200,255,.10); color: #bfe3ff; border-radius: 999px; padding: 3px 9px; font: 600 .72rem/1.2 system-ui, sans-serif; }
#olp-body .foot-note { margin-top: 14px; }
.olp-pick { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; }
.olp-pick > span { color: #9fb3c6; font: 600 .8rem/1 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.olp-pick select { flex: 1; appearance: none; -webkit-appearance: none; border: 1px solid rgba(124,200,255,.4); border-radius: 12px; padding: 10px 36px 10px 12px;
  background: rgba(124,200,255,.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23bfe3ff' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: #e8f2fb; font: 700 .98rem/1.2 system-ui, sans-serif; }
.olp-pick select option { background: #16202b; color: #e8f2fb; }
.olp-sum { padding: 12px 14px; margin-top: 12px; border-left: 4px solid #8fe3a0; }
.olp-sum b { display: block; font: 700 1rem/1.3 system-ui, sans-serif; }
.olp-sum small { display: block; color: #b9c3ce; font-size: .8rem; margin-top: 3px; }
.olp-sum.olp-sum-bad { border-left-color: #ff9a3c; background: rgba(255,150,60,.08); }
.olp-meter { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.olp-meter em { font-style: normal; font-weight: 600; white-space: nowrap; }
.olp-steps { display: flex; width: 64px; gap: 3px; }   /* one width for 5 (storms) and 4 (flooding) steps */
.olp-steps i { flex: 1; height: 8px; border-radius: 2px; background: rgba(255,255,255,.12); }
.olp-lv1 .olp-steps i.on { background: #6fd18a; }
.olp-lv2 .olp-steps i.on { background: #ffd84a; }
.olp-lv3 .olp-steps i.on { background: #ff9a3c; }
.olp-lv4 .olp-steps i.on { background: #ff5050; }
.olp-lv5 .olp-steps i.on { background: #e070ff; }
.olp-chip { font-weight: 600; }
.olp-two { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.olp-chip.olp-up { color: #ffb37a; }
.olp-chip.olp-down { color: #8cc8ff; }
.olp-chip.olp-wet { color: #8fe3a0; }
.olp-chip.olp-dry { color: #e3c48f; }
.olp-score { display: flex; align-items: center; gap: 10px; margin: 2px 0 6px; }
.olp-score b { flex: 0 0 auto; font: 700 .86rem/1 system-ui, sans-serif; }
.olp-bar { flex: 1; height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.olp-bar i { display: block; height: 100%; border-radius: 99px; background: #ff9a3c; }
.olp-s1 .olp-bar i { background: #ffd84a; }
.olp-s2 .olp-bar i { background: #8fe3a0; }
.olp-s3 .olp-bar i { background: #4fd37a; }
.olp-s2 b, .olp-s3 b { color: #8fe3a0; }

/* ---- Storm marks (Dec 3 v2): RED = NWS tornado warning, PURPLE = StormTrace only.
   The marker element is positioned by MapLibre (absolute + transform): never set
   position/transform on .stm itself; only .stm-in and its children animate. */
.stm { width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.stm-in { position: relative; display: grid; place-items: center; width: 100%; height: 100%;
  transform: scale(var(--stm-s, 1)); transform-origin: 50% 50%; }
/* Owner Dec 4: zoomed out, a full-size mark covered the coast (a Mobile storm looked like it sat in
   the Gulf). Marks shrink with zoom (--stm-s on the map container, stmScale) and a small dot
   shows the exact storm spot. */
.stm-in::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px;
  border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px rgba(0,0,0,.75); pointer-events: none; }
.stm-torn .stm-in::after { display: none; }
.stm-ring { position: absolute; inset: 6px; border-radius: 50%; }
.stm svg { position: relative; fill: none; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 2px rgba(0,0,0,.9)); }
.stm-spin svg { width: 40px; height: 40px; stroke-width: 3; animation: stmSpin 1.6s linear infinite; }
.stm-spin.stm-nws svg { stroke: #ff2d3c; animation-duration: 1.1s; }
.stm-spin.stm-nws .stm-ring { background: radial-gradient(circle, rgba(255,45,60,.42), rgba(255,45,60,0) 70%); }
.stm-spin.stm-ours svg { stroke: #b46cff; }
.stm-spin.stm-ours .stm-ring { background: radial-gradient(circle, rgba(180,108,255,.4), rgba(180,108,255,0) 70%); }
/* B329: rotation seen by radar, tornado not likely now: lighter, smaller, slower purple spin, no glow */
.stm-spin.stm-rot svg { stroke: #c9a2ff; opacity: .85; width: 30px; height: 30px; stroke-width: 2.6; animation-duration: 2.6s; }
.stm-spin.stm-rot .stm-ring { inset: 9px; background: rgba(20,12,34,.55); border: 1.5px dashed #c9a2ff; }
.stm-torn .stm-ring { inset: 5px; background: #d4002a; border: 2px solid #fff; box-shadow: 0 0 0 3px rgba(212,0,42,.35), 0 2px 8px rgba(0,0,0,.6); animation: stmPulse 1.4s ease-in-out infinite; }
.stm-torn svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 2.4; }
@keyframes stmSpin { to { transform: rotate(-360deg); } }
@keyframes stmPulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(212,0,42,.35), 0 2px 8px rgba(0,0,0,.6); } 50% { box-shadow: 0 0 0 8px rgba(212,0,42,.12), 0 2px 8px rgba(0,0,0,.6); } }
@media (prefers-reduced-motion: reduce) { .stm svg, .stm-ring { animation: none !important; } }

/* Quick look: label / value rows (alerts, watches, discussions, storm facts). */
.qk { list-style: none; margin: 4px 0 2px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; }
.qk li { display: flex; flex-direction: column; min-width: 0; }
.qk li span { color: #aab4bf; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; }
.qk li b { color: #fff; font-size: .8rem; font-weight: 700; white-space: normal !important; }
.qk .qk-wide { grid-column: 1 / -1; color: #e9edf1; font-size: .76rem; }
.qk .qk-bad { color: #ff8a8a; font-weight: 700; }

/* Storm section of the tap card. */
.stc { margin: 0 0 6px; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.04); border-left: 4px solid var(--sc, #b46cff); }
.stc-nws { --sc: #ff2d3c; }
.stc-ours { --sc: #b46cff; }
.stc-src { display: inline-block; font: 700 .66rem/1 system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--sc); margin-bottom: 7px; }
.stc-alarm { margin: 0 0 6px; padding: 5px 7px; border-radius: 7px; background: #b0001e; color: #fff; font-weight: 800; font-size: .78rem; text-align: center; letter-spacing: .03em; }
.stc-score { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.stc-score > b { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.05rem;
  background: radial-gradient(closest-side, #1d2026 78%, transparent 80% 100%), conic-gradient(var(--sc) var(--p), rgba(255,255,255,.12) 0); }
.stc-score span { display: flex; flex-direction: column; }
.stc-score em { font-style: normal; color: #aab4bf; font-size: .7rem; }
.stc-score strong { font-size: .92rem; }
.stc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.stc-k { display: flex; flex-direction: column; min-width: 0; }
.stc-k span { color: #aab4bf; font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; }
.stc-k b { font-size: .82rem; line-height: 1.25; }
.stc-none { margin: 6px 0 0; color: #aab4bf; font-size: .74rem; }
.stc-why { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 6px; }
.stc-why summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: .78rem; list-style: none; }
.stc-why summary::-webkit-details-marker { display: none; }
.stc-why summary::after { content: " ▾"; }
.stc-why[open] summary::after { content: " ▴"; }
.stc-parts { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.stc-parts li { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--sc) 28%, transparent) var(--f), rgba(255,255,255,.04) var(--f)); }
.stc-parts li span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.stc-parts li b { font-size: .76rem; }
.stc-parts li small { color: #c3cbd4; font-size: .68rem; }
.stc-parts li i { font-style: normal; font-weight: 700; font-size: .74rem; }
.stc-sub { margin: 8px 0 2px; color: #aab4bf; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.stc-note { margin: 6px 0 0; color: #98a3ae; font-size: .68rem; line-height: 1.35; }
.stc-stamp { margin: 4px 0 0; color: #77818b; font-size: .62rem; }
.stc-stamp:empty { display: none; }
.stc-btn { appearance: none; width: 100%; margin-top: 8px; padding: 6px 8px; border-radius: 8px; border: 1px solid rgba(124,200,255,.45);
  background: rgba(124,200,255,.10); color: #cfe9ff; font: 600 .76rem system-ui, sans-serif; cursor: pointer; }

/* The tap card is a fixed panel (Dec 3): never attached to the map, so zooming and panning
   never move or resize it. A small pin marks the tapped spot. */
.tapc-panel { position: fixed; left: 8px; right: 8px; z-index: 30; background: var(--glass); color: var(--text); border-radius: 14px;
  border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(0,0,0,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tapc-panel[hidden] { display: none; }
.tapc-panel .tapc { width: auto; max-height: var(--dock-max, 60vh); }
.tapc-panel.tapc-desk { left: 16px; right: auto; width: 340px; }
/* Tapped spot: an open amber ring with a dark centre dot, so it never reads as the blue "you" dot (B143). */
.tapc-pin { width: 22px; height: 22px; box-sizing: border-box; border-radius: 50%; border: 3px solid #ffb020; background: transparent;
  box-shadow: 0 0 0 1.5px rgba(0,0,0,.65), inset 0 0 0 1.5px rgba(0,0,0,.65); pointer-events: none; }
.tapc-pin::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: #111; box-shadow: 0 0 0 1px #ffb020; }

/* Layers sheet: quick setups + one group at a time (Dec 3). */
.lg-presets { margin: 2px 0 10px; }
.lg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.lg-preset { appearance: none; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); cursor: pointer; }
.lg-preset b { font-size: .84rem; }
.lg-preset small { color: var(--muted); font-size: .7rem; line-height: 1.25; }
.lg-preset.on { border-color: var(--accent); background: rgba(124,200,255,.12); }
.lg-tabs { display: flex; gap: 4px; margin: 4px 0 8px; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.05); overflow-x: auto; }
.lg-tabs button { appearance: none; flex: 1; min-height: 40px; border: 0; background: none; color: var(--muted); padding: 6px 8px; border-radius: 8px; font: 600 .8rem system-ui, sans-serif; white-space: nowrap; cursor: pointer; }
.lg-tabs button:hover { color: var(--text); background: rgba(255,255,255,.05); }
.lg-tabs button.on { background: var(--raised, #2a2f37); color: var(--text); }
#sheet-layers [data-lg-group][hidden] { display: none !important; }

/* Score scale + always-open parts (Dec 3). */
.stc-scorewrap { margin-bottom: 8px; }
.stc-score { position: relative; margin-bottom: 6px; }
.stc-score .help-q { margin-left: auto; }
.stc-scale { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-top: 2px; }
.stc-scale span { padding: 3px 2px 2px; border-top: 4px solid; font-size: .62rem; color: #c3cbd4; text-align: center; line-height: 1.1; }
.stc-scale span small { display: block; color: #8f9aa6; font-size: .58rem; }
.stc-scale .s-low { border-color: #4f8f62; }
.stc-scale .s-elev { border-color: #d8b23a; }
.stc-scale .s-high { border-color: #f07a2a; }
.stc-scale .s-vhigh { border-color: #e0304a; }
.stc-scale i { position: absolute; top: -4px; width: 3px; height: 10px; margin-left: -1.5px; background: #fff; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
.stc-whyhead { display: flex; align-items: center; gap: 6px; color: #aab4bf; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.stc-whyhead .help-q { margin-left: auto; }
/* Dec 4: tornado chance ring ("25%") and the arrows on the chance parts. */
.stc-score > b { grid-auto-flow: column; place-content: center; align-items: baseline; }
.stc-score > b small { font-size: .62em; font-weight: 600; opacity: .85; }
.stc-parts-ch i { font-style: normal; letter-spacing: -1px; min-width: 2.2em; text-align: right; }

/* ---- Reports Mode (Dec 4): storm reports in the map view, like Snow / Tornado Mode. */
.mode-tab-rep.on { color: #fff; }
.mode-tab-rep.on::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #3f8cff; }
.rep-hero-ic { color: #7cc8ff; }
/* Dec 5 (UI review): chips wrap onto a second line instead of running off the edge with no
   hint; the long scan-angle row scrolls sideways with a fade on the side that has more. */
.rep-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 8px; }
.rep-chips.rep-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.rep-chips.rep-scroll::-webkit-scrollbar { display: none; }
.rep-chips.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.rep-chips.fade-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px); mask-image: linear-gradient(90deg, transparent, #000 36px); }
.rep-chips.fade-l.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
.rep-pane { padding: 0.7rem 0.85rem 0.9rem; }   /* same margins as Tornado / Chase / Snow Mode (was edge to edge) */
.rep-pane .tm-hero { margin-bottom: 8px; }
.rep-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05); color: #d6dbe2; font: 600 .8rem system-ui, sans-serif; cursor: pointer; }
.rep-chip i { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255,255,255,.7); }
.rep-chip b { color: #9aa3ad; font-weight: 700; }
.rep-chip.on { background: #2b6fd6; border-color: #2b6fd6; color: #fff; }
.rep-chip.on b { color: #dbe8ff; }
.rep-list { display: flex; flex-direction: column; gap: 4px; }
.rep-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px; background: rgba(255,255,255,.04);
  color: inherit; text-align: left; cursor: pointer; font: inherit; }
.rep-row:active, .rep-row:hover { background: rgba(255,255,255,.09); }
.rep-ic { width: 26px; height: 26px; flex: none; }
.rep-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rep-tx b { font-size: .9rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rep-tx small { font-size: .78rem; color: #9aa3ad; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rep-when { flex: none; font-size: .76rem; color: #9aa3ad; }
.rep-pane .tm-hero { background: linear-gradient(160deg, rgba(63,140,255,.18), rgba(63,140,255,.04)); border-color: rgba(110,170,255,.28); }
.rep-pane .tm-hero-top .tm-where { color: #a9cbff; }
/* Phones: the reports page uses half the screen so the map with the reports stays in view. */
@media (max-width: 959px) {
  body.shell.rep-on .page-map .stage:not(.collapsed) { max-height: 50%; }
}

/* Dec 4 (owner): the phone's own rotation-signature switch is gone: rotation is tracked
   automatically for the whole country (purple marks, "Storm threats" layer). */
/* Dec 4: Tornado Mode with many tornadoes: step buttons + folded cards. */
.tm-step { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.tm-step[hidden] { display: none; }
.tm-step span { flex: 1; text-align: center; font: 700 .85rem/1.2 system-ui, sans-serif; }
.tm-step .tm-btn { min-width: 44px; font-size: 1.25rem; line-height: 1; padding: 6px 10px; }
.tm-head-btn { cursor: pointer; border-radius: 8px; outline-offset: 2px; }
.tm-chev { margin-left: auto; opacity: .75; font-size: .9rem; }
.tm-card.folded { padding-bottom: 6px; }
.tm-card.folded .tm-facts { opacity: .8; }
/* Dec 4: "New version ready" pill (website only). */
.upd-pill { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-bot, 0px) + 84px); z-index: 4000;
  background: #3f8cff; color: #fff; border: 0; border-radius: 999px; padding: 10px 16px; font: 700 .88rem/1.2 system-ui, sans-serif;
  box-shadow: 0 4px 16px rgba(0,0,0,.45); cursor: pointer; }

/* ---- Chase Mode (Dec 4): storm chaser setting as its own mode, like Snow / Tornado / Reports. */
.mode-tab-chase.on { color: #fff; }
.mode-tab-chase.on::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #f0a030; }
.chase-pane .tm-hero { background: linear-gradient(160deg, rgba(240,160,48,.18), rgba(240,160,48,.04)); border-color: rgba(255,190,110,.3); }
.chase-pane .tm-hero-top .tm-where, .chase-hero-ic { color: #ffc98a; }
.chase-pane #ch-prods { margin-top: 8px; }
.ch-facts { display: flex; flex-direction: column; gap: 4px; margin: 2px 0 8px; }
@media (max-width: 1023px) { body.shell.chase-on .page-map .stage:not(.collapsed) { max-height: 50%; } }

/* ---- Device fit (Dec 4). iPhone/iPad Safari zooms the whole page into any text box whose
   text is under 16 px; keep typing boxes at 16 px there. No text inflation on rotate. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.dev-ios input[type="search"], html.dev-ios input[type="text"], html.dev-ios input:not([type]),
html.dev-ios input[type="email"], html.dev-ios input[type="number"], html.dev-ios textarea, html.dev-ios select { font-size: 16px !important; }
/* Home Screen tip (iPhone: Share > Add to Home Screen; Android Chrome: Install). */
.home-tip { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-bot, 0px) + 84px); z-index: 3900;
  display: flex; align-items: center; gap: 8px; width: min(92vw, 420px); padding: 9px 8px 9px 13px; border-radius: 14px;
  background: #161a20; border: 1px solid rgba(255,255,255,.22); box-shadow: 0 8px 28px rgba(0,0,0,.6); isolation: isolate;
  color: #e8edf3; font: 600 .8rem/1.35 system-ui, -apple-system, sans-serif; }
.home-tip span { flex: 1; }
.home-tip b { color: #fff; }
.home-tip-go { border: 0; border-radius: 999px; padding: 6px 12px; background: #2b6fd6; color: #fff; font: 700 .78rem system-ui, sans-serif; }
.home-tip-x { border: 0; background: none; color: #aab4bf; font-size: 1.3rem; line-height: 1; padding: 2px 6px; }

/* ---- Radar tray handle (owner Dec 4): a tab on the bar's top edge with an arrow. Up arrow =
   open the tray, down arrow = close it. It glows a few times until the tray has been opened once. */
.stage-grip { display: none; }
@media (max-width: 1023px) {
  body.shell .page-map .stage { overflow: visible; }
  body.shell .page-map .stage-grip { display: flex; align-items: center; justify-content: center; gap: 5px;
    position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); z-index: 2;
    height: 24px; min-width: 92px; padding: 0 12px; border: 1px solid rgba(200,205,215,.22); border-bottom: 0;
    border-radius: 12px 12px 0 0; background: #1c1e22; color: #dfe6ee; font: 700 .68rem/1 system-ui, -apple-system, sans-serif;
    letter-spacing: .03em; box-shadow: 0 -4px 10px rgba(0,0,0,.25); }
  body.shell .page-map .stage-grip svg { width: 14px; height: 14px; transition: transform .2s; }
  body.shell .page-map .stage-grip i { display: none; }
  body.shell .page-map .stage-grip.is-open svg { transform: rotate(180deg); }
  body.shell .page-map .stage-grip.hint { color: #fff; border-color: #3f8cff; animation: stGripGlow 1.8s ease-in-out 5; }
  body.shell .page-map .stage.collapsed:has(.stage-grip.hint) { border-top-color: #3f8cff; }
  body.shell .page-map .stage.bar-hidden.collapsed .stage-grip { display: none; }
  /* The open tray sits above every map button and stops below the time box, so its close
     arrow is never covered. */
  body.shell .page-map .stage:not(.collapsed) { z-index: 23; max-height: calc(100% - var(--safe-top) - 8rem); }
  /* The mode-body scrolls inside (the stage itself no longer clips, for the handle). */
  body.shell .page-map .stage:not(.collapsed) .mode-body { overflow-y: auto; }
}
@keyframes stGripGlow { 0%, 100% { box-shadow: 0 -4px 10px rgba(0,0,0,.25); } 50% { box-shadow: 0 0 0 4px rgba(63,140,255,.35), 0 -6px 18px rgba(63,140,255,.55); } }

/* Chase Mode: live scan angle row (Dec 4) */
.ch-angle-row { margin: 2px 0 4px; }
.ch-angle-row[hidden] { display: none; }
.ch-lbl { display: flex; align-items: center; gap: 6px; font: 700 .72rem/1 system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: #9aa3ad; margin: 4px 2px 6px; }
#ch-angles .rep-chip { padding: 6px 9px; min-height: 38px; min-width: 44px; font-variant-numeric: tabular-nums; }   /* thumb-sized (audit Dec 5) */
.card[hidden] { display: none; }
/* Satellite Mode (Dec 4): picture cards, colour bar, hero tint */
.sat-hero { background: linear-gradient(160deg, rgba(150,140,255,.16), rgba(150,140,255,.04)); border-color: rgba(150,140,255,.25); }
.sat-hero .sm-where { color: #c3bcff; }
/* B315: True color (NASA) is often an hour old while Infrared is minutes old. */
.sat-fresh:not([hidden]) { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; padding: 5px 8px; border-radius: 8px; background: rgba(255,216,74,.12); border-left: 3px solid #ffd84a; font-size: .78rem; color: #f2e6b8; }
.sat-fresh .text-btn { padding: 2px 6px; font-size: .78rem; }
.sat-ic { color: #b9b0ff; }
.sat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45rem; }
.sat-card { appearance: none; display: flex; flex-direction: column; padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: #1c2128; color: #dfe6ee; border-radius: 12px; text-align: left; cursor: pointer; }
.sat-pic { display: block; aspect-ratio: 16 / 10; background: #0d1116; overflow: hidden; }
.sat-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sat-txt { display: block; padding: 0.35rem 0.45rem 0.45rem; }
.sat-txt b { display: block; font-size: .84rem; }
.sat-txt small { display: block; color: #9aa3ad; font-size: .64rem; line-height: 1.2; margin-top: 2px; }
.sat-card.on { border-color: #b0a6ff; box-shadow: 0 0 0 1px #b0a6ff inset; background: rgba(150,140,255,.14); }




.sat-pic { aspect-ratio: 16 / 9; }
@media (max-width: 330px) { .sat-cards { grid-template-columns: repeat(2, 1fr); } }

/* Satellite Mode clean-up (Dec 4 bug round, owner) */
.sat-cards { grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.sat-pic { aspect-ratio: 16 / 8; }
.sat-txt { padding: 0.28rem 0.4rem 0.32rem; }
.sat-txt b { font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sat-card.dark .sat-pic { filter: grayscale(1) brightness(.45); }
.sat-card.dark .sat-txt b::after { content: " · day only"; font-weight: 500; color: #8c96a1; font-size: .68rem; }
.sat-range { font-weight: 500; color: #9fb4c8; font-size: .74rem; }
#sat-legend.flash { animation: satFlash 1.2s ease; border-radius: 12px; }
@keyframes satFlash { 0%, 60% { box-shadow: 0 0 0 2px #7cc8ff; } 100% { box-shadow: 0 0 0 0 transparent; } }


body.sat-mode-on .stage .status-bar { display: none !important; }
.dbz-bar.sat-top { pointer-events: auto; cursor: pointer; }
.dbz-bar.sat-top .dbz-ticks span { white-space: nowrap; color: #fff; text-shadow: 0 0 3px #000, 0 0 2px #000, 0 1px 1px #000;
  background: rgba(10, 14, 20, 0.78); padding: 1px 5px; border-radius: 4px; }   /* readable on white and yellow colours too (Dec 5) */
.dbz-bar.sat-top .dbz-ticks span.tk-lt { color: #10161d; text-shadow: none; background: rgba(255, 255, 255, 0.86); }   /* dark text on light colours (B186) */
#prod-pick[hidden] { display: none !important; }
body.sat-mode-on .mode-tabs .sheet-toggle { margin-left: auto; }

/* Map unavailable (no WebGL 2 / library failed to load; audit Dec 5, B93). */
.map-none { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 24px 64px; text-align: center; background: var(--bg, #0d1117); color: var(--text, #e6edf3); z-index: 1; }
.map-none b { font-size: 1.1rem; }
.map-none span { max-width: 34ch; opacity: .85; line-height: 1.4; }

/* Storm reports are tags on the map, never circles (round = live warning; owner Dec 4). */
.ik-dot.ik-tag { border-radius: 3px; }

/* Dec 5: outlook view picker (top-bar Outlooks menu) and the outlook legend. */
.tb-menu .ol-pick { display: flex; flex-direction: column; gap: 5px; padding: 2px 7px 8px 69px; }
.tb-menu .ol-seg { display: flex; flex-wrap: wrap; gap: 4px; }
.tb-menu .ol-seg button { width: auto; flex: 0 0 auto; padding: 4px 9px; border-radius: 999px; font-size: 0.74rem; font-weight: 700;
  background: rgba(255, 255, 255, 0.08); color: #c9d1dc; gap: 0; }
.tb-menu .ol-seg button.on { background: var(--st-accent, #7cc8ff); color: #0b1220; }
.tb-menu .ol-seg button[hidden] { display: none; }
#spc-haz { margin-top: 6px; }
#spc-haz [hidden] { display: none; }
.ol-legend { position: absolute; left: 10px; top: calc(var(--top-h, 0px) + var(--safe-top, 0px) + 104px); z-index: 9; min-width: 150px; max-width: 230px;
  padding: 6px 8px 7px; border-radius: 12px; font-size: 0.74rem; color: #e6edf5; pointer-events: auto; }
.ol-legend[hidden] { display: none; }
.olg-head { display: flex; align-items: center; gap: 4px; }
.olg-fold { appearance: none; flex: 1; display: flex; align-items: center; gap: 4px; padding: 2px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.olg-fold b { font-size: 0.78rem; }
.olg-fold svg { width: 14px; height: 14px; flex: none; transition: transform 0.15s; }
.ol-legend.folded .olg-fold svg { transform: rotate(-90deg); }
.ol-legend.folded .olg-rows { display: none; }
.olg-rows { margin-top: 4px; display: flex; flex-direction: column; gap: 3px; }
.olg-row { display: flex; align-items: center; gap: 7px; cursor: pointer; line-height: 1.25; }
.olg-sw { flex: none; width: 16px; height: 11px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.olg-sw.hatch { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0 1.4px, transparent 1.4px 6px), rgba(0, 0, 0, 0.35); }
.olg-sw.hatch.h2 { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0 1.4px, transparent 1.4px 4px), rgba(0, 0, 0, 0.35); }
.olg-sw.hatch.h3 { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0 1.3px, transparent 1.3px 4px),
  repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.9) 0 1.3px, transparent 1.3px 4px), rgba(0, 0, 0, 0.35); }
.olg-sub, .olg-none { margin: 0; color: #9ba1ac; font-size: 0.7rem; }
body.desk .ol-legend { top: auto; bottom: 18px; left: 14px; }
body:not(.desk) .ol-legend { max-width: 190px; min-width: 0; padding: 5px 7px 6px; font-size: 0.68rem; }
body:not(.desk) .olg-fold b { font-size: 0.72rem; }

/* ---- Outlook Mode (Dec 5): map card with one picker, its days and the full colour key. ---- */
.olm-bar { position: absolute; left: 50%; transform: translateX(-50%); top: calc(var(--safe-top, 0px) + 8px); z-index: 20;
  width: min(460px, calc(100% - 20px)); padding: 7px 9px 8px; border-radius: 14px; color: #e6edf5; pointer-events: auto; }
.olm-bar[hidden] { display: none; }
.olm-row { display: flex; align-items: center; gap: 6px; }
.olm-pick { appearance: none; flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.07); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.olm-pick b { flex: 1; min-width: 0; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.olm-kick { color: #9ba1ac; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; }
.olm-pick i { flex: none; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.15s; }
.olm-pick[aria-expanded="true"] i { transform: rotate(-135deg) translate(-2px, -2px); }
/* B333: compact rows (name left, days right) so the whole list fits; it scrolls inside if not. */
.olm-list { margin-top: 6px; max-height: min(calc(100dvh - var(--safe-top, 0px) - 140px), 560px); overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 1px; }
.olm-list[hidden] { display: none; }
.olm-grp { color: #9ba1ac; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 4px 4px 0; }
.olm-opt { appearance: none; flex: none; display: flex; align-items: center; gap: 8px; padding: 5px 10px; min-height: 32px; border: 0; border-radius: 9px; background: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer; }
.olm-opt span { flex: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 0.86rem; font-weight: 600; }
.olm-opt small { color: #9ba1ac; font-weight: 400; font-size: 0.7rem; white-space: nowrap; }
.olm-opt i { flex: none; width: 8px; }
.olm-opt:focus-visible { outline: 2px solid #4aa3ff; outline-offset: -2px; }
.olm-opt:hover, .olm-opt:focus-visible { background: rgba(255, 255, 255, 0.08); }
.olm-opt.on { background: rgba(74, 163, 255, 0.18); }
.olm-opt.on i { width: 8px; height: 8px; border-radius: 50%; background: #4aa3ff; }
.olm-days { display: flex; gap: 5px; margin-top: 6px; overflow-x: auto; }
.olm-days[hidden] { display: none; }
.olm-day { appearance: none; flex: 1; min-width: max-content; padding: 5px 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.16);
  background: none; color: #c9d2dc; font: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer; }
.olm-day.on { background: #e6edf5; border-color: #e6edf5; color: #10161d; }
.olm-key { display: flex; flex-wrap: wrap; gap: 3px 9px; margin-top: 7px; font-size: 0.68rem; }
.olm-k { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.olm-k i { width: 14px; height: 9px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.olm-k i.hatch { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0 1.3px, transparent 1.3px 4px), rgba(0, 0, 0, 0.35); }
.olm-k b { font-weight: 600; }
.olm-k.dim { opacity: 0.38; }
.olm-title { font-size: 0.78rem; color: #c9d2dc; font-weight: 700; margin-top: 4px; }
.olm-where { font-size: 0.72rem; color: #9ba1ac; margin-top: 2px; }
.olm-when { font-size: 0.7rem; color: #9ba1ac; margin-top: 4px; }
.olm-sec { margin: 10px 0 4px; color: #9ba1ac; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; }
.olm-levels { display: flex; flex-direction: column; gap: 6px; }
.olm-lv { display: flex; align-items: flex-start; gap: 8px; }
.olm-lv .olg-sw { margin-top: 3px; }
.olm-lv span { display: flex; flex-direction: column; font-size: 0.82rem; }
.olm-lv small { color: #9ba1ac; font-size: 0.72rem; }
.olm-none { margin: 0; color: #9ba1ac; font-size: 0.78rem; }
.olm-btn { appearance: none; display: block; width: 100%; margin: 10px 0 2px; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07); color: #e6edf5; font: inherit; font-weight: 700; font-size: 0.85rem; cursor: pointer; }
.olm-btn:hover { background: rgba(255, 255, 255, 0.12); }
#pane-olm .set-toggle { margin-top: 10px; }
body.ol-on #prod-pick { display: none !important; }
body.ol-on #ol-legend, body.ol-on #dbz-bar { display: none !important; }
body.ol-noradar #chip, body.ol-noradar .stage .playback, body.ol-noradar .stage .status-bar { display: none !important; }
/* B334: big screens: the card sits left of the map buttons (at 1280x800 it covered locate and
   the crosshair), the panel is 400 px + 2rem on the right, the buttons 44 px + a gap. */
body.desk .olm-bar { top: calc(var(--top-h, 0px) + 10px); left: auto; right: calc(400px + 2rem + 58px); transform: none;
  width: min(460px, calc(100% - 400px - 2rem - 58px - 80px)); }
/* Phones: the outlook page uses under half the screen so the outlook on the map stays in view. */
@media (max-width: 959px) {
  body.shell.ol-on .page-map .stage:not(.collapsed) { max-height: 44%; }
}
/* Phones: leave the search button (top right) free. */
body:not(.desk) .olm-bar { left: 8px; transform: none; width: calc(100% - 72px); }
/* B334: phones: the alerts triangle moves under the search button (it covered "Today" and the key). */
body.ol-on:not(.desk) .page-map .alert-float { left: auto; right: 19px; top: calc(var(--safe-top, 0px) + 1.6rem + 50px); }
body.ol-on:not(.desk) .page-map:has(#btn-alerts:not([hidden])) .fabs { top: calc(var(--safe-top, 0px) + 1.6rem + 98px); }
/* Forecast map (Dec 5, 16r-forecast-maps.js): NWS temperature, highs and lows with town numbers. */
.fc-ic { color: #ffb45a; display: inline-flex; }
.fc-hero { background: linear-gradient(160deg, rgba(255,180,90,.15), rgba(124,200,255,.05)); border-color: rgba(255,180,90,.24); }
.fc-prods { grid-template-columns: repeat(3, 1fr); margin-top: 0.7rem; }
.fc-pane .sm-prod.on { border-color: #ffb45a; background: rgba(255,180,90,.15); box-shadow: 0 0 0 1px #ffb45a inset; }
.fc-step { display: flex; align-items: center; gap: 0.45rem; margin-top: 0.75rem; }
.fc-btn { appearance: none; flex: 0 0 auto; width: 40px; height: 36px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: #1c2128; color: #eef3f8; font-size: 1.2rem; font-weight: 800; line-height: 1; }
.fc-btn.fc-play { font-size: .9rem; }
.fc-when { flex: 1; text-align: center; font-size: 1rem; font-weight: 800; }
.fc-slider { width: 100%; margin: 0.5rem 0 0.2rem; accent-color: #ffb45a; }
.fc-bar { margin-top: 0.4rem; }
.fc-bar-grad { height: 10px; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset; }
.fc-bar-ticks { position: relative; height: 15px; margin-top: 2px; color: #aab3bd; font-size: .66rem; }
.fc-bar-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.mode-tab-fc.on { color: #fff; }
.mode-tab-fc.on::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #ffb45a; }
.pm-pic.pm-fcpic { background: linear-gradient(135deg, rgb(62,168,240) 0%, rgb(76,186,118) 30%, rgb(236,224,92) 55%, rgb(242,132,52) 78%, rgb(222,72,50) 100%); }
.pm-pic.pm-fcwarm { background: linear-gradient(135deg, rgb(150,208,88) 0%, rgb(236,224,92) 30%, rgb(250,186,72) 55%, rgb(242,132,52) 80%, rgb(222,72,50) 100%); }
.pm-pic.pm-fccold { background: linear-gradient(135deg, rgb(138,88,214) 0%, rgb(42,108,228) 30%, rgb(62,168,240) 55%, rgb(122,222,238) 75%, rgb(84,196,168) 100%); }
body.fc-on #dbz-bar, body.fc-on #chip, body.fc-on .snow-chip { display: none !important; }
body.fc-on .stage .playback, body.fc-on .stage .status-bar { display: none !important; }
body.fc-on .stm { display: none; }
@media (max-width: 959px) {
  body.fc-on .stage:not(.collapsed) { max-height: 52vh; }
  body.fc-on .stage:not(.collapsed) .mode-body { max-height: 38vh; }
}
/* Home card: a small map of the forecast around your place */
.fc-card { display: block; position: relative; width: 100%; text-align: left; padding: 0.75rem 0.85rem 0.8rem; }
.fc-card-head { display: block; padding-right: 1.4rem; }
.fc-card-head strong { display: block; font-size: 1.05rem; }
.fc-card-head span { display: block; color: var(--muted, #9aa3ad); font-size: .74rem; margin-top: 2px; }
.fc-card-map { display: block; width: 100%; height: 150px; margin-top: 0.55rem; border-radius: 12px; }
.fc-card .go { position: absolute; right: 0.8rem; top: 0.55rem; color: var(--muted, #9aa3ad); font-size: 1.4rem; }
.fc-card[hidden] { display: none; }
.set-toggle.chase-toggle[hidden] { display: none !important; }
