:root {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --badge-bg: #eff6ff;
    --badge-text: #1e40af;
    --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --max-width: 1320px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
    --transition: all 0.2s ease;
}

[data-theme="dark"] {
    --bg-color: #0b0f19;
    --card-bg: #111827;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --border-color: #1f2937;
    --accent-color: #3b82f6;
    --accent-hover: #60a5fa;
    --badge-bg: #1e3a8a;
    --badge-text: #93c5fd;
}

[data-theme="hud"] {
    --bg-color: #05080c;
    --card-bg: #0b1017;
    --text-primary: #00ffcc;
    --text-secondary: #5eead4;
    --border-color: #134e4a;
    --accent-color: #00ffcc;
    --accent-hover: #14b8a6;
    --badge-bg: #042f2e;
    --badge-text: #2dd4bf;
    --font-family: var(--font-mono);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* ===================== LAYOUT ===================== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }

/* ===================== TOP UTILITY BAR ===================== */
.top-utility-bar {
    background-color: #030712;
    border-bottom: 1px solid #1f2937;
    padding: 6px 0;
    font-size: 0.8rem;
    color: #9ca3af;
}

.utility-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }

.live-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #10b981;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
}

.pulse-dot {
    width: 8px; height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    animation: pulse-anim 1.6s infinite;
}

@keyframes pulse-anim {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16,185,129,0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16,185,129,0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

.auto-refresh-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #111827;
    border: 1px solid #374151;
    color: #9ca3af;
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 12px;
    cursor: pointer;
    margin-left: 6px;
    user-select: none;
    transition: var(--transition);
}
.auto-refresh-badge:hover { color: #f3f4f6; border-color: #4b5563; }
.auto-refresh-badge.paused { color: #f59e0b; border-color: rgba(245,158,11,0.4); }

.spin-icon { animation: rotate-icon 4s linear infinite; }
.auto-refresh-badge.paused .spin-icon { animation-play-state: paused; }
@keyframes rotate-icon { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.utility-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.utility-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    overflow-x: auto !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth;
    padding: 2px 0;
    width: 100%;
    min-width: 0;
    flex: 1;
    touch-action: pan-x;
}
.utility-actions::-webkit-scrollbar { display: none; }

.util-scroll-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
    z-index: 5;
}
.util-scroll-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    transform: scale(1.12);
}

.btn-utility {
    background: #1f2937;
    border: 1px solid #374151;
    color: #f3f4f6;
    font-size: 0.725rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0 !important;
}
.btn-utility:hover { background: #374151; color: #fff; }

/* Language Switcher */
.lang-switcher {
    display: flex;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: var(--radius-sm);
    padding: 2px;
    gap: 2px;
}
.btn-lang {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}
.btn-lang.active { background: var(--accent-color); color: #fff; }

/* ===================== HEADER ===================== */
.site-header {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 6px 0;
    position: sticky;
    top: 0;
    z-index: 900;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.header-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.3px;
    margin: 0;
    line-height: 1;
}
.logo a {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.brand-text {
    font-family: var(--font-mono, monospace);
    font-weight: 900;
    letter-spacing: 0.06em;
    color: var(--text-primary);
}
.brand-badge {
    background: #ef4444;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 2px 5px;
    border-radius: 4px;
    letter-spacing: 0.06em;
}

/* Navigation Bar */
.main-nav {
    display: flex;
    align-items: center;
    overflow: visible !important;
}
.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 4px;
    white-space: nowrap;
    margin: 0;
    padding: 0;
    overflow: visible !important;
}

.nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
}
.nav-btn:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.06);
}
.nav-btn.active {
    background: rgba(37, 99, 235, 0.12);
    color: #3b82f6;
    border-color: rgba(37, 99, 235, 0.25);
    font-weight: 700;
}
.nav-btn.nav-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.nav-btn.nav-dropdown-btn.menu-open {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
}

/* Dropdown Menu */
.nav-dropdown-item {
    position: relative;
    overflow: visible !important;
}
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--card-bg, #0f172a);
    border: 1px solid var(--border-color, #334155);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.5), 0 4px 10px rgba(0,0,0,0.3);
    padding: 6px;
    min-width: 220px;
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 99999;
}
.nav-dropdown-menu.open {
    display: flex !important;
}
.dropdown-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}
.dropdown-link:hover {
    background: rgba(37,99,235,0.1);
    color: var(--accent-color);
}
.dropdown-link.active {
    background: rgba(37,99,235,0.15);
    color: var(--accent-color);
    font-weight: 700;
}
.dropdown-link svg {
    color: var(--accent-color);
    flex-shrink: 0;
}

