/* ==========================================================================
   Nordic Aurora Radar — 1P Native-Craft Visual Design System
   Original Arctic observatory aesthetic: calm OLED dark hierarchy,
   frosted native chrome, tactile micro-physics, 3-column bento restraint,
   and true zero-leak scotopic deep-red night-vision mode.
   ========================================================================== */

:root {
  --bg: #08101c;
  --hdr-bg: rgba(8, 16, 28, 0.94);
  --nav-bg: rgba(12, 20, 34, 0.90);
  --surface: #111b2c;
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-recessed: rgba(6, 12, 22, 0.56);
  --border: rgba(210, 228, 255, 0.11);
  --border-strong: rgba(210, 228, 255, 0.21);
  --border-specular: rgba(210, 228, 255, 0.16);
  --text: #f5f8ff;
  --text-soft: rgba(232, 240, 255, 0.88);
  --muted: rgba(186, 204, 228, 0.75);

  --green: #58dba4;
  --good: #45bb8b;
  --green-bg: rgba(88, 219, 164, 0.12);
  --green-border: rgba(88, 219, 164, 0.36);
  --green-text: #d7f7e9;

  --amber: #efc062;
  --amber-bg: rgba(239, 192, 98, 0.12);
  --amber-border: rgba(239, 192, 98, 0.38);
  --amber-text: #f6e7c4;

  --red: #f06e7a;
  --red-bg: rgba(240, 110, 122, 0.14);
  --red-border: rgba(240, 110, 122, 0.40);
  --red-text: #fde2e5;

  --blue: #7dc2ff;
  --day-band: rgba(125, 194, 255, 0.11);
  --blue-bg: rgba(125, 194, 255, 0.12);
  --blue-border: rgba(125, 194, 255, 0.34);
  --blue-text: #d8edff;

  --purple: #8b94f6;
  --moon-fill: #f6e7bd;
  --chart-grid: rgba(210, 228, 255, 0.075);
  --chart-axis: rgba(210, 228, 255, 0.18);
  --chart-mid: rgba(210, 228, 255, 0.38);
  --bar-dim: rgba(164, 188, 218, 0.34);
  --track-bg: rgba(210, 228, 255, 0.11);
  --specular-top: rgba(210, 228, 255, 0.12);
  --svg-cloud-fill: rgba(210, 228, 255, 0.10);
  --row-highlight: rgba(88, 219, 164, 0.06);
  --ambient-glow: rgba(36, 118, 128, 0.12);
  --sheet-bg: #0c1422;
  --backdrop: rgba(4, 8, 15, 0.76);

  --toast-bg: rgba(14, 22, 36, 0.94);
  --toast-border: var(--border-strong);
  --toast-text: var(--text);

  --spring: cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-mood="prime"] { --ambient-glow: rgba(52, 188, 146, 0.16); }
body[data-mood="storm"] { --ambient-glow: rgba(208, 72, 96, 0.16); }
body[data-mood="active"] { --ambient-glow: rgba(84, 142, 216, 0.14); }
body[data-mood="quiet"] { --ambient-glow: rgba(44, 68, 104, 0.10); }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 100%; scroll-behavior: smooth; overscroll-behavior-y: contain; -webkit-text-size-adjust: 100%; }
@supports (font: -apple-system-body) {
  html { font: -apple-system-body; }
}
body {
  position: relative;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Roboto", sans-serif;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding-top: 0;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  transition: background-color 0.25s ease;
}

/* Smooth bottom edge scrim beneath floating capsule nav — guarantees zero text bleed in iOS home-indicator zone */
body::after {
  content: '';
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: calc(88px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 16, 28, 0) 0%, rgba(8, 16, 28, 0.88) 38%, var(--bg) 72%);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* 1P Scrolling Nordic Aurora Sky — glides up naturally with Hero (zero fixed-sky seam slicing behind sticky header!) */
.sky-backdrop {
  position: absolute; top: 0; left: 0; right: 0;
  height: calc(320px + env(safe-area-inset-top, 0px));
  z-index: 0;
  pointer-events: none; overflow: hidden;
  contain: strict;
}
.sky-backdrop .sky-svg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: block; pointer-events: none;
}
.sky-backdrop::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 16, 28, 0.04) 0%, rgba(8, 16, 28, 0.24) 50%, rgba(8, 16, 28, 0.90) 84%, var(--bg) 100%);
}

.wrap {
  position: relative; z-index: 1;
  max-width: 640px; margin: 0 auto; padding: 0 14px 16px;
}
.nowrap { white-space: nowrap; }

/* Disable accidental text selection on tactile UI chrome */
.hdr, .bottom-nav, .chips, .factors, .hero-tags, .cond-foot, .ring-btn, .sheet-hdr, .btn, .icon-btn, .qa-btn, .sw-toggle-btn, .tpill, .monitor-bar, .step-btn {
  -webkit-user-select: none;
  user-select: none;
}

/* ====== Unified 1P Sticky Header (Pre-mounted GPU Glass Layer — opacity-only reveal, ZERO backdrop-filter stutter) ====== */
.hdr {
  position: sticky; top: 0; z-index: 55;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: calc(50px + env(safe-area-inset-top, 0px));
  margin: 0 -14px 0;
  padding: calc(4px + env(safe-area-inset-top, 0px)) 14px 8px;
  background: transparent;
}
.hdr::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--hdr-bg);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-bottom: 0.5px solid var(--border);
  opacity: 0;
  transition: opacity 0.18s ease;
}
body.is-scrolled .hdr::before { opacity: 1; }
.hdr-loc-btn {
  background: none; border: none; padding: 2px 4px 2px 0; min-height: 44px; min-width: 0; flex: 1;
  color: var(--text); font: inherit; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
  transition: opacity 0.14s ease, transform 0.14s var(--spring);
}
.hdr-loc-btn:active { opacity: 0.72; transform: scale(0.985); }
.hdr-loc-row { display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; }
.hdr-loc-name {
  font-size: clamp(16px, 1.05rem, 22px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}
.hdr-loc-btn .chev-ico { width: 14px; height: 14px; color: var(--muted); flex-shrink: 0; transition: transform 0.18s var(--spring); }
.hdr-loc-btn.open .chev-ico { transform: rotate(180deg); }
.hdr-loc-meta {
  font-size: clamp(12px, 0.76rem, 16px); color: var(--muted); font-weight: 500; line-height: 1.22;
  font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hdr-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Sleek hairline sync progress bar along bottom edge of sticky header */
.sync-bar {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px;
  overflow: hidden; opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.sync-bar::after {
  content: ''; display: block; width: 38%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--text-soft), transparent);
  transform: translate3d(-120%, 0, 0);
}
body.is-syncing .sync-bar { opacity: 1; }
body.is-syncing .sync-bar::after { animation: syncSlide 1.15s ease-in-out infinite; }
@keyframes syncSlide { 0% { transform: translate3d(-110%, 0, 0); } 100% { transform: translate3d(360%, 0, 0); } }

/* Zero-Reflow 1P Floating Pull-to-Refresh Pill (100% GPU translate3d + opacity, ZERO height layout shift) */
.ptr-indicator {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 56px);
  left: 50%; z-index: 54; pointer-events: none;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(16, 26, 42, 0.94); border: 0.5px solid var(--border-strong);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.40);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 0.78rem; font-weight: 600; color: var(--text-soft); white-space: nowrap;
  opacity: 0; transform: translate3d(-50%, -18px, 0) scale(0.92);
  transition: transform 0.24s var(--spring), opacity 0.18s ease, color 0.16s ease, border-color 0.16s ease;
}
.ptr-indicator.pulling { transition: none; }
.ptr-indicator.ready { color: var(--green); border-color: var(--green-border); }
.ptr-icon { display: inline-block; transition: transform 0.2s var(--spring); font-size: 0.92rem; }
.ptr-indicator.ready .ptr-icon { transform: rotate(180deg); }

