:root {
    --bg: #0a1326;
    --panel: #0e1b33;
    --panel-2: #11203a;
    --panel-3: #16273f;
    --line: rgba(150,180,230,0.10);
    --line-2: rgba(150,180,230,0.17);
    --text: #e6edf3;
    --muted: #93a6c4;
    --muted-2: #6075a0;
    --blue: #49b6ff;
    --green: #34d8a8;
    --crit: #ff4d4d;
    --major: #ff8a3d;
    --mod: #f5c043;
    --low: #49b6ff;
    --sans: "IBM Plex Sans", system-ui, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, monospace;
  }
  /* ---- Adaptive light theme: follows the device (prefers-color-scheme) ---- */
  @media (prefers-color-scheme: light) {
    :root {
      --bg: #eef2f8;
      --panel: #ffffff;
      --panel-2: #f7fafd;
      --panel-3: #e7edf6;
      --line: rgba(20,50,100,0.14);
      --line-2: rgba(20,50,100,0.24);
      --text: #10233d;
      --muted: #46587a;
      --muted-2: #6d80a2;
      --blue: #1e77c8;
      --green: #0e9b6e;
      --crit: #d92828;
      --major: #d06715;
      --mod: #a9790a;
      --low: #1e77c8;
    }
    ::-webkit-scrollbar-thumb { background: rgba(20,50,100,0.22); }
    .ven-fl-row { color: var(--text); }
    .ven-fl-row:nth-child(odd) { background: rgba(20,50,100,0.03); }
    .threat-bar-track, .tcw-stat { background: rgba(20,50,100,0.05); }
    .wx-toggle.on { border-color: var(--blue); background: rgba(30,119,200,0.12); }
  }
  * { box-sizing: border-box; }
  html, body { height: 100%; margin: 0; }
  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
  }
  #root { height: 100vh; }
  button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
  ::-webkit-scrollbar { width: 8px; height: 8px; }
  ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
  ::-webkit-scrollbar-track { background: transparent; }

  .app {
    height: 100vh;
    display: grid;
    grid-template-rows: 58px 1fr 46px;
    background:
      radial-gradient(1200px 600px at 60% -10%, rgba(73,182,255,0.06), transparent 60%),
      var(--bg);
  }

  /* ---------- Top bar ---------- */
  .topbar {
    display: flex; align-items: center; gap: 24px;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
  }
  .brand { display: flex; align-items: center; gap: 11px; }
  .brand-mark { display: flex; gap: 3px; align-items: flex-end; height: 22px; }
  .brand-mark span { width: 4px; background: var(--blue); border-radius: 1px; }
  .brand-mark span:nth-child(1) { height: 10px; opacity: .55; }
  .brand-mark span:nth-child(2) { height: 22px; }
  .brand-mark span:nth-child(3) { height: 15px; opacity: .8; }
  .brand-name { font-family: var(--mono); font-weight: 600; font-size: 17px; letter-spacing: 3px; }
  .brand-sub { font-size: 10.5px; color: var(--muted-2); letter-spacing: .5px; text-transform: uppercase; margin-top: 1px; }

  /* page navigation tabs */
  .page-nav { display: flex; gap: 4px; margin-left: 18px; padding-left: 18px; border-left: 1px solid var(--line); }
  .page-tab {
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.4px; text-decoration: none;
    color: var(--muted); padding: 6px 12px; border-radius: 6px;
    border: 1px solid var(--line); background: rgba(150,180,230,0.05);
    transition: all 0.13s; white-space: nowrap;
  }
  .page-tab:hover { color: var(--text); background: var(--panel-3); border-color: var(--blue); box-shadow: 0 0 0 1px rgba(73,182,255,0.25); }
  .page-tab.on { color: var(--text); background: var(--panel-3); border-color: var(--line-2); }
  /* first-load hint so it's obvious these switch pages */
  @keyframes pageTabHint {
    0%, 100% { border-color: var(--line); box-shadow: 0 0 0 0 rgba(73,182,255,0); }
    50% { border-color: rgba(73,182,255,0.7); box-shadow: 0 0 0 2px rgba(73,182,255,0.22); }
  }
  .page-tab:not(.on) { animation: pageTabHint 2s ease-in-out 3; }
  @media (prefers-reduced-motion: reduce) { .page-tab:not(.on) { animation: none; } }

  .status-cluster { display: flex; align-items: center; gap: 12px; }
  .sys-status {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 1px;
    color: var(--green);
    padding: 6px 12px; border-radius: 4px;
    background: rgba(52,216,168,0.08); border: 1px solid rgba(52,216,168,0.22);
  }
  .sys-status.alert { color: var(--crit); background: rgba(255,77,77,0.08); border-color: rgba(255,77,77,0.28); }
  .sys-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; animation: blink 2s infinite; }
  @keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
  .advisory-pill { font-size: 11.5px; color: var(--mod); font-family: var(--mono); letter-spacing: .3px; }

  .sync { display: flex; align-items: center; gap: 8px; padding-left: 14px; margin-left: 4px; border-left: 1px solid var(--line); }
  .sync-btn { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--panel-3); border: 1px solid var(--line); color: var(--blue); box-shadow: 0 1px 2px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05); transition: all .12s; }
  .sync-btn:hover { border-color: var(--blue); background: rgba(73,182,255,0.1); box-shadow: 0 2px 6px rgba(0,0,0,0.4), 0 0 0 1px rgba(73,182,255,0.25); }
  .sync-ico { font-size: 15px; line-height: 1; display: inline-block; }
  .sync.syncing .sync-ico { animation: spin .9s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .sync-txt { line-height: 1.25; }
  .sync-line1 { font-size: 11px; color: var(--muted); font-family: var(--mono); }
  .sync-line1 b { color: var(--text); font-weight: 600; }
  .sync-now { color: var(--green); font-weight: 600; letter-spacing: 1px; }
  .sync-line2 { font-size: 10px; color: var(--muted-2); font-family: var(--mono); }

  .toast {
    position: fixed; left: 50%; bottom: 44px; transform: translateX(-50%);
    background: rgba(14,22,32,0.97); border: 1px solid var(--line-2);
    border-left: 3px solid var(--green);
    color: var(--text); font-size: 12.5px; font-family: var(--mono);
    padding: 11px 18px; border-radius: 8px; z-index: 200;
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
    animation: toastin .3s ease;
  }
  @keyframes toastin { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

  .topbar-right { margin-left: auto; display: flex; align-items: center; gap: 20px; }
  .range-select { display: flex; gap: 2px; background: var(--panel-3); padding: 3px; border-radius: 6px; border: 1px solid var(--line); }
  .range-btn {
    font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .5px;
    color: var(--muted); padding: 5px 10px; border-radius: 4px; transition: all .12s;
  }
  .range-btn:hover { color: var(--text); }
  .range-btn.on { color: #06121d; background: var(--blue); font-weight: 600; }
  .clock { font-family: var(--mono); font-size: 14px; letter-spacing: 1px; color: var(--text); min-width: 92px; text-align: right; }
  .clock-z { color: var(--muted-2); font-size: 10px; }

  /* ---------- Body ---------- */
  .body {
    display: grid;
    grid-template-columns: 320px 1fr 360px;
    gap: 1px;
    background: var(--line);
    overflow: hidden;
  }
  .col-left, .col-right { background: var(--bg); overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
  .col-map { background: var(--bg); display: flex; flex-direction: column; padding: 12px 14px; min-width: 0; }

  /* ---------- KPIs ---------- */
  .kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .kpi {
    background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
    padding: 11px 12px; position: relative; overflow: hidden;
  }
  .kpi-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted-2); margin-bottom: 7px; }
  .kpi-value { font-family: var(--mono); font-size: 24px; font-weight: 600; line-height: 1; display: flex; align-items: baseline; }
  .kpi-row .kpi-value { font-size: 20px; }
  .kpi-unit { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 2px; }
  .kpi-sub { font-size: 10.5px; color: var(--muted-2); margin-top: 7px; font-family: var(--mono); }

  .gauge { position: relative; width: 76px; height: 76px; margin: -2px auto 0; }
  .gauge svg { width: 76px; height: 76px; }
  .gauge-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 17px; font-weight: 600; }

  /* ---------- Panels ---------- */
  .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
  .panel-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
  .panel-title { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text); font-weight: 600; }
  .panel-note { font-size: 10px; color: var(--muted-2); font-family: var(--mono); }
  .trend-panel .spark { width: 100%; height: 38px; display: block; }

  /* ---------- Threats ---------- */
  .threats-panel { flex: 1; }
  .threats { display: flex; flex-direction: column; gap: 2px; }
  .threat-row {
    display: grid; grid-template-columns: 18px 1fr 56px 22px; align-items: center; gap: 8px;
    padding: 7px 6px; border-radius: 5px; text-align: left; transition: background .12s;
  }
  .threat-row:hover { background: var(--panel-3); }
  .threat-row.off { opacity: .4; }
  .threat-glyph { font-family: var(--mono); font-size: 13px; text-align: center; }
  .threat-name { font-size: 12px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .threat-bar-track { height: 5px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
  .threat-bar { display: block; height: 100%; border-radius: 3px; transition: width .3s; }
  .threat-count { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; }

  /* ---------- Map ---------- */
  .map-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 10px; }
  .map-title-main { font-size: 15px; font-weight: 600; letter-spacing: .3px; }
  .map-title-sub { font-family: var(--mono); font-size: 11px; color: var(--muted-2); margin-left: 10px; }
  .legend { display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: flex-end; align-items: center; max-width: 64%; }
  .legend-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
  .legend-dot { width: 8px; height: 8px; border-radius: 50%; }

  .map-wrap {
    flex: 1; position: relative; min-height: 0;
    background:
      radial-gradient(900px 500px at 50% 45%, rgba(73,182,255,0.05), transparent 70%),
      linear-gradient(180deg, #0a121c, #070c13);
    border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  }
  .map-canvas { position: absolute; inset: 0; }
  .map-wrap, .usmap-wrap { touch-action: none; overscroll-behavior: contain; }
  .map-wrap.is-zoomed, .usmap-wrap.is-zoomed { cursor: grab; }
  .map-wrap.is-zoomed:active, .usmap-wrap.is-zoomed:active { cursor: grabbing; }
  /* map zoom controls */
  .map-zoom {
    position: absolute; right: 12px; bottom: 12px; z-index: 80;
    display: flex; flex-direction: column; gap: 5px;
  }
  .map-zoom-btn {
    width: 30px; height: 30px; display: grid; place-items: center;
    font-family: var(--mono); font-size: 17px; line-height: 1; color: var(--text);
    background: rgba(12,20,34,0.9); border: 1px solid var(--line-2); border-radius: 7px;
    cursor: pointer; transition: all .12s; backdrop-filter: blur(4px);
  }
  .map-zoom-btn:hover { border-color: var(--blue); background: rgba(73,182,255,0.12); color: var(--blue); }
  .map-zoom-reset { font-size: 14px; }
  .map-zoom-btn:disabled { opacity: .4; cursor: default; }
  .map-zoom-btn:disabled:hover { border-color: var(--line-2); background: rgba(12,20,34,0.9); color: var(--text); }
  .map-loading {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-family: var(--mono); font-size: 12px; color: var(--muted-2); letter-spacing: 1px;
  }
  .map-labels { position: absolute; inset: 0; pointer-events: none; }
  .region-label {
    position: absolute; transform: translate(-50%, -50%);
    font-family: var(--mono); font-size: 10px; letter-spacing: 3px;
    color: rgba(150,180,215,0.30); white-space: nowrap; font-weight: 500;
    text-transform: uppercase;
  }
  .map-markers { position: absolute; inset: 0; }
  .mk {
    position: absolute; transform: translate(-50%, -50%);
    width: 16px; height: 16px; display: grid; place-items: center; padding: 0;
  }
  .mk-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--mc); box-shadow: 0 0 0 2px rgba(7,12,19,0.85), 0 0 9px var(--mc);
    transition: transform .12s;
  }
  .mk:hover .mk-dot { transform: scale(1.45); }
  .mk-sel .mk-dot { transform: scale(1.5); box-shadow: 0 0 0 2px #fff, 0 0 12px var(--mc); }
  .mk-crit .mk-dot { width: 9px; height: 9px; }
  .mk-ring {
    position: absolute; width: 16px; height: 16px; border-radius: 50%;
    border: 1.5px solid var(--mc); opacity: 0; animation: pulse 2.4s ease-out infinite;
  }
  @keyframes pulse {
    0% { transform: scale(.5); opacity: .9; }
    100% { transform: scale(2.6); opacity: 0; }
  }
  .mk-tip {
    position: absolute; bottom: 150%; left: 50%; transform: translateX(-50%);
    background: rgba(10,16,24,0.97); border: 1px solid var(--line-2); border-radius: 6px;
    padding: 7px 10px; white-space: nowrap; pointer-events: none;
    display: flex; flex-direction: column; gap: 1px; z-index: 50;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  }
  .mk-tip::after { content:""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: rgba(10,16,24,0.97); }
  .mk-tip-sev { font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: 1px; }
  .mk-tip-type { font-size: 12px; font-weight: 600; }
  .mk-tip-place { font-size: 11px; color: var(--muted); }

  .map-foot { display: flex; justify-content: space-between; margin-top: 8px; font-size: 10.5px; color: var(--muted-2); font-family: var(--mono); }

  /* ---------- SIGMET zones ---------- */
  .sigmet-labels { position: absolute; inset: 0; }
  .sig-tag { position: absolute; transform: translate(-50%, -50%); }
  .sig-pill {
    display: inline-flex; align-items: center; gap: 6px; cursor: default;
    padding: 2px 7px; border-radius: 4px; white-space: nowrap;
    background: rgba(8,13,20,0.78); border: 1px solid color-mix(in srgb, var(--sc) 55%, transparent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4); transition: all .12s;
  }
  .sig-tag.on .sig-pill { background: rgba(8,13,20,0.95); border-color: var(--sc); }
  .sig-code { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .8px; color: var(--sc); }
  .sig-lvl { font-family: var(--mono); font-size: 9px; color: var(--muted-2); }
  .sig-tip {
    position: absolute; bottom: 135%; left: 50%; transform: translateX(-50%);
    width: 230px; display: flex; flex-direction: column; gap: 4px; z-index: 60;
    background: rgba(10,16,24,0.98); border: 1px solid var(--line-2);
    border-left: 3px solid var(--sc);
    border-radius: 7px; padding: 9px 11px; box-shadow: 0 10px 28px rgba(0,0,0,0.55);
  }
  .sig-tip-head { display: flex; align-items: baseline; gap: 8px; }
  .sig-tip-id { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .8px; color: var(--sc); }
  .sig-tip-phenom { font-size: 12px; font-weight: 600; color: var(--text); }
  .sig-tip-meta { font-family: var(--mono); font-size: 10px; color: var(--muted); }
  .sig-tip-note { font-size: 11.5px; line-height: 1.45; color: #c2cfde; margin-top: 2px; text-wrap: pretty; }

  /* SIGMET legend toggle */
  .sig-toggle {
    display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted);
    padding: 4px 9px 4px 7px; border-radius: 5px; border: 1px solid var(--line);
    background: var(--panel-3); transition: all .12s; margin-left: 4px;
  }
  .sig-toggle:hover { color: var(--text); border-color: var(--line-2); }
  .sig-toggle.on { color: var(--text); border-color: rgba(143,176,214,0.4); background: rgba(143,176,214,0.08); }
  .sig-swatch {
    width: 13px; height: 9px; border-radius: 2px; border: 1px dashed rgba(143,176,214,0.85);
    background: repeating-linear-gradient(45deg, rgba(143,176,214,0.18) 0 3px, transparent 3px 6px);
  }
  .sig-toggle:not(.on) .sig-swatch { opacity: .4; }

  /* compact live-SIGMET hover dot (Global Ops world map — many zones) */
  .sig-tag-dot { width: 10px; height: 10px; }
  .sig-dot {
    display: block; width: 7px; height: 7px; border-radius: 50%;
    background: var(--sc); border: 1px solid rgba(7,12,19,0.85);
    box-shadow: 0 0 0 2px rgba(7,12,19,0.55), 0 0 7px var(--sc);
    transition: transform .12s; cursor: default;
  }
  .sig-tag-dot:hover .sig-dot, .sig-tag-dot.on .sig-dot { transform: scale(1.55); }

  /* ---------- Hurricane tracking (NHC) ---------- */
  .hur-labels { position: absolute; inset: 0; }
  .hur-tag { position: absolute; transform: translate(-50%, -50%); }
  .hur-eye {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 11px; height: 11px; border-radius: 50%;
    border: 1.5px solid var(--hc); opacity: 0;
    animation: hurpulse 2.6s ease-out infinite; pointer-events: none;
  }
  @keyframes hurpulse {
    0% { transform: translate(-50%, -50%) scale(.6); opacity: .85; }
    100% { transform: translate(-50%, -50%) scale(2.4); opacity: 0; }
  }
  .hur-pill {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    padding: 2px 7px; border-radius: 4px; cursor: default;
    background: rgba(8,13,20,0.82); border: 1px solid color-mix(in srgb, var(--hc) 60%, transparent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.45); transition: all .12s;
  }
  .hur-tag.on .hur-pill { background: rgba(8,13,20,0.96); border-color: var(--hc); }
  .hur-name { font-size: 11px; font-weight: 600; color: var(--text); }
  .hur-cat { font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .6px; color: var(--hc); }
  .hur-tip {
    position: absolute; bottom: 145%; left: 12px; transform: translateX(-30%);
    width: 248px; display: flex; flex-direction: column; gap: 4px; z-index: 70;
    background: rgba(10,16,24,0.98); border: 1px solid var(--line-2);
    border-left: 3px solid var(--hc);
    border-radius: 7px; padding: 10px 12px; box-shadow: 0 10px 28px rgba(0,0,0,0.55);
  }
  .hur-tip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
  .hur-tip-name { font-size: 14px; font-weight: 600; color: var(--text); }
  .hur-tip-id { font-family: var(--mono); font-size: 9.5px; color: var(--muted-2); letter-spacing: .5px; }
  .hur-tip-class { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .5px; }
  .hur-tip-stats { display: flex; gap: 12px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
  .hur-tip-stats b { color: var(--text); font-weight: 600; }
  .hur-tip-ww { font-size: 11px; color: var(--mod); font-weight: 500; }
  .hur-tip-note { font-size: 11.5px; line-height: 1.45; color: #c2cfde; margin-top: 1px; text-wrap: pretty; }
  .hur-tip-foot { font-family: var(--mono); font-size: 9px; color: var(--muted-2); letter-spacing: .4px; margin-top: 2px; }
  .hur-tip-src { font-family: var(--mono); font-size: 9px; color: var(--green); letter-spacing: .4px; }

  /* live NHC status chip (top-right of map) */
  .hur-status {
    position: absolute; top: 10px; right: 10px; z-index: 55;
    display: flex; align-items: center; gap: 7px;
    font-family: var(--mono); font-size: 10px; letter-spacing: .5px;
    color: var(--muted); padding: 5px 10px; border-radius: 5px;
    background: rgba(8,13,20,0.82); border: 1px solid var(--line);
    backdrop-filter: blur(3px);
  }
  .hur-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
  .hur-status[data-st="live"] { color: var(--green); border-color: rgba(52,216,168,0.3); }
  .hur-status[data-st="live"] .hur-status-dot { background: var(--green); box-shadow: 0 0 8px var(--green); animation: blink 2s infinite; }
  .hur-status[data-st="loading"] .hur-status-dot { background: var(--mod); animation: blink 1s infinite; }
  .hur-status[data-st="error"] { color: var(--major); border-color: rgba(255,138,61,0.3); }
  .hur-status[data-st="error"] .hur-status-dot { background: var(--major); }
  .hur-status[data-st="empty"] { color: var(--muted-2); }

  /* ---------- Tropical Cyclones panel ---------- */
  .tc-panel { display: flex; flex-direction: column; }
  .tc-live { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .4px; color: var(--muted-2); }
  .tc-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); }
  .tc-live.tc-live-live { color: var(--green); }
  .tc-live.tc-live-live .tc-live-dot { background: var(--green); box-shadow: 0 0 7px var(--green); animation: blink 2s infinite; }
  .tc-live.tc-loading .tc-live-dot { background: var(--mod); animation: blink 1s infinite; }
  .tc-live.tc-error { color: var(--major); }
  .tc-live.tc-error .tc-live-dot { background: var(--major); }
  .tc-msg { font-size: 12px; color: var(--muted); line-height: 1.5; padding: 6px 2px 2px; display: flex; flex-direction: column; gap: 3px; }
  .tc-msg-sub { font-size: 10.5px; color: var(--muted-2); }
  .tc-msg-ok { color: var(--green); }
  .tc-msg-err { color: var(--major); }
  .tc-list { display: flex; flex-direction: column; gap: 7px; padding-top: 2px; }
  .tc-row { display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: center;
    background: var(--panel-3); border: 1px solid var(--line); border-left: 3px solid var(--tc);
    border-radius: 7px; padding: 9px 11px; }
  .tc-badge { display: grid; place-items: center; width: 42px; height: 36px; border-radius: 5px;
    background: color-mix(in srgb, var(--tc) 16%, transparent); border: 1px solid color-mix(in srgb, var(--tc) 45%, transparent); }
  .tc-badge-sh { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .3px; color: var(--tc); text-align: center; line-height: 1.05; }
  .tc-body { min-width: 0; }
  .tc-top { display: flex; align-items: baseline; gap: 8px; }
  .tc-name { font-size: 14px; font-weight: 600; color: var(--text); }
  .tc-adv { font-family: var(--mono); font-size: 9.5px; color: var(--muted-2); margin-left: auto; }
  .tc-class { font-size: 10.5px; color: var(--tc); font-weight: 500; margin-top: 1px; }
  .tc-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 5px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
  .tc-stats b { color: var(--text); font-weight: 600; }
  .tc-pos { color: var(--muted-2); }
  .tc-src { font-family: var(--mono); font-size: 9px; color: var(--muted-2); letter-spacing: .3px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); }

  .hur-toggle {
    display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted);
    padding: 4px 9px 4px 7px; border-radius: 5px; border: 1px solid var(--line);
    background: var(--panel-3); transition: all .12s;
  }
  .hur-toggle:hover { color: var(--text); border-color: var(--line-2); }
  .hur-toggle.on { color: var(--text); border-color: rgba(255,138,61,0.4); background: rgba(255,138,61,0.08); }
  .hur-swatch {
    width: 14px; height: 10px; border-radius: 2px; position: relative;
    border: 1px solid rgba(230,240,252,0.5);
    background: repeating-linear-gradient(60deg, rgba(230,240,252,0.14) 0 3px, transparent 3px 6px);
  }
  .hur-swatch::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px;
    border-radius: 50%; background: var(--major); transform: translate(-50%, -50%);
  }
  .hur-toggle:not(.on) .hur-swatch { opacity: .4; }

  /* ---------- GPS / GNSS jamming zones ---------- */
  .jam-labels { position: absolute; inset: 0; }
  .jam-tag { position: absolute; transform: translate(-50%, -50%); }
  .jam-pill {
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: default;
    padding: 2px 8px 2px 6px; border-radius: 4px;
    background: rgba(8,13,20,0.8); border: 1px solid color-mix(in srgb, var(--jc) 55%, transparent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4); transition: all .12s;
  }
  .jam-tag.on .jam-pill { background: rgba(8,13,20,0.96); border-color: var(--jc); }
  .jam-ico { width: 11px; height: 11px; flex: none; position: relative; }
  .jam-ico::before, .jam-ico::after {
    content: ""; position: absolute; left: 50%; top: 50%;
    border: 1.4px solid var(--jc); border-radius: 50%; transform: translate(-50%, -50%);
  }
  .jam-ico::before { width: 4px; height: 4px; background: var(--jc); }
  .jam-ico::after { width: 11px; height: 11px; opacity: .55; }
  .jam-name { font-size: 10.5px; font-weight: 600; color: var(--text); }
  .jam-lvl { font-family: var(--mono); font-size: 8.5px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--jc); }
  .jam-tag.jam-moderate .jam-lvl { opacity: .8; }
  .jam-tip {
    position: absolute; bottom: 135%; left: 50%; transform: translateX(-50%);
    width: 234px; display: flex; flex-direction: column; gap: 4px; z-index: 60;
    background: rgba(10,16,24,0.98); border: 1px solid var(--line-2);
    border-left: 3px solid var(--jc);
    border-radius: 7px; padding: 9px 11px; box-shadow: 0 10px 28px rgba(0,0,0,0.55);
  }
  .jam-tip-head { display: flex; flex-direction: column; gap: 1px; }
  .jam-tip-name { font-size: 13px; font-weight: 600; color: var(--text); }
  .jam-tip-lvl { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .5px; color: var(--jc); text-transform: uppercase; }
  .jam-tip-note { font-size: 11.5px; line-height: 1.45; color: #c2cfde; margin-top: 2px; text-wrap: pretty; }
  .jam-tip-src { font-family: var(--mono); font-size: 9px; color: var(--muted-2); letter-spacing: .3px; }

  .jam-toggle {
    display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted);
    padding: 4px 9px 4px 7px; border-radius: 5px; border: 1px solid var(--line);
    background: var(--panel-3); transition: all .12s;
  }
  .jam-toggle:hover { color: var(--text); border-color: var(--line-2); }
  .jam-toggle.on { color: var(--text); border-color: rgba(255,59,107,0.4); background: rgba(255,59,107,0.08); }
  .jam-swatch {
    width: 14px; height: 10px; border-radius: 2px; border: 1px dashed rgba(255,59,107,0.85);
    background: repeating-linear-gradient(45deg, rgba(255,59,107,0.3) 0 2px, transparent 2px 4px);
  }
  .jam-toggle:not(.on) .jam-swatch { opacity: .4; }

  /* ---------- Volcanic ash (VAAC) ---------- */
  .vol-labels { position: absolute; inset: 0; }
  .vol-tag { position: absolute; transform: translate(-50%, -50%); }
  .vol-glyph {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent;
    border-bottom: 10px solid var(--vc);
    filter: drop-shadow(0 0 3px rgba(7,12,19,0.9)); pointer-events: none;
  }
  .vol-pill {
    position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: default;
    padding: 2px 8px; border-radius: 4px;
    background: rgba(8,13,20,0.8); border: 1px solid color-mix(in srgb, var(--vc) 55%, transparent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4); transition: all .12s;
  }
  .vol-tag.on .vol-pill { background: rgba(8,13,20,0.96); border-color: var(--vc); }
  .vol-name { font-size: 10.5px; font-weight: 600; color: var(--text); }
  .vol-code { font-family: var(--mono); font-size: 8.5px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--vc); }
  .vol-tip {
    position: absolute; bottom: 150%; left: 11px; transform: translateX(-30%);
    width: 230px; display: flex; flex-direction: column; gap: 4px; z-index: 60;
    background: rgba(10,16,24,0.98); border: 1px solid var(--line-2);
    border-left: 3px solid var(--vc);
    border-radius: 7px; padding: 9px 11px; box-shadow: 0 10px 28px rgba(0,0,0,0.55);
  }
  .vol-tip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
  .vol-tip-name { font-size: 13px; font-weight: 600; color: var(--text); }
  .vol-tip-code { font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }
  .vol-tip-meta { font-family: var(--mono); font-size: 10px; color: var(--muted); }
  .vol-tip-note { font-size: 11.5px; line-height: 1.45; color: #c2cfde; margin-top: 1px; text-wrap: pretty; }
  .vol-tip-src { font-family: var(--mono); font-size: 9px; color: var(--muted-2); letter-spacing: .3px; }

  .vol-toggle {
    display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted);
    padding: 4px 9px 4px 7px; border-radius: 5px; border: 1px solid var(--line);
    background: var(--panel-3); transition: all .12s;
  }
  .vol-toggle:hover { color: var(--text); border-color: var(--line-2); }
  .vol-toggle.on { color: var(--text); border-color: rgba(255,138,61,0.4); background: rgba(255,138,61,0.08); }
  .vol-swatch {
    width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent;
    border-bottom: 9px solid var(--major); margin: 1px 2px 0;
  }
  .vol-toggle:not(.on) .vol-swatch { opacity: .4; }

  /* ---------- Feed ---------- */
  .feed { display: flex; flex-direction: column; height: 100%; }
  .feed-head { padding: 0 2px 10px; }
  .feed-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
  .feed-empty { color: var(--muted-2); font-size: 12px; text-align: center; padding: 30px 10px; }
  .feed-row {
    display: grid; grid-template-columns: 3px 1fr auto; gap: 10px; align-items: center;
    background: var(--panel); border: 1px solid var(--line); border-radius: 7px;
    padding: 9px 11px 9px 8px; text-align: left; transition: all .12s;
  }
  .feed-row:hover, .feed-row.active { background: var(--panel-3); border-color: var(--line-2); }
  .feed-sev { width: 3px; height: 100%; min-height: 34px; border-radius: 2px; align-self: stretch; }
  .feed-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .feed-top { display: flex; align-items: baseline; gap: 8px; }
  .feed-type { font-size: 11px; font-weight: 600; letter-spacing: .3px; }
  .feed-id { font-family: var(--mono); font-size: 10px; color: var(--muted-2); }
  .feed-place { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .feed-meta { font-size: 10.5px; color: var(--muted-2); font-family: var(--mono); }
  .feed-cas { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-family: var(--mono); font-size: 11px; }
  .cas-fatal { color: var(--crit); font-weight: 600; }
  .cas-inj { color: var(--mod); }

  /* ---------- Drawer ---------- */
  .drawer { display: flex; flex-direction: column; height: 100%; overflow-y: auto; gap: 12px; }
  .drawer-head { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--mc); border-radius: 8px; padding: 13px 14px; }
  .drawer-head-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
  .drawer-sev { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 1.5px; color: #06121d; padding: 3px 8px; border-radius: 3px; }
  .drawer-close { color: var(--muted); font-size: 13px; width: 24px; height: 24px; border-radius: 4px; }
  .drawer-close:hover { background: var(--panel-3); color: var(--text); }
  .drawer-title { font-size: 18px; font-weight: 600; line-height: 1.2; }
  .drawer-sub { font-size: 11.5px; color: var(--muted); font-family: var(--mono); margin-top: 3px; }

  .drawer-cas { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .cas-box { background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 10px; text-align: center; }
  .cas-num { font-family: var(--mono); font-size: 22px; font-weight: 600; line-height: 1; }
  .cas-lbl { font-size: 9.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted-2); margin-top: 6px; }

  .drawer-grid { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 4px 12px; }
  .df { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .df:last-child { border-bottom: none; }
  .df-k { font-size: 11.5px; color: var(--muted-2); }
  .df-v { font-size: 12.5px; font-family: var(--mono); text-align: right; }

  .drawer-summary { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
  .ds-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted-2); margin-bottom: 7px; }
  .ds-context-label { margin-top: 13px; }
  .drawer-summary p { margin: 0; font-size: 13px; line-height: 1.55; color: #c6d3e2; text-wrap: pretty; }
  .ds-context { color: #97a8bd !important; font-size: 12px !important; }

  .drawer-links { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
  .ref-link {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 9px 11px; border-radius: 6px; text-decoration: none;
    background: var(--panel-3); border: 1px solid var(--line);
    transition: all .12s;
  }
  .ref-link:hover { border-color: var(--blue); background: rgba(73,182,255,0.08); }
  .ref-link-label { font-size: 12.5px; color: var(--text); }
  .ref-link-host { font-family: var(--mono); font-size: 10.5px; color: var(--blue); white-space: nowrap; }
  .drawer-foot { font-size: 10px; color: var(--muted-2); font-family: var(--mono); text-align: center; padding: 2px 0 8px; line-height: 1.5; }

  /* ---------- App foot ---------- */
  .appfoot {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 18px; border-top: 1px solid var(--line);
    background: var(--panel); font-size: 10px; color: var(--muted-2); font-family: var(--mono); letter-spacing: .3px;
  }
  .foot-left { display: flex; align-items: center; gap: 14px; }
  .foot-logo { height: 26px; width: auto; display: block; opacity: 0.95; }
  .foot-note { color: var(--muted-2); }

  @media (max-width: 1200px) {
    .body { grid-template-columns: 280px 1fr 320px; }
  }

  /* ===== Deep-navy theme ===== */
  .map-wrap {
    background:
      radial-gradient(900px 500px at 50% 45%, rgba(73,182,255,0.06), transparent 70%),
      linear-gradient(180deg, #0a1530, #06101f) !important;
  }

  /* ============ Page 2 — US NAS Status ============ */
  .usmap-wrap {
    flex: 1; position: relative; min-height: 0; border-radius: 10px; overflow: hidden;
    border: 1px solid var(--line);
    background:
      radial-gradient(900px 500px at 50% 45%, rgba(73,182,255,0.06), transparent 70%),
      linear-gradient(180deg, #0a1530, #06101f);
  }
  .kpi-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

  /* Flight-category panel */
  .fc-bar { display: flex; height: 9px; border-radius: 5px; overflow: hidden; margin: 4px 0 12px; background: var(--panel-3); }
  .fc-seg { height: 100%; }
  .fc-rows { display: flex; flex-direction: column; gap: 9px; }
  .fc-row { display: grid; grid-template-columns: 12px 42px 1fr auto; align-items: center; gap: 9px; }
  .fc-dot { width: 9px; height: 9px; border-radius: 50%; }
  .fc-key { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--text); letter-spacing: .4px; }
  .fc-desc { font-size: 10.5px; color: var(--muted-2); }
  .fc-num { font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--text); }

  /* Airport labels on map */
  .ap-labels { position: absolute; inset: 0; pointer-events: none; }
  .ap-tag { position: absolute; transform: translate(-50%, calc(-50% - 13px)); }
  .ap-code {
    font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .5px;
    color: #eaf2ff; background: rgba(8,16,30,0.9); padding: 1px 5px; border-radius: 4px;
    border: 1px solid rgba(140,180,235,0.35);
    text-shadow: 0 1px 2px rgba(0,0,0,0.9); white-space: nowrap;
  }
  .ap-tag.on .ap-code { color: #eaf2ff; background: rgba(8,16,30,0.98); border-color: var(--ac); box-shadow: 0 0 0 1px var(--ac), 0 2px 8px rgba(0,0,0,0.5); }
  .ap-tip {
    position: absolute; bottom: 150%; left: 50%; transform: translateX(-50%);
    width: 250px; display: flex; flex-direction: column; gap: 4px; z-index: 70; pointer-events: none;
    background: rgba(10,18,32,0.98); border: 1px solid var(--line-2); border-left: 3px solid var(--ac);
    border-radius: 7px; padding: 9px 11px; box-shadow: 0 10px 28px rgba(0,0,0,0.55);
  }
  .ap-tip-head { display: flex; align-items: baseline; gap: 8px; }
  .ap-tip-iata { font-size: 14px; font-weight: 600; color: var(--text); }
  .ap-tip-icao { font-family: var(--mono); font-size: 10px; color: var(--muted-2); }
  .ap-tip-cat { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .5px; margin-left: auto; }
  .ap-tip-name { font-size: 11px; color: var(--muted); }
  .ap-tip-wx { display: flex; flex-wrap: wrap; gap: 9px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 2px; }
  .ap-tip-wx b { color: var(--text); font-weight: 600; }
  .ap-tip-nodata { color: var(--muted-2); font-style: italic; }
  .ap-tip-raw { font-family: var(--mono); font-size: 9.5px; color: var(--muted-2); line-height: 1.4; margin-top: 3px; padding-top: 5px; border-top: 1px solid var(--line); word-break: break-word; }

  /* Hazard hover tooltip */
  .haz-tip {
    position: absolute; transform: translate(14px, -50%); width: 232px; z-index: 65; pointer-events: none;
    display: flex; flex-direction: column; gap: 3px;
    background: rgba(10,18,32,0.98); border: 1px solid var(--line-2); border-left: 3px solid var(--hzc);
    border-radius: 7px; padding: 9px 11px; box-shadow: 0 10px 28px rgba(0,0,0,0.55);
  }
  .haz-tip-head { display: flex; flex-direction: column; gap: 1px; }
  .haz-tip-kind { font-family: var(--mono); font-size: 9px; letter-spacing: .8px; color: var(--muted-2); text-transform: uppercase; }
  .haz-tip-haz { font-size: 13px; font-weight: 600; }
  .haz-tip-meta { font-family: var(--mono); font-size: 10px; color: var(--muted); }
  .haz-tip-src { font-family: var(--mono); font-size: 9px; color: var(--muted-2); margin-top: 2px; }

  /* Advisory feed (right column) */
  .adv-list { display: flex; flex-direction: column; gap: 7px; }
  .adv-row {
    background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--ac);
    border-radius: 7px; padding: 9px 11px;
  }
  .adv-top { display: flex; align-items: baseline; gap: 8px; }
  .adv-kind { font-family: var(--mono); font-size: 9px; letter-spacing: .7px; color: var(--muted-2); text-transform: uppercase; }
  .adv-haz { font-size: 12.5px; font-weight: 600; margin-left: auto; }
  .adv-meta { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 3px; }
  .adv-valid { font-family: var(--mono); font-size: 9.5px; color: var(--muted-2); margin-top: 2px; }

  /* NAT tracks (North Atlantic page) */
  .trk-toggle {
    display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted);
    padding: 4px 9px 4px 7px; border-radius: 5px; border: 1px solid var(--line);
    background: var(--panel-3); transition: all .12s;
  }
  .trk-toggle:hover { color: var(--text); border-color: var(--line-2); }
  .trk-toggle.on { color: var(--text); border-color: rgba(110,210,240,0.4); background: rgba(110,210,240,0.08); }
  .trk-swatch {
    width: 16px; height: 0; border-top: 2px dashed rgba(110,210,240,0.9); margin: 4px 1px 0;
  }
  .trk-toggle:not(.on) .trk-swatch { opacity: .4; }
  .trk-rows { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
  .trk-chip {
    display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px;
    color: #8fe0f0; background: rgba(110,210,240,0.08); border: 1px solid rgba(110,210,240,0.25);
    padding: 3px 8px; border-radius: 5px;
  }
  .trk-chip-dash { width: 12px; height: 0; border-top: 2px dashed rgba(110,210,240,0.9); }
  .trk-note { font-size: 10.5px; color: var(--muted-2); line-height: 1.5; text-wrap: pretty; }

  /* radar / satellite WX-imagery toggles */
  .wx-toggle {
    display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted);
    padding: 4px 9px 4px 7px; border-radius: 5px; border: 1px solid var(--line);
    background: var(--panel-3); transition: all .12s;
  }
  .wx-toggle:hover { color: var(--text); border-color: var(--line-2); }
  .wx-toggle.on { color: var(--text); border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.06); }
  .rdr-swatch {
    width: 14px; height: 10px; border-radius: 2px;
    background: linear-gradient(90deg, #2fd6c3, #34d8a8 40%, #f5c043 70%, #ff4d4d);
  }
  .sat-swatch {
    width: 14px; height: 10px; border-radius: 2px;
    background: linear-gradient(135deg, #1b2436, #6b7890 60%, #e6edf3);
  }
  .wx-toggle:not(.on) .rdr-swatch, .wx-toggle:not(.on) .sat-swatch { opacity: .45; }

  /* ============ Page 5 — Space Weather (NOAA SWPC) ============ */
  /* NOAA scale chips (R / S / G) */
  .sw-scales { display: flex; flex-direction: column; gap: 8px; }
  .sw-scale {
    --sk: var(--green);
    display: grid; grid-template-columns: 44px 1fr; gap: 11px; align-items: center;
    background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--sk);
    border-radius: 8px; padding: 10px 12px;
  }
  .sw-scale-badge {
    width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center;
    background: color-mix(in srgb, var(--sk) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--sk) 45%, transparent);
  }
  .sw-scale-letter { font-family: var(--mono); font-size: 13px; font-weight: 700; line-height: 1; color: var(--sk); }
  .sw-scale-num { font-family: var(--mono); font-size: 17px; font-weight: 700; line-height: 1; color: var(--sk); margin-top: 2px; }
  .sw-scale-body { min-width: 0; }
  .sw-scale-top { display: flex; align-items: baseline; gap: 8px; }
  .sw-scale-name { font-size: 12.5px; font-weight: 600; color: var(--text); }
  .sw-scale-word { font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--sk); margin-left: auto; }
  .sw-scale-impact { font-size: 10.5px; color: var(--muted-2); line-height: 1.4; margin-top: 3px; text-wrap: pretty; }

  /* community selector tabs (center) */
  .sw-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
  .sw-tab {
    font-family: var(--mono); font-size: 11.5px; letter-spacing: .4px;
    color: var(--muted); padding: 6px 13px; border-radius: 6px;
    border: 1px solid var(--line); background: var(--panel-3); transition: all .12s;
  }
  .sw-tab:hover { color: var(--text); border-color: var(--line-2); }
  .sw-tab.on { color: #06121d; background: var(--blue); border-color: var(--blue); font-weight: 600; }

  .sw-blurb { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 10px 0 12px; max-width: 880px; text-wrap: pretty; }

  /* product image grid */
  .sw-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 11px; align-content: start; padding-right: 2px; }
  .sw-tile {
    background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
    overflow: hidden; display: flex; flex-direction: column;
  }
  .sw-tile-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 9px 11px 8px; }
  .sw-tile-title { font-size: 11.5px; font-weight: 600; color: var(--text); letter-spacing: .2px; }
  .sw-tile-src { font-family: var(--mono); font-size: 8.5px; color: var(--muted-2); letter-spacing: .4px; white-space: nowrap; }
  .sw-tile-imgwrap {
    position: relative; background: #060c16; aspect-ratio: 1 / 1;
    display: grid; place-items: center; overflow: hidden;
  }
  .sw-tile-imgwrap img { width: 100%; height: 100%; object-fit: contain; display: block; }
  .sw-tile-loading, .sw-tile-err {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-family: var(--mono); font-size: 10.5px; letter-spacing: .6px; color: var(--muted-2); text-align: center; padding: 12px;
  }
  .sw-tile-err { color: var(--major); }
  .sw-tile-cap { font-size: 10.5px; color: var(--muted-2); line-height: 1.5; padding: 9px 11px 11px; text-wrap: pretty; }

  /* alerts feed (right) */
  .sw-alert {
    --ak: var(--blue);
    background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--ak);
    border-radius: 7px; padding: 9px 11px;
  }
  .sw-alert.high { --ak: var(--crit); }
  .sw-alert.mid { --ak: var(--major); }
  .sw-alert.low { --ak: var(--blue); }
  .sw-alert-top { display: flex; align-items: baseline; gap: 8px; }
  .sw-alert-kind { font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .8px; color: var(--ak); }
  .sw-alert-code { font-family: var(--mono); font-size: 9px; color: var(--muted-2); margin-left: auto; }
  .sw-alert-tag {
    font-family: var(--mono); font-size: 8px; font-weight: 600; letter-spacing: .5px;
    text-transform: uppercase; padding: 1px 5px; border-radius: 4px;
    border: 1px solid var(--line); color: var(--muted-2);
  }
  .sw-alert-tag.aviation { color: var(--green); border-color: color-mix(in srgb, var(--green) 38%, transparent); background: color-mix(in srgb, var(--green) 10%, transparent); }
  .sw-alert-tag.satellite { color: var(--muted); border-color: var(--line-2); background: rgba(150,180,230,0.05); }
  .sw-alert-tag.other { color: var(--muted-2); border-color: var(--line); }

  /* ============ Global Ops — real-data hazard dashboard ============ */
  /* Conflict-zone footprints (representative) */
  .conf-labels { position: absolute; inset: 0; }
  .conf-tag { position: absolute; transform: translate(-50%, -50%); }
  .conf-pill {
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: default;
    padding: 2px 8px 2px 6px; border-radius: 4px;
    background: rgba(8,13,20,0.82); border: 1px solid color-mix(in srgb, var(--cc) 45%, transparent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4); transition: all .12s;
  }
  .conf-tag.on .conf-pill { background: rgba(8,13,20,0.96); border-color: var(--cc); }
  .conf-ico { width: 10px; height: 10px; flex: none; position: relative; transform: rotate(45deg); }
  .conf-ico::before { content: ""; position: absolute; inset: 0; border: 1.4px solid var(--cc); background: color-mix(in srgb, var(--cc) 30%, transparent); }
  .conf-name { font-size: 10.5px; font-weight: 600; color: #eaf2ff; text-shadow: 0 1px 2px rgba(0,0,0,0.9); }
  /* level text only on hover — keeps the Africa / Middle-East cluster readable */
  .conf-lvl { display: none; font-family: var(--mono); font-size: 8.5px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--cc); }
  .conf-tag.on .conf-lvl { display: inline; }
  .conf-tag.conf-caution .conf-lvl { opacity: .82; }
  .conf-tip {
    position: absolute; bottom: 135%; left: 50%; transform: translateX(-50%);
    width: 240px; display: flex; flex-direction: column; gap: 4px; z-index: 60;
    background: rgba(8,13,20,0.97); border: 1px solid var(--line-2);
    border-radius: 7px; padding: 9px 11px; box-shadow: 0 10px 28px rgba(0,0,0,0.55);
  }
  .conf-tip-head { display: flex; flex-direction: column; gap: 1px; }
  .conf-tip-name { font-size: 13px; font-weight: 600; color: var(--text); }
  .conf-tip-lvl { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .5px; color: var(--cc); text-transform: uppercase; }
  .conf-tip-note { font-size: 11.5px; line-height: 1.45; color: #c2cfde; margin-top: 2px; text-wrap: pretty; }
  .conf-tip-rep { font-family: var(--mono); font-size: 9px; color: var(--mod); letter-spacing: .3px; }
  .conf-tip-src { font-family: var(--mono); font-size: 9px; color: var(--muted-2); letter-spacing: .3px; }
  .jam-tip-rep { font-family: var(--mono); font-size: 9px; color: var(--mod); letter-spacing: .3px; }

  /* Cited safety-benchmark panel */
  .bm-grid { display: flex; flex-direction: column; gap: 8px; }
  .bm { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
  .bm-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted-2); margin-bottom: 6px; }
  .bm-value { font-family: var(--mono); font-size: 26px; font-weight: 600; line-height: 1; display: flex; align-items: baseline; }
  .bm-unit { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 5px; letter-spacing: .3px; }
  .bm-note { font-size: 10.5px; color: var(--muted-2); margin-top: 6px; line-height: 1.4; text-wrap: pretty; }
  .bm-src { display: inline-block; margin-top: 7px; font-family: var(--mono); font-size: 9.5px; color: var(--blue); text-decoration: none; letter-spacing: .2px; }
  .bm-src:hover { text-decoration: underline; }
  .bm-industry { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
  .bmi { background: var(--panel-2); border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; }
  .bmi-val { font-family: var(--mono); font-size: 18px; font-weight: 600; color: var(--text); }
  .bmi-lbl { font-size: 10px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .6px; }
  .bmi-yr { color: var(--muted-2); }

  /* Hazard-layer roster */
  .hz-layers { display: flex; flex-direction: column; gap: 6px; }
  .hz-layer {
    display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
    background: var(--panel); border: 1px solid var(--line); border-radius: 7px;
    padding: 8px 10px; cursor: pointer; transition: all .12s; color: inherit;
  }
  .hz-layer:hover { border-color: var(--line-2); }
  .hz-layer.off { opacity: .45; }
  .hz-swatch { width: 9px; height: 9px; border-radius: 2px; flex: none; }
  .hz-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .hz-top { display: flex; align-items: center; gap: 7px; }
  .hz-name { font-size: 12px; font-weight: 600; color: var(--text); }
  .hz-tag { font-family: var(--mono); font-size: 8px; font-weight: 700; letter-spacing: .6px; padding: 1px 5px; border-radius: 3px; }
  .hz-tag.live { color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); }
  .hz-tag.rep { color: var(--mod); background: color-mix(in srgb, var(--mod) 14%, transparent); }
  .hz-src { font-family: var(--mono); font-size: 9px; color: var(--muted-2); letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hz-switch { width: 26px; height: 15px; border-radius: 8px; background: rgba(150,180,230,0.15); position: relative; flex: none; transition: background .15s; }
  .hz-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #6075a0; transition: all .15s; }
  .hz-switch.on { background: color-mix(in srgb, var(--green) 40%, transparent); }
  .hz-switch.on::after { left: 13px; background: var(--green); }

  /* SIGMET log cards (right column) */
  .sig-card { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--sk); border-radius: 7px; padding: 9px 11px; }
  .sig-card-top { display: flex; align-items: baseline; gap: 8px; }
  .sig-card-kind { font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .8px; }
  .sig-card-fir { font-family: var(--mono); font-size: 9px; color: var(--muted-2); margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
  .sig-card-phenom { font-size: 12px; font-weight: 500; color: var(--text); line-height: 1.4; margin-top: 4px; text-wrap: pretty; }
  .sig-card-time { font-family: var(--mono); font-size: 9.5px; color: var(--muted-2); margin-top: 4px; }
  .feed-src { font-family: var(--mono); font-size: 9px; color: var(--muted-2); padding: 9px 2px 0; border-top: 1px solid var(--line); margin-top: 8px; letter-spacing: .2px; }
  .panel-src { font-family: var(--mono); font-size: 9px; color: var(--muted-2); margin-top: 9px; letter-spacing: .2px; }
  .kpi-src { font-family: var(--mono); font-size: 9px; color: var(--muted-2); margin-top: 6px; letter-spacing: .2px; text-align: right; }

  /* representative marker in map legend */
  .legend-rep { font-family: var(--mono); font-size: 8px; color: var(--mod); text-transform: uppercase; letter-spacing: .5px; margin-left: 3px; }
  .sw-alert-title { font-size: 12px; font-weight: 500; color: var(--text); line-height: 1.4; margin-top: 4px; text-wrap: pretty; }
  .sw-alert-time { font-family: var(--mono); font-size: 9.5px; color: var(--muted-2); margin-top: 4px; }

  /* solar-wind KPI accent */
  .sw-kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

  @media (max-width: 1280px) { .sw-grid { grid-template-columns: 1fr 1fr; } }

  /* ============ Page 6 — CADENA Regional ATFM ============ */
  /* member roster */
  .cdna-members { display: flex; flex-direction: column; gap: 1px; }
  .cdna-member { display: grid; grid-template-columns: 10px 62px 1fr; align-items: center; gap: 9px; padding: 4px 4px; border-radius: 5px; transition: background .12s; }
  .cdna-member:hover { background: var(--panel-3); }
  .cdna-role { width: 8px; height: 8px; border-radius: 2px; }
  .cdna-role-ansp { background: #6fb4ff; }
  .cdna-role-faa { background: #34d8a8; }
  .cdna-role-support { background: #b478ff; }
  .cdna-ansp { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--text); letter-spacing: .3px; }
  .cdna-mname { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* daily-ops-plan category rows */
  .dop-rows { display: flex; flex-direction: column; gap: 1px; }
  .dop-row { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--line); }
  .dop-row:last-child { border-bottom: none; }
  .dop-label { font-size: 12px; font-weight: 500; color: var(--text); grid-column: 1; }
  .dop-hint { font-size: 10px; color: var(--muted-2); grid-column: 1; grid-row: 2; }
  .dop-val { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--muted); }

  /* awaiting-feed empty state (right column) */
  .feed-await { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 18px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
  .feed-await-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mod); box-shadow: 0 0 9px var(--mod); animation: blink 1.6s infinite; }
  .feed-await-title { font-size: 13px; font-weight: 600; color: var(--text); }
  .feed-await-txt { font-size: 11.5px; line-height: 1.55; color: #aebbcd; text-wrap: pretty; }
  .feed-await-txt code { font-family: var(--mono); font-size: 10.5px; color: var(--blue); background: rgba(73,182,255,0.1); padding: 1px 4px; border-radius: 3px; }
  .feed-await-link { font-family: var(--mono); font-size: 11px; color: var(--blue); text-decoration: none; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-3); transition: all .12s; }
  .feed-await-link:hover { border-color: var(--blue); background: rgba(73,182,255,0.08); }

  /* footer links (podcast / contact) */
  .foot-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .3px; color: var(--muted); text-decoration: none; padding: 4px 9px; border: 1px solid var(--line); border-radius: 5px; transition: all .12s; }
  .foot-link:hover { color: var(--text); border-color: var(--line-2); background: var(--panel-3); }
  .foot-link-ico { width: 11px; height: 11px; border-radius: 50%; flex: none; }
  .foot-link-spotify { background: #1db954; box-shadow: 0 0 7px rgba(29,185,84,0.55); }
  .foot-link:hover .foot-link-spotify { box-shadow: 0 0 10px rgba(29,185,84,0.85); }
  .foot-link-mail { border-radius: 2px; background: linear-gradient(180deg, #6fb4ff, #2a6fdb); box-shadow: 0 0 7px rgba(73,182,255,0.45); }

  /* feedback dropdown */
  .fb-menu { position: relative; display: inline-flex; }
  .foot-link.on { color: var(--text); border-color: var(--line-2); background: var(--panel-3); }
  .fb-caret { font-size: 8px; margin-left: 1px; opacity: .8; }
  .fb-pop {
    position: absolute; bottom: calc(100% + 7px); left: 0; z-index: 220; min-width: 218px;
    display: flex; flex-direction: column; gap: 2px; padding: 5px;
    background: rgba(12,20,34,0.98); border: 1px solid var(--line-2); border-radius: 9px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.55); animation: toastin .16s ease;
  }
  .fb-opt { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 6px; text-decoration: none; transition: background .12s; }
  .fb-opt:hover { background: var(--panel-3); }
  .fb-opt-ico { width: 20px; height: 20px; border-radius: 5px; flex: none; }
  .fb-opt-mail { background: linear-gradient(180deg, #6fb4ff, #2a6fdb); box-shadow: 0 0 8px rgba(73,182,255,0.4); }
  .fb-opt-chat { background: linear-gradient(135deg, #00ac47 0 25%, #ffba00 25% 50%, #ea4335 50% 75%, #2684fc 75%); }
  .fb-opt-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  .fb-opt-title { font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--text); letter-spacing: .2px; }
  .fb-opt-sub { font-family: var(--mono); font-size: 10px; color: var(--muted); }

  /* nav never wraps: it stays a single row and scrolls horizontally, so it can
     never overflow the fixed-height top bar (landscape phones / narrow PCs) */
  .page-nav { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; min-width: 0; scrollbar-width: none; }
  .page-nav::-webkit-scrollbar { height: 0; width: 0; }
  /* below the wide-desktop width the nav gets its own full-width row under the brand */
  @media (max-width: 1300px) {
    #root { height: auto; }
    .app { height: auto; min-height: 100vh; grid-template-rows: auto 1fr auto; max-width: 100vw; min-width: 0; }
    .topbar { max-width: 100vw; min-width: 0; }
    .body { max-width: 100vw; min-width: 0; }
    .topbar { flex-wrap: wrap; height: auto; min-height: 58px; padding: 7px 18px; gap: 6px 18px; }
    .brand { flex-wrap: wrap; gap: 8px 11px; width: 100%; flex-basis: 100%; min-width: 0; }
    .page-nav { order: 9; width: 100%; max-width: calc(100vw - 36px); flex-basis: auto; min-width: 0; margin-left: 0; padding-left: 0; border-left: none; padding-top: 7px; border-top: 1px solid var(--line); }
    .status-cluster, .topbar-right { min-width: 0; flex-wrap: wrap; }
    .topbar-right { margin-left: auto; }
    .page-tab { flex: none; }
  }

  /* ============ Page 7 — Monitor de Emergencia Venezuela ============ */
  .ven-app { display: flex; flex-direction: column; height: 100vh; min-height: 0; }

  /* emergency marquee banner */
  .ven-banner { display: flex; align-items: center; gap: 0; height: 30px; flex: none; background: linear-gradient(90deg, #2a0e12, #3a1116); border-bottom: 1px solid rgba(255,77,77,0.3); overflow: hidden; }
  .ven-banner-tag { flex: none; display: flex; align-items: center; height: 100%; padding: 0 14px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 1px; color: #fff; background: var(--crit); }
  .ven-banner-track { flex: 1; overflow: hidden; position: relative; }
  .ven-banner-move { display: inline-flex; align-items: center; white-space: nowrap; animation: venmarquee 38s linear infinite; }
  .ven-banner-item { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .6px; color: #ffd9c2; padding-left: 22px; }
  .ven-banner-sep { color: rgba(255,138,61,0.6); margin-left: 22px; }
  @keyframes venmarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  @media (prefers-reduced-motion: reduce) { .ven-banner-move { animation: none; } }

  .ven-topbar { flex: none; }
  .ven-mark { display: grid; place-items: center; }
  .ven-name { font-size: 16px; font-weight: 700; letter-spacing: .2px; }
  .ven-name-accent { color: var(--mod); }
  .ven-clock { text-align: right; }
  .ven-clock-label { font-size: 9px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted-2); }
  .ven-clock-time { font-family: var(--mono); font-size: 22px; font-weight: 600; color: var(--text); letter-spacing: 1px; line-height: 1.1; }
  .ven-clock-date { font-size: 10px; color: var(--muted); }
  .ven-upd { text-align: right; display: flex; flex-direction: column; gap: 1px; padding-left: 14px; margin-left: 4px; border-left: 1px solid var(--line); }
  .ven-upd-label { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted-2); }
  .ven-upd-val { font-family: var(--mono); font-size: 12px; color: var(--green); }

  /* scrolling body */
  .ven-body { flex: 1; overflow-y: auto; padding: 16px 20px 8px; display: flex; flex-direction: column; gap: 14px; }
  .ven-section-title { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; margin: 4px 2px -2px; }

  /* KPI strip */
  .ven-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
  .ven-kpi::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--ac); }
  .ven-kpi .kpi-value { font-size: 26px; }
  @media (max-width: 1200px) { .ven-kpis { grid-template-columns: repeat(3, 1fr); } }
  @media (max-width: 640px) { .ven-kpis { grid-template-columns: repeat(2, 1fr); } }

  .ven-grid-main { display: grid; grid-template-columns: 1fr; gap: 14px; }
  .ven-col { display: flex; flex-direction: column; gap: 14px; }

  /* seismic panel */
  .ven-seis-row { display: flex; align-items: center; gap: 14px; padding: 4px 0; }
  .ven-mag { flex: none; display: grid; place-items: center; width: 92px; height: 64px; border-radius: 8px; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 1px; }
  .ven-mag b { font-size: 26px; font-weight: 700; margin-left: 4px; }
  .ven-mag-fore { color: var(--mod); background: rgba(245,192,67,0.1); border: 1px solid rgba(245,192,67,0.3); }
  .ven-mag-main { color: var(--crit); background: rgba(255,77,77,0.12); border: 1px solid rgba(255,77,77,0.35); }
  .ven-seis-kind { font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted-2); }
  .ven-seis-kind-main { color: var(--crit); }
  .ven-seis-place { font-size: 13px; font-weight: 500; color: var(--text); margin-top: 2px; }
  .ven-seis-when { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 2px; }
  .ven-seis-gap { font-family: var(--mono); font-size: 10px; color: var(--mod); margin: 2px 0 2px 38px; }
  .ven-seis-after { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
  .ven-seis-after b { font-family: var(--mono); color: var(--crit); font-size: 15px; }

  /* map panel */
  .ven-mappanel .usmap-wrap { height: 440px; border-radius: 8px; overflow: hidden; }
  .ven-geolabels { position: absolute; inset: 0; pointer-events: none; }
  .ven-geolabel { position: absolute; transform: translate(-50%, -50%); font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: 2px; color: rgba(150,180,230,0.4); white-space: nowrap; }
  .ven-epi-label { position: absolute; transform: translate(14px, -8px); display: flex; flex-direction: column; pointer-events: none; }
  .ven-epi-mag { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--crit); }
  .ven-epi-place { font-size: 9px; color: #d9a; color: rgba(255,150,150,0.85); white-space: nowrap; }

  /* airport cards */
  .ven-aps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .ven-ap { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--ac); border-radius: 8px; padding: 11px 12px; display: flex; flex-direction: column; gap: 5px; }
  .ven-ap-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .ven-ap-iata { font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--text); }
  .ven-ap-name { font-size: 11px; color: var(--muted); flex: 1; min-width: 0; }
  .ven-ap-badge { font-family: var(--mono); font-size: 8.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; padding: 2px 6px; border: 1px solid; border-radius: 4px; white-space: nowrap; }
  .ven-ap-city { font-size: 11px; color: var(--muted-2); }
  .ven-ap-note { font-size: 11.5px; line-height: 1.5; color: #b9c6da; text-wrap: pretty; }
  .ven-ap-rwys { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
  .ven-rwy { font-family: var(--mono); font-size: 9.5px; color: var(--muted); background: var(--panel-3); padding: 2px 7px; border-radius: 4px; }
  .ven-rwy b { color: var(--text); }
  .ven-ap-src { font-family: var(--mono); font-size: 9px; color: var(--muted-2); margin-top: 2px; }
  @media (max-width: 1100px) { .ven-aps { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 640px) { .ven-aps { grid-template-columns: 1fr; } }

  /* humanitarian flights */
  .ven-fl-tabs { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
  .ven-fl-tab { display: flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 7px; background: var(--panel); border: 1px solid var(--line); transition: all .12s; }
  .ven-fl-tab:hover { border-color: var(--line-2); }
  .ven-fl-tab.on { border-color: var(--ac); background: color-mix(in srgb, var(--ac) 10%, transparent); }
  .ven-fl-n { font-family: var(--mono); font-size: 16px; font-weight: 700; color: var(--ac); }
  .ven-fl-l { font-size: 11px; color: var(--muted); }
  .ven-fl-table { display: flex; flex-direction: column; gap: 2px; overflow-x: auto; }
  .ven-fl-head, .ven-fl-row { display: grid; grid-template-columns: 96px 78px 1.4fr 1.1fr 60px 1.5fr 1.2fr 52px; gap: 10px; align-items: center; min-width: 880px; }
  .ven-fl-head { font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted-2); padding: 0 8px 6px; border-bottom: 1px solid var(--line); }
  .ven-fl-row { font-size: 11.5px; color: #c2cfde; padding: 7px 8px; border-radius: 6px; }
  .ven-fl-row:nth-child(odd) { background: rgba(255,255,255,0.015); }
  .ven-fl-row:hover { background: var(--panel-3); }
  .ven-fl-state { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--ac); }
  .ven-fl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 6px var(--ac); }
  .ven-fl-cs { font-family: var(--mono); font-weight: 600; color: var(--text); }
  .ven-fl-ac { color: var(--muted); }
  .ven-fl-to { font-family: var(--mono); font-weight: 600; color: var(--blue); }
  .ven-fl-cargo { color: var(--muted); font-size: 11px; }
  .ven-fl-org { font-size: 11px; color: var(--muted); }
  .ven-fl-time { font-family: var(--mono); color: var(--text); }

  /* timeline */
  .ven-grid-two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; align-items: start; }
  @media (max-width: 1000px) { .ven-grid-two { grid-template-columns: 1fr; } }
  .ven-tl { display: flex; flex-direction: column; }
  .ven-tl-item { position: relative; display: grid; grid-template-columns: 14px 1fr; gap: 12px; padding: 0 0 14px 2px; }
  .ven-tl-item::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: -2px; width: 1px; background: var(--line); }
  .ven-tl-item:last-child::before { display: none; }
  .ven-tl-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--ac); border: 2px solid var(--bg); box-shadow: 0 0 7px var(--ac); margin-top: 3px; z-index: 1; }
  .ven-tl-when { font-family: var(--mono); font-size: 10px; color: var(--ac); letter-spacing: .3px; }
  .ven-tl-title { font-size: 13px; font-weight: 600; color: var(--text); margin-top: 2px; }
  .ven-tl-text { font-size: 11.5px; line-height: 1.5; color: #aebbcd; margin-top: 3px; text-wrap: pretty; }
  .ven-tl-src { font-family: var(--mono); font-size: 9px; color: var(--muted-2); margin-top: 4px; }

  /* sources grid */
  .ven-src-grid { display: grid; grid-template-columns: 1fr; gap: 4px; }
  .ven-src { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 7px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; transition: all .12s; }
  .ven-src:hover { border-color: var(--blue); background: rgba(73,182,255,0.06); }
  .ven-src-ab { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; background: var(--panel-3); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--blue); }
  .ven-src-body { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
  .ven-src-name { font-size: 12.5px; font-weight: 600; color: var(--text); }
  .ven-src-desc { font-size: 10.5px; color: var(--muted-2); }
  .ven-src-arrow { color: var(--muted-2); font-size: 14px; }
  .ven-src:hover .ven-src-arrow { color: var(--blue); }

  /* CADENA data-ownership disclaimer (right column) */
  .cdna-disc { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px 13px; display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
  .cdna-disc-head { display: flex; align-items: center; gap: 7px; }
  .cdna-disc-ico { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: rgba(73,182,255,0.14); color: var(--blue); font-size: 11px; font-weight: 700; flex: none; }
  .cdna-disc-title { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .4px; color: var(--muted); text-transform: uppercase; }
  .cdna-disc-body { font-size: 11.5px; line-height: 1.6; color: #aebbcd; text-wrap: pretty; }
  .cdna-disc-body b { color: var(--text); font-weight: 600; }
  .cdna-disc-link { font-family: var(--mono); font-size: 11px; color: var(--blue); text-decoration: none; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-3); transition: all .12s; text-align: center; }
  .cdna-disc-link:hover { border-color: var(--blue); background: rgba(73,182,255,0.08); }

  /* ============ Mobile / small-screen layout (all dashboard pages) ============ */
  /* Desktop is untouched; below 1100px the 3-column grid stacks into one
     scrollable column so nothing is lost — every panel and the map remain.
     (1100px, not 860px: the three fixed tracks need ~1440px, so landscape
     phones and narrow PC windows would push the right column off-screen.) */
  @media (max-width: 1100px) {
    #root { height: auto; }
    .app { height: auto; min-height: 100vh; grid-template-rows: auto 1fr auto; }

    .topbar { flex-wrap: wrap; height: auto; padding: 8px 12px; gap: 8px 14px; }
    .brand { flex-wrap: wrap; gap: 8px 11px; width: 100%; flex-basis: 100%; min-width: 0; }
    .page-nav { order: 6; width: 100%; max-width: calc(100vw - 24px); min-width: 0; margin-left: 0; padding-left: 0; border-left: none;
      padding-top: 8px; border-top: 1px solid var(--line); overflow-x: auto; flex-wrap: nowrap; }
    .page-tab { flex: none; }
    .status-cluster { flex-wrap: wrap; gap: 8px; }
    .topbar-right { margin-left: 0; gap: 12px; flex-wrap: wrap; }
    .sync { padding-left: 10px; }

    /* stack the three columns */
    .body { grid-template-columns: 1fr; grid-auto-rows: max-content; gap: 10px;
      background: transparent; overflow: visible; padding: 10px; }
    .col-left, .col-right { overflow: visible; padding: 0; }
    .col-map { padding: 0; order: -1; }            /* map first on mobile */
    .map-head { flex-wrap: wrap; gap: 8px; }
    .legend { flex-wrap: wrap; }

    /* give the canvas maps an explicit height once flex no longer stretches them */
    .map-wrap, .usmap-wrap { flex: none; height: 64vh; min-height: 340px; }
    .ven-mappanel .usmap-wrap { height: 60vh; min-height: 320px; }

    .appfoot { height: auto; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 12px; }
    .appfoot > span { font-size: 9.5px; line-height: 1.5; }

    /* Venezuela page: let the whole page scroll instead of an inner pane */
    .ven-app { height: auto; min-height: 100vh; }
    .ven-body { overflow: visible; }
    .ven-topbar { position: sticky; top: 0; z-index: 50; }
    .ven-fl-head, .ven-fl-row { min-width: 760px; }

    /* Space Weather product grid */
    .sw-grid { grid-template-columns: 1fr 1fr; }
  }

  /* portrait / narrow hardening — prevent horizontal overflow that makes mobile
     browsers shrink-to-fit the whole page (the "distortion" on rotating) */
  @media (max-width: 860px) {
    html, body { overflow-x: hidden; max-width: 100%; }
    .app, .ven-app { overflow-x: hidden; max-width: 100vw; }
    .ven-body { min-width: 0; }
    .ven-body > *, .ven-col > *, .ven-grid-two > *, .ven-grid-main > * { min-width: 0; max-width: 100%; }
    .ven-flights { overflow: hidden; }                 /* table scrolls inside its own pane */
    .ven-fl-head, .ven-fl-row { min-width: 680px; }
    .topbar > *, .ven-topbar > * { min-width: 0; }
    .brand, .brand-txt { min-width: 0; }
    .brand-name, .ven-name { white-space: normal; overflow-wrap: anywhere; }
    .map-head, .legend { max-width: 100%; }
  }

  @media (max-width: 560px) {
    .brand-name, .ven-name { font-size: 14px; letter-spacing: 1.5px; }
    .brand-sub { font-size: 9px; }
    .map-wrap, .usmap-wrap { height: 56vh; min-height: 300px; }
    .ven-kpis { gap: 8px; }
    .sw-grid { grid-template-columns: 1fr; }
    .ven-clock-time { font-size: 18px; }
  }

  /* ============ Page 8 — Space Launches ============ */
  /* provider filter chips */
  .lp-filters { display: flex; flex-wrap: wrap; gap: 6px; }
  .lp-chip {
    --pc: #93a6c4;
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px 5px 8px;
    border-radius: 6px; border: 1px solid var(--line); background: var(--panel-3);
    transition: all .12s; opacity: .5;
  }
  .lp-chip:hover { border-color: var(--line-2); }
  .lp-chip.on { opacity: 1; border-color: color-mix(in srgb, var(--pc) 50%, transparent); background: color-mix(in srgb, var(--pc) 10%, var(--panel-3)); }
  .lp-chip:disabled { opacity: .28; cursor: default; }
  .lp-chip-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 7px var(--pc); flex: none; }
  .lp-chip:not(.on) .lp-chip-dot { box-shadow: none; opacity: .6; }
  .lp-chip-name { font-size: 11.5px; color: var(--text); font-weight: 500; }
  .lp-chip-n { font-family: var(--mono); font-size: 10px; color: var(--muted-2); }

  /* upcoming / recent list */
  .lp-listpanel { flex: 1; display: flex; flex-direction: column; min-height: 0; }
  .lp-modetabs { display: flex; gap: 2px; background: var(--panel-3); padding: 2px; border-radius: 6px; border: 1px solid var(--line); }
  .lp-modetab { font-family: var(--mono); font-size: 10px; letter-spacing: .4px; color: var(--muted); padding: 3px 8px; border-radius: 4px; transition: all .12s; }
  .lp-modetab:hover { color: var(--text); }
  .lp-modetab.on { color: #06121d; background: var(--blue); font-weight: 600; }
  .lp-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; margin-top: 2px; }
  .lp-row {
    --pc: #49b6ff;
    display: grid; grid-template-columns: 3px 1fr auto; gap: 10px; align-items: center; text-align: left;
    background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 9px 11px 9px 8px;
    transition: all .12s;
  }
  .lp-row:hover { background: var(--panel-3); border-color: var(--line-2); }
  .lp-row.sel { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 9%, var(--panel)); }
  .lp-row-bar { width: 3px; align-self: stretch; min-height: 38px; border-radius: 2px; background: var(--pc); }
  .lp-row-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .lp-row-top { display: flex; align-items: baseline; gap: 8px; }
  .lp-row-prov { font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
  .lp-row-orbit { font-family: var(--mono); font-size: 9px; color: var(--muted-2); letter-spacing: .3px; }
  .lp-row-veh { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lp-row-meta { font-size: 10.5px; color: var(--muted-2); font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lp-row-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
  .lp-row-cd { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--text); letter-spacing: .3px; }
  .lp-row-cd.soon { color: var(--mod); }
  .lp-row-net { font-family: var(--mono); font-size: 9.5px; color: var(--muted-2); }
  .lp-row-status { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .4px; }

  /* selected detail */
  .lp-detail { --pc: #49b6ff; display: flex; flex-direction: column; gap: 10px; }
  .lp-detail-head { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--pc); border-radius: 8px; padding: 12px 13px; }
  .lp-detail-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .lp-detail-prov { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
  .lp-detail-status { font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .5px; padding: 2px 7px; border: 1px solid; border-radius: 4px; }
  .lp-detail-name { font-size: 17px; font-weight: 600; line-height: 1.2; margin-top: 8px; text-wrap: pretty; }
  .lp-detail-cd { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: 1px; margin-top: 8px; }
  .lp-detail-cd.done { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .3px; }
  .lp-cd-sign { color: var(--pc); }
  .lp-fields { padding: 4px 12px; }
  .lp-fields .df-v { max-width: 56%; white-space: normal; text-align: right; word-break: break-word; }
  .lp-hazard-note {
    display: flex; gap: 9px; align-items: flex-start; font-size: 11.5px; line-height: 1.5; color: #aebbcd;
    background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; text-wrap: pretty;
  }
  .lp-hazard-note b { color: var(--text); font-weight: 600; }
  .lp-hazard-ico { flex: none; width: 11px; height: 11px; border-radius: 3px; margin-top: 2px; opacity: .9; }

  /* airspace closures */
  .lp-closures { display: flex; flex-direction: column; gap: 6px; }
  .lp-clo {
    --pc: #49b6ff; text-align: left; display: flex; flex-direction: column; gap: 3px;
    background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--pc); border-radius: 7px;
    padding: 8px 11px; transition: all .12s;
  }
  .lp-clo:hover { background: var(--panel-3); border-color: var(--line-2); border-left-color: var(--pc); }
  .lp-clo.sel { background: color-mix(in srgb, var(--pc) 10%, var(--panel)); }
  .lp-clo-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
  .lp-clo-ref { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--pc); letter-spacing: .4px; }
  .lp-clo-alt { font-family: var(--mono); font-size: 9.5px; color: var(--muted-2); }
  .lp-clo-area { font-size: 12.5px; font-weight: 500; color: var(--text); }
  .lp-clo-meta, .lp-clo-win { font-family: var(--mono); font-size: 9.5px; color: var(--muted-2); }

  /* stats foot */
  .lp-stat-foot { display: flex; gap: 12px; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); }
  .lp-stat-foot .muted { color: var(--muted-2); }

  /* legend swatches */
  .lp-leg-corr { width: 14px; height: 10px; border-radius: 2px; border: 1px dashed rgba(73,182,255,0.85); background: rgba(73,182,255,0.14); }
  .lp-leg-track { width: 16px; height: 0; border-top: 2px dashed rgba(150,180,230,0.8); }

  /* launch-site markers on the map */
  .lm-wrap { flex: 1; }
  .lm-sites { position: absolute; inset: 0; }
  .lm-site {
    --lc: #93a6c4; position: absolute; transform: translate(-50%, -50%);
    display: flex; align-items: center; gap: 5px; cursor: pointer;
  }
  .lm-site.flip { flex-direction: row-reverse; }
  .lm-site-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lc); box-shadow: 0 0 0 2px rgba(7,12,19,0.85), 0 0 8px var(--lc); flex: none; transition: transform .12s; }
  .lm-site:hover .lm-site-dot, .lm-site.sel .lm-site-dot { transform: scale(1.35); }
  .lm-site-ring { position: absolute; left: 0; top: 50%; transform: translate(-50%, -50%); width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--lc); animation: lmpulse 2.3s ease-out infinite; pointer-events: none; }
  .lm-site.flip .lm-site-ring { left: auto; right: 0; transform: translate(50%, -50%); }
  @keyframes lmpulse { 0% { transform: translate(-50%,-50%) scale(.6); opacity: .9; } 100% { transform: translate(-50%,-50%) scale(3); opacity: 0; } }
  .lm-site-pill {
    display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; padding: 1px 6px; border-radius: 4px;
    background: rgba(8,13,20,0.78); border: 1px solid color-mix(in srgb, var(--lc) 45%, transparent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4); transition: all .12s;
  }
  .lm-site.on .lm-site-pill, .lm-site.sel .lm-site-pill { background: rgba(8,13,20,0.96); border-color: var(--lc); }
  .lm-site-name { font-size: 10px; font-weight: 600; color: var(--text); letter-spacing: .2px; }
  .lm-site-n { font-family: var(--mono); font-size: 8.5px; font-weight: 700; color: #06121d; background: var(--lc); padding: 0 4px; border-radius: 6px; }
  .lm-tip {
    position: absolute; bottom: 150%; left: 50%; transform: translateX(-50%); width: 210px; z-index: 70;
    display: flex; flex-direction: column; gap: 3px; pointer-events: none;
    background: rgba(10,16,24,0.98); border: 1px solid var(--line-2); border-left: 3px solid var(--lc);
    border-radius: 7px; padding: 9px 11px; box-shadow: 0 10px 28px rgba(0,0,0,0.55);
  }
  .lm-site.flip .lm-tip { left: auto; right: 50%; transform: translateX(50%); }
  .lm-tip-name { font-size: 12.5px; font-weight: 600; color: var(--text); text-wrap: pretty; }
  .lm-tip-meta { font-family: var(--mono); font-size: 9.5px; color: var(--muted); }
  .lm-tip-next { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #c2cfde; margin-top: 2px; }
  .lm-tip-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
  .lm-tip-hint { font-family: var(--mono); font-size: 9px; color: var(--muted-2); letter-spacing: .3px; margin-top: 2px; }

  /* ============ Page 9 — Daily Executive Brief ============ */
  .br-app { grid-template-rows: 58px 1fr; }
  .br-refresh { width: 30px; height: 30px; }
  .br-refresh.spin .sync-ico { animation: spin .9s linear infinite; }
  .br-body { overflow-y: auto; background: var(--bg); }
  .br-inner { max-width: 1200px; margin: 0 auto; padding: 22px 22px 40px; display: flex; flex-direction: column; gap: 22px; }

  /* posture hero */
  .br-hero {
    --pl: #34d8a8;
    display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
    background: linear-gradient(120deg, color-mix(in srgb, var(--pl) 10%, var(--panel)), var(--panel) 62%);
    border: 1px solid var(--line); border-left: 4px solid var(--pl);
    border-radius: 14px; padding: 22px 24px;
  }
  .br-greeting { font-size: 13px; color: var(--muted); letter-spacing: .2px; }
  .br-posture-row { display: flex; align-items: baseline; gap: 14px; margin-top: 8px; }
  .br-posture-word { font-size: 38px; font-weight: 700; line-height: 1; color: var(--pl); letter-spacing: -.5px; }
  .br-posture-tag { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--pl); padding: 4px 10px; border-radius: 5px; border: 1px solid color-mix(in srgb, var(--pl) 45%, transparent); background: color-mix(in srgb, var(--pl) 12%, transparent); }
  .br-posture-sub { font-size: 14px; color: var(--text); margin-top: 12px; line-height: 1.5; text-wrap: pretty; max-width: 56ch; }
  .br-posture-meta { font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); margin-top: 10px; letter-spacing: .3px; }
  .br-hero-right { flex: none; }
  .br-breakdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .br-bd-item { --bc: #34d8a8; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 64px; padding: 12px 8px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); }
  .br-bd-n { font-family: var(--mono); font-size: 24px; font-weight: 700; line-height: 1; color: var(--bc); }
  .br-bd-l { font-size: 9.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted-2); }

  /* sections */
  .br-section { display: flex; flex-direction: column; gap: 11px; }
  .br-section-title { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
  .br-section-note { font-family: var(--sans); font-size: 10.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted-2); }
  .br-count { font-family: var(--mono); font-size: 11px; font-weight: 700; color: #06121d; background: var(--crit); padding: 1px 7px; border-radius: 8px; letter-spacing: 0; }
  .br-since { font-family: var(--sans); font-size: 10.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted-2); }

  /* calm / empty states */
  .br-calm { display: flex; align-items: center; gap: 11px; font-size: 13px; color: #aebbcd; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
  .br-calm-ico { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); font-size: 13px; font-weight: 700; flex: none; }
  .br-calm-info .br-calm-ico { background: rgba(73,182,255,0.14); color: var(--blue); }

  /* attention rows */
  .br-att-list { display: flex; flex-direction: column; gap: 8px; }
  .br-att-row {
    --ac: #f5c043; display: grid; grid-template-columns: 4px 1fr auto; gap: 14px; align-items: center; text-decoration: none;
    background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 14px 0; transition: all .12s;
  }
  .br-att-row:hover { border-color: color-mix(in srgb, var(--ac) 55%, transparent); background: color-mix(in srgb, var(--ac) 7%, var(--panel)); }
  .br-att-row.standing { opacity: .92; }
  .br-att-bar { width: 4px; align-self: stretch; min-height: 40px; border-radius: 0 3px 3px 0; background: var(--ac); }
  .br-att-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .br-att-title { font-size: 14px; font-weight: 600; color: var(--text); }
  .br-att-detail { font-size: 12px; color: var(--muted); line-height: 1.5; text-wrap: pretty; }
  .br-att-meta { display: flex; align-items: center; gap: 10px; flex: none; padding-right: 16px; }
  .br-att-dom { font-family: var(--mono); font-size: 10px; color: var(--muted-2); letter-spacing: .3px; white-space: nowrap; }
  .br-att-arrow { color: var(--ac); font-size: 15px; }

  /* change chips */
  .br-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .br-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 9px;
    background: var(--panel); border: 1px solid var(--line); font-size: 12px; color: var(--text);
  }
  .br-chip-arrow { font-size: 10px; }
  .br-chip.worse { border-color: color-mix(in srgb, var(--crit) 40%, transparent); }
  .br-chip.worse .br-chip-arrow { color: var(--crit); }
  .br-chip.better { border-color: color-mix(in srgb, var(--green) 40%, transparent); }
  .br-chip.better .br-chip-arrow { color: var(--green); }
  .br-chip-l { color: var(--muted); }
  .br-chip-v { font-family: var(--mono); font-size: 11.5px; font-weight: 600; }

  /* domain grid */
  .br-domains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .br-card {
    --lc: #6075a0; display: flex; flex-direction: column; gap: 6px; text-decoration: none;
    background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--lc);
    border-radius: 11px; padding: 14px 15px; transition: all .12s;
  }
  .br-card:hover { border-color: var(--line-2); border-top-color: var(--lc); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,0,0,0.28); }
  .br-card-top { display: flex; align-items: center; gap: 7px; }
  .br-card-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lc); box-shadow: 0 0 8px var(--lc); flex: none; }
  .br-card-level { font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: 1px; color: var(--lc); }
  .br-card-standing { font-family: var(--mono); font-size: 8px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
  .br-card-arrow { margin-left: auto; color: var(--muted-2); font-size: 14px; transition: color .12s; }
  .br-card:hover .br-card-arrow { color: var(--lc); }
  .br-card-name { font-size: 13.5px; font-weight: 600; color: var(--text); }
  .br-card-headline { font-family: var(--mono); font-size: 16px; font-weight: 600; color: var(--text); }
  .br-card-sub { font-size: 11px; color: var(--muted-2); line-height: 1.45; }
  .br-card-note { font-size: 10px; color: var(--muted-2); line-height: 1.4; margin-top: 4px; padding-top: 7px; border-top: 1px solid var(--line); text-wrap: pretty; }

  .br-foot { font-family: var(--mono); font-size: 10px; color: var(--muted-2); line-height: 1.7; letter-spacing: .2px; padding: 6px 2px 0; text-wrap: pretty; }

  /* two-column layout: main + right sidebar */
  .br-cols { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
  .br-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
  .br-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; align-self: start; }
  .br-cols .br-domains { grid-template-columns: repeat(3, 1fr); }
  .br-side-panel .panel-head { margin-bottom: 9px; }
  .br-side-lead { font-size: 12px; color: var(--muted); line-height: 1.55; margin: 0 0 11px; text-wrap: pretty; }

  .br-install-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .4px; color: #06121d;
    background: var(--blue); border-radius: 7px; padding: 10px; margin-bottom: 11px; transition: filter .12s;
  }
  .br-install-btn:hover { filter: brightness(1.08); }
  .br-install-btn span { font-size: 14px; }
  .br-install-done { font-family: var(--mono); font-size: 11.5px; color: var(--green); margin-bottom: 11px; }

  .br-steps { display: flex; flex-direction: column; gap: 9px; }
  .br-step { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 7px; background: var(--panel-3); border: 1px solid var(--line); }
  .br-step-os { font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--blue); }
  .br-step-tx { font-size: 11.5px; color: #b9c6da; line-height: 1.5; text-wrap: pretty; }
  .br-step-tx b { color: var(--text); font-weight: 600; }

  .br-disc { border-left: 3px solid var(--crit); }
  .br-disc .panel-title { color: var(--crit); }
  .br-disc-tx { font-size: 12px; color: #c2cfde; line-height: 1.6; margin: 0 0 9px; text-wrap: pretty; }
  .br-disc-tx:last-child { margin-bottom: 0; }
  .br-disc-tx b { color: var(--text); font-weight: 600; }

  .br-contact { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-3); text-decoration: none; transition: all .12s; margin-bottom: 7px; }
  .br-contact:last-child { margin-bottom: 0; }
  .br-contact:hover { border-color: var(--line-2); background: var(--panel-2); }
  .br-contact-ico { flex: none; width: 26px; height: 26px; border-radius: 7px; }
  .br-ic-mail { background: linear-gradient(180deg, #6fb4ff, #2a6fdb); box-shadow: 0 0 9px rgba(73,182,255,0.35); }
  .br-ic-chat { background: linear-gradient(135deg, #00ac47 0 25%, #ffba00 25% 50%, #ea4335 50% 75%, #2684fc 75%); }
  .br-ic-spotify { background: #1db954; box-shadow: 0 0 9px rgba(29,185,84,0.45); position: relative; }
  .br-ic-spotify::after { content: ""; position: absolute; inset: 0; border-radius: 7px; background:
    radial-gradient(circle at 50% 62%, transparent 2px, #06121d 2px 3px, transparent 3px),
    linear-gradient(0deg, transparent 0, transparent 100%); opacity: .55; }
  .br-contact-body { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
  .br-contact-title { font-size: 12.5px; font-weight: 600; color: var(--text); }
  .br-contact-sub { font-family: var(--mono); font-size: 10px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .br-contact-arrow { color: var(--muted-2); font-size: 13px; }
  .br-contact:hover .br-contact-arrow { color: var(--blue); }

  @media (max-width: 1100px) { .br-domains, .br-cols .br-domains { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 980px) {
    .br-cols { grid-template-columns: 1fr; }
    .br-side { position: static; flex-direction: row; flex-wrap: wrap; }
    .br-side-panel { flex: 1 1 280px; }
  }
  @media (max-width: 860px) {
    .br-hero { grid-template-columns: 1fr; gap: 16px; }
    .br-posture-word { font-size: 32px; }
    .br-breakdown { grid-template-columns: repeat(4, 1fr); }
    .br-att-row { grid-template-columns: 4px 1fr; }
    .br-att-meta { grid-column: 2; padding: 0 16px 0 0; }
  }
  @media (max-width: 560px) {
    .br-inner { padding: 14px 12px 30px; gap: 18px; }
    .br-domains, .br-cols .br-domains { grid-template-columns: 1fr; }
    .br-bd-item { min-width: 0; }
    .br-side { flex-direction: column; }
  }

  /* ============ Tropical Cyclone Watch (page 10) ============ */
  .tcw-hero { display: flex; flex-direction: column; gap: 12px; }
  .tcw-hero-top { display: flex; align-items: center; gap: 14px; }
  .tcw-hero-num { font-family: var(--mono); font-size: 46px; font-weight: 700; line-height: .95; color: var(--text); }
  .tcw-hero-meta { display: flex; flex-direction: column; gap: 3px; }
  .tcw-hero-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); }
  .tcw-hero-sub { font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); }
  .tcw-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
  .tcw-cat { display: flex; flex-direction: column; gap: 4px; padding: 8px 9px; border-radius: 7px;
    background: var(--panel-3); border: 1px solid var(--line); border-top: 2px solid var(--cc, var(--muted-2)); }
  .tcw-cat-n { font-family: var(--mono); font-size: 20px; font-weight: 700; line-height: 1; color: var(--text); }
  .tcw-cat.zero .tcw-cat-n { color: var(--muted-2); }
  .tcw-cat-lbl { font-size: 9px; letter-spacing: .4px; text-transform: uppercase; color: var(--muted-2); }
  .tcw-strong { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 8px;
    background: color-mix(in srgb, var(--sc, var(--blue)) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--sc, var(--blue)) 40%, transparent); }
  .tcw-strong-badge { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--sc, var(--blue));
    padding: 5px 8px; border-radius: 5px; background: color-mix(in srgb, var(--sc, var(--blue)) 18%, transparent); white-space: nowrap; }
  .tcw-strong-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  .tcw-strong-lbl { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted-2); }
  .tcw-strong-name { font-size: 15px; font-weight: 600; color: var(--text); }
  .tcw-strong-stat { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }

  /* Saffir–Simpson reference */
  .ss-scale { display: flex; flex-direction: column; gap: 3px; }
  .ss-row { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 5px; }
  .ss-row:hover { background: var(--panel-3); }
  .ss-chip { width: 12px; height: 12px; border-radius: 3px; }
  .ss-name { font-size: 12px; color: var(--text); }
  .ss-name span { color: var(--muted-2); font-size: 10.5px; }
  .ss-wind { font-family: var(--mono); font-size: 10.5px; color: var(--muted); white-space: nowrap; }

  /* storm cards (right column) */
  .tcw-list { display: flex; flex-direction: column; gap: 9px; }
  .tcw-card { border-radius: 9px; background: var(--panel-3); border: 1px solid var(--line); border-left: 3px solid var(--sc); padding: 11px 12px; }
  .tcw-card-head { display: flex; align-items: center; gap: 10px; }
  .tcw-card-badge { display: grid; place-items: center; min-width: 50px; height: 42px; padding: 0 6px; border-radius: 6px;
    background: color-mix(in srgb, var(--sc) 16%, transparent); border: 1px solid color-mix(in srgb, var(--sc) 45%, transparent);
    font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--sc); text-align: center; line-height: 1.1; }
  .tcw-card-title { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
  .tcw-card-name { font-size: 15px; font-weight: 600; color: var(--text); }
  .tcw-card-class { font-size: 11px; color: var(--sc); font-weight: 500; }
  .tcw-card-adv { font-family: var(--mono); font-size: 9px; color: var(--muted-2); text-align: right; white-space: nowrap; line-height: 1.4; }
  .tcw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
  .tcw-stat { background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; }
  .tcw-stat-lbl { font-size: 9px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted-2); }
  .tcw-stat-val { font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--text); margin-top: 2px; }
  .tcw-stat-val small { font-size: 10px; color: var(--muted); font-weight: 400; }
  .tcw-empty { display: flex; flex-direction: column; gap: 5px; padding: 22px 12px; text-align: center; align-items: center; }
  .tcw-empty-big { font-size: 14px; font-weight: 600; color: var(--green); }
  .tcw-empty-sub { font-size: 11.5px; color: var(--muted-2); line-height: 1.5; text-wrap: pretty; }

  /* coastal-airport threat markers on the cyclone / F13 maps (scoped by level class) */
  .ap-labels { position: absolute; inset: 0; pointer-events: none; }
  .ap-tag.ap-nominal, .ap-tag.ap-yellow, .ap-tag.ap-red { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 4px; pointer-events: auto; cursor: default; }
  .ap-nominal { --apc: #7f97ba; }
  .ap-yellow { --apc: #ffc24d; }
  .ap-red { --apc: #ff4d4d; }
  .ap-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--apc); box-shadow: 0 0 0 1.4px rgba(7,12,19,0.85); transform: rotate(45deg); }
  .ap-nominal .ap-dot { width: 5px; height: 5px; border-radius: 50%; opacity: .5; transform: none; }
  .ap-yellow .ap-dot, .ap-red .ap-dot { box-shadow: 0 0 0 1.4px rgba(7,12,19,0.85), 0 0 7px var(--apc); }
  .ap-red .ap-dot { animation: apPulse 1.35s ease-out infinite; }
  @keyframes apPulse {
    0% { box-shadow: 0 0 0 1.4px rgba(7,12,19,0.85), 0 0 0 0 rgba(255,77,77,0.55); }
    70%, 100% { box-shadow: 0 0 0 1.4px rgba(7,12,19,0.85), 0 0 0 7px rgba(255,77,77,0); }
  }
  @media (prefers-reduced-motion: reduce) { .ap-red .ap-dot { animation: none; } }
  .ap-nominal .ap-code, .ap-yellow .ap-code, .ap-red .ap-code { font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .3px; color: var(--apc);
    background: rgba(8,13,20,0.82); padding: 1px 4px; border-radius: 3px;
    border: 1px solid color-mix(in srgb, var(--apc) 45%, transparent); white-space: nowrap; }
  .ap-tip {
    position: absolute; bottom: 150%; left: 50%; transform: translateX(-50%);
    width: 208px; display: flex; flex-direction: column; gap: 3px; z-index: 80; pointer-events: none;
    background: rgba(10,18,32,0.98); border: 1px solid var(--line-2); border-left: 3px solid var(--apc);
    border-radius: 7px; padding: 8px 10px; box-shadow: 0 10px 28px rgba(0,0,0,0.55);
  }
  .ap-tip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
  .ap-tip-code { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--text); }
  .ap-tip-lvl { font-size: 9px; text-transform: uppercase; letter-spacing: .6px; font-weight: 600; }
  .ap-tip-red { color: #ff6b6b; }
  .ap-tip-yellow { color: #ffc24d; }
  .ap-tip-nominal { color: var(--muted-2); }
  .ap-tip-name { font-size: 11.5px; color: var(--text); line-height: 1.3; }
  .ap-tip-meta { font-family: var(--mono); font-size: 9.5px; color: var(--muted); }

  /* airports-at-risk panel (left column) */
  .apx-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 10px; }
  .apx-cell { display: flex; flex-direction: column; gap: 3px; padding: 8px 9px; border-radius: 7px; background: var(--panel-3); border: 1px solid var(--line); border-top: 2px solid var(--ac2, var(--muted-2)); }
  .apx-cell.red { --ac2: #ff4d4d; }
  .apx-cell.yellow { --ac2: #ffc24d; }
  .apx-cell.mon { --ac2: #7f97ba; }
  .apx-n { font-family: var(--mono); font-size: 20px; font-weight: 700; line-height: 1; color: var(--text); }
  .apx-cell.red .apx-n { color: #ff6b6b; }
  .apx-cell.yellow .apx-n { color: #ffc24d; }
  .apx-lbl { font-size: 9px; letter-spacing: .4px; text-transform: uppercase; color: var(--muted-2); }
  .apx-list { display: flex; flex-direction: column; gap: 5px; }
  .apx-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 6px;
    background: var(--panel-3); border: 1px solid var(--line); border-left: 3px solid var(--rc); }
  .apx-row.red { --rc: #ff4d4d; }
  .apx-row.yellow { --rc: #ffc24d; }
  .apx-code { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--rc); }
  .apx-body { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
  .apx-name { font-size: 11.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .apx-near { font-family: var(--mono); font-size: 9px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .apx-dist { font-family: var(--mono); font-size: 10px; color: var(--muted); text-align: right; white-space: nowrap; }
  .apx-ok { display: flex; flex-direction: column; gap: 4px; padding: 14px 8px; text-align: center; align-items: center; }
  .apx-ok-big { font-size: 12.5px; font-weight: 600; color: var(--green); }
  .apx-ok-sub { font-size: 10.5px; color: var(--muted-2); line-height: 1.5; }

  /* ============ Page 13 — Alerta Temprana de Huracanes ============ */
  .hurr-center { gap: 10px; }
  .sat-panel { flex: 1 1 54%; min-height: 0; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
  .sat-bar { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
  .sat-basins { display: flex; gap: 4px; }
  .sat-basin { font-family: var(--mono); font-size: 11px; letter-spacing: .4px; color: var(--muted); padding: 5px 12px; border-radius: 6px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(150,180,230,0.09), rgba(150,180,230,0.04)); box-shadow: 0 1px 2px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05); transition: border-color .15s, box-shadow .15s, color .15s; }
  .sat-basin:hover { color: var(--text); border-color: var(--blue); box-shadow: 0 2px 6px rgba(0,0,0,0.4), 0 0 0 1px rgba(73,182,255,0.25); }
  .sat-basin.on { color: #06121f; background: var(--blue); border-color: var(--blue); font-weight: 600; box-shadow: 0 2px 8px rgba(73,182,255,0.4), inset 0 1px 0 rgba(255,255,255,0.25); }
  .sat-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
  .sat-loop { font-family: var(--mono); font-size: 10.5px; letter-spacing: .3px; color: var(--blue); text-decoration: none; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(180deg, rgba(73,182,255,0.08), rgba(73,182,255,0.03)); box-shadow: 0 1px 2px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05); transition: border-color .15s, box-shadow .15s, background .15s; }
  .sat-loop:hover { border-color: var(--blue); background: rgba(73,182,255,0.12); box-shadow: 0 2px 6px rgba(0,0,0,0.4), 0 0 0 1px rgba(73,182,255,0.3); }
  .sat-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 11px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
  .sat-secs, .sat-prods { display: flex; gap: 4px; align-items: center; }
  .sat-sec, .sat-prod { font-family: var(--mono); font-size: 10.5px; letter-spacing: .3px; color: var(--muted); padding: 4px 10px; border-radius: 5px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(150,180,230,0.08), rgba(150,180,230,0.03)); box-shadow: 0 1px 2px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04); transition: border-color .15s, box-shadow .15s, color .15s; }
  .sat-sec:hover, .sat-prod:hover { color: var(--text); border-color: var(--blue); box-shadow: 0 2px 6px rgba(0,0,0,0.4), 0 0 0 1px rgba(73,182,255,0.22); }
  .sat-sec.on, .sat-prod.on { color: var(--text); background: var(--panel-3); border-color: var(--blue); box-shadow: 0 2px 8px rgba(73,182,255,0.28), 0 0 0 1px rgba(73,182,255,0.3), inset 0 1px 0 rgba(255,255,255,0.06); }
  .sat-refresh { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: linear-gradient(180deg, rgba(150,180,230,0.08), rgba(150,180,230,0.03)); box-shadow: 0 1px 2px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04); font-size: 14px; transition: border-color .15s, box-shadow .15s, color .15s; }
  .sat-refresh:hover { color: var(--blue); border-color: var(--blue); box-shadow: 0 2px 6px rgba(0,0,0,0.4), 0 0 0 1px rgba(73,182,255,0.25); }
  .sat-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background:
      radial-gradient(700px 400px at 50% 40%, rgba(73,182,255,0.05), transparent 70%), #060d1a; }
  .sat-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
  .sat-msg { display: flex; flex-direction: column; gap: 6px; text-align: center; padding: 30px 24px; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .5px; }
  .sat-msg span { font-family: var(--sans); font-size: 11px; color: var(--muted-2); letter-spacing: 0; max-width: 340px; }
  .sat-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 10px; padding: 7px 11px; font-family: var(--mono); font-size: 10px; letter-spacing: .3px; color: var(--muted); background: linear-gradient(0deg, rgba(6,13,26,0.92), rgba(6,13,26,0)); pointer-events: none; }
  .sat-cap span:last-child { color: var(--muted-2); }

  .hurr-mappanel { flex: 1 1 46%; min-height: 240px; display: flex; flex-direction: column; }
  .hurr-mapbox { flex: 1; min-height: 200px; display: flex; }
  .hurr-mapbox .map-wrap { flex: 1; min-height: 0; }

  /* left — basin status cards */
  .bsn-wrap { display: flex; flex-direction: column; gap: 8px; }
  .bsn { border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; background: var(--panel-2); border-left-width: 3px; }
  .bsn-alert { border-left-color: #ff5f52; }
  .bsn-watch { border-left-color: var(--mod); }
  .bsn-clear { border-left-color: var(--green); }
  .bsn-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
  .bsn-name { font-size: 13px; font-weight: 600; color: var(--text); }
  .bsn-badge { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1px; padding: 3px 8px; border-radius: 4px; font-weight: 600; }
  .bsn-badge.bsn-alert { background: rgba(255,95,82,0.16); color: #ff8a80; }
  .bsn-badge.bsn-watch { background: rgba(245,192,67,0.16); color: var(--mod); }
  .bsn-badge.bsn-clear { background: rgba(52,216,168,0.14); color: var(--green); }
  .bsn-body { display: flex; align-items: center; gap: 12px; }
  .bsn-num { font-family: var(--mono); font-size: 30px; font-weight: 600; line-height: 1; }
  .bsn-meta { display: flex; flex-direction: column; gap: 2px; }
  .bsn-lbl { font-size: 11px; color: var(--muted); }
  .bsn-strong { font-size: 11.5px; color: var(--text); }
  .bsn-strong.bsn-muted { color: var(--muted-2); }

  /* left — early-warning levels */
  .ewl { display: flex; flex-direction: column; gap: 9px; }
  .ewl-row { display: flex; gap: 9px; align-items: flex-start; }
  .ewl-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 3px; flex: none; }
  .ewl-dot.alert { background: #ff5f52; box-shadow: 0 0 0 3px rgba(255,95,82,0.16); }
  .ewl-dot.watch { background: var(--mod); box-shadow: 0 0 0 3px rgba(245,192,67,0.16); }
  .ewl-dot.clear { background: var(--green); box-shadow: 0 0 0 3px rgba(52,216,168,0.14); }
  .ewl-body { display: flex; flex-direction: column; gap: 2px; }
  .ewl-body b { font-size: 11px; letter-spacing: .6px; color: var(--text); }
  .ewl-body span { font-size: 11px; color: var(--muted); line-height: 1.4; }

  /* right — per-storm rows */
  .hurr-feed { display: flex; flex-direction: column; gap: 14px; }
  .hsec { display: flex; flex-direction: column; gap: 8px; }
  .hsec-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 2px; border-bottom: 1px solid var(--line); }
  .hsec-title { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; color: var(--text); }
  .hsec-note { font-family: var(--mono); font-size: 10px; color: var(--muted-2); }
  .hsec-empty { font-size: 11.5px; color: var(--muted-2); padding: 6px 2px; }
  .hst { border: 1px solid var(--line); border-radius: 8px; padding: 10px 11px; background: var(--panel-2); border-left: 3px solid var(--sc); }
  .hst-head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
  .hst-badge { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .5px; padding: 3px 7px; border-radius: 4px; color: #06121f; background: var(--sc); flex: none; }
  .hst-title { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
  .hst-name { font-size: 13px; font-weight: 600; color: var(--text); }
  .hst-class { font-size: 10.5px; color: var(--muted); }
  .hst-adv { font-family: var(--mono); font-size: 10px; color: var(--muted-2); text-align: right; flex: none; }
  .hst-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 6px; overflow: hidden; }
  .hst-cell { background: var(--panel); padding: 7px 9px; display: flex; flex-direction: column; gap: 2px; }
  .hst-k { font-size: 9.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted-2); }
  .hst-v { font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--text); }
  .hst-v small { font-size: 10px; font-weight: 400; color: var(--muted); }
  .hst-v.hst-pos { font-size: 12px; }
  .hst-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
  .hst-upd { font-size: 10px; color: var(--muted-2); }
  .hst-link { font-family: var(--mono); font-size: 10px; color: var(--blue); text-decoration: none; white-space: nowrap; padding: 3px 9px; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(180deg, rgba(73,182,255,0.08), rgba(73,182,255,0.03)); box-shadow: 0 1px 2px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05); transition: border-color .15s, box-shadow .15s, background .15s; }
  .hst-link:hover { border-color: var(--blue); background: rgba(73,182,255,0.12); box-shadow: 0 2px 6px rgba(0,0,0,0.4), 0 0 0 1px rgba(73,182,255,0.3); }

  @media (max-width: 900px) {
    .sat-panel { flex: none; height: 60vh; min-height: 340px; }
    .hurr-mappanel { flex: none; }
  }

  /* ============ Page 12 — Webcast SpaceX ============ */
  .wc-body { display: grid; grid-template-columns: 1fr 360px; gap: 12px; padding: 14px; min-height: 0; overflow: hidden;
    background: radial-gradient(1200px 600px at 60% -10%, rgba(73,182,255,0.06), transparent 60%), var(--bg); }
  .wc-main { min-width: 0; display: flex; }
  .wc-videopanel { flex: 1; display: flex; flex-direction: column; padding: 12px; min-width: 0; }
  .wc-vhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
  .wc-vtitle { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: var(--text); }
  .wc-livedot { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 0 3px rgba(255,77,77,0.18); animation: wcpulse 1.6s ease-in-out infinite; }
  @keyframes wcpulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
  .wc-yt-open { font-family: var(--mono); font-size: 10.5px; color: var(--blue); text-decoration: none; padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; }
  .wc-yt-open:hover { border-color: var(--blue); background: rgba(73,182,255,0.08); }
  .wc-stage { flex: 1; position: relative; min-height: 0; background: #000; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
  .wc-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
  .wc-vfoot { display: flex; flex-direction: column; gap: 3px; margin-top: 9px; }
  .wc-vfoot span { font-size: 10.5px; color: var(--muted-2); line-height: 1.4; }
  .wc-side { overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
  .wc-cd-box { border: 1px solid var(--line); border-radius: 8px; padding: 14px; text-align: center; background: var(--panel-2); margin-bottom: 10px; }
  .wc-cd-box.open { border-color: rgba(255,95,82,0.5); background: rgba(255,95,82,0.08); }
  .wc-cd-num { display: block; font-family: var(--mono); font-size: 30px; font-weight: 600; letter-spacing: 1px; color: var(--blue); }
  .wc-cd-box.open .wc-cd-num { color: #ff8a80; }
  .wc-cd-lbl { display: block; font-size: 11px; color: var(--muted); margin-top: 5px; }
  .wc-mi { display: flex; flex-direction: column; gap: 1px; }
  .wc-mi-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 2px; border-bottom: 1px solid var(--line); }
  .wc-mi-row:last-child { border-bottom: none; }
  .wc-mi-k { font-size: 11px; color: var(--muted-2); }
  .wc-mi-v { font-size: 11.5px; color: var(--text); text-align: right; }
  .wc-links { display: flex; flex-direction: column; gap: 6px; }
  .wc-link { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); text-decoration: none; transition: border-color .13s, background .13s; }
  .wc-link:hover { border-color: var(--blue); background: var(--panel-3); }
  .wc-link-ico { width: 26px; height: 26px; border-radius: 6px; flex: none; display: grid; place-items: center; background: var(--panel-3); border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--blue); }
  .wc-ico-yt::before { content: "▶"; font-size: 10px; }
  .wc-ico-x::before { content: "X"; }
  .wc-ico-web::before { content: "◆"; font-size: 10px; }
  .wc-ico-gasos::before { content: "▮▮"; font-size: 8px; letter-spacing: -2px; }
  .wc-link-body { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  .wc-link-title { font-size: 12.5px; font-weight: 600; color: var(--text); }
  .wc-link-sub { font-size: 10.5px; color: var(--muted-2); }
  .wc-link-arrow { color: var(--muted); font-size: 13px; }
  .wc-note-head { display: flex; align-items: center; gap: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
  .wc-note-ico { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--mod); position: relative; flex: none; }
  .wc-note-ico::before { content: "i"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 9px; font-weight: 700; color: var(--mod); }
  .wc-note-body { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin: 0; }
  .wc-note-body a { color: var(--blue); text-decoration: none; }
  .wc-note-body a:hover { text-decoration: underline; }
  @media (max-width: 900px) {
    .wc-body { grid-template-columns: 1fr; overflow: visible; }
    .wc-stage { height: 52vh; min-height: 280px; flex: none; }
    .wc-side { overflow: visible; }
  }

  /* ---------- Light-mode map-overlay foregrounds (must be LAST) ----------
     These surfaces keep a fixed near-black background in BOTH themes because they
     sit on map imagery or dark chrome, so their foreground must not follow --text
     (which the light block remaps to dark navy). Full audited set: every rule with
     a fixed dark background whose text is inherited or var(--text), plus the child
     text classes inside them. Placed at the end of the sheet so it beats the
     equal-specificity base rules above. */
  @media (prefers-color-scheme: light) {
    .toast, .map-zoom-btn, .map-zoom-btn:disabled:hover, .mk-tip, .ven-banner,
    .sig-pill, .sig-tag.on .sig-pill, .sig-tip, .sig-tip-phenom,
    .hur-pill, .hur-tag.on .hur-pill, .hur-tip, .hur-name, .hur-tip-name, .hur-tip-stats b,
    .jam-pill, .jam-tag.on .jam-pill, .jam-tip, .jam-name, .jam-tip-name,
    .vol-pill, .vol-tag.on .vol-pill, .vol-tip, .vol-name, .vol-tip-name,
    .conf-pill, .conf-tag.on .conf-pill, .conf-tip, .conf-name, .conf-tip-name,
    .lm-site-pill, .lm-site.on .lm-site-pill, .lm-site.sel .lm-site-pill,
    .lm-tip, .lm-site-name, .lm-tip-name,
    .ap-tip, .ap-tip-iata, .ap-tip-code, .ap-tip-name, .ap-tip-wx b,
    .haz-tip, .fb-pop, .fb-opt-title,
    .sw-tile-imgwrap, .sw-tile-title { color: #eaf2ff; }
  }

  /* ---------- Right-edge flip for map label pills (must be LAST) ----------
     .map-wrap has overflow:hidden, so a pill anchored near the right edge is
     clipped. placeLabel() sets .flip on the tag; these rules mirror the pill (and
     its tooltip) to the LEFT of the anchor. Same pattern as .lm-site.flip. */
  .vol-tag.flip .vol-pill { left: auto; right: 11px; }
  .vol-tag.flip .vol-tip { left: auto; right: 11px; transform: translateX(30%); }
  .hur-tag.flip .hur-pill { left: auto; right: 12px; }
  .hur-tag.flip .hur-tip { left: auto; right: 12px; transform: translateX(30%); }
  .jam-tag.flip .jam-pill, .conf-tag.flip .conf-pill { transform: translateX(-50%); }
  .jam-tag.flip .jam-tip { left: auto; right: 0; transform: translateX(12%); }
  .conf-tag.flip .conf-tip { left: auto; right: 0; transform: translateX(12%); }