/* ===================== BREAKING TICKER ===================== */
.ticker-wrapper {
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
    color: #e2e8f0;
    padding: 6px 0;
    font-size: 0.825rem;
    overflow: hidden;
}
.ticker-container {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
}
.ticker-badge-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.ticker-badge {
    background: #ef4444;
    color: #fff;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.725rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ticker-speed-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.ticker-speed-btn:hover {
    color: #fff;
    border-color: var(--accent-color);
}
.ticker-content {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    min-width: 0;
    height: 24px;
    display: flex;
    align-items: center;
    cursor: default;
    user-select: none;
}
.ticker-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
}
.ticker-item-unit {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    color: #e2e8f0;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.ticker-item-unit a {
    color: #f1f5f9;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}
.ticker-item-unit a:hover {
    color: #60a5fa;
}
.ticker-separator {
    color: #ef4444;
    margin: 0 6px;
    font-weight: 900;
}

/* ===================== METRICS ===================== */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}
.metric-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.metric-card:hover { box-shadow: var(--shadow-md); }
.metric-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}
.metric-icon-blue { background: rgba(59,130,246,0.12); color: #3b82f6; }
.metric-icon-red  { background: rgba(239,68,68,0.12); color: #ef4444; }
.metric-icon-green{ background: rgba(16,185,129,0.12); color: #10b981; }
.metric-icon-purple{background: rgba(139,92,246,0.12); color: #8b5cf6; }

.metric-info { display: flex; flex-direction: column; min-width: 0; }
.metric-value { font-size: 1.15rem; font-weight: 800; color: var(--text-primary); }
.metric-label { font-size: 0.72rem; color: var(--text-secondary); font-weight: 600; }

/* ===================== SITUATION ROOM (Command Center) ===================== */
.situation-kpi-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.situation-kpi-card {
    background: #030712;
    border: 1px solid #1f2937;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.situation-kpi-info { display: flex; flex-direction: column; }
.situation-kpi-title { font-size: 0.72rem; color: #9ca3af; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.situation-kpi-val { font-size: 1.25rem; font-weight: 900; color: #f9fafb; margin-top: 2px; }
.defcon-badge {
    background: #ef4444;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 1px;
}

.situation-room-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 10px;
}
.situation-panel-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.situation-panel-header {
    background: var(--bg-color);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.situation-panel-header h3 {
    font-size: 0.9rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}
.situation-stream-scroll {
    max-height: 600px;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===================== PINNED BREAKING ALERTS ===================== */
.pinned-alerts-container { margin-bottom: 20px; display: flex; flex-direction: column; gap: 10px; }
.pinned-alert-card {
    background: linear-gradient(135deg, rgba(239,68,68,0.1) 0%, rgba(249,115,22,0.06) 100%);
    border: 1px solid rgba(239,68,68,0.3);
    border-left: 4px solid #ef4444;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.pinned-badge {
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.pinned-alert-title { font-size: 0.875rem; font-weight: 700; color: var(--text-primary); text-decoration: none; }
.pinned-alert-title:hover { color: var(--accent-color); }
.pinned-alert-time { font-size: 0.72rem; color: var(--text-secondary); white-space: nowrap; }

/* ===================== DAILY INTELLIGENCE BRIEFING (Executive Summary) ===================== */
.daily-briefing-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.briefing-toggle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}
.briefing-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
}
.briefing-badge-count {
    background: var(--badge-bg);
    color: var(--badge-text);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}
.briefing-toggle-icon { transition: transform 0.25s ease; }
.daily-briefing-card.collapsed .briefing-toggle-icon { transform: rotate(-90deg); }
.daily-briefing-card.collapsed .briefing-body { display: none; }
.briefing-body { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-color); display: flex; flex-direction: column; gap: 10px; }
.briefing-bullet { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; }
.briefing-bullet-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-color); margin-top: 7px; flex-shrink: 0; }
.briefing-bullet-text { flex: 1; color: var(--text-primary); line-height: 1.45; }
.briefing-bullet-text a { color: var(--text-primary); text-decoration: none; font-weight: 600; }
.briefing-bullet-text a:hover { color: var(--accent-color); }
.briefing-bullet-source { font-size: 0.72rem; color: var(--text-secondary); margin-left: 6px; font-weight: 700; }

/* ===================== DYNAMIC WORD CLOUD BAR ===================== */
.word-cloud-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 20px;
}
.word-cloud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.word-cloud-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.word-cloud-chip {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.word-cloud-chip:hover { border-color: var(--accent-color); color: var(--accent-color); transform: translateY(-1px); }
.word-cloud-chip.active { background: var(--accent-color); color: #fff; border-color: var(--accent-color); }
.word-chip-count { font-size: 0.65rem; opacity: 0.75; }

/* ===================== SOURCE CHIPS ===================== */
.source-chips-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 12px;
    scrollbar-width: none;
}
.source-chips-bar::-webkit-scrollbar { display: none; }
.chip-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.775rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}
.chip-btn:hover { border-color: var(--accent-color); color: var(--text-primary); }
.chip-btn.active { background: var(--accent-color); color: #fff; border-color: var(--accent-color); }

/* ===================== FILTER PANEL & EXPORT DATA ===================== */
.filter-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.filter-panel-top { display: flex; flex-direction: column; gap: 10px; }
.search-box { position: relative; width: 100%; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-secondary); display: flex; align-items: center; pointer-events: none; }
.search-box input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    outline: none;
    transition: var(--transition);
}
.search-box input:focus { border-color: var(--accent-color); }
.filter-group { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-select {
    flex: 1;
    min-width: 120px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.825rem;
    font-weight: 600;
    outline: none;
}

/* Date Range Filter Bar & Analysts Data Export */
.filter-panel-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 10px;
}
.date-range-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}
.date-input {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.775rem;
    outline: none;
}
.filter-actions-right {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.btn-data-export {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}
.btn-data-export:hover { border-color: var(--accent-color); color: var(--accent-color); }
.btn-reset-filters {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}
.btn-reset-filters:hover { color: #ef4444; border-color: #ef4444; }

/* ===================== MAP CONTROLS & SNAPSHOT ===================== */
.map-header-flex { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
.map-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.map-layer-switch { display: flex; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 2px; }
.btn-map-layer { background: transparent; border: none; color: var(--text-secondary); font-size: 0.775rem; font-weight: 600; padding: 5px 10px; border-radius: 6px; cursor: pointer; transition: var(--transition); }
.btn-map-layer.active { background: var(--accent-color); color: #fff; }

.map-time-select {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.775rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    outline: none;
}

.btn-map-action {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.775rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.btn-map-action:hover { border-color: var(--accent-color); }
.map-container.map-fullscreen { position: fixed !important; top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important; z-index: 99999 !important; border-radius: 0 !important; }

/* Strategic Chokepoints styling */
.strategic-zone-label {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(239, 68, 68, 0.6);
    color: #f87171;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* ===================== TABS ===================== */
.tab-content { display: none; padding: 20px 0; }
.tab-content.active { display: block; }

.dashboard-header { margin-bottom: 20px; }
.dashboard-header h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; }
.dashboard-header p { color: var(--text-secondary); font-size: 0.875rem; }

/* ===================== ARTICLES GRID ===================== */
.articles-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.article-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.article-image { width: 100%; height: 180px; overflow: hidden; background: #1e293b; position: relative; }
.article-image img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#1e293b 0%,#0f172a 100%); color: #94a3b8; font-weight: 800; font-size: 1rem; letter-spacing: 1px; }

.article-content { padding: 16px; display: flex; flex-direction: column; flex-grow: 1; gap: 8px; }

.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 0.75rem; }

/* Threat Score Meter */
.threat-score-gauge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.675rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
}
.threat-score-critical { background: rgba(239,68,68,0.2); color: #f87171; border: 1px solid rgba(239,68,68,0.4); }
.threat-score-high { background: rgba(249,115,22,0.2); color: #fb923c; border: 1px solid rgba(249,115,22,0.4); }
.threat-score-medium { background: rgba(234,179,8,0.2); color: #facc15; border: 1px solid rgba(234,179,8,0.4); }
.threat-score-low { background: rgba(16,185,129,0.2); color: #34d399; border: 1px solid rgba(16,185,129,0.4); }

/* Sentiment Badges */
.sentiment-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}
.sentiment-tense { background: rgba(225,29,72,0.15); color: #fb7185; }
.sentiment-negative { background: rgba(239,68,68,0.12); color: #f87171; }
.sentiment-neutral { background: rgba(100,116,139,0.15); color: #94a3b8; }
.sentiment-positive { background: rgba(16,185,129,0.12); color: #34d399; }

/* Severity Badges */
.severity-badge { font-weight: 800; padding: 3px 8px; border-radius: var(--radius-sm); font-size: 0.675rem; letter-spacing: 0.5px; display: inline-flex; align-items: center; gap: 4px; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.severity-critical { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.severity-critical .badge-dot { background: #ef4444; }
.severity-high { background: rgba(249,115,22,0.15); color: #fb923c; border: 1px solid rgba(249,115,22,0.3); }
.severity-high .badge-dot { background: #f97316; }
.severity-medium { background: rgba(234,179,8,0.15); color: #facc15; border: 1px solid rgba(234,179,8,0.3); }
.severity-medium .badge-dot { background: #eab308; }
.severity-info { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.severity-info .badge-dot { background: #3b82f6; }

.tsunami-badge { background: #7c3aed; color: #fff; font-weight: 800; padding: 3px 8px; border-radius: var(--radius-sm); font-size: 0.675rem; letter-spacing: 0.5px; }
.risk-badge { background: #dc2626; color: #fff; font-weight: 800; padding: 3px 8px; border-radius: var(--radius-sm); font-size: 0.675rem; }

.source-badge { font-weight: 700; background: var(--badge-bg); color: var(--badge-text); padding: 3px 8px; border-radius: var(--radius-sm); font-size: 0.725rem; display: inline-flex; align-items: center; gap: 4px; }
.source-favicon { width: 14px; height: 14px; border-radius: 3px; }
.category-badge { background: rgba(255,255,255,0.08); color: var(--text-secondary); padding: 3px 8px; border-radius: var(--radius-sm); font-size: 0.725rem; font-weight: 600; }
.magnitude-badge { background: rgba(239,68,68,0.1); color: #f87171; border: 1px solid rgba(239,68,68,0.2); font-weight: 800; }

/* Threat Tags */
.threat-tags-wrapper { display: flex; gap: 4px; flex-wrap: wrap; }
.threat-tag { background: rgba(239,68,68,0.1); color: #f87171; font-size: 0.675rem; font-weight: 800; padding: 2px 6px; border-radius: 4px; border: 1px solid rgba(239,68,68,0.2); }

/* Reliability Stars */
.reliability-stars { display: flex; gap: 1px; align-items: center; }
.star-filled { color: #f59e0b; font-size: 0.7rem; }
.star-empty { color: var(--border-color); font-size: 0.7rem; }

/* Related News */
.related-news-links { margin-top: 6px; }
.related-news-links small { color: var(--text-secondary); font-size: 0.72rem; }
.related-news-links a { color: var(--accent-color); text-decoration: none; font-size: 0.75rem; font-weight: 600; }
.related-news-links a:hover { text-decoration: underline; }

/* Card Action Footer (Share & Bookmark) */
.card-action-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}
.share-group { display: flex; gap: 6px; }
.btn-share-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.btn-share-icon:hover { color: var(--accent-color); background: rgba(59,130,246,0.1); }

/* Bookmark Button on Card Top Right */
.bookmark-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    backdrop-filter: blur(4px);
}
.bookmark-btn:hover { background: rgba(0,0,0,0.7); transform: scale(1.1); }
.bookmark-btn.bookmarked { background: var(--accent-color); border-color: var(--accent-color); }

.article-content time { font-size: 0.75rem; color: var(--text-secondary); }
.article-content h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.4; }
.article-content h3 a { color: var(--text-primary); text-decoration: none; }
.article-content h3 a:hover { color: var(--accent-color); }
.article-content p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ===================== SKELETON LOADER ===================== */
.skeleton-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.skeleton-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 37%, rgba(255,255,255,0.03) 63%);
    background-size: 400% 100%;
    animation: skeleton-pulse 1.4s ease infinite;
}
.skeleton-content { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.skeleton-line {
    height: 12px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 37%, rgba(255,255,255,0.03) 63%);
    background-size: 400% 100%;
    animation: skeleton-pulse 1.4s ease infinite;
}
@keyframes skeleton-pulse { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ===================== PAGINATION ===================== */
.pagination-container { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 36px; padding: 12px 0; }
.page-btn { background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-primary); font-size: 0.875rem; font-weight: 600; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: var(--transition); }
.page-btn:hover { border-color: var(--accent-color); color: var(--accent-color); }
.page-btn.active { background: var(--accent-color); color: #fff; border-color: var(--accent-color); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-ellipsis { color: var(--text-secondary); font-weight: 600; padding: 0 4px; }

/* ===================== ANALYTICS CHARTS ===================== */
.analytics-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.chart-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); }
.chart-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: var(--text-primary); }
.chart-canvas-wrapper { position: relative; width: 100%; }

/* ===================== STORY THREADS ===================== */
.story-topics-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.story-topic-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; }
.story-topic-header { padding: 16px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.story-topic-title { font-size: 1rem; font-weight: 800; }
.story-topic-count { background: var(--badge-bg); color: var(--badge-text); font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.story-timeline { padding: 0 16px; }
.story-timeline-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-color); align-items: flex-start; }
.story-timeline-item:last-child { border-bottom: none; }
.story-timeline-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-color); margin-top: 7px; flex-shrink: 0; }
.story-timeline-content { flex: 1; min-width: 0; }
.story-timeline-content a { color: var(--text-primary); text-decoration: none; font-size: 0.875rem; font-weight: 600; line-height: 1.4; display: block; }
.story-timeline-content a:hover { color: var(--accent-color); }
.story-timeline-content time { font-size: 0.72rem; color: var(--text-secondary); }
.story-show-more { display: block; text-align: center; padding: 12px; color: var(--accent-color); font-size: 0.825rem; font-weight: 600; cursor: pointer; text-decoration: none; background: none; border: none; width: 100%; transition: var(--transition); }
.story-show-more:hover { background: rgba(59,130,246,0.05); }

/* ===================== BOOKMARKS ===================== */
.bookmarks-empty { text-align: center; padding: 60px 20px; color: var(--text-secondary); }
.bookmarks-empty svg { opacity: 0.3; margin-bottom: 16px; }
.bookmarks-empty h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.bookmarks-empty p { font-size: 0.875rem; }
.bookmarks-toolbar { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.btn-clear-bookmarks { background: none; border: 1px solid var(--border-color); color: var(--text-secondary); font-size: 0.8rem; font-weight: 600; padding: 6px 14px; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); }
.btn-clear-bookmarks:hover { border-color: #ef4444; color: #ef4444; }

/* ===================== READER MODE DRAWER ===================== */
.reader-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9000;
    backdrop-filter: blur(4px);
}
.reader-overlay.open { display: block; }
.reader-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(600px, 100vw);
    height: 100vh;
    background: var(--card-bg);
    border-left: 1px solid var(--border-color);
    z-index: 9001;
    overflow-y: auto;
    transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.reader-drawer.open { right: 0; }
.reader-close-btn { background: none; border: 1px solid var(--border-color); color: var(--text-primary); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; align-self: flex-end; flex-shrink: 0; transition: var(--transition); }
.reader-close-btn:hover { background: var(--bg-color); }
.reader-image { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius-md); }
.reader-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.reader-title { font-size: 1.3rem; font-weight: 800; line-height: 1.35; color: var(--text-primary); }
.reader-summary { font-size: 0.9rem; line-height: 1.7; color: var(--text-secondary); }
.reader-link { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-color); color: #fff; padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.875rem; text-decoration: none; transition: var(--transition); }
.reader-link:hover { background: var(--accent-hover); }

/* ===================== MODALS ===================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9100;
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    padding: 28px;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: modal-in 0.25s ease;
}
@keyframes modal-in { from { opacity: 0; transform: scale(0.95) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: 1px solid var(--border-color); color: var(--text-primary); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.modal-close:hover { background: var(--bg-color); }
.modal-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.modal-subtitle { color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 20px; }

/* Forms */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-label { font-size: 0.8rem; font-weight: 700; color: var(--text-secondary); }
.form-input, .form-select {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    outline: none;
    transition: var(--transition);
    width: 100%;
}
.form-input:focus, .form-select:focus { border-color: var(--accent-color); }
.btn-primary { background: var(--accent-color); color: #fff; border: none; font-size: 0.9rem; font-weight: 700; padding: 11px 20px; border-radius: 8px; cursor: pointer; width: 100%; transition: var(--transition); }
.btn-primary:hover { background: var(--accent-hover); }
.form-message { font-size: 0.825rem; padding: 10px 14px; border-radius: 8px; margin-top: 12px; }
.form-message.success { background: rgba(16,185,129,0.12); color: #10b981; border: 1px solid rgba(16,185,129,0.3); }
.form-message.error { background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }

/* ===================== SHORTCUTS MODAL ===================== */
.shortcuts-grid { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; align-items: center; }
.shortcut-key { background: var(--bg-color); border: 1px solid var(--border-color); color: var(--text-primary); font-size: 0.8rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; font-family: monospace; text-align: center; box-shadow: 0 2px 0 var(--border-color); }
.shortcut-desc { font-size: 0.85rem; color: var(--text-secondary); }

/* Push Notification Banner */
.push-banner {
    background: linear-gradient(135deg, rgba(59,130,246,0.12) 0%, rgba(139,92,246,0.08) 100%);
    border: 1px solid rgba(59,130,246,0.25);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.push-banner-text { font-size: 0.85rem; color: var(--text-primary); font-weight: 600; }
.push-banner-text span { color: var(--text-secondary); font-weight: 400; }
.btn-push-enable { background: var(--accent-color); color: #fff; border: none; font-size: 0.8rem; font-weight: 700; padding: 7px 16px; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); white-space: nowrap; }
.btn-push-enable:hover { background: var(--accent-hover); }

/* Toast Notification */
.toast-notice {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: #f8fafc;
    border: 1px solid #334155;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.825rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 999999;
    animation: toast-in 0.3s ease;
}
@keyframes toast-in { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--card-bg); border-top: 1px solid var(--border-color); padding: 32px 0 20px; margin-top: 48px; }
.footer-info { margin-bottom: 12px; }
.footer-info p, .footer-bottom p { color: var(--text-secondary); font-size: 0.825rem; }
.footer-bottom { padding-top: 12px; border-top: 1px solid var(--border-color); }

/* ===================== RESPONSIVE ===================== */
@media (min-width: 640px) {
    .metrics-grid { grid-template-columns: repeat(4, 1fr); }
    .situation-kpi-bar { grid-template-columns: repeat(4, 1fr); }
    .filter-panel-top { flex-direction: row; align-items: center; }
    .search-box { flex: 2; }
    .filter-group { flex: 3; }
    .articles-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .analytics-grid { grid-template-columns: repeat(2, 1fr); }
    .story-topics-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .header-container { flex-direction: row; justify-content: space-between; }
    .brand { text-align: left; }
    .main-nav { width: auto; }
    .articles-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .analytics-grid { grid-template-columns: repeat(3, 1fr); }
    .situation-room-grid { grid-template-columns: 3fr 2fr; }
}

/* ===================== PRINT / PDF STYLING ===================== */
.print-report-header { display: none; }
@media print {
    .top-utility-bar, .site-header, .filter-panel, .pagination-container, .ticker-wrapper, .map-controls, .reader-overlay, .modal-overlay, .source-chips-bar, .word-cloud-section, .btn-share-icon, .bookmark-btn, .push-banner, .toast-notice { display: none !important; }
    .print-report-header {
        display: block !important;
        padding: 20px 0;
        border-bottom: 2px solid #000;
        margin-bottom: 24px;
    }
    .print-header-top h2 { font-size: 1.5rem; font-weight: 900; margin-bottom: 4px; color: #000; }
    .print-header-top p { font-size: 0.8rem; color: #555; }
    body { background: #fff !important; color: #000 !important; }
    .article-card { break-inside: avoid; border: 1px solid #ccc !important; box-shadow: none !important; margin-bottom: 16px; }
}

/* ===================== RTL (Arabic) ===================== */
[dir="rtl"] .search-icon { left: auto; right: 12px; }
[dir="rtl"] .search-box input { padding: 10px 36px 10px 12px; }
[dir="rtl"] .article-content time { margin-left: 0; margin-right: auto; }
[dir="rtl"] .reader-drawer { right: auto; left: -100%; border-left: none; border-right: 1px solid var(--border-color); }
[dir="rtl"] .reader-drawer.open { left: 0; right: auto; }

/* ============================================================
   1. ENTITY EXPLORER & TAGS (NER)
============================================================ */
.entity-explorer-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow-x: auto;
}
.entity-explorer-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.entity-chips-container {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap;
}
.entity-chip {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}
.entity-chip:hover, .entity-chip.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}
.entity-chip .entity-count {
    font-size: 0.68rem;
    opacity: 0.8;
}
.article-entity-pill {
    background: rgba(59,130,246,0.1);
    color: var(--accent-color);
    border: 1px solid rgba(59,130,246,0.25);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}
.article-entity-pill:hover {
    background: var(--accent-color);
    color: #fff;
}

/* ============================================================
   2. WATCHLIST SYSTEM & GLOWING BADGES
============================================================ */
.watchlist-nav-badge {
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 4px;
}
.btn-watchlist-filter {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.btn-watchlist-filter:hover, .btn-watchlist-filter.active {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}
.watchlist-matched-card {
    border-color: #ef4444 !important;
    box-shadow: 0 0 16px rgba(239,68,68,0.2) !important;
}
.watchlist-match-badge {
    background: #ef4444;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.watchlist-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
}
.watchlist-tag-pill button {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}

/* ============================================================
   3. SOURCE CREDIBILITY & BIAS INDEX
============================================================ */
.source-cred-tag {
    font-size: 0.68rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.25);
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}
.source-cred-tag:hover {
    background: #10b981;
    color: #fff;
}
.credibility-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.credibility-table th, .credibility-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.credibility-table th {
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cred-reliability-pill {
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.72rem;
}
.cred-tier-1 { background: rgba(16,185,129,0.15); color: #10b981; }
.cred-tier-2 { background: rgba(59,130,246,0.15); color: #3b82f6; }
.cred-tier-3 { background: rgba(249,115,22,0.15); color: #f97316; }
.cred-fact-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
}

/* ============================================================
   4. CHRONOLOGICAL EVENT TIMELINE TAB
============================================================ */
.timeline-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.timeline-story-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.btn-timeline-filter {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.825rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.btn-timeline-filter:hover, .btn-timeline-filter.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}
.timeline-count-badge {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}
.timeline-container {
    position: relative;
    padding-left: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 14px;
    width: 2px;
    background: var(--border-color);
}
.timeline-step {
    position: relative;
    display: flex;
    gap: 16px;
}
.timeline-step-marker {
    position: absolute;
    left: -32px;
    top: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.tl-marker-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 3px solid var(--bg-color);
    box-shadow: 0 0 0 2px var(--border-color);
}
.tl-step-index {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    margin-top: 4px;
}
.timeline-step-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    width: 100%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.timeline-step-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}
.tl-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}
.tl-cred-tag {
    font-size: 0.68rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16,185,129,0.1);
    padding: 2px 6px;
    border-radius: 4px;
}
.tl-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.4;
}
.tl-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}
.tl-card-title a:hover {
    color: var(--accent-color);
}
.tl-card-summary {
    font-size: 0.825rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}
.tl-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}
.tl-entity-pill {
    font-size: 0.68rem;
    font-weight: 600;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 2px 7px;
    border-radius: 10px;
}

/* ============================================================
   5. GEOPOLITICAL RISK MATRIX TAB
============================================================ */
.risk-matrix-kpi-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.risk-matrix-table-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.risk-matrix-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.risk-matrix-row-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 14px;
    transition: var(--transition);
}
.risk-matrix-row-card:hover {
    border-color: var(--accent-color);
}
.rm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}
.rm-country-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.rm-flag {
    font-size: 1.5rem;
}
.risk-score-pill {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}
.risk-badge-crit { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.risk-badge-high { background: rgba(249,115,22,0.15); color: #f97316; border: 1px solid rgba(249,115,22,0.3); }
.risk-badge-elevated { background: rgba(234,179,8,0.15); color: #eab308; border: 1px solid rgba(234,179,8,0.3); }
.rm-summary {
    font-size: 0.825rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.4;
}
.rm-bars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}
.rm-bar-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.rm-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
}
.rm-bar-track {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}
.rm-bar-fill {
    height: 100%;
    border-radius: 3px;
}

/* ============================================================
   6. ACTOR NETWORK GRAPH
============================================================ */
.network-graph-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 1024px) {
    .network-graph-layout { grid-template-columns: 3fr 1fr; }
}
.network-graph-main {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.network-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 8px;
}
.network-legend {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    flex-wrap: wrap;
}
.net-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}
.net-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.network-canvas-container {
    width: 100%;
    height: 520px;
    position: relative;
    cursor: grab;
}
.network-canvas-container:active {
    cursor: grabbing;
}
#network-canvas {
    width: 100%;
    height: 100%;
    display: block;
}
.network-sidebar {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 580px;
    overflow-y: auto;
}
.network-sidebar-header h4 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 4px;
}
.network-sidebar-header p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}
.net-conn-chip {
    font-size: 0.75rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 6px 8px;
    border-radius: 6px;
    margin-bottom: 4px;
}
.net-art-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.net-art-card a {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

/* ============================================================
   7. COMPARATIVE MEDIA ANALYSIS TAB
============================================================ */
.media-compare-toolbar {
    margin-bottom: 20px;
}
.media-topic-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.media-compare-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 900px) {
    .media-compare-grid { grid-template-columns: repeat(3, 1fr); }
}
.media-col {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.media-col-header {
    padding: 14px 16px;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}
.media-col-header h4 {
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 2px;
}
.media-col-header small {
    font-size: 0.72rem;
    color: var(--text-secondary);
}
.media-col-articles {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.compare-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    transition: var(--transition);
}
.compare-card:hover {
    border-color: var(--accent-color);
}
.compare-title {
    font-size: 0.825rem;
    font-weight: 700;
    line-height: 1.4;
}
.compare-title a {
    color: var(--text-primary);
    text-decoration: none;
}

/* ============================================================
   8. CALENDAR ACTIVITY HEATMAP (GitHub Style)
============================================================ */
.calendar-heatmap-wrapper {
    padding: 14px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}
.cal-heat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11px, 1fr));
    gap: 4px;
    margin-bottom: 12px;
}
.cal-heat-cell {
    aspect-ratio: 1;
    border-radius: 2px;
    cursor: pointer;
    transition: transform 0.15s ease;
}
.cal-heat-cell:hover {
    transform: scale(1.3);
    outline: 1px solid #fff;
    z-index: 10;
}
.heat-level-0 { background: rgba(100, 116, 139, 0.15); }
.heat-level-1 { background: rgba(16, 185, 129, 0.35); }
.heat-level-2 { background: rgba(16, 185, 129, 0.65); }
.heat-level-3 { background: rgba(249, 115, 22, 0.8); }
.heat-level-4 { background: #ef4444; }

.cal-heat-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--text-secondary);
}
.cal-heat-legend .cal-heat-cell {
    width: 10px;
    height: 10px;
}

/* ============================================================
   9. TICKER CONTROLS
============================================================ */
.ticker-badge-group {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ticker-speed-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}
.ticker-speed-btn:hover {
    background: rgba(255,255,255,0.18);
}

/* ============================================================
   10. MOBILE BOTTOM NAVIGATION DOCK & DRAWER
============================================================ */
.mobile-bottom-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 58px;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    display: none;
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}
.dock-btn {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.65rem;
    font-weight: 700;
    gap: 3px;
    cursor: pointer;
    transition: var(--transition);
    padding: 6px 0;
    -webkit-tap-highlight-color: transparent;
}
.dock-btn svg {
    transition: transform 0.15s ease;
}
.dock-btn:active svg {
    transform: scale(0.9);
}
.dock-btn.active {
    color: var(--accent-color);
}
.dock-btn.active svg {
    stroke: var(--accent-color);
}

.mobile-menu-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.mobile-menu-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}
.mobile-menu-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 20px 20px calc(24px + env(safe-area-inset-bottom, 0));
    z-index: 10001;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.4);
}
.mobile-menu-drawer.open {
    transform: translateY(0);
}
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}
.mobile-menu-header h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}
.mobile-menu-close {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.25rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.mobile-menu-item {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}
.mobile-menu-item:hover, .mobile-menu-item:active {
    border-color: var(--accent-color);
    background: rgba(37,99,235,0.08);
}
.mobile-menu-item svg {
    color: var(--accent-color);
    flex-shrink: 0;
}

/* ============================================================
   11. COMPREHENSIVE MOBILE RESPONSIVE ADAPTATIONS (<768px)
============================================================ */
@media (max-width: 768px) {
    html, body {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 8px)) !important;
    }
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        box-sizing: border-box !important;
    }
    .mobile-bottom-dock {
        display: flex !important;
    }
    
    /* Top Utility Bar */
    .top-utility-bar {
        padding: 5px 0;
        font-size: 0.72rem;
        width: 100vw;
        max-width: 100vw;
        overflow: hidden;
    }
    .utility-container {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        padding: 0 4px !important;
    }
    .live-status-indicator {
        justify-content: space-between !important;
        width: 100% !important;
    }
    .utility-nav-wrapper {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        position: relative !important;
    }
    .utility-actions {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        overflow-x: scroll !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        white-space: nowrap !important;
        flex: 1 1 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        touch-action: pan-x !important;
        padding: 4px 2px !important;
    }
    .utility-actions::-webkit-scrollbar {
        display: none !important;
    }
    .btn-utility {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
    .util-scroll-btn {
        display: flex !important;
        flex-shrink: 0 !important;
        width: 26px !important;
        height: 26px !important;
    }
    
    /* Header */
    .site-header {
        position: sticky;
        top: 0;
        z-index: 999;
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        padding: 8px 0 !important;
        max-width: 100vw;
        overflow: hidden;
    }
    .header-container {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 4px !important;
        gap: 8px;
        max-width: 100%;
    }
    .site-header .main-nav {
        display: none !important;
    }

    /* Live Ticker */
    .ticker-wrapper {
        padding: 6px 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        overflow: hidden !important;
    }
    .ticker-container {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        padding: 0 4px !important;
    }
    .ticker-badge-group {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        flex-shrink: 0 !important;
    }
    .ticker-badge {
        font-size: 0.65rem !important;
        padding: 2px 5px !important;
    }
    .ticker-speed-btn {
        font-size: 0.62rem !important;
        padding: 2px 4px !important;
    }
    .ticker-content {
        display: flex !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: 100% !important;
        overflow: hidden !important;
        position: relative !important;
        height: 24px !important;
    }
    .ticker-track {
        display: inline-flex !important;
        align-items: center !important;
        white-space: nowrap !important;
        will-change: transform !important;
        flex-shrink: 0 !important;
    }
    .ticker-item-unit {
        font-size: 0.75rem !important;
        padding: 0 10px !important;
        flex-shrink: 0 !important;
    }

    /* Filter Panels & Controls */
    .filter-panel {
        max-width: 100%;
        overflow: hidden;
        padding: 12px 10px;
    }
    .filter-group {
        flex-direction: column !important;
        width: 100% !important;
    }
    .filter-select {
        width: 100% !important;
        min-width: 0 !important;
    }
    .filter-panel-bottom {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .date-range-wrapper {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
        width: 100% !important;
    }
    .date-input {
        width: 100% !important;
    }
    .filter-actions-right {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        width: 100% !important;
    }
    .filter-actions-right button {
        flex: 1 1 calc(50% - 6px) !important;
        justify-content: center;
        text-align: center;
    }

    /* Articles Grid & Cards */
    .articles-grid {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 12px !important;
    }
    .article-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    .article-title, .article-summary {
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    /* Situation Room */
    .situation-room-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
        width: 100% !important;
        max-width: 100% !important;
    }
    #situation-map-container {
        height: 360px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .situation-stream-scroll {
        max-height: 360px;
    }
    .situation-kpi-bar {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
        width: 100% !important;
    }
    .situation-kpi-card {
        padding: 10px 12px;
        min-width: 0;
    }
    .situation-kpi-title {
        font-size: 0.68rem;
    }
    .situation-kpi-val {
        font-size: 0.95rem;
    }

    /* Live Map */
    .map-header-flex {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px;
    }
    .map-controls {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 6px !important;
        width: 100% !important;
        padding-bottom: 6px !important;
        touch-action: pan-x !important;
    }
    .map-controls::-webkit-scrollbar {
        display: none !important;
    }
    .map-controls > * {
        flex: 0 0 auto !important;
        min-width: max-content !important;
        font-size: 0.74rem !important;
        padding: 6px 12px !important;
        white-space: nowrap !important;
    }
    .map-layer-switch {
        width: 100%;
        display: flex;
    }
    .map-layer-switch button {
        flex: 1;
    }
    #map-wrapper {
        height: 380px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Situation Room Mobile Grid Optimization */
    .maritime-chokepoint-card, .dba-health-card, .convergence-radar-card {
        padding: 12px 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    #maritime-chokepoints-container {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    #dba-table-health-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
    #sql-results-wrapper {
        max-height: 280px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Timeline */
    .timeline-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }
    .timeline-story-selector {
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        width: 100% !important;
        padding-bottom: 4px;
    }

    /* Risk Matrix */
    .risk-matrix-kpi-bar {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
        width: 100% !important;
    }
    .risk-matrix-table-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .risk-matrix-table-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .risk-matrix-table-header input {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Network Graph */
    .network-graph-layout {
        grid-template-columns: 1fr !important;
        gap: 14px;
        width: 100% !important;
    }
    .network-canvas-container {
        height: 320px !important;
        width: 100% !important;
    }
    .network-sidebar {
        max-height: 340px;
        width: 100% !important;
    }

    /* Media Compare */
    .media-compare-grid {
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }

    /* Analytics & Heatmap */
    .analytics-grid {
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }
    .cal-heat-grid {
        grid-template-columns: repeat(auto-fill, minmax(9px, 1fr)) !important;
        gap: 2px;
    }

    /* Audio Briefing Player */
    .audio-player-container {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 8px 10px !important;
    }
    .audio-player-info {
        width: 100% !important;
    }
    .audio-player-controls {
        justify-content: space-between !important;
        width: 100% !important;
    }

    /* Reader Drawer on Mobile: Full Width Slide-up */
    .reader-drawer {
        width: 100% !important;
        right: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        top: 0 !important;
        border-left: none !important;
        border-radius: 0 !important;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reader-drawer.open {
        transform: translateY(0);
    }

    /* Modals */
    .modal-box {
        width: 95% !important;
        max-width: 95% !important;
        padding: 16px 14px !important;
        max-height: 85vh;
        overflow-y: auto;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }
    .situation-kpi-bar {
        grid-template-columns: 1fr !important;
    }
    .risk-matrix-kpi-bar {
        grid-template-columns: 1fr !important;
    }
    .mobile-menu-grid {
        grid-template-columns: 1fr !important;
    }
    .article-meta {
        font-size: 0.7rem;
    }
    .defcon-convergence-grid {
        grid-template-columns: 1fr !important;
    }
    .chokepoint-gauge-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .live-cams-grid {
        grid-template-columns: 1fr !important;
    }
    .export-options-grid {
        grid-template-columns: 1fr !important;
    }
    .nav-btn, .page-btn, .btn-utility, .dock-btn {
        min-height: 44px;
    }
}

/* Satellite Pass Telemetry Pill */
.satellite-pass-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.35);
    font-size: 0.68rem;
    font-weight: 800;
    font-family: var(--font-mono);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    letter-spacing: 0.5px;
}

/* DEFCON Strategic Posture Elements */
.defcon-step-box {
    transition: var(--transition);
}
.defcon-step-box.current-level {
    transform: scale(1.04);
}

/* ============================================================
   12. AI VOICE INTELLIGENCE AUDIO BRIEFING PLAYER
============================================================ */
.btn-audio-briefing {
    background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(59,130,246,0.25)) !important;
    border-color: rgba(59,130,246,0.5) !important;
    color: #60a5fa !important;
    font-weight: 800 !important;
}
.btn-audio-briefing:hover {
    background: rgba(37,99,235,0.3) !important;
    border-color: #3b82f6 !important;
    color: #fff !important;
}

