/* ═══════════════════════════════════════════════════════════════
   FX-Net NextGen — Tactical Meteorological Workstation
   Dark Theme CSS — AWIPS / FX-Net Professional Style
   ═══════════════════════════════════════════════════════════════ */

:root {
    --bg-deep: #0a0a0f;
    --bg-sidebar: #0d1117;
    --bg-panel: #161b22;
    --accent-cyan: #00e5ff;
    --accent-amber: #ffb300;
    --accent-green: #00ff88;
    --accent-red: #ff4444;
    --accent-orange: #ff9800;
    --text-main: #e0e0e0;
    --text-dim: #7d8790;   /* 5.2:1 on the sidebar, 4.7:1 on panels — was #6b7280 at 3.9:1 */
    --border: rgba(255, 255, 255, 0.08);
}

/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Body ── */
body {
    background: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* ── App Container ── */
.app-container {
    display: flex;
    flex-direction: row;
    height: 100vh;
    width: 100vw;
}

/* ═══════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════ */
.sidebar {
    width: 300px;
    min-width: 300px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: margin-left 0.22s ease;
}

/* Collapse the sidebar horizontally to give the map full width */
.app-container.sidebar-collapsed .sidebar {
    margin-left: -300px;
}

/* Collapse button in the sidebar header */
#sidebar-collapse {
    position: absolute;
    top: 12px;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 2px;
    line-height: 0;
    border-radius: 3px;
    transition: color 0.15s ease, background 0.15s ease;
}
#sidebar-collapse:hover {
    color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.06);
}
#sidebar-collapse i { width: 18px; height: 18px; }
.sidebar-header { position: relative; }

/* Solar sun-times hint pill — shown briefly when the terminator is enabled */
.solar-hint {
    position: absolute;
    top: 44px;
    left: 50%;
    transform: translate(-50%, -6px);
    z-index: 14;
    display: none;
    padding: 5px 12px;
    background: rgba(10, 16, 28, 0.92);
    border: 1px solid rgba(255, 195, 64, 0.5);
    border-radius: 14px;
    color: #ffd98a;
    font-family: "Roboto Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.4px;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.solar-hint.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Floating handle to reopen the sidebar when collapsed */
#sidebar-reopen {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 200;
    display: none;
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    border-left: none;
    border-radius: 0 6px 6px 0;
    color: var(--accent-cyan);
    cursor: pointer;
    padding: 14px 4px;
    line-height: 0;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.4);
    transition: background 0.15s ease;
}
#sidebar-reopen:hover { background: #16222e; }
#sidebar-reopen i { width: 16px; height: 16px; }
.app-container.sidebar-collapsed #sidebar-reopen { display: block; }

/* ── Sidebar Header ── */
.sidebar-header {
    padding: 14px 18px 10px;
    border-bottom: 1px solid var(--border);
}

.sidebar-header h1 {
    font-size: 16px;
    font-weight: 800;
    color: var(--accent-cyan);
    letter-spacing: 1.5px;
    margin: 0;
}

.sidebar-sub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    font-size: 9px;
    color: var(--text-dim);
}

/* Subtle "view source" link on its own line below the author credit (open source) */
.repo-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 9px;
    letter-spacing: 0.3px;
    color: var(--text-dim);
    text-decoration: none;
    width: fit-content;
    transition: color 0.15s ease;
}
.repo-link:hover { color: var(--accent-cyan); }
.repo-link svg { flex: 0 0 auto; }

/* ── Watchdog Status ── */
.status-indicator {
    font-size: 8px;
    font-weight: bold;
    color: var(--accent-green);
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.5px;
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    display: inline-block;
}