/* Header Controls (38px visual circle + 44px glove hit area, 10px gap, ZERO nested backdrop-filter) */
.icon-btn {
  width: 38px; height: 38px; padding: 0; border-radius: 50%;
  border: 0.5px solid var(--border); background: rgba(18, 28, 44, 0.84); color: var(--text-soft);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-family: inherit; font-size: 0.8rem; font-weight: 600;
  transition: transform 0.14s var(--spring), background 0.15s ease, color 0.15s ease;
  position: relative;
}
.icon-btn::after { content: ''; position: absolute; inset: -3px; }
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.14); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn:disabled { opacity: 0.5; cursor: wait; }
.icon-btn svg { width: 17px; height: 17px; display: block; }
.icon-btn.spinning svg, .qa-btn.spinning .qa-ico, .btn-gps-primary.spinning svg { animation: spin 0.9s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.icon-btn.alert-on { color: var(--green); background: var(--green-bg); border-color: var(--green-border); }
.icon-btn.alert-on::before {
  content: ''; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--green);
  animation: monPulse 2s ease-in-out infinite;
}
.icon-btn.red-on { color: var(--red); background: var(--red-bg); border-color: var(--red-border); }

.btn {
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text);
  font-size: 0.86rem; font-weight: 700; padding: 10px 14px; min-height: 48px; border-radius: 12px;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: inherit; transition: transform 0.14s var(--spring), border-color 0.15s ease, background 0.15s ease;
}
.btn:hover { border-color: var(--border-strong); background: rgba(255,255,255,0.07); }
.btn:active { transform: scale(0.96); }
.btn:disabled { opacity: 0.5; cursor: wait; }
.btn-ghost { background: var(--surface-2); border-color: var(--border); color: var(--text); padding: 7px 12px; min-height: 44px; font-size: 0.82rem; border-radius: 11px; }
.btn-blue { background: var(--blue-bg); border-color: var(--blue-border); color: var(--blue-text); }
.btn-hazard { background: var(--red-bg); border-color: var(--red-border); color: var(--red); }
.btn-area { background: var(--surface-2); border-color: var(--border); color: var(--text-soft); font-weight: 600; }

.btn-gps-primary {
  width: 100%; min-height: 48px;
  background: var(--green-bg); border-color: var(--green-border); color: var(--green-text);
  font-weight: 800; font-size: 0.9rem;
}
.btn-gps-primary svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--green); }
.btn-gps-primary.gps-live { box-shadow: 0 0 0 1px var(--green-border); }