.audio-briefing-player {
    position: sticky;
    top: 36px;
    z-index: 990;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    animation: slideDownPlayer 0.25s ease-out;
}
@keyframes slideDownPlayer {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.audio-player-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    gap: 16px;
}
.audio-player-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}
.audio-eq-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
    flex-shrink: 0;
}
.audio-eq-bars span {
    width: 3px;
    height: 4px;
    background: #3b82f6;
    border-radius: 2px;
    transition: height 0.2s;
}
.audio-eq-bars.playing span:nth-child(1) { animation: eqPulse 0.8s infinite ease-in-out 0.1s; }
.audio-eq-bars.playing span:nth-child(2) { animation: eqPulse 0.8s infinite ease-in-out 0.3s; }
.audio-eq-bars.playing span:nth-child(3) { animation: eqPulse 0.8s infinite ease-in-out 0.2s; }
.audio-eq-bars.playing span:nth-child(4) { animation: eqPulse 0.8s infinite ease-in-out 0.4s; }

@keyframes eqPulse {
    0%, 100% { height: 4px; }
    50% { height: 18px; background: #60a5fa; }
}

.audio-text-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.audio-player-badge {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #60a5fa;
    text-transform: uppercase;
}
.audio-story-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.audio-player-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.btn-audio-ctrl {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    color: #e2e8f0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.btn-audio-ctrl:hover {
    background: rgba(59,130,246,0.3);
    border-color: #3b82f6;
    color: #fff;
}
.btn-audio-play {
    width: 34px;
    height: 34px;
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}
.btn-audio-play:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}
.audio-speed-select {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    cursor: pointer;
}
.btn-audio-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    margin-left: 4px;
    padding: 0 4px;
}
.btn-audio-close:hover {
    color: #ef4444;
}