.dot.pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%   { opacity: 1; transform: scale(1); }
    50%  { opacity: 0.3; transform: scale(1.6); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes pulse-red {
    0%   { opacity: 1; }
    50%  { opacity: 0.3; }
    100% { opacity: 1; }
}

/* ═══════════════════════════════════════
   PRODUCT BROWSER
   ═══════════════════════════════════════ */
/* Pinned filter above the scrolling tree — 136 products across 18 groups is
   more than is practical to hunt through by scrolling. */
.product-filter-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #05080c;
    flex: 0 0 auto;
}
.product-filter-row i {
    width: 12px;
    height: 12px;
    color: #4a5a68;
    flex: 0 0 auto;
}
.product-filter-row input {
    flex: 1;
    min-width: 0;
    background: #000;
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--accent-cyan);
    font-family: inherit;
    font-size: 11px;
    padding: 3px 6px;
    outline: none;
}
.product-filter-row input::placeholder { color: #4a5a68; }
.product-filter-row input:focus { border-color: var(--accent-cyan); }
.product-filter-row input::-webkit-search-cancel-button { display: none; }
.product-filter-row button {
    background: none;
    border: none;
    color: #ff6666;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    flex: 0 0 auto;
}
.filter-empty {
    padding: 14px 15px;
    font-size: 10px;
    color: #5a6570;
    font-style: italic;
}
/* While filtering: groups without a match disappear, groups with one are
   force-expanded regardless of their saved collapsed state, and only the
   matching rows show. Specificity here deliberately outranks the
   `.category-group.collapsed > *` rule below. */
.product-browser.filtering .category-group:not(.filter-hit) { display: none; }
.product-browser.filtering .category-group.filter-hit > *:not(.category-label) { display: none; }
.product-browser.filtering .category-group.filter-hit > .product-item { display: flex; }
.product-browser.filtering .category-group.filter-hit > .product-item.filter-miss { display: none; }
.product-browser.filtering .cat-tools { display: none; }
.product-item mark {
    background: rgba(0, 229, 255, 0.28);
    color: #fff;
    border-radius: 2px;
    padding: 0 1px;
}

.product-browser {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 4px 0;
}

.category-group {
    margin-bottom: 8px;
}

.category-label {
    padding: 7px 15px;
    font-size: 10px;
    font-weight: 800;
    color: var(--text-dim);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.015);
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.category-label i {
    width: 12px;
    height: 12px;
    opacity: 0.6;
}

/* Collapsible category groups (toggle by clicking the label) */
.category-label {
    cursor: pointer;
    user-select: none;
}
.category-label:hover { background: rgba(255, 255, 255, 0.05); }
.category-label::after {
    content: '▾';
    margin-left: auto;
    font-size: 10px;
    opacity: 0.55;
    transition: transform 0.15s ease;
}
.category-group.collapsed .category-label::after { transform: rotate(-90deg); }
.category-group.collapsed > *:not(.category-label) { display: none; }
.category-group.collapsed { margin-bottom: 0; }

/* Expand all / Collapse all controls */
.cat-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 15px 7px;
}
.cat-tools button {
    background: none;
    border: none;
    color: var(--text-dim);
    font: 800 9px/1 inherit;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    padding: 0;
}
.cat-tools button:hover { color: var(--accent-cyan); }
.cat-tools span { color: #2b3a47; }

/* ── MOS bulletin table ──
   Laid out like the real MDL bulletin: parameters down the left, forecast
   projections across. Wide by nature, so it scrolls inside its own container
   rather than stretching the panel. Text size comes from --mos-fs, which the
   A−/A+ control sets; padding is in em so the grid scales with the text. */
#mos-body { --mos-fs: 12px; }
.mos-table {
    border-collapse: collapse;
    font-family: 'Roboto Mono', monospace;
    font-size: var(--mos-fs);
    white-space: nowrap;
}
.mos-head { font-size: max(10px, calc(var(--mos-fs) - 1px)); }
.mos-foot { font-size: max(9px, calc(var(--mos-fs) - 2px)); }
.mos-table th,
.mos-table td {
    padding: 0.2em 0.5em;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mos-table thead th {
    color: var(--accent-cyan);
    font-weight: 700;
    border-bottom: 1px solid rgba(0, 229, 255, 0.25);
    position: sticky;
    top: 0;
    background: #0b0f13;
}
/* Row label column stays put while the projections scroll under it. */
.mos-table tbody th {
    color: #cdd6df;
    font-weight: 700;
    text-align: left;
    position: sticky;
    left: 0;
    background: #0b0f13;
    padding-right: 1em;
}
.mos-table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #0b0f13;
}
.mos-table tbody td { color: #e6edf3; }
.mos-table tbody tr:hover td { background: rgba(0, 229, 255, 0.06); }
.mos-fontsize { display: flex; align-items: center; gap: 2px; }
.mos-fontsize button {
    height: 28px; min-width: 30px; padding: 0 6px;
    background: #1a2733; color: var(--accent-cyan);
    border: 1px solid var(--border); font-weight: 700; cursor: pointer;
}
.mos-fontsize button:hover:not(:disabled) { background: #22374a; }
.mos-fontsize button:disabled { opacity: 0.35; cursor: default; }
.mos-fontsize button:focus-visible { outline: 1px solid var(--accent-cyan); }
.mos-fontsize span { font: 11px 'Roboto Mono', monospace; color: #8b97a3; min-width: 34px; text-align: center; }

/* ── GOES bird + sector selector (inside the Satellite group) ── */
.sector-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 15px 6px 35px;
}
.sector-row label {
    font: 800 8px/1 inherit;
    color: var(--accent-cyan);
    opacity: 0.45;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: none;
}
.sector-row select {
    flex: 1;
    min-width: 0;
    background: #000;
    color: var(--accent-cyan);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 2px 4px;
    font-size: 9px;
    font-weight: bold;
    font-family: 'Roboto Mono', monospace;
    outline: none;
    cursor: pointer;
}
.sector-row select option,
.sector-row select optgroup {
    background: #111;
    color: #ccc;
}
.sector-row button {
    flex: none;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-dim);
    font: 800 8px/1 inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 5px;
    cursor: pointer;
}
.sector-row button:hover { color: var(--accent-cyan); border-color: var(--accent-cyan); }
/* The filter hides whole groups; keep its chrome out of the results too. */
.product-browser.filtering .sector-row { display: none; }

.sub-category {
    padding: 5px 15px 3px 35px;
    font-size: 9px;
    color: var(--accent-cyan);
    font-weight: bold;
    opacity: 0.45;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-item {
    padding: 5px 15px 5px 35px;
    font-size: 11px;
    cursor: pointer;
    color: #a0aec0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.15s, color 0.15s;
    user-select: none;
}

.product-item:hover {
    background: rgba(255, 255, 255, 0.035);
    color: #fff;
}

.product-item.active {
    color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.07);
    font-weight: bold;
    border-right: 2px solid var(--accent-cyan);
}

/* ── Badges ── */
.badge {
    font-size: 7px;
    font-weight: 900;
    padding: 1px 4px;
    border-radius: 2px;
    color: #000;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.badge.red    { background: var(--accent-red); }
.badge.orange { background: var(--accent-orange); }
.badge.blue   { background: #3182ce; color: #fff; }
.badge.green  { background: var(--accent-green); }
.badge.yellow { background: var(--accent-amber); }
.badge.gray   { background: #3a414b; color: #c3cad2; }

/* ═══════════════════════════════════════
   WARNING TICKER
   ═══════════════════════════════════════ */
.warning-ticker-container {
    margin: 4px 10px 6px;
    background: #000;
    border: 1px solid #1a1a1a;
    border-radius: 3px;
    max-height: 220px;
    overflow-y: auto;
}

.warning-list {
    padding: 4px;
}

.warning-item {
    font-size: 9px;
    padding: 5px 7px;
    border-bottom: 1px solid #111;
    line-height: 1.35;
    color: #eee;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.warning-item.tornado      { border-left: 3px solid #FF0000; background: rgba(255, 0, 0, 0.08); }
.warning-item.tornado .warning-header { color: #FF0000; }

.warning-item.severe       { border-left: 3px solid #FFA500; }
.warning-item.severe .warning-header { color: #FFA500; }

.warning-item.flash-flood  { border-left: 3px solid #8B0000; }
.warning-item.flash-flood .warning-header { color: #FF4444; }

.warning-item.flood        { border-left: 3px solid #00FF00; }
.warning-item.flood .warning-header { color: #00FF00; }

.warning-item.gale         { border-left: 3px solid #DDA0DD; }
.warning-item.gale .warning-header { color: #DDA0DD; }

.warning-item.sws          { border-left: 3px solid #00FFFF; background: rgba(0, 255, 255, 0.05); }
.warning-item.sws .warning-header { color: #00FFFF; }

.warning-item.winter       { border-left: 3px solid #FF69B4; }
.warning-item.winter .warning-header { color: #FF69B4; }

.warning-item.tropical     { border-left: 3px solid #DC143C; }
.warning-item.tropical .warning-header { color: #DC143C; }

.warning-item.fire         { border-left: 3px solid #A0522D; }
.warning-item.fire .warning-header { color: #A0522D; }

.warning-item.marine       { border-left: 3px solid #FFA500; }
.warning-item.marine .warning-header { color: #FFA500; }

.warning-item.freeze       { border-left: 3px solid #00bfff; background: rgba(0, 191, 255, 0.05); }
.warning-item.freeze .warning-header { color: #00bfff; }

.warning-item.freeze-warning { border-left: 3px solid #9370db; background: rgba(147, 112, 219, 0.08); }
.warning-item.freeze-warning .warning-header { color: #9370db; }

.warning-item.cold         { border-left: 3px solid #afeeee; background: rgba(175, 238, 238, 0.05); }
.warning-item.cold .warning-header { color: #afeeee; }

.warning-item.watch        { border-left: 3px solid #FFFF00; }
.warning-item.watch .warning-header { color: #FFFF00; }

.warning-item.warning      { border-left: 3px solid #ff6600; }
.warning-item.warning .warning-header { color: #ff6600; }

.warning-item.advisory     { border-left: 3px solid #6699cc; }
.warning-item.advisory .warning-header { color: #6699cc; }

/* ─── Impact-Based Warning (IBW) Enhanced Ticker Styles ─── */
.warning-item.ibw-enhanced {
    border-left-width: 4px;
    animation: ibw-ticker-pulse 1.5s ease-in-out infinite;
}

@keyframes ibw-ticker-pulse {
    0%   { background: rgba(255, 0, 0, 0.05); }
    50%  { background: rgba(255, 0, 0, 0.20); }
    100% { background: rgba(255, 0, 0, 0.05); }
}

.ibw-badge {
    display: inline-block;
    font-size: 7px;
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 2px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.5px;
    animation: ibw-badge-flash 1s ease-in-out infinite;
}

.ibw-badge.ibw-emergency {
    background: #ff0000;
    color: #ffffff;
}

.ibw-badge.ibw-catastrophic {
    background: #cc0000;
    color: #ffffff;
}

.ibw-badge.ibw-considerable {
    background: #ff6600;
    color: #ffffff;
}

.ibw-badge.ibw-pds {
    background: #ff8800;
    color: #000000;
}

@keyframes ibw-badge-flash {
    0%   { opacity: 1; }
    50%  { opacity: 0.4; }
    100% { opacity: 1; }
}

.warning-header {
    font-weight: bold;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.warning-placeholder {
    font-size: 9px;
    color: var(--text-dim);
    text-align: center;
    padding: 12px 8px;
    font-style: italic;
}

/* ═══════════════════════════════════════
   DIAGNOSTIC LOG
   ═══════════════════════════════════════ */
.diagnostic-log-container {
    height: 150px;
    min-height: 80px;
    background: #050508;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: height 0.2s;
}

.diagnostic-log-container.collapsed {
    height: 26px;
    min-height: 26px;
    overflow: hidden;
}

.log-header {
    padding: 5px 12px;
    font-size: 9px;
    color: var(--text-dim);
    background: #000;
    font-weight: bold;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.log-header i {
    width: 10px;
    height: 10px;
    opacity: 0.5;
    transition: transform 0.2s;
}

.diagnostic-log-container.collapsed .log-header i {
    transform: rotate(-90deg);
}

.log-entries {
    flex: 1;
    overflow-y: auto;
    padding: 6px 8px;
    font-family: 'Roboto Mono', monospace;
    font-size: 9px;
    color: #718096;
    line-height: 1.5;
}

/* ═══════════════════════════════════════
   MAIN VIEW
   ═══════════════════════════════════════ */
.main-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
}

/* ── HUD Top Bar ── */
.hud-top {
    height: 32px;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    padding: 0 15px;
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    gap: 15px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.hud-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hud-label {
    color: var(--text-dim);
    font-size: 10px;
}

.hud-value {
    color: #fff;
    font-size: 10px;
}

/* ── Radar Site Selector ── */
#radar-site-select {
    background: #000;
    color: var(--accent-cyan);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    font-family: 'Roboto Mono', monospace;
    outline: none;
    cursor: pointer;
}

#radar-site-select option,
#radar-site-select optgroup {
    background: #111;
    color: #ccc;
}

/* ═══════════════════════════════════════
   WORKSPACE TABS
   ═══════════════════════════════════════ */
.tab-bar {
    display: flex;
    align-items: stretch;
    gap: 2px;
    height: 28px;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid var(--border);
    padding: 0 6px;
    flex-shrink: 0;
    overflow-x: auto;
    overflow-y: hidden;
}
.tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    margin-top: 4px;
    background: #111;
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    color: var(--text-dim);
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}
.tab-btn:hover { background: #1a1a1a; color: #ccc; }
.tab-btn.active {
    background: #000;
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.25);
}
.tab-name { pointer-events: none; }
.tab-rename-input {
    background: #000;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    width: 96px;
    outline: none;
}
.tab-close {
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1;
    border-radius: 3px;
    padding: 0 3px;
}
.tab-close:hover { color: #ff5555; background: rgba(255, 80, 80, 0.15); }
.tab-add {
    align-self: center;
    margin-left: 4px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-dim);
    cursor: pointer;
    width: 22px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tab-add:hover { color: var(--accent-cyan); border-color: var(--accent-cyan); }
.tab-add i { width: 13px; height: 13px; }

/* Tab grids container fills the remaining space; only the active grid shows. */
.tab-grids {
    flex: 1;
    display: flex;
    min-height: 0;
    position: relative;
}

/* ═══════════════════════════════════════
   PANE GRID — Layout System
   ═══════════════════════════════════════ */
.pane-grid {
    flex: 1;
    display: grid;
    gap: 1px;
    background: #111;
    min-height: 0;
}

/* 1 Pane */
.pane-grid.layout-1 {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

/* 2 Panes */
.pane-grid.layout-2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}

/* 4 Panes (2x2) */
.pane-grid.layout-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

/* 8 Panes (4x2) */
.pane-grid.layout-8 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

/* Pane visibility by layout */
.layout-1 .pane:nth-child(n+2) { display: none; }
.layout-2 .pane:nth-child(n+3) { display: none; }
.layout-4 .pane:nth-child(n+5) { display: none; }
/* layout-8 shows all 8 */

/* ── Individual Pane ── */
/* ─── What's New (changelog) panel ─── */
.whats-new {
    margin: 6px 8px 0;
    border: 1px solid #1e2a35;
    border-radius: 4px;
    background: #0a1018;
    overflow: hidden;
    flex: none;
}
.whats-new-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--accent-cyan);
    user-select: none;
}
.whats-new-header i[data-lucide="sparkles"] { width: 13px; height: 13px; }
.whats-new-header > span:first-child { display: flex; align-items: center; gap: 6px; }
.whats-new-dot {
    font-size: 8px;
    font-weight: 800;
    color: #1a1208;
    background: var(--accent-amber);
    padding: 1px 5px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}
.whats-new-chevron {
    margin-left: auto;
    width: 14px;
    height: 14px;
    color: var(--text-dim);
    transition: transform 0.18s ease;
}
.whats-new.open .whats-new-chevron { transform: rotate(180deg); }
.whats-new-body {
    max-height: 240px;
    overflow-y: auto;
    padding: 4px 9px 8px;
    border-top: 1px solid #1e2a35;
}
.whats-new-rel { margin-top: 6px; }
.whats-new-rel:first-child { margin-top: 2px; }
.whats-new-rel-date {
    font-size: 9px;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 0.4px;
    margin-bottom: 2px;
}
.whats-new-item {
    font-size: 11.5px;
    line-height: 1.45;
    color: #c2ccd6;
    padding: 2px 0 2px 12px;
    position: relative;
}
.whats-new-item::before {
    content: '›';
    position: absolute;
    left: 2px;
    color: var(--accent-green);
}
.whats-new-guide-link {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed #1e2a35;
    font-size: 10.5px;
    color: var(--text-dim);
}
.whats-new-guide-link a {
    color: var(--accent-cyan);
    cursor: pointer;
    text-decoration: underline;
}

/* ─── User Guide (sidebar button + full-screen manual) ─── */
.user-guide-btn {
    margin: 6px 8px 0;
    border: 1px solid #1e2a35;
    border-radius: 4px;
    background: #0a1018;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--accent-cyan);
    user-select: none;
    flex: none;
}
.user-guide-btn:hover { background: #101a26; }
.user-guide-btn i { width: 13px; height: 13px; }
.user-guide-btn > span:first-child { display: flex; align-items: center; gap: 6px; }
.user-guide-btn .badge { margin-left: auto; }

.guide-panel {
    width: min(1150px, 95vw);
    height: 92vh;
    background: #0a0f16;
    border: 1px solid #24303d;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.7);
}
.guide-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #24303d;
    background: #0d1420;
    flex: none;
}
.guide-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--accent-cyan);
    white-space: nowrap;
}
.guide-title i { width: 16px; height: 16px; }
#guide-search {
    flex: 1;
    max-width: 380px;
    margin-left: auto;
    background: #060a10;
    color: #dce4ec;
    border: 1px solid #24303d;
    border-radius: 4px;
    font-size: 12px;
    padding: 6px 10px;
    outline: none;
}
#guide-search:focus { border-color: var(--accent-cyan); }
.guide-body {
    flex: 1;
    display: flex;
    min-height: 0;
}
.guide-toc {
    width: 230px;
    flex: none;
    overflow-y: auto;
    border-right: 1px solid #24303d;
    background: #0d1420;
    padding: 10px 0;
}
.guide-toc a {
    display: block;
    padding: 7px 16px;
    font-size: 12px;
    color: #aeb9c4;
    cursor: pointer;
    border-left: 3px solid transparent;
    user-select: none;
}
.guide-toc a:hover { color: #fff; background: #111b28; }
.guide-toc a.active {
    color: var(--accent-cyan);
    border-left-color: var(--accent-cyan);
    background: #101a26;
    font-weight: 700;
}
.guide-content {
    flex: 1;
    overflow-y: auto;
    padding: 18px 30px 60px;
}
.guide-sec { margin-bottom: 30px; }
.guide-sec h2 {
    font-size: 17px;
    font-weight: 800;
    color: var(--accent-cyan);
    letter-spacing: 0.5px;
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #24303d;
}
.guide-sec h3 {
    font-size: 14px;
    font-weight: 700;
    color: #ffd166;
    margin: 16px 0 5px;
}
.guide-sec p, .guide-sec li {
    font-size: 13.5px;
    line-height: 1.6;
    color: #cdd6df;
}
.guide-sec p { margin: 6px 0; }
.guide-sec ul { margin: 6px 0 6px 4px; padding-left: 18px; }
.guide-sec li { margin: 3px 0; }
.guide-sec b { color: #fff; }
.guide-sec kbd {
    background: #1a2430;
    border: 1px solid #34424f;
    border-bottom-width: 2px;
    border-radius: 3px;
    padding: 1px 6px;
    font-size: 11.5px;
    font-family: inherit;
    color: #ffd166;
}
.guide-sec mark {
    background: #ffd166;
    color: #1a1208;
    border-radius: 2px;
    padding: 0 1px;
}
.guide-no-results {
    font-size: 13px;
    color: var(--text-dim);
    padding: 30px;
    text-align: center;
}

.pane {
    background: #000;
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.pane.active-pane {
    box-shadow: inset 0 0 0 2px var(--accent-cyan),
                0 0 15px rgba(0, 229, 255, 0.4);
    z-index: 20;
}

/* Pinned (independent-view) pane — amber ring + badge so it's clearly not
   following the tab's pan/zoom sync. Defined after .active-pane so the amber
   ring wins when a pane is both active and pinned (cyan glow still shows). */
.pane.pane-unsynced {
    box-shadow: inset 0 0 0 2px #ffb300;
}
.pane.active-pane.pane-unsynced {
    box-shadow: inset 0 0 0 2px #ffb300, 0 0 15px rgba(0, 229, 255, 0.4);
}
.pane-pin-badge {
    position: absolute;
    top: 8px;
    left: 10px;
    font-size: 9px;
    font-weight: 800;
    color: #1a1208;
    background: #ffb300;
    padding: 2px 6px;
    border-radius: 2px;
    z-index: 12;
    pointer-events: none;
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 0.5px;
    box-shadow: 0 0 8px rgba(255, 179, 0, 0.5);
}

.pane-label {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 9px;
    font-weight: 700;
    color: var(--text-dim);
    z-index: 10;
    pointer-events: none;
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 0.5px;
    opacity: 0.6;
}

.radar-timestamp {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.82);
    color: var(--accent-cyan);
    padding: 4px 5px;
    font-size: 9px;
    font-weight: 800;
    font-family: 'Roboto Mono', monospace;
    z-index: 10;
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 2px;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 48%;
}
/* AWIPS-style per-pane product legend stack (one color-coded row per active product) */
.radar-timestamp .legend-row {
    border-left: 3px solid #39ff5a;
    padding: 1px 6px;
    color: #e6f1ff;
    letter-spacing: 0.4px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ── Radar Color Legend ── */
.radar-legend {
    position: absolute;
    bottom: 32px;
    right: 8px;
    z-index: 12;
    background: rgba(0, 0, 0, 0.82);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 3px;
    padding: 6px 8px 6px 6px;
    pointer-events: none;
    display: none;
    font-family: 'Roboto Mono', monospace;
    max-height: calc(100% - 80px);
    overflow: hidden;
}
.radar-legend.visible { display: block; }
.radar-legend-title {
    font-size: 9px;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 4px;
    white-space: nowrap;
}
.radar-legend-body {
    display: flex;
    flex-direction: row;
    gap: 3px;
}
.radar-legend-bar {
    display: flex;
    flex-direction: column;
    width: 14px;
    border-radius: 1px;
    overflow: hidden;
}
.radar-legend-bar .swatch {
    width: 100%;
    flex: 1;
    min-height: 3px;
}
.radar-legend-labels {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 7.5px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1;
    padding: 0 0 0 1px;
}
.radar-legend-labels span {
    white-space: nowrap;
}
/* Hydrometeor class legend uses rows instead of bar */
.radar-legend-rows {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.radar-legend-rows .legend-row {
    display: flex;
    align-items: center;
    gap: 5px;
}
.radar-legend-rows .legend-swatch {
    width: 12px;
    height: 10px;
    border-radius: 1px;
    flex-shrink: 0;
}
.radar-legend-rows .legend-label {
    font-size: 7.5px;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

/* ═══════════════════════════════════════
   HUD BOTTOM BAR
   ═══════════════════════════════════════ */
.hud-bottom {
    height: 44px;
    background: var(--bg-sidebar);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 12px;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── View Layout Buttons ── */
.btn-view {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: all 0.15s;
}

.btn-view:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.btn-view.active {
    color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.25);
}

.btn-view i {
    width: 14px;
    height: 14px;
}

/* ── Icon Buttons ── */
.btn-icon {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.btn-icon:hover {
    opacity: 1;
}

.btn-icon i {
    width: 16px;
    height: 16px;
}

/* ── Timeline / Progress Bar ── */
.timeline {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.timeline-progress {
    height: 100%;
    width: 0%;
    background: var(--accent-cyan);
    border-radius: 2px;
    transition: width 0.2s linear;
}

/* ═══════════════════════════════════════
   DATA HEALTH MONITOR
   ═══════════════════════════════════════ */
.health-monitor-overlay {
    position: absolute;
    top: 42px;
    right: 15px;
    background: rgba(10, 10, 15, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 14px;
    width: 260px;
    z-index: 500;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
    border-radius: 4px;
}

.health-header {
    font-size: 9px;
    font-weight: bold;
    color: var(--accent-cyan);
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.health-header i {
    width: 12px;
    height: 12px;
}

.health-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    margin-bottom: 6px;
    font-family: 'Roboto Mono', monospace;
    color: var(--text-dim);
}

.health-status.live {
    color: var(--accent-green);
    font-weight: bold;
}

.health-status.stale {
    color: var(--accent-amber);
    font-weight: bold;
}

.health-status.fail {
    color: var(--accent-red);
    font-weight: bold;
    animation: pulse-red 1s ease-in-out infinite;
}

/* Collapsible data-health sections (mirror the sidebar category groups) */
#health-rows-container {
    max-height: 60vh;
    overflow-y: auto;
}

.health-group {
    margin-bottom: 4px;
}

.health-group-header {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    user-select: none;
}

.health-group-header:hover {
    background: rgba(255, 255, 255, 0.04);
}

.health-group-name {
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 0.6px;
    color: rgba(255, 255, 255, 0.72);
    flex: 1;
}

.health-group-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 4px currentColor;
}

.health-group-caret {
    font-size: 9px;
    color: var(--text-dim);
    transition: transform 0.15s ease;
}

.health-group.collapsed .health-group-caret {
    transform: rotate(-90deg);
}

.health-group-body {
    padding: 6px 2px 2px 13px;
}

.health-group.collapsed .health-group-body {
    display: none;
}

.health-group-body .health-row:last-child {
    margin-bottom: 2px;
}

/* ═══════════════════════════════════════
   CONTEXT MENU
   ═══════════════════════════════════════ */
.context-menu {
    position: absolute;
    background: rgba(13, 17, 23, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    min-width: 200px;
    border-radius: 4px;
    padding: 4px 0;
    backdrop-filter: blur(10px);
}

.menu-header {
    padding: 8px 14px 6px;
    font-size: 9px;
    font-weight: 800;
    color: var(--text-dim);
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 2px;
}

.menu-item {
    padding: 7px 14px;
    font-size: 11px;
    color: #c0c0c0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.1s;
}

.menu-item:hover {
    background: rgba(0, 229, 255, 0.08);
    color: #fff;
}

.menu-item i {
    width: 13px;
    height: 13px;
    opacity: 0.7;
}

.menu-sep {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 3px 0;
}

/* ═══════════════════════════════════════
   FLOATING PANEL (text browser)
   ═══════════════════════════════════════ */
.floating-panel {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 520px;
    height: 500px;
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    z-index: 800;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    resize: both;
    overflow: hidden;
    min-width: 360px;
    min-height: 200px;
}

.floating-panel-header {
    background: #0d1117;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    font-weight: bold;
    color: var(--accent-cyan);
    letter-spacing: 0.5px;
    cursor: move;
    flex-shrink: 0;
    user-select: none;
}

.floating-panel-header i {
    width: 14px;
    height: 14px;
}

.floating-panel-header span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.floating-panel-body {
    flex: 1;
    overflow-y: auto;
    background: #050505;
    min-height: 0;
}

/* ═══════════════════════════════════════
   MODAL OVERLAY
   ═══════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.modal-panel {
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-header {
    background: #0d1117;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    font-weight: bold;
    color: var(--accent-cyan);
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.modal-header i {
    width: 14px;
    height: 14px;
}

.modal-header span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-toolbar {
    padding: 8px 16px;
    background: #0a0a0f;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.modal-toolbar select {
    background: #000;
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 5px 8px;
    font-size: 10px;
    font-family: 'Inter', sans-serif;
    outline: none;
    border-radius: 2px;
}

.modal-toolbar select:focus {
    border-color: var(--accent-cyan);
}

.modal-content {
    flex: 1;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    min-height: 0;
}

/* ── Primary Button ── */
.btn-primary {
    background: var(--accent-cyan);
    color: #000;
    border: none;
    padding: 5px 14px;
    font-weight: 700;
    cursor: pointer;
    font-size: 10px;
    letter-spacing: 0.5px;
    border-radius: 2px;
    transition: background 0.15s;
}

.btn-primary:hover {
    background: #33ecff;
}

/* ═══════════════════════════════════════
   SCROLLBAR STYLING (WebKit)
   ═══════════════════════════════════════ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ═══════════════════════════════════════
   GLOBAL SELECT STYLING
   ═══════════════════════════════════════ */
select {
    font-family: 'Inter', sans-serif;
    outline: none;
    cursor: pointer;
}

select option {
    background: #111;
    color: #ccc;
}

/* ═══════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════ */
.maplibregl-ctrl-bottom-left,
.maplibregl-ctrl-bottom-right {
    display: none;
}

.maplibregl-popup-content {
    background: #0d1117 !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.maplibregl-popup-close-button {
    color: #888;
    font-size: 16px;
    padding: 2px 6px;
}

.maplibregl-popup-tip {
    border-top-color: #0d1117 !important;
}

/* ═══════════════════════════════════════
   SYNCHRONIZED CURSOR BOX (Tactical HUD)
   ═══════════════════════════════════════ */
.sync-cursor-box {
    width: 20px;
    height: 20px;
    border: 2px solid #00ffff;
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(0,0,0,0.8), inset 0 0 5px rgba(0,0,0,0.8);
    pointer-events: none;
    position: relative;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: opacity 0.1s ease;
}
.sync-cursor-box::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #ffff00;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}



/* ── Keyboard focus ──
   Product rows are role=button/tabindex=0 divs; every control gets the same
   ring. :focus-visible only, so a mouse click never paints it. */
.product-item:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: -2px; }
button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* Honour the OS reduced-motion setting: the watchdog pulse and panel
   transitions become instant. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ═══════════════════════════════════════
   SEP 2 2026 AUDIT PASS
   ═══════════════════════════════════════ */

/* Category headings are real <h2>s and double as the group toggles, so they take focus. */
.category-label:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: -2px; }

/* Per-row load state: amber stripe while the product is fetching, red stripe + ✕
   once its click handler logged a failure (the message is the row's tooltip). */
.product-item.loading { box-shadow: inset 3px 0 0 var(--accent-amber); }
.product-item.failed  { box-shadow: inset 3px 0 0 var(--accent-red); }
.product-item.failed > span:first-child::after { content: ' ✕'; color: var(--accent-red); font-weight: 800; font-size: 9px; }

/* Transient status toasts — bottom-right, clear of the AlertViz stack at top-right. */
#fx-toast-container { position: fixed; right: 14px; bottom: 56px; z-index: 9400; display: flex; flex-direction: column; gap: 6px; max-width: 360px; pointer-events: none; }
.fx-toast { pointer-events: auto; cursor: pointer; background: rgba(10, 14, 20, 0.96); border: 1px solid #1e2a35; border-left: 4px solid var(--accent-red); border-radius: 5px; padding: 8px 12px; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.6); font-size: 11px; line-height: 1.4; color: #dfe6ee; transition: opacity 0.4s; animation: fx-toast-in 0.3s ease; }
.fx-toast.ok   { border-left-color: var(--accent-green); }
.fx-toast.info { border-left-color: var(--accent-cyan); }
.fx-toast b { color: #fff; }
@keyframes fx-toast-in { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Keyboard shortcut sheet (press ?) */
.shortcut-panel { width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 40px); }
.shortcut-body { padding: 14px 18px 18px; overflow: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px 28px; font-size: 12px; color: #dfe6ee; }
.shortcut-group h3 { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-cyan); margin: 0 0 6px; font-weight: 800; }
.shortcut-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.shortcut-row > span:last-child { display: flex; gap: 4px; flex-shrink: 0; align-items: center; }
.shortcut-row .plus { color: var(--text-dim); font-size: 10px; }
kbd.key { font-family: 'Roboto Mono', monospace; font-size: 10px; color: #fff; background: #0d1117; border: 1px solid rgba(255, 255, 255, 0.18); border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; min-width: 22px; text-align: center; white-space: nowrap; }
.shortcut-foot { grid-column: 1 / -1; font-size: 10.5px; color: var(--text-dim); margin-top: 2px; line-height: 1.5; }

/* Maximised floating panel (any panel — see initPanelMaximize) */
.floating-panel.maximized { border-radius: 0; resize: none; }

/* ── Narrow viewports ──
   The layout has one shape by design — a forecaster's wide monitor — but it
   should degrade honestly instead of scrolling sideways. Under 1000 px the
   sidebar becomes an overlay drawer over a full-width map (app.js starts it
   folded there), the control bar wraps, and no floating panel can outgrow the
   window. Phones get a drawer no wider than the screen. */
@media (max-width: 1000px) {
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        height: 100vh;
        box-shadow: 6px 0 24px rgba(0, 0, 0, 0.6);
        transition: transform 0.22s ease;
    }
    .app-container.sidebar-collapsed .sidebar { margin-left: 0; transform: translateX(-100%); }
    .main-view { width: 100vw; }
    .hud-top { overflow-x: auto; scrollbar-width: none; }
    .hud-bottom { height: auto; min-height: 44px; flex-wrap: wrap; padding: 4px 8px; gap: 6px 12px; }
    .floating-panel { max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); min-width: 0; }
}
@media (max-width: 600px) {
    .sidebar { width: min(300px, 88vw); min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .fx-toast { animation: none; }
    .sidebar { transition: none; }
}
/* The Skew-T is a fixed-width SVG (470 px by attribute); when its panel is
   maximised, let it grow to the window height and keep its aspect. */
.floating-panel.maximized #skewt-body > svg[width="470"] { width: auto; height: calc(100vh - 150px); }

/* Tropical · Selected Storm: the one storm selector everything below follows */
.storm-select-block {
    padding: 4px 12px 6px;
}
.storm-select-block select {
    width: 100%;
    background: #000;
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 229, 255, 0.35);
    font-size: 11px;
    font-weight: 600;
    padding: 4px;
}
#nhcadv-info,
#adeck-cycle-info {
    margin-top: 3px;
    font-size: 9px;
    line-height: 1.4;
    color: #8b97a3;
}
#storm-scope-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 9px;
    color: #8b97a3;
}
#storm-scope-row span { margin-right: auto; }
#storm-scope-row button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 2px;
    color: #cfd6de;
    font: inherit;
    padding: 1px 6px;
    cursor: pointer;
}
#storm-scope-row button.on {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}
#storm-scope-row button:focus-visible { outline: 1px solid var(--accent-cyan); outline-offset: 1px; }