/* Glove-Friendly Quick Actions Bar inside Unified Sheet */
.sheet-quick-actions {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.qa-unit { gap: 2px; color: var(--muted); }
.qa-unit .u-on { color: var(--text); font-weight: 900; }
.qa-unit .u-sep { opacity: 0.45; margin: 0 2px; font-weight: 600; }
.qa-btn {
  min-height: 48px; padding: 8px 6px; border-radius: 13px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font-family: inherit; font-size: 0.82rem; font-weight: 800; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap;
  transition: transform 0.14s var(--spring), border-color 0.15s ease, background 0.15s ease;
}
.qa-btn:hover { border-color: var(--border-strong); }
.qa-btn:active { transform: scale(0.95); }
.qa-btn:disabled { opacity: 0.5; cursor: wait; }
.qa-ico { font-size: 1rem; line-height: 1; display: inline-block; }
.qa-svg { width: 16px; height: 16px; flex-shrink: 0; }
.qa-btn-card { grid-column: 1 / -1; background: var(--green-bg); border-color: var(--green-border); color: var(--green-text); }

/* Compact Share Card & Link Strip below Overview cards */
.home-share-row {
  display: grid; grid-template-columns: 1.45fr 1fr; gap: 8px; margin: 2px 0 6px;
}
.home-share-btn {
  min-height: 44px; padding: 8px 12px; border-radius: 13px;
  border: 1px solid var(--border); background: var(--surface-1); color: var(--text-soft);
  font-family: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
  transition: transform 0.14s var(--spring), border-color 0.15s ease, color 0.15s ease;
}
.home-share-btn.primary {
  background: var(--green-bg); border-color: var(--green-border); color: var(--green-text); font-weight: 800;
}
.home-share-btn:active { transform: scale(0.96); }
.home-share-btn:disabled { opacity: 0.55; cursor: wait; }

/* Multi-City Trip Watchlist inside Location Picker Sheet */
.trip-sec {
  margin: 2px 0 14px; padding: 10px 11px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.trip-head {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.trip-head .picker-lbl { margin-bottom: 0; }
.trip-head-acts { display: inline-flex; align-items: center; gap: 6px; }
.trip-mini-btn {
  min-height: 34px; padding: 4px 10px; border-radius: 9px;
  border: 1px solid var(--border-strong); background: var(--surface-1); color: var(--text);
  font-family: inherit; font-size: 0.74rem; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: transform 0.12s var(--spring), border-color 0.15s ease;
}
.trip-mini-btn.on { background: var(--green-bg); border-color: var(--green-border); color: var(--green-text); }
.trip-mini-btn:active { transform: scale(0.94); }
.trip-mini-btn:disabled { opacity: 0.5; cursor: wait; }
.trip-list { display: flex; flex-direction: column; gap: 6px; }
.trip-empty { font-size: 0.76rem; color: var(--muted); line-height: 1.4; padding: 2px 1px; }
.trip-row {
  display: flex; align-items: center; gap: 6px;
}
.trip-item {
  flex: 1; min-width: 0; min-height: 44px; padding: 7px 10px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--surface-1); color: var(--text);
  font-family: inherit; text-align: left; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  transition: transform 0.12s var(--spring), border-color 0.15s ease;
}
.trip-item.active { border-color: var(--green-border); }
.trip-item.best { background: var(--green-bg); border-color: var(--green-border); }
.trip-item:active { transform: scale(0.98); }
.trip-name { font-size: 0.82rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip-stat { font-size: 0.74rem; font-weight: 700; color: var(--text-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.trip-item.best .trip-stat { color: var(--green-text); }
.trip-del {
  flex-shrink: 0; width: 38px; height: 44px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-1); color: var(--muted);
  font-size: 0.8rem; font-weight: 800; cursor: pointer;
}
.trip-del:active { transform: scale(0.92); }

/* Location source: universal "my location" arrow for GPS (no colour-only dot) */
.loc-arrow { width: 13px; height: 13px; flex-shrink: 0; color: var(--blue); margin-right: 1px; }
.loc-arrow[hidden] { display: none; }
#clkLbl.loc-err { color: var(--amber); font-weight: 700; }

/* ====== Single Priority Banner Slot (Strict Banner Budget = 1) ====== */
.banner-slot { display: flex; flex-direction: column; gap: 0; }
.banner-slot:empty { display: none; }

.monitor-bar {
  display: none; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 8px; padding: 8px 11px; border-radius: 12px;
  background: var(--green-bg); border: 1px solid var(--green-border); color: var(--green-text);
  font-size: 0.79rem; font-weight: 700; line-height: 1.35;
}
.monitor-bar.on { display: flex; }
.monitor-bar.triggered {
  background: var(--amber-bg); border-color: var(--amber-border); color: var(--amber-text);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.monitor-main { display: flex; align-items: center; gap: 7px; min-width: 0; flex: 1; }
.monitor-pulse {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: monPulse 2s ease-in-out infinite;
}
.monitor-bar.triggered .monitor-pulse { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
@keyframes monPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.85); } }
.monitor-act {
  flex-shrink: 0; border: 1px solid var(--border-strong); background: var(--surface-2); color: inherit;
  border-radius: 9px; padding: 5px 11px; min-height: 34px; font-family: inherit;
  font-size: 0.76rem; font-weight: 800; cursor: pointer; white-space: nowrap;
  transition: transform 0.12s var(--spring);
}
.monitor-act:active { transform: scale(0.94); }

.line-tip, .offline-tip, .gps-tip {
  display: none; align-items: center; justify-content: space-between; gap: 8px;
  border-radius: 12px; padding: 8px 11px; margin-bottom: 8px; font-size: 0.79rem; line-height: 1.38;
}
.line-tip, .gps-tip { background: var(--blue-bg); border: 1px solid var(--blue-border); color: var(--blue-text); }
.offline-tip { background: var(--red-bg); border: 1px solid var(--red-border); color: var(--red-text); font-weight: 700; }
.tip-actions { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.tip-close, .tip-action {
  flex-shrink: 0; border: 1px solid var(--border-strong); background: var(--surface-2); color: inherit;
  border-radius: 9px; cursor: pointer; font-family: inherit; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.12s var(--spring);
}
.tip-close { width: 34px; height: 34px; font-size: 0.78rem; padding: 0; }
.tip-action { min-height: 34px; padding: 4px 12px; font-size: 0.76rem; white-space: nowrap; }
.tip-close:active, .tip-action:active { transform: scale(0.92); }

/* Picker Chips & Search inside Native Bottom Sheet */
.picker-grp { margin-bottom: 12px; }
.picker-grp:last-child { margin-bottom: 0; }
.picker-lbl { font-size: 0.72rem; font-weight: 800; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 7px; text-transform: uppercase; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 4px; }
.chip {
  padding: 9px 13px; min-height: 44px; border-radius: 11px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--muted); font-size: 0.83rem; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: transform 0.13s var(--spring), background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.chip:active { transform: scale(0.95); }
.chip.on { background: var(--blue-bg); border-color: var(--blue-border); color: var(--text); }
.search-row { display: flex; gap: 7px; margin-bottom: 2px; }
.search-row input {
  flex: 1; min-width: 0; padding: 10px 12px; min-height: 48px; border-radius: 12px;
  border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); font-size: 1rem; font-family: inherit;
}
.search-row input::placeholder { color: var(--muted); opacity: 0.85; }

/* ====== Official NOAA G3-G5 / CME Storm Ribbon ====== */
.storm-banner {
  display: none; text-decoration: none; margin-bottom: 10px; padding: 9px 12px;
  border-radius: 14px; border: 0.5px solid var(--amber-border);
  background: var(--amber-bg); color: var(--amber-text);
  font-size: 0.81rem; font-weight: 600; line-height: 1.38;
  align-items: center; justify-content: space-between; gap: 8px;
  transition: transform 0.14s var(--spring);
}
.storm-banner:active { transform: scale(0.985); }
.storm-banner.severe { border-color: var(--red-border); background: var(--red-bg); color: var(--red-text); }
.storm-pill {
  flex-shrink: 0; display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 6px;
  font-size: 0.7rem; font-weight: 700; white-space: nowrap;
  background: var(--amber-bg); border: 0.5px solid var(--amber-border); color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.storm-banner.severe .storm-pill { background: var(--red-bg); border-color: var(--red-border); color: var(--red); }
.storm-txt { flex: 1; min-width: 0; }
.storm-arr { flex-shrink: 0; opacity: 0.75; }

/* ====== Direction B: Nordic Atmospheric 1P Hero + Crisp Slate Summary ====== */
.sky-hero {
  border-radius: 0; overflow: visible;
  border: none; background: transparent;
  margin-bottom: 12px; box-shadow: none;
}
.sky-stage {
  position: relative; width: 100%; min-height: 0;
  padding: 6px 8px 14px; background: transparent;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-score-btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 2px 16px 2px; margin-bottom: 0; border-radius: 20px;
}
.ring-sub {
  font-size: 0.74rem; color: var(--muted); font-weight: 500;
  letter-spacing: 0.10em; line-height: 1.2; margin-bottom: 2px;
}
.ring-num {
  font-size: min(4.35rem, 20vw); font-weight: 300; line-height: 0.94; letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums; color: var(--text);
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.34);
}
.ring-grade {
  font-size: 1.08rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em;
  white-space: nowrap; margin-top: 2px;
}
.sky-text { width: 100%; display: flex; flex-direction: column; align-items: center; }
.sky-title {
  margin: 3px 0 0; font-size: 0.92rem; font-weight: 500; line-height: 1.38;
  letter-spacing: -0.01em; color: var(--text-soft); text-wrap: balance;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.42);
}
.sky-lead {
  margin: 3px 0 0; font-size: 0.82rem; font-weight: 400; line-height: 1.42;
  color: var(--muted); max-width: 34ch; text-wrap: balance;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.42);
}

/* Pure GPU Compositor Atmospheric Breathing (zero SVG blur filters, mood-linked cadence, auto-paused off-screen/red-mode/Wake-Lock) */
@keyframes auroraWave {
  0%, 100% { transform: translate3d(-6px, 0, 0) scaleY(1); opacity: 0.78; }
  50% { transform: translate3d(12px, -3px, 0) scaleY(1.06); opacity: 1; }
}
@keyframes auroraDrift {
  0%, 100% { transform: translate3d(6px, 2px, 0) scale(1); opacity: 0.50; }
  50% { transform: translate3d(-14px, -4px, 0) scale(1.04); opacity: 0.86; }
}
@keyframes cloudDrift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(10px, 0, 0); }
}
@keyframes starTwinkle {
  0%, 100% { opacity: 0.78; }
  50% { opacity: 0.28; }
}
@keyframes starTwinkle2 {
  0%, 100% { opacity: 0.34; }
  50% { opacity: 0.86; }
}
body { --aur-dur: 18s; --aur-dur2: 26s; }
body[data-mood="prime"] { --aur-dur: 14s; --aur-dur2: 21s; }
.aur-anim { animation: auroraWave var(--aur-dur) ease-in-out infinite; transform-origin: center; }
.aur-anim-2 { animation: auroraDrift var(--aur-dur2) ease-in-out infinite; transform-origin: center; }
.cld-anim { animation: cloudDrift 28s ease-in-out infinite; transform-origin: center; }
.star-tw { animation: starTwinkle 7.5s ease-in-out infinite; }
.star-tw-2 { animation: starTwinkle2 11.5s ease-in-out infinite; }
.sc-bar { transition: fill-opacity 0.16s ease; }
body.anim-paused .aur-anim,
body.anim-paused .aur-anim-2,
body.anim-paused .cld-anim,
body.anim-paused .star-tw,
body.anim-paused .star-tw-2,
body.red-mode .aur-anim,
body.red-mode .aur-anim-2,
body.red-mode .cld-anim,
body.red-mode .star-tw,
body.red-mode .star-tw-2 { animation-play-state: paused; }

/* Zero-CLS Initial Shimmer Skeleton */
@keyframes skelShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
body.is-loading .skel-txt,
body.is-loading .skel-val,
body.is-loading .skel-sub,
body.is-loading .skel-bar,
body.is-loading .skel-day .od-score,
body.is-loading .skel-day .od-badge,
body.is-loading .skel-day .od-stat {
  color: transparent !important;
  text-shadow: none !important;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.10) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: skelShimmer 1.4s ease-in-out infinite;
}

.sky-body {
  background: rgba(16, 26, 42, 0.90);
  border: 0.5px solid var(--border);
  box-shadow: 0 2px 10px rgba(3, 8, 16, 0.22), inset 0 0.5px 0 var(--specular-top);
  border-radius: 18px;
  padding: 12px 14px 10px;
}