/* ============================================================
   13. TACTICAL RADAR, AIS & THERMAL MAP MARKERS
============================================================ */
.radar-flight-divicon {
    background: transparent;
    border: none;
    transition: transform 1.0s linear !important;
}
.radar-flight-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.radar-flight-icon svg {
    transition: transform 0.5s ease-out;
    transform-origin: center center;
    filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.8));
}
.radar-flight-pulse {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid rgba(56, 189, 248, 0.7);
    background: rgba(56, 189, 248, 0.15);
    animation: radar-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    pointer-events: none;
}
@keyframes radar-ping {
    0% { transform: scale(0.6); opacity: 0.9; }
    75%, 100% { transform: scale(2.2); opacity: 0; }
}
.radar-flight-icon:hover svg {
    transform: scale(1.25);
}
.radar-flight-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(2, 132, 199, 0.95);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    border: 1px solid rgba(56, 189, 248, 0.6);
    pointer-events: none;
}

.radar-vessel-divicon {
    background: transparent;
    border: none;
    transition: transform 1.2s linear !important;
}
.radar-vessel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}
.radar-vessel-icon svg {
    transition: transform 0.6s ease-out;
    transform-origin: center center;
    filter: drop-shadow(0 0 3px rgba(52, 211, 153, 0.8));
}
.radar-vessel-pulse {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(52, 211, 153, 0.6);
    animation: radar-ping 3s cubic-bezier(0, 0, 0.2, 1) infinite;
    pointer-events: none;
}
.radar-vessel-icon {
    transition: transform 0.2s;
}
.radar-vessel-icon:hover {
    transform: scale(1.2);
}

.radar-thermal-divicon {
    background: transparent;
    border: none;
}
.radar-thermal-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.thermal-pulse-ring {
    position: absolute;
    width: 28px;
    height: 28px;
    border: 2px solid #f97316;
    border-radius: 50%;
    animation: thermalPulse 1.6s infinite ease-out;
}
@keyframes thermalPulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* ============================================================
   14. 1-CLICK TACTICAL CRISIS PRESETS BAR