/* Unified 3-column metrics: plain language, zero shouting progress bars */
.factors {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  background: transparent; border-radius: 0; padding: 0;
}
.f-box {
  background: transparent; border: none; border-right: 0.5px solid var(--border);
  border-radius: 0; padding: 1px 8px; min-width: 0; overflow: hidden;
}
.f-box:first-child { padding-left: 1px; }
.f-box:last-child { border-right: none; padding-right: 1px; }
.f-lbl-row { display: inline-flex; align-items: center; gap: 4px; min-width: 0; margin-bottom: 4px; max-width: 100%; }
.f-ico {
  width: 14px; height: 14px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.f-ico:empty { display: none; }
.f-ico svg { width: 100%; height: 100%; display: block; }
.f-lbl { font-size: 0.76rem; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-val { font-size: 1.26rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.15; letter-spacing: -0.02em; color: var(--text); }
.f-unit { font-size: 0.62em; font-weight: 400; color: var(--muted); margin-left: 1.5px; }
.f-sub {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px;
  font-size: 0.74rem; color: var(--muted); line-height: 1.32;
  letter-spacing: -0.01em; margin-top: 3px;
  white-space: normal; overflow-wrap: break-word;
  font-variant-numeric: tabular-nums;
}
.sub-dot { opacity: 0.6; }

/* Hairline Condition Footnote Row (Monochrome SVG Meta + Explanation Trigger) */
.cond-foot {
  margin-top: 10px; padding-top: 8px; border-top: 0.5px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px;
}
.hero-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-width: 0; margin: 0; padding: 0; }
.meta-item {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.75rem; font-weight: 500; line-height: 1.28; color: var(--muted); white-space: normal; text-align: left;
}
.meta-item svg { width: 13px; height: 13px; flex-shrink: 0; display: block; }
.meta-btn {
  position: relative; background: transparent; border: none; padding: 0; font-family: inherit; cursor: pointer;
  transition: opacity 0.15s ease, transform 0.14s var(--spring);
}
.meta-btn > span { border-bottom: 1px dotted currentColor; padding-bottom: 0.5px; }
.meta-btn::after { content: ''; position: absolute; inset: -10px -6px; }
.meta-btn:active { transform: scale(0.96); }
.meta-item.t-amber { color: var(--amber); }
.meta-item.t-red { color: var(--red); }
.meta-item.t-muted { color: var(--muted); }
.meta-sep { width: 0.5px; height: 10px; background: var(--border-strong); flex-shrink: 0; }
.ts-noaa-note {
  margin: 8px 0 9px; font-size: 0.8rem; line-height: 1.5; color: var(--muted);
}
.ts-verif-card {
  margin: 8px 0 9px; padding: 9px 11px; border-radius: 10px;
  background: var(--surface-2); border: 0.5px solid var(--border);
  font-size: 0.77rem; line-height: 1.48; color: var(--text-soft);
}
.ts-verif-hd { font-weight: 700; color: var(--text); margin-bottom: 4px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ts-verif-date { font-weight: 500; font-size: 0.72rem; color: var(--muted); }
.ts-verif-disc { margin-top: 4px; font-size: 0.71rem; color: var(--muted); }

.tpill { padding: 5px 11px; border-radius: 99px; background: var(--surface-2); border: 0.5px solid var(--border); font-weight: 600; font-size: 0.81rem; color: var(--text-soft); }
.tpill-link { text-decoration: none; display: inline-flex; align-items: center; gap: 4px; transition: border-color 0.15s ease, color 0.15s ease, transform 0.12s var(--spring); }
.tpill-link:hover { border-color: var(--border-strong); color: var(--text); }
.tpill-link:active { transform: scale(0.96); }
.windy-ext { font-size: 0.8rem; color: var(--muted); flex-shrink: 0; min-height: 36px; padding: 5px 10px; }
.src-link { color: inherit; text-decoration: none; border-bottom: 1px dashed var(--border-strong); transition: color 0.15s ease, border-color 0.15s ease; }
.src-link:hover { color: var(--blue); border-bottom-color: var(--blue); }

/* ====== Unified Nordic Midnight Slate Cards (Direction B — Zero Scroll Backdrop-Filter Overhead) ====== */
.view { display: none; }
.view.on { display: block; animation: fadeUp 0.2s var(--spring); }
@keyframes fadeUp { from { opacity: 0; transform: translate3d(0, 6px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }

.card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  box-shadow: 0 2px 10px rgba(3, 8, 16, 0.22), inset 0 0.5px 0 var(--specular-top);
  border-radius: 18px; padding: 13px 14px; margin-bottom: 12px;
}
.card h2 {
  margin: 0 0 7px; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.card-sw h2 { flex-wrap: wrap; row-gap: 5px; }
.card-sw .h2-grp { white-space: nowrap; }
.h2-grp { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.h2-ico { width: 13px; height: 13px; opacity: 0.74; flex-shrink: 0; }
.card-sub { margin: 0 0 9px; font-size: 0.85rem; color: var(--muted); }
.h2-with-info { justify-content: space-between; }
.info-btn {
  position: relative; width: 24px; height: 24px; margin: -4px 0; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); font-family: inherit; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.info-btn::after { content: ''; position: absolute; inset: -10px; } /* 44px glove-friendly hit area */
.info-btn[aria-expanded="true"] { color: var(--text); }
.od-note { margin: 8px 0 0; padding-top: 7px; border-top: 0.5px solid var(--border); font-size: 0.75rem; line-height: 1.42; color: var(--muted); }
.od-note[hidden] { display: none; }

.wave-range {
  font-size: 0.73rem; font-weight: 500; color: var(--muted);
  padding: 0; border-radius: 0; background: transparent; border: none;
  text-transform: none; letter-spacing: 0; white-space: nowrap;
}
.wave-peak {
  display: block;
  padding: 0; margin: 0 0 6px;
  border-bottom: none;
  font-size: 0.87rem; font-weight: 400; line-height: 1.35;
  color: var(--text-soft); font-variant-numeric: tabular-nums;
}
.wave-peak strong { color: var(--text); font-weight: 600; }
.wave-peak-note { color: var(--muted); font-size: 0.80rem; font-weight: 400; }

.leg-strip {
  display: inline-block; width: 18px; height: 7px; border-radius: 3px;
  margin: 0 5px 0 10px; vertical-align: middle;
  background: linear-gradient(90deg, rgba(243,245,248,0.14), rgba(243,245,248,0.82));
  border: 0.5px solid var(--border-strong);
}

/* Calm De-Striped Status Callout (Compass Radar & Live Cams) */
.callout {
  border: 0.5px solid var(--border);
  border-radius: 13px; background: var(--surface-2);
  padding: 10px 12px; margin-bottom: 10px; font-size: 0.88rem; line-height: 1.45; color: var(--text-soft);
}
.callout.good { border-color: var(--green-border); background: var(--green-bg); color: var(--green-text); }
.callout.warn { border-color: var(--amber-border); background: var(--amber-bg); color: var(--amber-text); }

.chart-box {
  width: 100%; background: transparent; border: none;
  border-radius: 0; padding: 0; overflow: hidden;
  touch-action: pan-y;
}
.chart-svg { width: 100%; height: auto; display: block; }
#skyWaveChart, #bzChart { cursor: ew-resize; }

.scrub-bar {
  margin-top: 7px; padding-top: 8px; border-top: 0.5px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.hr-detail {
  flex: 1; min-width: 0; margin: 0; padding: 0; border: none; background: transparent;
  font-size: 0.82rem; color: var(--text-soft);
  display: block; font-variant-numeric: tabular-nums; line-height: 1.35;
}
.hr-detail strong { color: var(--text); font-weight: 600; }
.sb-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 6px; font-size: 0.85rem; }
.sb-bot { font-size: 0.75rem; color: var(--muted); margin-top: 2px; line-height: 1.34; }
.sb-tag {
  display: inline-flex; align-items: center;
  padding: 1px 6px; border-radius: 999px;
  font-size: 0.68rem; font-weight: 500; line-height: 1.3;
  color: var(--muted); background: var(--surface-2);
  border: 0.5px solid var(--border);
  white-space: nowrap;
}
.sb-tag-warn {
  color: var(--amber);
  background: rgba(245,158,11,0.11);
  border-color: rgba(245,158,11,0.28);
}
body.red-mode .sb-tag-warn {
  background: var(--surface-2);
  border-color: var(--border);
}
.steppers { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.step-btn {
  position: relative; width: 36px; height: 36px; border-radius: 10px;
  border: 0.5px solid var(--border-strong); background: var(--surface-2); color: var(--text-soft);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.12s var(--spring), background 0.14s ease, color 0.14s ease;
}
.step-btn::after { content: ''; position: absolute; inset: -4px; } /* 44px glove-friendly hit area, zero overlap with 8px gap */
.step-btn:hover:not(:disabled) { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.step-btn:active:not(:disabled) { transform: scale(0.92); }
.step-btn:disabled { opacity: 0.32; cursor: default; }
.step-btn svg { width: 14px; height: 14px; display: block; }
.bz-html-head {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px;
  margin: 9px 0 2px; font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums;
}
.bz-html-head strong { color: var(--text); font-weight: 600; }
.hr-legend { margin-top: 7px; font-size: 0.75rem; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px; align-items: center; }
.leg-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }

/* ====== Apple Weather 10-Day Style Compact 3-Night Horizontal Rows ====== */
.outlook-grid {
  display: flex; flex-direction: column; gap: 0;
  background: transparent; border-radius: 0; padding: 0;
}
.outlook-row {
  padding: 8px 2px;
  border-top: 0.5px solid var(--border);
  min-width: 0;
}
.outlook-row:first-child { border-top: none; padding-top: 2px; }
.outlook-row:last-child { padding-bottom: 2px; }
.outlook-row.od-best {
  margin: 0 -4px; padding: 8px 4px 8px 11px;
  border-radius: 8px; border-top-color: transparent;
  background: var(--row-highlight);
  box-shadow: inset 2px 0 0 var(--green);
}
.outlook-row.od-best + .outlook-row { border-top-color: transparent; }

.od-row-top {
  display: grid; grid-template-columns: 62px 20px 1fr 32px;
  align-items: center; gap: 10px; min-width: 0;
}
.od-head { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; line-height: 1.15; }
.od-day { font-size: 0.9rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.od-date { font-size: 0.73rem; font-weight: 500; color: var(--muted); white-space: nowrap; margin-top: 1px; font-variant-numeric: tabular-nums; }
.od-ico {
  width: 20px; height: 20px; margin: 0;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.od-ico svg { width: 100%; height: 100%; display: block; }
.od-bar {
  width: 100%; height: 5px; border-radius: 99px;
  background: var(--track-bg); overflow: hidden; margin: 0;
}
.od-bar-fill { height: 100%; border-radius: 99px; transition: width 0.5s var(--spring); }
.od-score {
  font-size: 1.18rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right;
}
.od-score.od-na { color: var(--muted); opacity: 0.55; }

.od-row-sub {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 2px 8px; margin-top: 3px;
  font-size: 0.75rem; line-height: 1.32; font-variant-numeric: tabular-nums;
}
.od-sub-l { display: inline-flex; align-items: baseline; gap: 4px; min-width: 0; }
.od-best-tag { color: var(--green); font-weight: 600; white-space: nowrap; }
.od-badge { font-weight: 600; white-space: nowrap; }
.od-stat { color: var(--muted); }
.od-g {
  display: inline-block; font-size: 0.7rem; font-weight: 600; line-height: 1; padding: 1.5px 4.5px; margin-left: 3px;
  border-radius: 4px; color: var(--amber); background: transparent; border: 0.5px solid var(--amber-border); vertical-align: 0.5px;
}

/* ====== Flat Frameless Aurora Early-Warning Card (Zero Nested Boxes) ====== */
.sw-summary {
  margin: 0 0 9px; padding: 0; border: none; background: transparent;
  font-size: 0.87rem; line-height: 1.42; color: var(--text-soft);
}
.sw-summary.sw-sum-good { color: var(--text); }
.sw-summary.sw-sum-warn { color: var(--amber-text); }

.sw-meter {
  margin: 0 0 2px; padding: 0;
  border: none; border-radius: 0; background: transparent;
}
.sw-meter-track {
  position: relative; height: 6px; border-radius: 99px;
  background: var(--track-bg); margin-bottom: 5px;
}
.sw-meter-grad {
  position: absolute; inset: 0; border-radius: 99px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(242, 194, 96, 0.16) 44%, rgba(88, 219, 164, 0.28) 100%);
}
.sw-meter-fill {
  position: absolute; top: 0; bottom: 0; left: 0; border-radius: 99px; opacity: 0.84;
  transition: width 0.45s var(--spring);
}
.sw-meter-dot {
  position: absolute; top: 50%; width: 11px; height: 11px; border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid var(--bg);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.55);
  transition: left 0.45s var(--spring);
}
.sw-meter-axis {
  display: grid; grid-template-columns: 25fr 37fr 38fr; align-items: center; gap: 4px;
  font-size: 0.74rem; color: var(--muted); font-variant-numeric: tabular-nums;
}
.sw-meter-axis > :nth-child(2) { text-align: center; }
.sw-meter-axis > :nth-child(3) { text-align: right; }
.sw-meter-axis .sw-axis-on { color: var(--text-soft); font-weight: 600; }

/* Native iOS Full-Bleed Inset Hairline Disclosure Footer */
.sw-toggle-btn {
  width: calc(100% + 28px); margin: 9px -14px -13px;
  min-height: 44px; padding: 10px 14px;
  border: none; border-top: 0.5px solid var(--border); border-radius: 0 0 18px 18px;
  background: transparent; color: var(--muted);
  font-family: inherit; font-size: 0.79rem; font-weight: 500; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-variant-numeric: tabular-nums;
  transition: background 0.14s ease, color 0.14s ease;
}
.sw-toggle-btn:hover { color: var(--text-soft); }
.sw-toggle-btn:active { background: var(--surface-2); }
.sw-chev { transition: transform 0.22s var(--spring); flex-shrink: 0; display: block; }
.card-sw.sw-expanded .sw-chev { transform: rotate(180deg); }
.card-sw.sw-expanded .sw-toggle-btn { border-radius: 0; margin-bottom: 0; }
.sw-curve-panel { display: none; }
.card-sw.sw-expanded .sw-curve-panel { display: block; animation: fadeUp 0.2s var(--spring); }

/* ====== Sky Radar, Live Map & Daylight Anti-Glare ====== */
.radar-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.radar-svg { width: 100%; max-width: 300px; height: auto; display: block; }
.radar-sector { transition: opacity 0.15s ease; }
.radar-sector:hover { opacity: 0.85; }
.radar-leg { font-size: 0.78rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.sw-badge {
  font-size: 0.75rem; font-weight: 500; text-transform: none; letter-spacing: 0;
  padding: 0; border-radius: 0; flex-shrink: 0; white-space: nowrap;
  background: transparent; border: none; color: var(--muted); font-variant-numeric: tabular-nums;
}
.sw-badge:empty { display: none; }
.sw-badge.sw-good { color: var(--green); }
.sw-badge.sw-warn { color: var(--amber); }

.sat-img-wrap {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 0.5px solid var(--border); background: #030811;
}
.sat-cam-frame { min-height: 220px; }
.sat-img { width: 100%; display: block; height: auto; transition: filter 0.25s ease; }
.sat-cam-frame.daylight .sat-img { filter: brightness(0.45) contrast(0.95); }
.cam-bright-pill {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  padding: 5px 10px; min-height: 32px; border-radius: 99px;
  background: rgba(8, 14, 24, 0.88); border: 0.5px solid var(--border-strong); color: var(--text);
  font-family: inherit; font-size: 0.74rem; font-weight: 650; cursor: pointer;
}
.sat-cap { padding: 8px 10px; font-size: 0.79rem; color: var(--muted); background: rgba(6, 11, 20, 0.88); }

.dir {
  background: var(--surface-2); border: 0.5px solid var(--border); border-radius: 14px;
  padding: 11px 12px; margin-bottom: 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: nowrap;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.dir-main { min-width: 0; flex: 1; }
.dir-title { font-weight: 600; font-size: 0.9rem; color: var(--text); line-height: 1.3; }
.dir-best-tag { font-size: 0.73rem; font-weight: 600; color: var(--green); margin-left: 4px; white-space: nowrap; }
.dir-dist { font-weight: 500; font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.dir-stat { font-size: 0.76rem; color: var(--muted); margin-top: 2px; line-height: 1.35; font-variant-numeric: tabular-nums; }
.dir-ref { font-size: 0.76rem; font-weight: 600; flex-shrink: 0; white-space: nowrap; }
.dir .btn { flex-shrink: 0; white-space: nowrap; padding: 8px 14px; font-size: 0.82rem; min-height: 46px; border-radius: 10px; }
.dir.best { border-color: var(--green-border); background: var(--green-bg); }
.dir.hazard { border-color: var(--red-border); background: var(--red-bg); }
.dir.sea { opacity: 0.78; border-style: dashed; }
.dir.ref-only { opacity: 0.86; }
.dir-ref-hd { font-size: 0.76rem; color: var(--muted); font-weight: 500; margin: 2px 2px 2px; }
@keyframes dirPulse {
  0% { box-shadow: 0 0 0 0 rgba(88, 219, 164, 0.55); border-color: var(--green); }
  70% { box-shadow: 0 0 0 6px rgba(88, 219, 164, 0); border-color: var(--green); }
  100% { box-shadow: 0 0 0 0 rgba(88, 219, 164, 0); }
}
.dir.dir-pulse { animation: dirPulse 0.95s ease-out; }
.dir-hazards { margin-top: 3px; font-size: 0.75rem; color: var(--red); font-weight: 700; line-height: 1.35; }
.dir-note { display: block; margin-top: 3px; font-size: 0.74rem; color: var(--amber); font-weight: 600; line-height: 1.35; }
.dir-tip { display: block; margin-top: 3px; font-size: 0.74rem; color: var(--blue); font-weight: 600; line-height: 1.35; }
.c-green { color: var(--green); } .c-amber { color: var(--amber); } .c-red { color: var(--red); }
.c-muted { color: var(--muted); } .c-blue { color: var(--blue); }

/* ====== Floating Liquid-Glass Bottom Pill Navigation (Direction B) ====== */
.bottom-nav {
  position: fixed; left: 50%; right: auto;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  transform: translate3d(-50%, 0, 0);
  width: min(356px, calc(100vw - 24px));
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 0.5px solid var(--border-specular);
  border-radius: 999px;
  padding: 4px 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.44);
}
.bottom-inner { max-width: 100%; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.nav-btn {
  background: transparent; border: none; color: var(--muted);
  padding: 5px 4px 7px; min-height: 46px; border-radius: 999px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-family: inherit; font-weight: 600; font-size: clamp(12px, 0.74rem, 16px); line-height: 1.15;
  white-space: nowrap; position: relative;
  transition: color 0.16s ease, transform 0.14s var(--spring);
}
.nav-btn:active { transform: scale(0.93); }
.nav-btn svg { width: 18px; height: 18px; display: block; transition: transform 0.2s var(--spring); }
.nav-btn.on { color: var(--text); }
.nav-btn.on::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 2px; border-radius: 99px; background: var(--green);
}
.nav-btn.on svg { transform: scale(1.04); }

@media (min-width: 960px) {
  body { padding-bottom: 98px; }
  .bottom-nav { width: 380px; bottom: 14px; }
}

.hero-cta {
  margin-top: 12px; width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px;
  border: 0.5px solid var(--green-border); background: rgba(16, 44, 38, 0.88);
  color: var(--text); font-family: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left;
  transition: transform 0.14s var(--spring);
}
.hero-cta:active { transform: scale(0.98); }
.cta-txt { display: flex; flex-direction: column; min-width: 0; }
.cta-sub { font-size: 0.76rem; font-weight: 400; color: var(--green); margin-top: 1px; }
.fc-conf-btn {
  position: relative;
  background: transparent; border: none; color: var(--muted);
  border-radius: 8px; padding: 2px 2px; min-height: 26px; font-family: inherit; font-size: 0.78rem; font-weight: 500; cursor: pointer;
  display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0; white-space: nowrap;
  transition: transform 0.14s var(--spring), color 0.15s ease;
}
.fc-conf-btn::after { content: ''; position: absolute; inset: -9px -8px; } /* 44px glove-friendly hit area */
.fc-conf-btn:hover { color: var(--text); }
.fc-conf-btn:active { transform: scale(0.95); }
.fc-conf-btn.warn {
  background: transparent; border: none; color: var(--amber); font-weight: 600;
}
.road-links {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
}
.road-links .tpill { min-height: 36px; padding: 6px 11px; font-size: 0.8rem; }
.road-lbl { font-size: 0.76rem; color: var(--muted); font-weight: 700; }
.ts-src-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.ts-pwa-tip { margin: 8px 0 0; font-size: 0.75rem; color: var(--muted); line-height: 1.5; }
.ts-legal-foot { margin: 6px 0 0; font-size: 0.74rem; color: var(--muted); line-height: 1.5; }

/* ====== 1P Top-Center Floating Dynamic Notification Pill ====== */
.toast {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 60px);
  left: 50%;
  transform: translate3d(-50%, -140%, 0);
  opacity: 0; pointer-events: none;
  width: max-content; max-width: min(440px, calc(100vw - 24px));
  background: var(--toast-bg); color: var(--toast-text);
  border: 1px solid var(--toast-border);
  padding: 10px 16px; border-radius: 15px;
  font-weight: 700; font-size: 0.84rem; line-height: 1.4;
  text-align: center; text-wrap: balance;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.52);
  transition: transform 0.28s var(--spring), opacity 0.22s ease;
  z-index: 140; cursor: pointer;
}
.toast.show { transform: translate3d(-50%, 0, 0); opacity: 1; pointer-events: auto; }
.toast.t-success { border-color: var(--green-border); color: var(--green-text); }
.toast.t-warn { border-color: var(--amber-border); color: var(--amber-text); }
.toast.t-error { border-color: var(--red-border); color: var(--red-text); }
.toast.t-alert {
  border-color: var(--green-border); background: rgba(9, 38, 30, 0.96); color: var(--green-text);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--green-border);
}

/* ====== True Zero-Leak Scotopic Red-Light Night-Vision Mode (WCAG AA >= 4.7:1) ======
   Every surface, border, text, pill, toast, and SVG token collapses strictly
   into deep red wavelengths while keeping every text & status token >= 4.7:1 contrast. */
body.red-mode {
  --bg: #050000;
  --hdr-bg: rgba(5, 0, 0, 0.94);
  --nav-bg: rgba(14, 2, 2, 0.95);
  --surface: #0e0101;
  --surface-2: rgba(255, 58, 48, 0.08);
  --border: rgba(255, 68, 56, 0.24);
  --border-strong: rgba(255, 80, 68, 0.44);
  --border-specular: rgba(255, 68, 56, 0.30);
  --text: #ff5448;
  --text-soft: #f04338;
  --muted: #e03c32;

  --green: #ff5c50;
  --good: #eb483e;
  --green-bg: rgba(255, 56, 46, 0.14);
  --green-border: rgba(255, 72, 60, 0.50);
  --green-text: #ff5c50;

  --amber: #f25444;
  --amber-bg: rgba(224, 52, 42, 0.14);
  --amber-border: rgba(235, 60, 48, 0.48);
  --amber-text: #f25444;

  --red: #ff6256;
  --red-bg: rgba(196, 34, 30, 0.20);
  --red-border: rgba(255, 76, 66, 0.56);
  --red-text: #ff6256;

  --blue: #e03f36;
  --day-band: rgba(196, 38, 34, 0.16);
  --blue-bg: rgba(196, 40, 36, 0.15);
  --blue-border: rgba(224, 52, 46, 0.46);
  --blue-text: #f04338;

  --purple: #d93c36;
  --moon-fill: #f04338;
  --bar-dim: rgba(235, 62, 54, 0.34);
  --chart-grid: rgba(255, 64, 54, 0.18);
  --chart-axis: rgba(255, 68, 58, 0.32);
  --chart-mid: rgba(255, 76, 66, 0.54);
  --track-bg: rgba(255, 64, 54, 0.18);
  --specular-top: rgba(255, 72, 60, 0.20);
  --svg-cloud-fill: rgba(255, 60, 50, 0.14);
  --row-highlight: rgba(255, 60, 50, 0.12);
  --ambient-glow: rgba(90, 0, 0, 0.20);
  --sheet-bg: #0c0101;
  --backdrop: rgba(4, 0, 0, 0.86);
  --toast-bg: #1c0303;
  --toast-border: #d9382e;
  --toast-text: #ff5448;
  --surface-recessed: #080000;
  background-image: none;
}
body.red-mode::before { background: transparent; }
body.red-mode::after {
  background: linear-gradient(180deg, rgba(5, 0, 0, 0) 0%, rgba(5, 0, 0, 0.88) 36%, #050000 72%);
}
body.red-mode .sky-backdrop { background: #050000; }
body.red-mode .sky-backdrop::after {
  background: linear-gradient(180deg, rgba(5, 0, 0, 0.36) 0%, rgba(5, 0, 0, 0.78) 46%, #050000 72%);
}
body.red-mode .hdr::before { backdrop-filter: none; -webkit-backdrop-filter: none; }
body.red-mode .ptr-indicator { background: #160202; }
body.red-mode .sky-body,
body.red-mode .card {
  background: var(--surface);
  box-shadow: none;
}
body.red-mode .hero-cta { background: var(--green-bg); }
body.red-mode .icon-btn { background: rgba(255, 58, 48, 0.10); }
body.red-mode .bottom-nav { background: var(--nav-bg); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75); }
body.red-mode .nav-btn.on { color: var(--text); }
body.red-mode .dir.hazard { border-width: 1.5px; border-style: dashed; }
body.red-mode .sw-meter-grad { background: linear-gradient(90deg, rgba(255, 56, 46, 0.05) 0%, rgba(255, 64, 52, 0.20) 44%, rgba(255, 82, 70, 0.36) 100%); }
body.red-mode .toast.t-alert { background: #220303; }
body.red-mode .sky-hero { box-shadow: none; }
body.red-mode .sky-stage { background: transparent; }
body.red-mode .chart-box { background: transparent; }
body.red-mode .leg-strip { background: linear-gradient(90deg, rgba(255,84,72,0.18), rgba(255,84,72,0.85)); }
body.red-mode .sat-img-wrap { background: #060000; }
body.red-mode .sat-cap { background: rgba(6, 0, 0, 0.94); }
body.red-mode .sky-svg,
body.red-mode .sat-img,
body.red-mode #windyFrame {
  filter: sepia(100%) saturate(720%) hue-rotate(-52deg) brightness(0.55) contrast(1.08);
}
body.red-mode .sat-cam-frame.daylight .sat-img {
  filter: sepia(100%) saturate(720%) hue-rotate(-52deg) brightness(0.38) contrast(1.04);
}

/* ====== Monumental Hero Score Trigger Affordances ====== */
.ring-btn {
  padding: 2px 16px 2px; border: none; background: transparent; color: inherit; font: inherit;
  cursor: pointer; border-radius: 20px; display: inline-flex;
  transition: transform 0.16s var(--spring), background 0.16s ease;
}
.ring-btn:active { transform: scale(0.95); background: rgba(255, 255, 255, 0.06); }
.ring-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.hr-legend-top { margin-top: 0; margin-bottom: 8px; }

/* ====== Native Bottom-Sheet Modals (#picker & #trustSheet) ====== */
body.sheet-open { overflow: hidden; overscroll-behavior-y: none; }
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 120;
  background: var(--backdrop); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.sheet-backdrop.open { opacity: 1; visibility: visible; pointer-events: auto; }

.sheet-panel {
  width: 100%; max-width: 640px; max-height: min(85dvh, calc(100dvh - env(safe-area-inset-top, 0px) - 20px));
  background: var(--sheet-bg); border: 0.5px solid var(--border-strong); border-bottom: none;
  border-radius: 22px 22px 0 0; display: flex; flex-direction: column; overflow: hidden;
  transform: translate3d(0, 100%, 0);
  transition: transform 0.28s var(--spring);
  box-shadow: 0 -12px 36px var(--backdrop);
}
.sheet-backdrop.open .sheet-panel { transform: translate3d(0, 0, 0); }

.sheet-hdr {
  position: sticky; top: 0; z-index: 2; background: var(--sheet-bg);
  border-bottom: 0.5px solid var(--border); padding: 8px 16px 11px; flex-shrink: 0;
  touch-action: none;
}
.sheet-handle {
  width: 36px; height: 4px; border-radius: 99px;
  background: var(--border-strong); margin: 0 auto 9px;
}
.sheet-hdr-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet-title { margin: 0; font-size: 1rem; font-weight: 700; color: var(--text); letter-spacing: -0.015em; }
.sheet-close {
  width: 42px; height: 42px; border-radius: 11px; padding: 0;
  border: 0.5px solid var(--border); background: var(--surface-2); color: var(--muted);
  font-size: 1rem; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.14s var(--spring);
}
.sheet-close:hover { color: var(--text); border-color: var(--border-strong); }
.sheet-close:active { transform: scale(0.92); }

.sheet-body {
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 13px 15px calc(22px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 12px;
}

.ts-sec {
  background: var(--surface-2); border: none;
  border-radius: 15px; padding: 12px 13px;
}
.ts-live { box-shadow: inset 0 0.5px 0 var(--specular-top); }
.ts-h3 { margin: 0 0 8px; font-size: 0.92rem; font-weight: 700; color: var(--text); }
.ts-sec-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap;
  font-size: 0.92rem; font-weight: 700; color: var(--text); margin-bottom: 8px;
}
.ts-badge {
  font-size: 0.76rem; font-weight: 600; padding: 3px 9px; border-radius: 99px;
  border: 0.5px solid var(--border-strong); background: var(--surface-recessed); color: var(--muted);
}
.ts-badge.ok { color: var(--green); background: var(--green-bg); border-color: var(--green-border); }
.ts-badge.warn { color: var(--amber); background: var(--amber-bg); border-color: var(--amber-border); }
.ts-badge.block { color: var(--red); background: var(--red-bg); border-color: var(--red-border); }
.ts-badge.info { color: var(--blue); background: var(--blue-bg); border-color: var(--blue-border); }

.ts-eq {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center; gap: 4px; text-align: center;
  background: var(--surface-recessed); border: none; border-radius: 11px; padding: 9px 6px;
}
.ts-eq-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ts-eq-lbl { font-size: 0.73rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.ts-eq-cell strong { font-size: 1.08rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.12; white-space: nowrap; }
.ts-unit { font-size: 0.62rem; font-weight: 500; color: var(--muted); margin-left: 1px; }
.sb-unit { font-size: 0.72rem; font-weight: 500; color: var(--muted); margin-left: 1px; }
.ts-op { font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.ts-diag { margin: 9px 0 0; font-size: 0.83rem; color: var(--text); line-height: 1.5; }
.ts-storm-note {
  margin: 8px 0 10px; padding: 9px 11px; border-radius: 11px;
  background: var(--amber-bg); border: 0.5px solid var(--amber-border);
  color: var(--text); font-size: 0.8rem; line-height: 1.48;
}
.ts-storm-note-hd { font-weight: 800; color: var(--amber); margin-bottom: 4px; }
.ts-storm-note-link {
  display: inline-block; margin-top: 5px; font-size: 0.76rem; font-weight: 700;
  color: var(--amber); text-decoration: underline; text-underline-offset: 2px;
}
.ts-metar-note {
  margin-top: 8px; padding: 7px 10px; border-radius: 10px;
  background: var(--blue-bg); border: 0.5px solid var(--blue-border);
  color: var(--blue-text); font-size: 0.78rem; font-weight: 600; line-height: 1.42;
}
.ts-light-note {
  margin-top: 8px; padding: 7px 10px; border-radius: 10px;
  background: var(--surface-recessed); border: 0.5px solid var(--border);
  color: var(--muted); font-size: 0.77rem; font-weight: 500; line-height: 1.46;
}
.ts-light-note.is-urban {
  background: var(--amber-bg); border-color: var(--amber-border);
  color: var(--text); font-weight: 600;
}
.ts-conf-row {
  margin-top: 8px; padding-top: 8px; border-top: 0.5px solid var(--border);
  font-size: 0.79rem; color: var(--muted); line-height: 1.48; font-variant-numeric: tabular-nums;
}
.ts-conf-detail {
  margin-top: 5px; font-size: 0.77rem; line-height: 1.45;
  color: var(--amber); font-weight: 600;
}

.ts-tiers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: 10px; }
.ts-tier {
  display: flex; align-items: center; gap: 6px; font-size: 0.81rem; color: var(--muted);
  background: var(--surface-recessed); border: none; border-radius: 9px; padding: 7px 9px;
}
.ts-tier b { color: var(--text); font-variant-numeric: tabular-nums; }
.ts-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ts-dot.t-high { background: var(--green); box-shadow: 0 0 6px var(--green); }
.ts-dot.t-good { background: var(--good); }
.ts-dot.t-mid  { background: var(--amber); }
.ts-dot.t-low  { background: var(--muted); }

.ts-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: 9px; }
.ts-stat {
  background: var(--surface-recessed); border: none; border-radius: 10px;
  padding: 8px 9px; display: flex; flex-direction: column; gap: 3px;
}
.ts-stat strong { font-size: 0.85rem; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.ts-stat span { font-size: 0.76rem; color: var(--muted); line-height: 1.35; }

.ts-seal {
  font-size: 0.78rem; font-weight: 600; color: var(--muted);
  background: var(--surface-recessed); border: 0.5px solid var(--border); border-radius: 99px;
  padding: 5px 10px; text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
}
.ts-seal-link { color: var(--blue); border-color: var(--border-strong); }
.ts-seal-link:hover { color: var(--text); border-color: var(--blue-border); }

body.red-mode.is-loading .skel-txt,
body.red-mode.is-loading .skel-val,
body.red-mode.is-loading .skel-sub,
body.red-mode.is-loading .skel-bar,
body.red-mode.is-loading .skel-day .od-badge,
body.red-mode.is-loading .skel-day .od-stat {
  background: linear-gradient(90deg, rgba(255,40,40,0.06) 25%, rgba(255,40,40,0.16) 50%, rgba(255,40,40,0.06) 75%);
  background-size: 200% 100%;
}

/* Calm crawlable destination-guide footer below Overview cards (hidden in installed PWA) */
.seo-foot {
  margin: 12px 4px 6px; padding-top: 10px; border-top: 0.5px solid var(--border);
  text-align: center;
}
.seo-foot-lbl { font-size: 0.74rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.seo-foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 10px; }
.seo-foot-links a {
  font-size: 0.74rem; font-weight: 600; color: var(--muted); text-decoration: none;
  padding: 2px 3px;
}
.seo-foot-links a:hover { color: var(--text); }
@media (display-mode: standalone) { .seo-foot { display: none; } }

/* ====== Automatic Dynamic Type Accessibility Reflow ======
   Triggered by syncFontScaleClass() at >=21px on 390px iPhone so 14px-19px stays compact 3-col,
   and 21px+ reflows cleanly with zero orphan wrap. */
body.a11y-large .factors { grid-template-columns: 1fr; padding-bottom: 2px; }
body.a11y-large .f-box {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 10px;
  border-right: none; border-bottom: 0.5px solid var(--border);
  padding: 9px 2px;
}
body.a11y-large .f-box:first-child { padding-top: 2px; padding-left: 2px; }
body.a11y-large .f-box:last-child { border-bottom: none; padding-bottom: 2px; padding-right: 2px; }
body.a11y-large .f-lbl-row { margin-bottom: 0; }
body.a11y-large .f-ico { width: 17px; height: 17px; }
body.a11y-large .f-lbl { font-size: 0.86rem; }
body.a11y-large .f-val { font-size: 1.24rem; text-align: right; }
body.a11y-large .f-sub { grid-column: 1 / -1; font-size: 0.82rem; margin-top: 2px; white-space: normal; }

body.a11y-large .cond-foot { flex-wrap: wrap; gap: 6px 10px; }
body.a11y-large .meta-item { white-space: normal; text-align: left; }
body.a11y-large .hr-legend { font-size: 0.78rem; gap: 4px 8px; }
body.a11y-large .dir { flex-wrap: wrap; }
body.a11y-large .outlook-grid .od-row-top { grid-template-columns: minmax(4.2em, auto) 20px 1fr auto; }

body.a11y-xlarge .od-row-top { grid-template-columns: 1fr auto auto; }
body.a11y-xlarge .od-bar { grid-column: 1 / -1; grid-row: 2; height: 6px; margin: 4px 0 2px; }
body.a11y-xlarge .ring-grade { white-space: normal; }
body.a11y-xlarge .meta-item { white-space: normal; }
body.a11y-xlarge .scrub-bar { flex-wrap: wrap; }
body.a11y-xlarge .sw-meter-axis { display: flex; flex-wrap: wrap; justify-content: space-between; }
body.a11y-xlarge .ts-tiers,
body.a11y-xlarge .ts-stat-grid,
body.a11y-xlarge .sheet-quick-actions { grid-template-columns: 1fr; }
body.a11y-xlarge .ts-eq { grid-template-columns: repeat(2, 1fr); gap: 6px; }
body.a11y-xlarge .ts-op { display: none; }

@media (prefers-reduced-motion: reduce) {
  .wrap, .hdr, .sheet-backdrop, .sheet-panel, .ring-btn, .toast, .view, .icon-btn, .btn, .qa-btn, .sw-toggle-btn, .chip, .nav-btn, .step-btn, .dir, .sc-bar, .monitor-pulse, .aur-anim, .aur-anim-2, .cld-anim, .star-tw, .star-tw-2, .skel-txt, .skel-val, .skel-sub, .skel-bar {
    transition: none !important; animation: none !important;
  }
}

.ts-pro-details {
  margin-top: 10px; border-top: 0.5px solid var(--border); padding-top: 8px;
}
.ts-pro-details > summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; font-weight: 600; color: var(--text-soft); padding: 6px 0; min-height: 44px; user-select: none;
}
.ts-pro-details > summary::-webkit-details-marker { display: none; }
.ts-pro-details > summary::after { content: '▾'; font-size: 0.82rem; color: var(--muted); transition: transform 0.18s ease; }
.ts-pro-details[open] > summary::after { transform: rotate(180deg); }
.windy-offline {
  display: flex; align-items: center; justify-content: center; text-align: center;
  height: 100%; padding: 24px 18px; color: var(--muted); font-size: 0.86rem; line-height: 1.5;
  background: var(--bg);
}
.ts-pro-body { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.ts-pro-layers {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
}
.ts-pro-cell {
  background: var(--surface-recessed); border: 0.5px solid var(--border); border-radius: 10px;
  padding: 7px 8px; text-align: center;
}
.ts-pro-cell span { display: block; font-size: 0.7rem; color: var(--muted); }
.ts-pro-cell strong { display: block; font-size: 0.94rem; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.ts-pro-note { font-size: 0.74rem; color: var(--muted); line-height: 1.45; }
.ts-pro-mag-hd { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.76rem; color: var(--text-soft); margin-bottom: 4px; gap: 6px; flex-wrap: wrap; }
.ts-pro-mag-svg { width: 100%; height: auto; display: block; }
.search-results {
  display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px;
}
.search-res-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  min-height: 44px; padding: 9px 12px; border-radius: 12px; text-align: left; cursor: pointer;
  background: var(--surface-recessed); border: 0.5px solid var(--border); color: var(--text);
  font-size: 0.86rem; font-family: inherit;
}
.search-res-item:hover { border-color: var(--accent-border); }
.search-res-sub { font-size: 0.74rem; color: var(--muted); white-space: nowrap; }