============================================================ */
.crisis-presets-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.crisis-presets-bar::-webkit-scrollbar {
    display: none;
}
.crisis-presets-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.crisis-presets-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}
.btn-crisis-preset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}
.btn-crisis-preset:hover {
    border-color: var(--accent-color);
    transform: translateY(-1px);
}
.btn-crisis-preset.active {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}
/* Crisis Badge Tags */
.crisis-badge-tag {
    font-size: 0.68rem;
    font-weight: 800;
    font-family: var(--font-mono);
    padding: 2px 5px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.crisis-badge-tag.tag-red { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.4); }
.crisis-badge-tag.tag-orange { background: rgba(249, 115, 22, 0.2); color: #f97316; border: 1px solid rgba(249, 115, 22, 0.4); }
.crisis-badge-tag.tag-blue { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }
.crisis-badge-tag.tag-purple { background: rgba(192, 132, 252, 0.2); color: #c084fc; border: 1px solid rgba(192, 132, 252, 0.4); }
.crisis-badge-tag.tag-amber { background: rgba(251, 191, 36, 0.2); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.4); }

.rm-code-badge, .entity-code-badge {
    font-size: 0.68rem;
    font-weight: 800;
    font-family: var(--font-mono);
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bg-hover);
    color: var(--accent-color);
    border: 1px solid var(--border-color);
    margin-right: 4px;
}

/* Executive SitRep Card */
.executive-sitrep-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.sitrep-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 12px;
}
.sitrep-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sitrep-badge-classification {
    font-size: 0.68rem;
    font-weight: 900;
    font-family: var(--font-mono);
    letter-spacing: 0.8px;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.sitrep-status-live {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}
.sitrep-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sitrep-defcon-badge {
    font-size: 0.72rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
}
.sitrep-timestamp {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}
.sitrep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}
.sitrep-bullet {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--bg-color);
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.sitrep-theater-tag {
    font-size: 0.68rem;
    font-weight: 800;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}
.sitrep-theater-tag.tag-ukr { color: #38bdf8; }
.sitrep-theater-tag.tag-mideast { color: #ef4444; }
.sitrep-theater-tag.tag-pacific { color: #f59e0b; }
.sitrep-text {
    font-size: 0.78rem;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Strategic Chokepoints Maritime Gauge */
.chokepoints-gauge-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.chokepoint-gauge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.gauge-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-primary);
}
.gauge-header-sub {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}
.chokepoint-gauge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.chokepoint-node {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: var(--transition);
}
.chokepoint-node:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.cp-node-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.cp-name {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-primary);
}
.cp-badge-risk {
    font-size: 0.62rem;
    font-weight: 800;
    font-family: var(--font-mono);
    padding: 1px 5px;
    border-radius: 3px;
}
.risk-critical { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.risk-high { background: rgba(249, 115, 22, 0.2); color: #f97316; }
.risk-elevated { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.risk-moderate { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.cp-stat-row {
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}
.cp-progress-bar {
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}
.cp-progress-fill {
    height: 100%;
    border-radius: 2px;
}
.fill-critical { background: #ef4444; }
.fill-red { background: #ea580c; }
.fill-yellow { background: #f59e0b; }
.fill-orange { background: #f97316; }
.fill-blue { background: #3b82f6; }
.fill-green { background: #10b981; }

/* Strategic Facility Divicons */
.strategic-facility-divicon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.strategic-naval-icon, .strategic-nuclear-icon, .strategic-radar-icon, .strategic-airbase-icon, .strategic-abm-icon, .strategic-subsea-icon, .strategic-radiation-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: transform 0.2s ease;
}
.strategic-naval-icon { background: #0284c7; }
.strategic-nuclear-icon { background: #d97706; }
.strategic-radar-icon { background: #7e22ce; }
.strategic-airbase-icon { background: #0891b2; }
.strategic-abm-icon { background: #059669; }
.strategic-subsea-icon { background: #4f46e5; }
.strategic-radiation-icon { background: #10b981; }
.strategic-naval-icon:hover, .strategic-nuclear-icon:hover, .strategic-radar-icon:hover, .strategic-airbase-icon:hover, .strategic-abm-icon:hover, .strategic-subsea-icon:hover, .strategic-radiation-icon:hover {
    transform: scale(1.25);
}

/* ============================================================
   15. EXECUTIVE INTELLIGENCE DOSSIER PRINT STYLES (@media print)
============================================================ */
@media print {
    body {
        background: #fff !important;
        color: #0f172a !important;
        font-family: 'Inter', -apple-system, sans-serif !important;
        padding: 0 !important;
    }
    .top-utility-bar,
    .site-header,
    .main-nav,
    .news-ticker-bar,
    .mobile-bottom-dock,
    .mobile-menu-drawer,
    .audio-briefing-player,
    .map-controls,
    .pagination-bar,
    .modal-overlay,
    .reader-drawer {
        display: none !important;
    }
    .tab-content {
        display: block !important;
    }
    .site-main {
        padding: 0 !important;
    }
    .container {
        max-width: 100% !important;
        padding: 0 10mm !important;
    }
    .dashboard-header {
        border-bottom: 2px solid #0f172a;
        padding-bottom: 12px;
        margin-bottom: 16px;
    }
    .dashboard-header::before {
        content: "OFFICIAL STRATEGIC INTELLIGENCE DOSSIER // BOJOKU OSINT";
        display: block;
        font-size: 11pt;
        font-weight: 900;
        color: #dc2626;
        letter-spacing: 0.1em;
        margin-bottom: 4px;
    }
    .article-card {
        page-break-inside: avoid;
        border: 1px solid #cbd5e1 !important;
        box-shadow: none !important;
        margin-bottom: 12px;
    }
}

/* ============================================================
   BREAKING NEWS LIVE TICKER
   ============================================================ */
.breaking-ticker-wrap {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(239,68,68,0.12) 0%, var(--card-bg) 100%);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 8px;
    height: 36px;
    overflow: hidden;
    margin-bottom: 14px;
    position: relative;
    user-select: none;
}
.ticker-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    font-size: 0.7rem;
    font-weight: 900;
    font-family: var(--font-mono);
    color: #ef4444;
    letter-spacing: 0.08em;
    white-space: nowrap;
    border-right: 1px solid rgba(239,68,68,0.3);
    height: 100%;
    flex-shrink: 0;
    background: rgba(239,68,68,0.08);
}
.ticker-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse-red 1.4s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pulse-red {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}
.ticker-track-outer {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
}
.ticker-track {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    will-change: transform;
    cursor: pointer;
}
.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    font-size: 0.82rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: color 0.15s;
}
.ticker-item:hover { color: var(--accent-color); }
.ticker-badge {
    font-size: 0.62rem;
    font-weight: 900;
    font-family: var(--font-mono);
    color: #fff;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}
.ticker-divider {
    color: rgba(239,68,68,0.4);
    font-size: 0.5rem;
    padding: 0 4px;
}
.ticker-pause-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 6px;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.25);
    border-radius: 5px;
    color: #ef4444;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}
.ticker-pause-btn:hover { background: rgba(239,68,68,0.22); }

/* PDF Export Button */
.btn-pdf-export {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: #ef4444;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    font-family: var(--font-mono);
    letter-spacing: 0.03em;
}
.btn-pdf-export:hover { background: rgba(239,68,68,0.22); border-color: #ef4444; }

/* Mobile Ticker */
@media (max-width: 480px) {
    .ticker-label { padding: 0 8px; font-size: 0.65rem; }
    .ticker-item { font-size: 0.78rem; padding: 0 10px; }
}

/* ============================================================
   SEARCH AUTOCOMPLETE DROPDOWN
   ============================================================ */
.search-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.22);
    z-index: 9999;
    overflow: hidden;
    display: none;
    max-height: 340px;
    overflow-y: auto;
}
.search-autocomplete-dropdown.open {
    display: block;
}
.autocomplete-group-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    padding: 6px 12px 3px;
    text-transform: uppercase;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid var(--border-color);
}
.autocomplete-group-label:first-child {
    border-top: none;
}
.autocomplete-item {
    padding: 8px 12px;
    font-size: 0.82rem;
    color: var(--text-primary);
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.12s, color 0.12s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 8px;
}
.autocomplete-item:hover,
.autocomplete-item.focused {
    background: rgba(59,130,246,0.12);
    color: var(--accent-color);
}
.autocomplete-item:last-child {
    border-bottom: none;
}
.autocomplete-tag {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
    flex-shrink: 0;
}
.autocomplete-tag.src { background: rgba(59,130,246,0.2); color: #3b82f6; }
.autocomplete-tag.cat { background: rgba(16,185,129,0.2); color: #10b981; }
.autocomplete-tag.art { background: rgba(139,92,246,0.2); color: #8b5cf6; }

/* ========================================================
   GOOGLE ADSENSE RESPONSIVE AD CONTAINER STYLES
   ======================================================== */
.adsense-leaderboard-container {
    width: 100%;
    max-width: 1200px;
    margin: 16px auto;
    text-align: center;
    background: var(--card-bg, #0f172a);
    border: 1px solid var(--border-color, #1e293b);
    border-radius: 12px;
    padding: 12px 16px;
    box-sizing: border-box;
    overflow: hidden;
}
.adsense-infeed-card {
    grid-column: span 1;
    background: var(--card-bg, #0f172a);
    border: 1px dashed var(--border-color, #334155);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 280px;
    box-sizing: border-box;
    overflow: hidden;
}
.ad-disclosure-label {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text-secondary, #64748b);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}
.adsense-sidebar-slot {
    width: 100%;
    min-height: 250px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color, #1e293b);
    border-radius: 12px;
    padding: 12px;
    margin: 16px 0;
    text-align: center;
    box-sizing: border-box;
}

/* ========================================================
   WAR THEATER / ISRAEL STRATEGIC INTELLIGENCE MAP STYLES
   ======================================================== */
.war-theater-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}
.war-theater-layout {
    display: grid;
    grid-template-columns: 310px 1fr 340px;
    gap: 16px;
    align-items: stretch;
}
@media (max-width: 1200px) {
    .war-theater-layout {
        grid-template-columns: 280px 1fr;
    }
    .war-theater-inspector {
        grid-column: 1 / -1;
    }
}
@media (max-width: 860px) {
    .war-theater-layout {
        grid-template-columns: 1fr;
    }
}
.war-theater-panel {
    background: var(--card-bg, #0f172a);
    border: 1px solid var(--border-color, #1e293b);
    border-radius: 14px;
    padding: 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.war-theater-map-box {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-color, #1e293b);
    background: #090d16;
    height: 720px;
}
#israel-war-leaflet-map {
    width: 100%;
    height: 100%;
    background: #0b0f19;
}
.war-layer-toggle-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color, #1e293b);
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
}
.war-layer-toggle-card:hover {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.3);
}
.war-layer-toggle-card.active {
    background: rgba(56, 189, 248, 0.12);
    border-color: var(--accent-color, #38bdf8);
}
.war-layer-toggle-card .toggle-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.war-asset-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color, #1e293b);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.78rem;
    transition: all 0.12s ease;
}
.war-asset-pill:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
    color: #fff;
    transform: translateX(2px);
}
.war-asset-pill.selected {
    background: rgba(59, 130, 246, 0.25);
    border-color: #38bdf8;
    color: #38bdf8;
    font-weight: 700;
}
.war-orbat-stat-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.war-orbat-tile {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-color, #1e293b);
    border-radius: 8px;
    padding: 8px 10px;
    text-align: center;
}
.war-orbat-tile .num {
    font-size: 1.15rem;
    font-weight: 900;
    font-family: var(--font-mono);
    color: var(--accent-color, #38bdf8);
}
.war-orbat-tile .lbl {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-secondary, #94a3b8);
    font-weight: 700;
}

/* Light Theme Overrides for War Theater */
[data-theme="light"] .war-theater-panel {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
[data-theme="light"] .war-layer-toggle-card {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #0f172a;
}
[data-theme="light"] .war-layer-toggle-card:hover {
    background: #f1f5f9;
    border-color: #3b82f6;
}
[data-theme="light"] .war-layer-toggle-card.active {
    background: #eff6ff;
    border-color: #3b82f6;
}
[data-theme="light"] .war-orbat-tile {
    background: #f8fafc;
    border-color: #e2e8f0;
}
[data-theme="light"] .war-orbat-tile .num {
    color: #2563eb;
}
[data-theme="light"] .war-orbat-tile .lbl {
    color: #64748b;
}
[data-theme="light"] .war-asset-pill {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #1e293b;
}
[data-theme="light"] .war-asset-pill:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
}
[data-theme="light"] .war-asset-pill.selected {
    background: #dbeafe;
    border-color: #2563eb;
    color: #1d4ed8;
}
[data-theme="light"] #war-inspector-content {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}
[data-theme="light"] .war-spec-box {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}
[data-theme="light"] .war-spec-text {
    color: #1e293b !important;
}

/* ============================================================
   WAR THEATER MOBILE & TABLET RESPONSIVE ENHANCEMENTS
   ============================================================ */
@media (max-width: 1024px) {
    .war-theater-layout {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }
    .war-theater-map-box {
        height: 520px !important;
        order: 1;
    }
    .war-theater-panel:first-child {
        order: 2;
    }
    .war-theater-inspector {
        order: 3;
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 640px) {
    .war-theater-container {
        gap: 12px;
        margin-bottom: 20px;
    }
    .war-theater-map-box {
        height: 400px !important;
        border-radius: 10px;
    }
    .war-theater-panel {
        padding: 12px;
        border-radius: 10px;
    }
    .war-layer-toggle-card {
        padding: 7px 10px;
        font-size: 0.75rem;
    }
    .war-orbat-stat-box {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px;
    }
    .war-orbat-tile {
        padding: 6px 8px;
    }
    .war-orbat-tile .num {
        font-size: 0.95rem;
    }
    .war-orbat-tile .lbl {
        font-size: 0.6rem;
    }
    #tab-war-theater .dashboard-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
    #tab-war-theater .dashboard-header div[style*="display:flex"] {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
    }
    #tab-war-theater .btn-timeline-filter,
    #tab-war-theater .btn-primary {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 0.72rem;
        padding: 5px 8px;
    }
    .war-asset-pill {
        font-size: 0.74rem;
        padding: 6px 8px;
    }
    #war-inspector-content {
        max-height: 380px;
    }
}

@media (max-width: 420px) {
    .war-theater-map-box {
        height: 340px !important;
    }
}

/* ============================================================
   13. MULTI-VIEW TACTICAL CCTV WEBCAMS SECURITY WALL
============================================================ */
.cctv-wall-modal-box {
    max-width: 1200px !important;
    width: 95vw !important;
    max-height: 92vh !important;
    background: #080c14 !important;
    border: 1px solid #1e293b !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(14, 165, 233, 0.15) !important;
    color: #e2e8f0;
}
.cctv-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 8px;
    margin: 12px 0;
}
.cctv-grid-layout {
    display: grid;
    gap: 12px;
    transition: all 0.3s ease;
}
.cctv-grid-6 {
    grid-template-columns: repeat(3, 1fr);
}
.cctv-grid-4 {
    grid-template-columns: repeat(2, 1fr);
}
.cctv-grid-1 {
    grid-template-columns: 1fr;
}
.cctv-cam-card {
    position: relative;
    background: #050810;
    border: 1px solid #1e293b;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: border-color 0.2s, transform 0.2s;
}
.cctv-cam-card:hover {
    border-color: #38bdf8;
}
.cctv-cam-card.spotlight {
    border-color: #00f0ff;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}
.cctv-cam-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: rgba(10, 15, 29, 0.95);
    border-bottom: 1px solid #1e293b;
    font-family: var(--font-mono);
    font-size: 0.72rem;
}
.cctv-cam-title {
    font-weight: 800;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cctv-rec-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #ef4444;
    font-weight: 900;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
}
.cctv-rec-dot {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 1.2s infinite;
}
.cctv-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    overflow: hidden;
}
.cctv-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.cctv-hud-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 20%, transparent 80%, rgba(0,0,0,0.6) 100%);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: rgba(255,255,255,0.8);
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}
.cctv-hud-top {
    display: flex;
    justify-content: space-between;
}
.cctv-hud-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.cctv-cam-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: #090d1a;
    font-size: 0.7rem;
    color: #94a3b8;
}

@media (max-width: 900px) {
    .cctv-grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .cctv-grid-6, .cctv-grid-4 { grid-template-columns: 1fr; }
}

/* ============================================================
   14. TACTICAL ATC & MILITARY RADIO SCANNER
============================================================ */
.atc-scanner-modal-box {
    max-width: 820px !important;
    background: #090e17 !important;
    border: 1px solid #1e293b !important;
    color: #f1f5f9;
}
.atc-main-panel {
    background: #060911;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 16px;
    margin-top: 14px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.6);
}
.atc-tuner-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #03050a;
    border: 1px solid #0284c7;
    border-radius: 10px;
    padding: 14px 18px;
    box-shadow: 0 0 20px rgba(2, 132, 199, 0.2);
    margin-bottom: 14px;
}
.atc-frequency-large {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 900;
    color: #38bdf8;
    letter-spacing: 1px;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}
.atc-freq-label {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 2px;
}
.atc-signal-meter {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 24px;
}
.atc-signal-meter span {
    width: 4px;
    background: #0284c7;
    border-radius: 1px;
}
.atc-waveform-canvas {
    width: 100%;
    height: 70px;
    background: #020408;
    border: 1px solid #1e293b;
    border-radius: 8px;
    display: block;
    margin-bottom: 14px;
}
.atc-channel-presets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}
.atc-preset-btn {
    background: #0d1527;
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 8px 10px;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #cbd5e1;
}
.atc-preset-btn:hover {
    border-color: #38bdf8;
    background: #13203c;
}
.atc-preset-btn.active {
    border-color: #00f0ff;
    background: rgba(0, 240, 255, 0.12);
    color: #00f0ff;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}
.atc-preset-freq {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 800;
}
.atc-preset-name {
    font-size: 0.68rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.atc-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: #0b111e;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #1e293b;
}
.atc-transcript-ticker {
    background: #04060c;
    border: 1px solid #1e293b;
    border-left: 3px solid #38bdf8;
    border-radius: 6px;
    padding: 8px 12px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: #93c5fd;
    margin-top: 12px;
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   15. GEOPOLITICAL WAR-TO-MARKET IMPACT INDEX
============================================================ */
.war-market-impact-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--card-shadow);
}
.war-market-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}
.market-sensitivity-gauge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    font-family: var(--font-mono);
}
.war-assets-ticker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.market-asset-tile {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.market-asset-tile:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.asset-tile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.asset-name {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
}
.asset-price {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
}
.asset-delta {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
}
.asset-delta.up { color: #10b981; }
.asset-delta.down { color: #ef4444; }
.asset-georisk-note {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.crisis-causality-box {
    background: var(--bg-color);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* ============================================================
   19. DEDICATED SIGINT & TACTICAL RADIOLINK DASHBOARD
============================================================ */
.radiolink-dashboard-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 20px;
    margin-top: 16px;
}
.radiolink-rig-panel {
    background: #060a12;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.radiolink-vfo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.radiolink-vfo-display {
    background: #020409;
    border: 1px solid #0284c7;
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: inset 0 0 20px rgba(2, 132, 199, 0.2), 0 0 15px rgba(2, 132, 199, 0.15);
    margin-bottom: 16px;
    position: relative;
}
.radiolink-freq-large {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 900;
    color: #38bdf8;
    letter-spacing: 2px;
    text-shadow: 0 0 16px rgba(56, 189, 248, 0.7);
    line-height: 1;
}
.radiolink-freq-unit {
    font-size: 1.1rem;
    color: #0284c7;
    margin-left: 6px;
}
.radiolink-station-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #f8fafc;
    margin-top: 8px;
}
.radiolink-smeter-container {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(56, 189, 248, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}
.radiolink-smeter-scale {
    display: flex;
    gap: 3px;
    flex: 1;
    align-items: flex-end;
    height: 14px;
}
.smeter-bar-segment {
    flex: 1;
    height: 8px;
    background: #1e293b;
    border-radius: 1px;
    transition: background 0.1s ease;
}
.smeter-bar-segment.lit-green { background: #10b981; box-shadow: 0 0 4px #10b981; }
.smeter-bar-segment.lit-orange { background: #f59e0b; box-shadow: 0 0 4px #f59e0b; }
.smeter-bar-segment.lit-red { background: #ef4444; box-shadow: 0 0 6px #ef4444; }

.radiolink-mode-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.btn-radio-mode {
    background: #0d1527;
    border: 1px solid #1e293b;
    color: #94a3b8;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-radio-mode:hover {
    border-color: #38bdf8;
    color: #f1f5f9;
}
.btn-radio-mode.active {
    background: #0284c7;
    border-color: #38bdf8;
    color: #fff;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* Direct Frequency Input & Tuning Bar */
.radiolink-tune-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    background: #0b111e;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.tune-input-wrap {
    display: flex;
    align-items: center;
    background: #020409;
    border: 1px solid #0284c7;
    border-radius: 6px;
    padding: 4px 10px;
    flex: 1;
    min-width: 180px;
}
.tune-freq-input {
    background: transparent;
    border: none;
    outline: none;
    color: #38bdf8;
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 900;
    width: 100%;
    letter-spacing: 1px;
}
.btn-unit-toggle {
    background: #0284c7;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 900;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.btn-unit-toggle:hover {
    background: #38bdf8;
}
.btn-tune-submit {
    background: #10b981;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 800;
    border: none;
    border-radius: 6px;
    padding: 7px 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-tune-submit:hover {
    background: #059669;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* Frequency Steps Grid */
.radiolink-step-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
    background: #04070e;
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 14px;
}
.btn-freq-step {
    background: #0d1527;
    border: 1px solid #1e293b;
    color: #94a3b8;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.12s ease;
}
.btn-freq-step:hover {
    border-color: #38bdf8;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
}

/* Quick Band Jumps */
.radiolink-band-jumps {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.btn-band-jump {
    background: #090e1a;
    border: 1px solid #1e293b;
    color: #64748b;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-band-jump:hover {
    border-color: #38bdf8;
    color: #f1f5f9;
}
.btn-band-jump.active {
    background: #0369a1;
    border-color: #38bdf8;
    color: #fff;
}

.radiolink-waterfall-wrapper {
    background: #020408;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 14px;
    position: relative;
}
.radiolink-waterfall-scale {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #64748b;
    margin-bottom: 6px;
}
.waterfall-peaks-container {
    position: relative;
    width: 100%;
    height: 22px;
    margin-bottom: 4px;
}
.signal-peak-badge {
    position: absolute;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.signal-peak-badge.voice {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #fca5a5;
    animation: pulse 1.5s infinite;
}
.signal-peak-badge.beacon {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid #f59e0b;
    color: #fde68a;
}
.signal-peak-badge.data {
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid #38bdf8;
    color: #7dd3fc;
}
.signal-peak-badge:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 0 12px currentColor;
}

.radiolink-waterfall-canvas-box {
    position: relative;
    width: 100%;
}
.radiolink-waterfall-canvas {
    width: 100%;
    height: 120px;
    background: #010204;
    border-radius: 4px;
    display: block;
    cursor: crosshair;
}
.waterfall-hover-reticle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #f59e0b;
    pointer-events: none;
    display: none;
    box-shadow: 0 0 4px #f59e0b;
}
.waterfall-hover-tooltip {
    position: absolute;
    bottom: 8px;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid #38bdf8;
    border-radius: 4px;
    padding: 3px 8px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #f8fafc;
    pointer-events: none;
    white-space: nowrap;
    display: none;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0,0,0,0.8);
}

/* Voice Chatter Transcript HUD */
.radiolink-voice-hud {
    background: linear-gradient(180deg, #030814 0%, #060e20 100%);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
    position: relative;
    overflow: hidden;
}
.voice-hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.voice-hud-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    color: #10b981;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.05em;
}
.voice-transcript-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.45;
    color: #f1f5f9;
    font-weight: 600;
    min-height: 24px;
    transition: color 0.2s ease;
}
.voice-speaker-badge {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    color: #10b981;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: 3px;
    margin-right: 6px;
}

/* Global WebSDR & Remote Receiver Grid */
.websdr-relays-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin-top: 10px;
}
.websdr-relay-card {
    background: #090e1a;
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 10px;
    transition: all 0.15s ease;
    text-decoration: none;
    display: block;
}
.websdr-relay-card:hover {
    border-color: #38bdf8;
    background: #0e172a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.15);
}
.websdr-relay-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 2px;
}
.websdr-relay-desc {
    font-size: 0.68rem;
    color: #94a3b8;
    font-family: var(--font-mono);
}

/* DMR & EchoLink Gateway Monitor */
.dmr-gateway-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin-top: 8px;
}
.dmr-tg-card {
    background: #060b16;
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 8px;
}
.dmr-tg-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #38bdf8;
    font-family: var(--font-mono);
}
.dmr-tg-status {
    font-size: 0.65rem;
    color: #10b981;
    font-family: var(--font-mono);
    margin-top: 2px;
}

/* Active Signals Detected Bar */
.radiolink-active-signals-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #060b16;
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.active-sig-pills-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.btn-active-sig {
    background: #0b1426;
    border: 1px solid #1e293b;
    color: #f1f5f9;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}
.btn-active-sig:hover {
    border-color: #10b981;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    transform: translateY(-1px);
}
.btn-active-sig.active {
    border-color: #10b981;
    background: #047857;
    color: #fff;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}
.btn-seek-auto {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}
.btn-seek-auto:hover {
    background: linear-gradient(135deg, #38bdf8, #3b82f6);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.radiolink-rig-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: #0b111e;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 18px;
}
/* Tactical RadioLink Domain Tabs */
.radiolink-domain-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 14px;
    border-bottom: 1px solid #1e293b;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.radiolink-domain-tabs::-webkit-scrollbar {
    display: none;
}
.domain-tab-btn {
    background: #090e1a;
    border: 1px solid #1e293b;
    color: #94a3b8;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 7px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.domain-tab-btn:hover {
    border-color: #38bdf8;
    color: #f8fafc;
    background: #0f172a;
}
.domain-tab-btn.active {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    border-color: #38bdf8;
    color: #fff;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.domain-channel-pane {
    display: none;
}
.domain-channel-pane.active {
    display: block;
}

.preset-audio-type {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 900;
    padding: 1px 4px;
    border-radius: 3px;
    margin-left: 4px;
}
.preset-audio-type.live {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}
.preset-audio-type.vault {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}
.preset-audio-type.sdr {
    background: rgba(56, 189, 248, 0.2);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.4);
}

.radiolink-presets-section {
    margin-top: 14px;
}
.radiolink-preset-group-title {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.radiolink-presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}
.radiolink-preset-card {
    background: #090e1a;
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 9px 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}
.radiolink-preset-card:hover {
    border-color: #38bdf8;
    background: #101a30;
    transform: translateY(-1px);
}
.radiolink-preset-card.active {
    border-color: #00f0ff;
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}
.preset-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}
.preset-freq {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 900;
    color: #38bdf8;
}
.preset-mode {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 800;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    padding: 1px 5px;
    border-radius: 3px;
}
.preset-name {
    font-size: 0.74rem;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.preset-sub {
    font-size: 0.65rem;
    color: #94a3b8;
}

/* Decoders Terminal */
.radiolink-terminal-box {
    background: #04070e;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 16px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.8);
}
.radiolink-terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #1e293b;
}
.terminal-crt-body {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: #4ade80;
    background: #020306;
    border: 1px solid #14281a;
    border-radius: 6px;
    padding: 10px 12px;
    height: 150px;
    overflow-y: auto;
    line-height: 1.5;
    text-shadow: 0 0 4px rgba(74, 222, 128, 0.4);
}
.terminal-crt-line {
    margin-bottom: 4px;
    white-space: pre-wrap;
    word-break: break-all;
}
.terminal-crt-line.highlight {
    color: #38bdf8;
    text-shadow: 0 0 4px rgba(56, 189, 248, 0.5);
}
.terminal-crt-line.alert {
    color: #ef4444;
    text-shadow: 0 0 4px rgba(239, 68, 68, 0.5);
}

/* Space Weather / Ionospheric Widget */
.space-weather-card {
    background: #080d1a;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 16px;
}
.space-weather-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 10px 0;
}
.sw-stat-tile {
    background: #04060c;
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 8px;
    text-align: center;
}
.sw-val {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 900;
    color: #38bdf8;
}
.sw-lbl {
    font-size: 0.65rem;
    color: #94a3b8;
}
.sw-band-status-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.sw-band-pill {
    background: #04060c;
    border: 1px solid #1e293b;
    border-radius: 4px;
    padding: 3px 8px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    display: inline-flex;
    gap: 4px;
}
.sw-band-name { color: #38bdf8; font-weight: 800; }
.sw-band-state { color: #10b981; font-weight: 700; }

.hf-band-conditions-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.hf-band-pill {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Pro HAM Radio & DSP Controls */
.radiolink-dsp-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    background: #04070e;
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 14px;
}
.dsp-toggle-btn {
    background: #090e1a;
    border: 1px solid #1e293b;
    border-radius: 4px;
    color: #94a3b8;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 5px 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}
.dsp-toggle-btn:hover {
    border-color: #38bdf8;
    color: #f8fafc;
}
.dsp-toggle-btn.active {
    background: #0369a1;
    border-color: #38bdf8;
    color: #fff;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

/* Rotary VFO Tuning Knob */
.rotary-vfo-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #090e1a;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
}
.rotary-dial {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #1e293b, #020617);
    border: 3px solid #38bdf8;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3), inset 0 0 10px rgba(0,0,0,0.8);
    position: relative;
    cursor: grab;
    flex-shrink: 0;
    transition: transform 0.05s ease;
}
.rotary-dial:active {
    cursor: grabbing;
}
.rotary-dial-dot {
    width: 8px;
    height: 8px;
    background: #38bdf8;
    border-radius: 50%;
    position: absolute;
    top: 8px;
    left: 27px;
    box-shadow: 0 0 6px #38bdf8;
}

/* DX Cluster & Live Spotting Feed */
.dx-cluster-stream {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #38bdf8;
    background: #020306;
    border: 1px solid #0f2336;
    border-radius: 6px;
    padding: 8px 10px;
    height: 140px;
    overflow-y: auto;
    line-height: 1.5;
}
.dx-spot-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    border-bottom: 1px dashed rgba(56, 189, 248, 0.15);
}
.dx-spot-qsy-btn {
    background: #0284c7;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 6px;
    cursor: pointer;
    margin-left: 6px;
    transition: background 0.12s;
}
.dx-spot-qsy-btn:hover {
    background: #38bdf8;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    .radiolink-dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
        margin-top: 10px;
        width: 100%;
    }
    .radiolink-rig-panel {
        padding: 12px;
        border-radius: 8px;
    }
    .radiolink-vfo-display {
        padding: 12px;
    }
    .radiolink-freq-large {
        font-size: 1.65rem !important;
    }
    .radiolink-station-title {
        font-size: 0.78rem;
        word-break: break-word;
    }
    .radiolink-voice-hud {
        padding: 8px 10px;
    }
    .voice-transcript-text {
        font-size: 0.78rem;
    }
    .radiolink-mode-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 4px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .radiolink-mode-pills::-webkit-scrollbar {
        display: none;
    }
    .btn-radio-mode {
        flex-shrink: 0;
        padding: 6px 10px;
        font-size: 0.72rem;
        min-height: 36px;
    }
    .radiolink-tune-bar {
        padding: 8px;
        flex-direction: column;
        gap: 6px;
    }
    .tune-input-wrap {
        width: 100%;
        min-width: 100%;
        margin-bottom: 2px;
    }
    .btn-unit-toggle, .btn-tune-submit {
        width: 100%;
        text-align: center;
        justify-content: center;
        min-height: 38px;
    }
    .radiolink-step-controls {
        padding: 8px;
        flex-direction: column;
        gap: 6px;
    }
    .radiolink-step-controls > div {
        display: flex;
        gap: 4px;
        justify-content: space-between;
        width: 100%;
    }
    .btn-freq-step {
        flex: 1;
        padding: 6px 4px;
        font-size: 0.7rem;
        text-align: center;
        min-height: 34px;
    }
    .radiolink-band-jumps {
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 4px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .radiolink-band-jumps::-webkit-scrollbar {
        display: none;
    }
    .btn-band-jump {
        flex-shrink: 0;
        padding: 6px 10px;
        font-size: 0.7rem;
        min-height: 34px;
    }
    .rotary-vfo-box {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 12px;
    }
    .rotary-dial {
        width: 72px;
        height: 72px;
        margin: 0 auto;
    }
    .radiolink-dsp-panel {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .dsp-toggle-btn {
        min-height: 36px;
        padding: 6px;
        font-size: 0.65rem;
    }
    .radiolink-rig-controls {
        padding: 12px;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    .radiolink-rig-controls > div {
        width: 100%;
        justify-content: space-between;
    }
    .btn-primary#rig-power-btn {
        width: 100%;
        min-height: 42px;
        font-size: 0.88rem;
    }
    .radiolink-presets-grid {
        grid-template-columns: 1fr;
    }
    .websdr-relays-grid {
        grid-template-columns: 1fr;
    }
    .dmr-gateway-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .terminal-crt-body {
        height: 120px;
        font-size: 0.7rem;
    }
    .dx-cluster-stream {
        height: 120px;
    }
    .signal-peak-badge {
        font-size: 0.56rem;
        padding: 2px 4px;
    }
    .radiolink-active-signals-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .btn-seek-auto {
        width: 100%;
        justify-content: center;
        min-height: 36px;
    }
}

/* ============================================================
   EMBEDDED LIVE WEBSDR & ACTIVE SIGNALS DIRECTORY
   ============================================================ */
.websdr-embed-card {
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.websdr-embed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #1e293b;
}
.websdr-node-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.websdr-node-tab {
    background: #090e1a;
    border: 1px solid #1e293b;
    color: #94a3b8;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}
.websdr-node-tab:hover {
    border-color: #38bdf8;
    color: #f8fafc;
}
.websdr-node-tab.active {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}
.websdr-iframe-container {
    width: 100%;
    height: 520px;
    border: 1px solid #1e293b;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
    position: relative;
}
.websdr-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.active-signals-directory {
    margin-top: 18px;
    background: #040813;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 14px;
}
.active-signals-band-group {
    margin-bottom: 14px;
}
.active-signals-band-title {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 800;
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(30, 41, 59, 0.6);
}
.active-signals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 8px;
}
.active-sig-card {
    background: #090e1a;
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.15s ease;
}
.active-sig-card:hover {
    border-color: #38bdf8;
    background: #0c1424;
    transform: translateY(-1px);
}
.active-sig-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.active-sig-freq {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 800;
    color: #f8fafc;
}
.active-sig-mode {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.active-sig-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 2px;
}
.active-sig-desc {
    font-size: 0.68rem;
    color: #94a3b8;
    line-height: 1.3;
    margin-bottom: 8px;
}
.active-sig-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-tune-sdr-pill {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}
.btn-tune-sdr-pill:hover {
    background: #10b981;
    color: #000;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* ============================================================
   LIGHT-FIRST GLOBAL OSINT & DEFENSE INTELLIGENCE CONSOLE
============================================================ */
:root, [data-theme="light"] {
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f1f5f9;
    --bg-accent-subtle: #eff6ff;
    --border-subtle: #e2e8f0;
    --border-strong: #cbd5e1;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --header-bg: #ffffff;
    --ticker-bg: #f1f5f9;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}

[data-theme="dark"] {
    --bg-base: #090d16;
    --bg-surface: #111827;
    --bg-surface-hover: #1e293b;
    --bg-accent-subtle: rgba(56, 189, 248, 0.08);
    --border-subtle: #1f293d;
    --border-strong: #334155;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --accent-hover: #0284c7;
    --header-bg: #111827;
    --ticker-bg: #0b0f19;
    --card-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

body.console-body {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-sans);
    transition: background 0.2s, color 0.2s;
}

/* Top Command Bar */
.top-command-bar {
    height: 52px;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1200;
    gap: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.brand-cluster {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.console-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    color: var(--text-main);
}
.logo-tag {
    background: var(--bg-accent-subtle);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
}
.status-indicator-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 3px 8px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #10b981;
    font-weight: 700;
}

/* Search Box */
.search-cluster {
    position: relative;
    width: 280px;
    flex-shrink: 0;
}
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.search-input-wrapper .search-icon {
    position: absolute;
    left: 10px;
    color: var(--text-muted);
    pointer-events: none;
}
.console-search {
    width: 100%;
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    border-radius: 6px;
    padding: 6px 28px 6px 32px;
    font-size: 0.8rem;
    outline: none;
    transition: all 0.15s;
}
.console-search:focus {
    border-color: var(--accent);
    background: var(--bg-surface);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}
.btn-search-clear {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    display: none;
}

/* Filter Pills */
.filter-pills-cluster {
    display: flex;
    gap: 6px;
    align-items: center;
    overflow-x: auto;
}
.filter-pill {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.filter-pill:hover {
    background: var(--bg-surface-hover);
    color: var(--text-main);
    border-color: var(--border-strong);
}
.filter-pill.active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

/* Command Actions */
.command-actions-cluster {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.btn-console-tool {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}
.btn-console-tool:hover {
    background: var(--bg-surface-hover);
    border-color: var(--accent);
}
.btn-console-icon {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}
.btn-console-icon:hover {
    background: var(--bg-surface-hover);
    border-color: var(--accent);
}

/* Dropdown Menu */
.nav-dropdown-wrapper { position: relative; }
.console-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 280px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 1500;
}
.console-dropdown-menu.open { display: flex; animation: modal-fade-in 0.15s ease; }
.dropdown-item {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    transition: background 0.12s;
    width: 100%;
}
.dropdown-item:hover {
    background: var(--bg-surface-hover);
    color: var(--accent);
}

/* Slim Ticker Bar */
.console-ticker-bar {
    height: 32px;
    background: var(--ticker-bg);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0 12px;
    font-size: 0.72rem;
    gap: 12px;
}
.ticker-badge-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    z-index: 10;
    background: var(--ticker-bg);
    padding-right: 14px;
    box-shadow: 10px 0 14px -2px var(--ticker-bg);
}
.console-ticker-bar .ticker-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-weight: 900;
    font-size: 0.68rem;
    color: #ffffff;
    background: #dc2626;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 1px 4px rgba(220, 38, 38, 0.35);
}
.ticker-speed-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.ticker-speed-btn:hover {
    color: var(--text-main);
    border-color: var(--accent);
}
.console-ticker-bar .ticker-content {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
}
.ticker-track {
    display: inline-flex;
    white-space: nowrap;
    will-change: transform;
    animation: ticker-marquee-slide 160s linear infinite;
}
.ticker-track:hover {
    animation-play-state: paused;
}
.ticker-item-unit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 36px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s ease;
}
.ticker-item-unit:hover {
    opacity: 0.85;
}
.ticker-item-unit .ticker-headline {
    color: var(--text-main);
    font-weight: 700;
    transition: color 0.15s ease;
}
.ticker-item-unit:hover .ticker-headline {
    color: var(--accent);
}
@keyframes ticker-marquee-slide {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* ============================================================
   2-COLUMN NEWS WIRE TERMINAL WORKSPACE
============================================================ */
.console-workspace {
    display: flex;
    flex: 1;
    height: calc(100vh - 80px);
    position: relative;
    overflow: hidden;
}

/* Left: Wire Stream Column (58%) */
.wire-stream-column {
    flex: 0 0 58%;
    background: var(--bg-base);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.wire-column-header {
    padding: 10px 16px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}
.wire-feed-container {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Wire Article Card */
.wire-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 14px;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    transition: all 0.15s ease;
}
.wire-card:hover {
    border-color: var(--accent);
    background: var(--bg-surface-hover);
    transform: translateY(-1px);
}
.wire-card.selected-card {
    border-color: var(--accent);
    border-left: 4px solid var(--accent);
    background: var(--bg-accent-subtle);
}
.wire-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.wire-card-title {
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.35;
    margin-bottom: 4px;
}
.wire-card-region {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
}
.wire-card-summary {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 10px;
}
.wire-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    padding-top: 6px;
    border-top: 1px solid var(--border-subtle);
}

/* Right: Active Dispatch Reader & Hub Column (42%) */
.dispatch-intel-column {
    flex: 0 0 42%;
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 16px;
    gap: 16px;
}

/* Active Dispatch Card */
.active-dispatch-card {
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 18px;
}
.dispatch-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.dispatch-image {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 14px;
    border: 1px solid var(--border-subtle);
}
.dispatch-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.3;
    margin: 0 0 10px;
}
.dispatch-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 12px;
}
.dispatch-content-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-main);
}
.btn-primary-action {
    background: var(--accent);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
}
.btn-primary-action:hover {
    background: var(--accent-hover);
}

/* Mini Hotspots & Cloud Card */
.live-hotspots-card {
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 16px;
}
.hotspots-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.hotspots-mini-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hotspot-mini-pill {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 8px 10px;
}

/* Common Badges */
.card-type-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}
.badge-intel   { background: var(--bg-accent-subtle); color: var(--accent); border: 1px solid var(--border-subtle); }
.badge-flight  { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.badge-seismic { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

.card-threat-pill {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 3px;
}
.threat-critical { background: #ef4444; color: #fff; }
.threat-high     { background: #f97316; color: #fff; }
.threat-medium   { background: #3b82f6; color: #fff; }
.threat-low      { background: #64748b; color: #fff; }

.btn-card-action {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-card-action:hover, .btn-card-action.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ============================================================
   SEISMIC & NATURAL DISASTERS HUB (MODAL & MAP)
============================================================ */
.disaster-hub-layout {
    display: flex;
    flex: 1;
    height: calc(100% - 60px);
    overflow: hidden;
}
.disaster-feed-pane {
    width: 360px;
    flex-shrink: 0;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.disaster-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.disaster-feed-item {
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.15s;
}
.disaster-feed-item:hover {
    border-color: #ef4444;
    background: var(--bg-surface-hover);
}
.disaster-map-pane {
    flex: 1;
    height: 100%;
    position: relative;
    background: #000;
}

/* Modals Overlay System */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-backdrop.open {
    display: flex;
    animation: modal-fade-in 0.2s ease-out;
}
@keyframes modal-fade-in {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}
.modal-window {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    width: 100%;
    max-width: 1100px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-header {
    padding: 14px 20px;
    background: var(--bg-base);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

body.console-body .site-footer,
body.console-body .mobile-bottom-dock,
body.console-body .mobile-menu-drawer,
body.console-body .mobile-menu-drawer-overlay {
    display: none !important;
}

/* ============================================================
   RESPONSIVE MOBILE STYLES (FULL MOBILE READY)
============================================================ */
@media (max-width: 992px) {
    body.console-body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .top-command-bar {
        height: auto;
        min-height: 52px;
        padding: 8px 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .search-cluster {
        width: 100%;
        order: 3;
        margin-top: 2px;
    }
    
    .filter-pills-cluster {
        width: 100%;
        order: 4;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .filter-pills-cluster::-webkit-scrollbar {
        display: none;
    }
    
    .command-actions-cluster {
        margin-left: auto;
    }

    .console-workspace {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }
    
    .wire-stream-column {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        height: auto;
        overflow: visible;
    }
    
    .wire-feed-container {
        max-height: 520px;
        overflow-y: auto;
        padding: 10px 12px;
    }
    
    .dispatch-intel-column {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        height: auto;
        padding: 12px;
    }

    /* Modal Mobile Overrides */
    .modal-backdrop {
        padding: 0;
    }
    .modal-window {
        max-width: 100vw;
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        border: none;
    }
    .disaster-hub-layout {
        flex-direction: column;
        height: calc(100vh - 56px);
    }
    .disaster-map-pane {
        flex: none;
        height: 55%;
        width: 100%;
    }
    .disaster-feed-pane {
        flex: none;
        height: 45%;
        width: 100%;
        border-right: none;
        border-top: 1px solid var(--border-subtle);
    }
}

@media (max-width: 600px) {
    .console-logo .logo-text {
        font-size: 1rem;
    }
    #theme-label, #sonar-btn-text {
        display: none;
    }
    .btn-console-tool {
        padding: 5px 8px;
        font-size: 0.72rem;
    }
    .btn-console-icon {
        padding: 5px 8px;
    }
    .dispatch-title {
        font-size: 1.1rem;
    }
    .dispatch-image {
        max-height: 180px;
    }
    .active-dispatch-card {
        padding: 12px;
    }
    .wire-card {
        padding: 10px;
    }
    .wire-card-title {
        font-size: 0.88rem;
    }
}

/* ============================================================
   COOKIE CONSENT & ADSENSER COMPLIANCE BANNER
============================================================ */
.bojoku-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    padding: 12px 20px;
    z-index: 3000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-main);
}
.bojoku-cookie-banner.show {
    display: flex;
    animation: modal-fade-in 0.25s ease-out;
}
.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    gap: 16px;
    flex-wrap: wrap;
}
.console-mini-footer a:hover {
    color: var(--accent) !important;
    text-decoration: underline !important;
}