* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --font-sans: 'Roboto Condensed', 'Arial Narrow', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'Roboto Condensed', 'Arial Narrow', Roboto, 'Helvetica Neue', Arial, sans-serif;
    /* Tactical dark palette */
    --bg-primary: #0b1118;
    --bg-secondary: #101823;
    --bg-tertiary: #151f2b;
    --bg-card: #121a25;
    --bg-elevated: #1b2734;

    /* Accent colors - slate/cyan */
    --accent-cyan: #4aa3ff;
    --accent-cyan-dim: rgba(74, 163, 255, 0.16);
    --accent-green: #38c180;
    --accent-green-dim: rgba(56, 193, 128, 0.18);
    --accent-red: #e25d5d;
    --accent-red-dim: rgba(226, 93, 93, 0.16);
    --accent-orange: #d6a85e;
    --accent-amber: #d6a85e;
    --accent-amber-dim: rgba(214, 168, 94, 0.18);

    /* Text hierarchy */
    --text-primary: #d7e0ee;
    --text-secondary: #9fb0c7;
    --text-dim: #6f7f94;
    --text-muted: #445266;

    /* Borders */
    --border-color: #263246;
    --border-light: #354458;
    --border-glow: rgba(74, 163, 255, 0.25);

    /* Status colors */
    --status-online: #38c180;
    --status-warning: #d6a85e;
    --status-error: #e25d5d;
    --status-offline: #6f7f94;

    /* Subtle grid/pattern */
    --grid-line: rgba(74, 163, 255, 0.1);
    --grid-dot: rgba(255, 255, 255, 0.03);
    --noise-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%3E%3Cg%20fill='%23ffffff'%20fill-opacity='0.05'%3E%3Ccircle%20cx='3'%20cy='5'%20r='1'/%3E%3Ccircle%20cx='11'%20cy='9'%20r='1'/%3E%3Ccircle%20cx='18'%20cy='3'%20r='1'/%3E%3Ccircle%20cx='26'%20cy='12'%20r='1'/%3E%3Ccircle%20cx='34'%20cy='6'%20r='1'/%3E%3Ccircle%20cx='7'%20cy='19'%20r='1'/%3E%3Ccircle%20cx='15'%20cy='24'%20r='1'/%3E%3Ccircle%20cx='28'%20cy='22'%20r='1'/%3E%3Ccircle%20cx='36'%20cy='18'%20r='1'/%3E%3Ccircle%20cx='5'%20cy='33'%20r='1'/%3E%3Ccircle%20cx='19'%20cy='32'%20r='1'/%3E%3Ccircle%20cx='31'%20cy='34'%20r='1'/%3E%3C/g%3E%3C/svg%3E");
}

[data-theme="light"] {
    --bg-primary: #f4f7fb;
    --bg-secondary: #e9eef5;
    --bg-tertiary: #dde5f0;
    --bg-card: #ffffff;
    --bg-elevated: #f1f4f9;
    --accent-cyan: #1f5fa8;
    --accent-cyan-dim: rgba(31, 95, 168, 0.12);
    --accent-green: #1f8a57;
    --accent-red: #c74444;
    --accent-orange: #b5863a;
    --accent-amber: #b5863a;
    --text-primary: #122034;
    --text-secondary: #3a4a5f;
    --text-dim: #6b7c93;
    --text-muted: #aab6c8;
    --border-color: #d1d9e6;
    --border-light: #c1ccdb;
    --border-glow: rgba(31, 95, 168, 0.12);

    --grid-line: rgba(31, 95, 168, 0.14);
    --grid-dot: rgba(12, 18, 24, 0.06);
    --noise-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%3E%3Cg%20fill='%23000000'%20fill-opacity='0.05'%3E%3Ccircle%20cx='3'%20cy='5'%20r='1'/%3E%3Ccircle%20cx='11'%20cy='9'%20r='1'/%3E%3Ccircle%20cx='18'%20cy='3'%20r='1'/%3E%3Ccircle%20cx='26'%20cy='12'%20r='1'/%3E%3Ccircle%20cx='34'%20cy='6'%20r='1'/%3E%3Ccircle%20cx='7'%20cy='19'%20r='1'/%3E%3Ccircle%20cx='15'%20cy='24'%20r='1'/%3E%3Ccircle%20cx='28'%20cy='22'%20r='1'/%3E%3Ccircle%20cx='36'%20cy='18'%20r='1'/%3E%3Ccircle%20cx='5'%20cy='33'%20r='1'/%3E%3Ccircle%20cx='19'%20cy='32'%20r='1'/%3E%3Ccircle%20cx='31'%20cy='34'%20r='1'/%3E%3C/g%3E%3C/svg%3E");
}

[data-theme="light"] body {
    background: var(--bg-primary);
}

[data-theme="light"] .leaflet-tile-pane {
    filter: none;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    background-image:
        var(--noise-image),
        radial-gradient(circle at 15% 0%, var(--grid-dot), transparent 45%),
        linear-gradient(180deg, var(--grid-dot), transparent 35%),
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 40px 40px, auto, auto, 48px 48px, 48px 48px;
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   WELCOME PAGE
   ============================================ */

.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.welcome-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(74, 163, 255, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, transparent 0%, rgba(74, 163, 255, 0.03) 100%);
    pointer-events: none;
}

/* Spinning Globe Background */
.globe-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(80vh, 80vw);
    height: min(80vh, 80vw);
    pointer-events: none;
    z-index: 0;
}

.globe-svg {
    width: 100%;
    height: 100%;
    color: var(--accent-cyan);
    opacity: 0.06;
    animation: globeSpin 60s linear infinite;
}

[data-theme="light"] .globe-svg {
    opacity: 0.08;
}

@keyframes globeSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.globe-svg .rotating-meridians {
    transform-origin: center;
    animation: meridianSpin 45s linear infinite reverse;
}

@keyframes meridianSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.globe-svg .meridian-1 {
    transform-origin: center;
    animation: meridianPulse 8s ease-in-out infinite;
}

.globe-svg .meridian-2 {
    transform-origin: center;
    animation: meridianPulse 8s ease-in-out infinite 2s;
}

.globe-svg .meridian-3 {
    transform-origin: center;
    animation: meridianPulse 8s ease-in-out infinite 4s;
}

@keyframes meridianPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.welcome-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    z-index: 1;
    animation: welcomeFadeIn 0.8s ease-out;
    max-height: calc(100vh - 40px);
    overflow: hidden;
}

.welcome-settings-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    color: var(--text-dim, rgba(255, 255, 255, 0.3));
    transition: color 0.2s, background 0.2s;
    margin-left: auto;
    flex-shrink: 0;
}

.welcome-settings-btn:hover {
    color: var(--accent-cyan, #00d4ff);
    background: rgba(255, 255, 255, 0.05);
}

.welcome-settings-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

@keyframes welcomeFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Welcome Header */
.welcome-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.welcome-logo {
    animation: logoPulse 3s ease-in-out infinite;
    will-change: filter;
}

@keyframes logoPulse {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.6));
    }
}

.welcome-logo .signal-wave {
    animation: signalPulse 2s ease-in-out infinite;
}

.welcome-logo .signal-wave-1 { animation-delay: 0s; }
.welcome-logo .signal-wave-2 { animation-delay: 0.2s; }
.welcome-logo .signal-wave-3 { animation-delay: 0.4s; }

@keyframes signalPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.welcome-logo .logo-dot {
    animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% {
        fill: #00ff88;
        filter: drop-shadow(0 0 5px rgba(0, 255, 136, 0.5));
    }
    50% {
        fill: #00ffaa;
        filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.9));
    }
}

.welcome-title {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.2em;
    margin: 0;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    white-space: nowrap;
}

.welcome-tagline {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-cyan);
    letter-spacing: 0.1em;
    margin: 0;
    opacity: 0.7;
    white-space: nowrap;
}

.welcome-version {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--bg-primary);
    background: var(--accent-cyan);
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

/* Welcome Content Grid */
.welcome-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 20px;
}

.welcome-content h2 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

/* Changelog Section */
.welcome-changelog {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.changelog-release {
    margin-bottom: 20px;
}

.changelog-release:last-child {
    margin-bottom: 0;
}

.changelog-version-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.changelog-version {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

.changelog-date {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: var(--text-dim);
}

.changelog-list {
    margin: 0;
    padding-left: 18px;
    list-style: none;
}

.changelog-list li {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    position: relative;
}

.changelog-list li::before {
    content: '>';
    position: absolute;
    left: -15px;
    color: var(--accent-green);
    font-family: var(--font-mono);
}

/* Mode Selection Grid */
.welcome-modes {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
}

.welcome-modes > h2 {
    position: sticky;
    top: -16px;
    background: var(--bg-secondary);
    padding: 8px 0;
    margin: -8px 0 12px 0;
    z-index: 1;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mode-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.mode-card:hover {
    background: var(--bg-elevated);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.15);
}

.mode-card:hover .mode-icon {
    color: var(--accent-cyan);
}

.mode-card:active {
    transform: translateY(0);
}

.mode-card .mode-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.mode-card .mode-icon svg {
    width: 28px;
    height: 28px;
}

.mode-card .mode-name {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mode-card .mode-desc {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    color: var(--text-dim);
    margin-top: 4px;
}

/* Mode Categories */
.mode-category {
    margin-bottom: 16px;
}

.mode-category:last-child {
    margin-bottom: 0;
}

.mode-category-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 10px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

.mode-category-icon {
    display: flex;
    align-items: center;
    color: var(--accent-cyan);
}

.mode-category-icon svg {
    width: 14px;
    height: 14px;
}

/* Compact Mode Grid */
.mode-grid-compact {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.mode-card-sm {
    padding: 10px 6px;
}

.mode-card-sm .mode-icon {
    margin-bottom: 6px;
}

.mode-card-sm .mode-icon svg {
    width: 20px;
    height: 20px;
}

.mode-card-sm .mode-name {
    font-size: 0.6rem;
    letter-spacing: 0.02em;
}

/* Welcome Footer */
.welcome-footer {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.welcome-footer p {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
}

.welcome-footer-credit {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    text-decoration: none;
    letter-spacing: 0.08em;
    margin-top: 6px;
    transition: color 0.2s;
}

.welcome-footer-credit:hover {
    color: var(--accent-cyan);
}

/* Welcome Scanline */
.welcome-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    animation: scanlineMove 5s linear infinite;
    opacity: 0.4;
}

@keyframes scanlineMove {
    0% { top: 0; }
    100% { top: 100%; }
}

/* Welcome Fade Out */
.welcome-overlay.fade-out {
    animation: welcomeFadeOut 0.4s ease-in forwards;
}

@keyframes welcomeFadeOut {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}

/* Responsive - Mobile First */
/* Base: Mobile styles */
.welcome-content {
    grid-template-columns: 1fr;
}

.welcome-header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
}

.mode-grid {
    grid-template-columns: repeat(2, 1fr);
}

.mode-grid-compact {
    grid-template-columns: repeat(3, 1fr);
}

/* Larger phones: more columns for mode grid */
@media (min-width: 480px) {
    .mode-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .mode-grid-compact {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet and up: Side-by-side layout */
@media (min-width: 768px) {
    .welcome-content {
        grid-template-columns: 1fr 1.5fr;
    }

    .welcome-header {
        flex-wrap: nowrap;
    }

    .mode-grid-compact {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ============================================
   END LANDING PAGE
   ============================================ */

.container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

header {
    background: var(--bg-secondary);
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    height: 48px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-amber) 50%, var(--accent-cyan) 100%);
    opacity: 0.8;
}

header::after {
    display: none;
}

header h1 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    margin: 0;
    white-space: nowrap;
}

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

.logo svg {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 0 8px var(--accent-cyan-dim));
    transition: filter 0.3s ease;
}

.logo:hover svg {
    filter: drop-shadow(0 0 12px var(--accent-cyan));
}

/* Mode Navigation Bar */
.mode-nav {
    display: none;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    padding: 0 20px;
    position: relative;
    z-index: 1100;
}

@media (min-width: 1024px) {
    .mode-nav {
        display: flex;
        align-items: center;
        gap: 8px;
        height: 44px;
    }
}

.mode-nav-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mode-nav-label {
    font-size: 9px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 8px;
    font-weight: 500;
}

.mode-nav-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 12px;
}

.mode-nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mode-nav-btn .nav-icon {
    font-size: 14px;
}

.mode-nav-btn .nav-label {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mode-nav-btn:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.mode-nav-btn.active {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border-color: var(--accent-cyan);
}

.mode-nav-btn.active .nav-icon {
    filter: brightness(0);
}

.mode-nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--accent-cyan);
    border-radius: 4px;
    color: var(--accent-cyan);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.nav-action-btn .nav-icon {
    font-size: 12px;
}

.nav-action-btn .nav-label {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-action-btn:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
}

/* Dropdown Navigation */
.mode-nav-dropdown {
    position: relative;
}

.mode-nav-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mode-nav-dropdown-btn:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.mode-nav-dropdown-btn .nav-icon {
    font-size: 14px;
}

.mode-nav-dropdown-btn .nav-label {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mode-nav-dropdown-btn .dropdown-arrow {
    font-size: 8px;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.mode-nav-dropdown.open .mode-nav-dropdown-btn {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.mode-nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.mode-nav-dropdown.has-active .mode-nav-dropdown-btn {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border-color: var(--accent-cyan);
}

.mode-nav-dropdown.has-active .mode-nav-dropdown-btn .nav-icon {
    filter: brightness(0);
}

.mode-nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    min-width: 180px;
    background: #101823;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.15s ease;
    z-index: 1000;
    padding: 6px;
}

.mode-nav-dropdown.open .mode-nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mode-nav-dropdown-menu .mode-nav-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 12px;
    border-radius: 4px;
    margin: 0;
}

.mode-nav-dropdown-menu .mode-nav-btn:hover {
    background: var(--bg-elevated);
}

.mode-nav-dropdown-menu .mode-nav-btn.active {
    background: var(--accent-cyan);
    color: var(--bg-primary);
}

/* Nav Bar Utilities (clock, theme, tools) */
.nav-utilities {
    display: none;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .nav-utilities {
        display: flex;
    }
}

.nav-clock {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    flex-shrink: 0;
    white-space: nowrap;
}

.nav-clock .utc-label {
    font-size: 9px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-clock .utc-time {
    color: var(--accent-cyan);
    font-weight: 600;
}

.nav-divider {
    width: 1px;
    height: 20px;
    background: var(--border-color);
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.nav-tool-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 4px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.nav-tool-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--border-color);
    color: var(--accent-cyan);
}

/* Donate button - warm amber accent */
.nav-tool-btn--donate {
    text-decoration: none;
    color: var(--accent-amber);
}

.nav-tool-btn--donate:hover {
    color: var(--accent-orange);
    border-color: var(--accent-amber);
    background: rgba(212, 168, 83, 0.1);
}

/* Theme toggle icon states in nav bar */
.nav-tool-btn .icon-sun,
.nav-tool-btn .icon-moon {
    position: absolute;
    transition: opacity 0.2s, transform 0.2s;
    font-size: 14px;
}

.nav-tool-btn .icon-sun {
    opacity: 0;
    transform: rotate(-90deg);
}

.nav-tool-btn .icon-moon {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="light"] .nav-tool-btn .icon-sun {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="light"] .nav-tool-btn .icon-moon {
    opacity: 0;
    transform: rotate(90deg);
}

/* Deps button status colors */
#depsBtn.all-ok {
    color: var(--accent-green);
}

#depsBtn.has-missing {
    color: var(--accent-orange);
}

.version-badge {
    font-size: 0.6rem;
    font-weight: 500;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* subtitle removed — compact header */

header h1 .tagline {
    font-weight: 400;
    color: var(--accent-cyan, #00d4ff);
    font-size: 0.6em;
    opacity: 0.9;
    display: none;
}

@media (min-width: 768px) {
    header h1 .tagline {
        display: inline;
    }
}

/* Header stat badges */
.header-stats {
    display: none;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .header-stats {
        display: flex;
    }
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-mono);
    transition: all 0.2s ease;
}

.stat-badge:hover {
    border-color: var(--border-light);
    background: var(--bg-elevated);
}

.stat-badge .badge-icon {
    font-size: 14px;
    opacity: 0.7;
}

.stat-badge .badge-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-cyan);
}

.stat-badge .badge-label {
    font-size: 10px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-badge .badge-value.highlight {
    color: var(--accent-green);
}

.stat-badge .badge-value.warning {
    color: var(--accent-orange);
}

.stat-badge .badge-value.alert {
    color: var(--accent-red);
}

.stat-badge .badge-label {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-badge .badge-icon {
    font-size: 16px;
}

.header-stats-group {
    display: none;
}

.header-stats-group.active {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Active mode indicator */
.active-mode-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.active-mode-indicator .pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--bg-primary);
    border-radius: 50%;
    animation: pulse-glow 2s infinite;
}

.help-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.help-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: var(--bg-secondary);
}


.theme-toggle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 8em;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.theme-toggle:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: var(--bg-secondary);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    transition: opacity 0.2s, transform 0.2s;
}

.theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(-90deg);
}

.theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="light"] .theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="light"] .theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(90deg);
}

.help-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    overflow-y: auto;
    padding: 40px 20px;
}

.help-modal.active {
    display: block;
}

.help-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    position: relative;
}

.help-content h2 {
    color: var(--accent-cyan);
    margin-bottom: 20px;
    font-size: 24px;
    letter-spacing: 2px;
}

.help-content h3 {
    color: var(--text-primary);
    margin: 25px 0 15px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.help-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.help-close:hover {
    color: var(--accent-red);
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin: 15px 0;
}

.icon-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 12px;
}

.icon-item .icon {
    font-size: 18px;
    width: 30px;
    text-align: center;
}

.icon-item .desc {
    color: var(--text-secondary);
}

.tip-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.tip-list li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-secondary);
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
}

.tip-list li:last-child {
    border-bottom: none;
}

.tip-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: bold;
}

.help-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.help-tab {
    flex: 1;
    padding: 10px;
    background: var(--bg-primary);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.15s ease;
    position: relative;
}

.help-tab:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

.help-tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.help-tab.active {
    background: var(--bg-tertiary);
    color: var(--accent-cyan);
}

.help-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-cyan);
}

.help-section {
    display: none;
}

.help-section.active {
    display: block;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: calc(100dvh - 96px);
    height: calc(100vh - 96px); /* Fallback */
    overflow: hidden;
    position: relative;
}

@media (min-width: 1024px) {
    .main-content {
        display: grid;
        grid-template-columns: 320px 1fr;
        height: calc(100dvh - 96px);
        height: calc(100vh - 96px); /* Fallback */
    }

    .main-content.sidebar-collapsed {
        grid-template-columns: 0 1fr;
    }

    .main-content.sidebar-collapsed > .sidebar {
        width: 0;
        min-width: 0;
        padding: 0;
        border-right: 0;
        overflow: hidden;
    }
}

.sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Mobile: Sidebar is controlled by mobile-drawer class from responsive.css */
@media (max-width: 1023px) {
    .sidebar:not(.open) {
        /* Hidden by mobile-drawer transform, but ensure no layout impact */
    }
}

.sidebar::before {
    display: none;
}

.sidebar-collapse-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    margin-bottom: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sidebar-collapse-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.sidebar-expand-handle {
    display: none;
    position: absolute;
    top: 12px;
    left: 10px;
    z-index: 12;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--accent-cyan);
    border-radius: 6px;
    cursor: pointer;
}

.main-content.sidebar-collapsed .sidebar-expand-handle {
    display: inline-flex;
}

/* Reserve space for the expand handle so it doesn't overlap mode titles */
.main-content.sidebar-collapsed .output-header {
    padding-left: 48px;
}

@media (max-width: 1023px) {
    .sidebar-collapse-btn,
    .sidebar-expand-handle {
        display: none !important;
    }
}

.section {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    padding: 12px;
    position: relative;
    flex-shrink: 0;
}

.section h3 {
    color: var(--text-primary);
    margin: -12px -12px 12px -12px;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.section h3::before {
    content: '';
    width: 3px;
    height: 12px;
    background: var(--accent-cyan);
    border-radius: 2px;
    flex-shrink: 0;
}

.section h3::after {
    content: '▾';
    font-size: 10px;
    color: var(--text-secondary);
    transition: transform 0.2s ease, color 0.2s ease;
    margin-left: auto;
    padding: 2px 6px;
    background: var(--bg-primary);
    border-radius: 3px;
}

.section.collapsed h3 {
    border-bottom: none;
    margin: 0 !important;
    min-height: 0 !important;
    padding: 10px 12px !important;
}

.section.collapsed h3::after {
    content: '▸';
    color: var(--accent-cyan);
}

.section.collapsed {
    padding: 0 !important;
    min-height: 0;
}

.section.collapsed>*:not(h3) {
    display: none !important;
}

.section h3:hover {
    background: var(--bg-elevated);
}

.section h3:hover::before {
    background: var(--accent-amber);
}

.form-group {
    margin-bottom: 10px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group label.inline-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 0;
    text-transform: none;
    font-size: 11px;
}

.form-group label.inline-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: var(--accent-cyan);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 12px;
    transition: all 0.15s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 2px var(--accent-cyan-dim);
}

/* Ensure device select is wide enough for device name + serial */
#deviceSelect {
    min-width: 280px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 11px;
    cursor: pointer;
    padding: 6px 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.15s ease;
}

.checkbox-group label:hover {
    border-color: var(--border-light);
    background: var(--bg-secondary);
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    accent-color: var(--accent-cyan);
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.preset-btn {
    padding: 6px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.15s ease;
    border-radius: 4px;
}

.preset-btn:hover {
    background: var(--bg-secondary);
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.run-btn {
    flex-shrink: 0;
    width: 100%;
    padding: 12px;
    background: var(--accent-green);
    border: none;
    color: var(--text-inverse);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    border-radius: 4px;
}

.run-btn::before {
    display: none;
}

.run-btn:hover {
    background: #1db954;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    transform: translateY(-1px);
}

.run-btn:active {
    transform: translateY(0);
}

.run-btn.active,
.stop-btn {
    background: var(--accent-red);
    color: var(--text-inverse);
}

.stop-btn {
    flex-shrink: 0;
    width: 100%;
    padding: 12px;
    background: var(--accent-red);
    border: none;
    color: var(--text-inverse);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    border-radius: 4px;
}

.stop-btn:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

@keyframes stop-btn-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239,68,68,0); }
    50%       { opacity: 0.75; box-shadow: 0 0 8px 2px rgba(239,68,68,0.45); }
}
.stop-btn {
    animation: stop-btn-pulse 1.2s ease-in-out infinite;
}

.output-panel {
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0; /* Allow shrinking in grid context for proper scrolling */
}

.output-panel::before {
    display: none;
}

.output-header {
    padding: 10px 16px;
    background: var(--bg-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.output-header h3 {
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.output-header h3::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
}

.stats {
    display: flex;
    gap: 8px;
    font-size: 10px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.stats>div {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.stats>div:hover {
    border-color: var(--border-light);
}

.stats span {
    color: var(--accent-cyan);
    font-weight: 600;
}

.output-content {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 11px;
    background: var(--bg-primary);
    min-height: 0; /* Allow shrinking in flex context */
}

.output-content::-webkit-scrollbar {
    width: 8px;
}

.output-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.output-content::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

.output-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}

.message {
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-cyan);
    background: var(--bg-secondary);
    border-radius: 4px;
    position: relative;
    transition: all 0.15s ease;
}

.message:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-light);
}

.message.pocsag {
    border-left-color: var(--accent-cyan);
}

.message.flex {
    border-left-color: var(--accent-amber);
}

.message .header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 10px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.message .protocol {
    color: var(--accent-cyan);
    font-weight: 600;
}

.message.pocsag .protocol {
    color: var(--accent-cyan);
}

.message.flex .protocol {
    color: var(--accent-orange);
}

.message .address {
    color: var(--accent-green);
    font-family: var(--font-mono);
    font-size: 11px;
    margin-bottom: 8px;
}

.message .content {
    color: var(--text-primary);
    word-wrap: break-word;
    font-size: 13px;
    line-height: 1.5;
}

.message .content.numeric {
    font-family: var(--font-mono);
    font-size: 15px;
    letter-spacing: 2px;
    color: var(--accent-cyan);
}

.status-bar {
    padding: 12px 20px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    gap: 15px;
    flex-wrap: wrap;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.status-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.control-group-label {
    font-size: 9px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 4px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--text-dim);
    position: relative;
}

.status-dot.running {
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 10px var(--accent-green);
    }

    50% {
        opacity: 0.7;
        box-shadow: 0 0 20px var(--accent-green), 0 0 30px var(--accent-green);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.clear-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.2s ease;
}

.clear-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.tool-status {
    font-size: 10px;
    padding: 4px 10px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.tool-status.ok {
    background: transparent;
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
}

.tool-status.missing {
    background: transparent;
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
}

.info-text {
    font-size: 10px;
    color: var(--text-dim);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Agent status indicator */
.agent-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.agent-status-dot.online {
    background: var(--accent-green);
    box-shadow: 0 0 6px var(--accent-green);
}

.agent-status-dot.offline {
    background: var(--accent-red);
}

.agent-status-dot.unknown {
    background: #666;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.signal-meter {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 20px;
    padding: 0 10px;
}

.signal-bar {
    width: 4px;
    background: var(--border-color);
    transition: all 0.1s ease;
}

.signal-bar:nth-child(1) {
    height: 4px;
}

.signal-bar:nth-child(2) {
    height: 8px;
}

.signal-bar:nth-child(3) {
    height: 12px;
}

.signal-bar:nth-child(4) {
    height: 16px;
}

.signal-bar:nth-child(5) {
    height: 20px;
}

.signal-bar.active {
    background: var(--accent-cyan);
}

.status-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.control-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
    line-height: 1.1;
    white-space: nowrap;
}

.control-btn .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.control-btn.active {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.control-btn.muted {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

#adsbStatsChart {
    width: 100%;
    height: 80px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 3px;
}

/* Network Relationship Graph */
.network-graph-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 12px;
    margin-top: 10px;
}

.network-graph-container h4 {
    color: var(--accent-cyan);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
}

#networkGraph {
    width: 100%;
    height: 200px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 3px;
}

.network-graph-legend {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    font-size: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.ap {
    background: var(--accent-cyan);
}

.legend-dot.client {
    background: var(--accent-green);
}

.legend-dot.drone {
    background: var(--accent-orange);
}

/* Spectrum Waterfall */
.spectrum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.spectrum-header h5 {
    margin: 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spectrum-info {
    display: flex;
    gap: 15px;
    font-size: 11px;
}

.spectrum-info span:last-child {
    font-weight: bold;
}

.spectrum-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 10px;
    color: var(--text-dim);
}

.spectrum-gradient {
    width: 150px;
    height: 12px;
    background: linear-gradient(to right,
        #000080, #0000ff, #00ffff, #00ff00, #ffff00, #ff0000, #ffffff);
    border-radius: 2px;
}

#spectrumLineChart {
    width: 100%;
    height: 100px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 3px;
}

/* Audio Receiver Controls */
.status-line {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 4px 0;
    border-bottom: 1px solid var(--border-color);
}

.status-line:last-of-type {
    border-bottom: none;
}

#audioStartBtn.active {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: var(--bg-primary);
}

/* Channel Recommendation */
.channel-recommendation {
    background: var(--bg-card);
    border: 1px solid var(--accent-green);
    border-radius: 4px;
    padding: 10px;
    margin-top: 10px;
}

.channel-recommendation h4 {
    color: var(--accent-green);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 8px 0;
}

.channel-recommendation .rec-text {
    font-size: 12px;
    color: var(--text-secondary);
}

.channel-recommendation .rec-channel {
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-green);
}

/* Device Correlation */
.correlation-badge {
    display: inline-block;
    padding: 2px 6px;
    background: var(--accent-orange);
    color: var(--bg-primary);
    font-size: 9px;
    border-radius: 3px;
    margin-left: 5px;
    font-weight: bold;
}

/* Hidden SSID reveal */
.hidden-ssid-revealed {
    color: var(--accent-orange);
    font-style: italic;
}

.mode-content h3 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin: 0 0 10px 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mode-content {
    display: none;
}

.mode-content.active {
    display: block;
}

/* Normalize spacing for all sidebar mode panels */
.sidebar .mode-content.active:not(#meshtasticMode) {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar .mode-content.active:not(#meshtasticMode) > * {
    margin: 0 !important;
}

.sidebar .mode-content.active:not(#meshtasticMode) > .section {
    margin: 0 !important;
}

.mode-actions-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar .mode-content.active:not(#meshtasticMode) > .mode-actions-bottom {
    margin-top: auto !important;
}

#btMessageContainer:empty {
    display: none;
}

.alpha-mode-notice {
    padding: 8px 10px;
    border: 1px solid rgba(245, 158, 11, 0.45);
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-yellow);
    border-radius: 6px;
    font-size: 10px;
    line-height: 1.45;
}

/* Aircraft (ADS-B) Styles */
.aircraft-card {
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-cyan);
    background: var(--bg-secondary);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
}

.aircraft-icon {
    font-size: 28px;
    transform: rotate(var(--heading, 0deg));
    transition: transform 0.3s ease;
}

.aircraft-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
}

.aircraft-callsign {
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 14px;
}

.aircraft-data {
    font-size: 11px;
    color: var(--text-secondary);
}

.aircraft-data span {
    color: var(--text-primary);
}

/* Aircraft Map Display - Leaflet */
.aircraft-map-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: #0a0a0a;
    border: 1px solid var(--accent-cyan);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

#aircraftMap {
    width: 100%;
    height: 100%;
    background: #0a0a0a;
}

/* Dark theme for Leaflet */
.leaflet-container {
    background: #0a0a0a;
    font-family: var(--font-mono);
}

/* Using actual dark tiles now - no filter needed */

.leaflet-control-zoom {
    margin-top: 45px !important;
}

.leaflet-control-zoom a {
    background: var(--bg-card) !important;
    color: var(--accent-cyan) !important;
    border-color: var(--border-color) !important;
}

.leaflet-control-zoom a:hover {
    background: var(--bg-tertiary) !important;
}

.leaflet-control-attribution {
    background: rgba(0, 0, 0, 0.7) !important;
    color: #666 !important;
    font-size: 9px !important;
}

.leaflet-control-attribution a {
    color: #888 !important;
}

.map-header {
    position: absolute;
    top: 8px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    z-index: 1000;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-cyan);
    text-shadow: 0 0 5px var(--accent-cyan);
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 8px;
    border-radius: 3px;
}

.map-footer {
    position: absolute;
    bottom: 8px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    z-index: 1000;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent-cyan);
    text-shadow: 0 0 5px var(--accent-cyan);
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 8px;
    border-radius: 3px;
}

/* Aircraft marker styles */
.aircraft-marker {
    display: flex;
    align-items: center;
    justify-content: center;
}

.aircraft-marker svg {
    filter: drop-shadow(0 0 4px currentColor);
}

.aircraft-popup {
    font-family: var(--font-mono);
    font-size: 11px;
}

.aircraft-popup .callsign {
    color: var(--accent-cyan);
    font-weight: bold;
    font-size: 13px;
}

.aircraft-popup .data-row {
    display: flex;
    justify-content: space-between;
    margin: 3px 0;
}

.aircraft-popup .label {
    color: #888;
}

.aircraft-popup .value {
    color: var(--text-primary);
}

.leaflet-popup-content-wrapper {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 4px !important;
}

.leaflet-popup-tip {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
}

.leaflet-popup-content {
    color: var(--text-primary) !important;
    margin: 10px !important;
}

.leaflet-tooltip.aircraft-tooltip {
    background: rgba(0, 0, 0, 0.8) !important;
    border: 1px solid var(--accent-cyan) !important;
    color: var(--accent-cyan) !important;
    font-family: var(--font-mono) !important;
    font-size: 10px !important;
    padding: 2px 6px !important;
    border-radius: 2px !important;
}

.leaflet-tooltip.aircraft-tooltip::before {
    border-right-color: var(--accent-cyan) !important;
}

/* Satellite Mode Styles */
.satellite-section {
    margin-bottom: 20px;
}

.satellite-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 15px;
}

.satellite-tab {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 11px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.satellite-tab:hover {
    border-color: var(--accent-cyan);
    color: var(--text-primary);
}

.satellite-tab.active {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: var(--bg-primary);
}

.satellite-content {
    display: none;
}

.satellite-content.active {
    display: block;
}

/* Satellite Dashboard Embed */
.satellite-dashboard-embed {
    width: 100%;
    flex: 1;
    min-height: 400px;
    background: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.satellite-dashboard-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: var(--bg-primary);
}

/* Satellite Pass Predictor - Cool UI */
.pass-predictor {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 15px;
}

@media (max-width: 1023px) {
    .pass-predictor {
        grid-template-columns: 1fr;
    }
}

.polar-plot-container {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    min-height: 320px;
}

.ground-track-cell {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.ground-track-cell #groundTrackMap {
    flex: 1;
    min-height: 200px;
}

.countdown-cell {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
}

.countdown-cell .satellite-countdown {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}

.pass-list-cell {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    max-height: 350px;
    overflow-y: auto;
}

.polar-plot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.polar-plot-title {
    color: var(--accent-cyan);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.popout-btn {
    padding: 4px 10px;
    background: transparent;
    border: 1px solid var(--accent-cyan);
    border-radius: 3px;
    color: var(--accent-cyan);
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.popout-btn:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
}

.polar-plot {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
}

.polar-plot canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pass-list-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    max-height: 450px;
    overflow-y: auto;
}

.pass-list-header {
    color: var(--accent-cyan);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Satellite Countdown Block */
.satellite-countdown {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--accent-cyan);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.countdown-satellite-name {
    color: var(--accent-cyan);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 12px;
    text-shadow: 0 0 10px var(--accent-cyan-dim);
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.countdown-block {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
    text-align: center;
}

.countdown-label {
    color: var(--text-dim);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.countdown-value {
    color: var(--accent-cyan);
    font-size: 22px;
    font-weight: 700;
    font-family: var(--font-mono);
    text-shadow: 0 0 15px var(--accent-cyan-dim);
    line-height: 1.2;
}

.countdown-value.active {
    color: var(--accent-green);
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
    animation: countdown-pulse 1s ease-in-out infinite;
}

@keyframes countdown-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.countdown-sublabel {
    color: var(--text-secondary);
    font-size: 9px;
    margin-top: 4px;
}

.countdown-status {
    text-align: center;
    font-size: 10px;
    color: var(--text-dim);
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.countdown-status.visible {
    color: var(--accent-green);
}

.countdown-status.upcoming {
    color: var(--accent-orange);
}

.location-input {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.location-input input {
    flex: 1;
    padding: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    color: var(--text-primary);
    font-size: 12px;
}

.pass-card {
    padding: 12px;
    margin-bottom: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pass-card:hover {
    border-color: var(--accent-cyan);
}

.pass-card.active {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.pass-satellite {
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 4px;
}

.pass-time {
    color: var(--text-primary);
    font-size: 13px;
    margin-bottom: 4px;
}

.pass-details {
    display: flex;
    gap: 15px;
    font-size: 11px;
    color: var(--text-secondary);
}

.pass-details span {
    color: var(--text-primary);
}

.pass-quality {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

.pass-quality.excellent {
    background: rgba(0, 255, 0, 0.2);
    color: var(--accent-green);
}

.pass-quality.good {
    background: rgba(0, 255, 255, 0.2);
    color: var(--accent-cyan);
}

.pass-quality.fair {
    background: rgba(255, 102, 0, 0.2);
    color: var(--accent-orange);
}

/* Satellite List Styles */
.satellite-list {
    max-height: 200px;
    overflow-y: auto;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px;
}

.sat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    margin-bottom: 4px;
    background: var(--bg-secondary);
    border-radius: 3px;
    font-size: 12px;
}

.sat-item:last-child {
    margin-bottom: 0;
}

.sat-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex: 1;
}

.sat-item input[type="checkbox"] {
    margin: 0;
}

.sat-item .sat-name {
    color: var(--text-primary);
}

.sat-item .sat-norad {
    color: var(--text-secondary);
    font-size: 10px;
}

.sat-item .sat-remove {
    background: none;
    border: none;
    color: var(--accent-red);
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    opacity: 0.6;
}

.sat-item .sat-remove:hover {
    opacity: 1;
}

.sat-item.builtin .sat-remove {
    display: none;
}

/* Satellite Add Modal */
.sat-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.sat-modal.active {
    display: flex;
}

.sat-modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--accent-cyan);
    border-radius: 8px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.sat-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.sat-modal-header h3 {
    color: var(--accent-cyan);
    margin: 0;
}

.sat-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
}

.sat-modal-close:hover {
    color: var(--text-primary);
}

.sat-modal-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.sat-modal-tab {
    flex: 1;
    padding: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
}

.sat-modal-tab.active {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.sat-modal-section {
    display: none;
}

.sat-modal-section.active {
    display: block;
}

.tle-textarea {
    width: 100%;
    height: 120px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: monospace;
    font-size: 11px;
    padding: 10px;
    resize: vertical;
}

.celestrak-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.celestrak-cat {
    padding: 8px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 11px;
    text-align: center;
}

.celestrak-cat:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* Popout window styles */
.popout-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 10000;
    display: none;
}

.popout-container.active {
    display: block;
}

.popout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.popout-title {
    color: var(--accent-cyan);
    font-size: 18px;
    font-weight: 600;
}

.popout-close {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--accent-red);
    border-radius: 3px;
    color: var(--accent-red);
    cursor: pointer;
}

.popout-body {
    padding: 20px;
    height: calc(100vh - 70px);
    overflow: auto;
}

/* Sensor card styling */
.sensor-card {
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-green);
    background: var(--bg-secondary);
}

.sensor-card .device-name {
    color: var(--accent-green);
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
}

.sensor-card .sensor-data {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.sensor-card .data-item {
    background: var(--bg-primary);
    padding: 8px 10px;
    border: 1px solid var(--border-color);
}

.sensor-card .data-label {
    font-size: 9px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sensor-card .data-value {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-cyan);
}

/* Recon Dashboard - Prominent Device Intelligence */
.recon-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    margin: 15px;
    margin-bottom: 10px;
    position: relative;
}

.recon-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-cyan), transparent);
}

.recon-panel.collapsed .recon-content {
    display: none;
}

.recon-header {
    padding: 12px 15px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recon-header h4 {
    color: var(--accent-orange);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.recon-stats {
    display: flex;
    gap: 15px;
    font-size: 10px;
    font-family: var(--font-mono);
}

.recon-stats span {
    color: var(--accent-cyan);
}

.recon-content {
    max-height: 300px;
    overflow-y: auto;
}

.device-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 10px;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 11px;
    align-items: center;
    transition: background 0.2s ease;
}

.device-row:hover {
    background: var(--bg-secondary);
}

.device-row.anomaly {
    border-left: 3px solid var(--accent-red);
    background: rgba(255, 51, 102, 0.05);
}

.device-row.new-device {
    border-left: 3px solid var(--accent-green);
    background: rgba(0, 255, 136, 0.05);
}

.device-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.device-name-row {
    color: var(--text-primary);
    font-weight: 500;
}

.device-id {
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 10px;
}

.device-meta {
    text-align: right;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.device-meta.encrypted {
    color: var(--accent-green);
}

.device-meta.plaintext {
    color: var(--accent-red);
}

.transmission-bar {
    width: 60px;
    height: 4px;
    background: var(--border-color);
    position: relative;
}

.transmission-bar-fill {
    height: 100%;
    background: var(--accent-cyan);
    transition: width 0.3s ease;
}

.badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid;
}

.badge.proto-pocsag {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.badge.proto-flex {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.badge.proto-433 {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.badge.proto-unknown {
    border-color: var(--text-dim);
    color: var(--text-dim);
}

.recon-toggle {
    padding: 4px 8px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.recon-toggle:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.recon-toggle.active {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    background: rgba(255, 136, 0, 0.1);
}

.hex-dump {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
    background: var(--bg-primary);
    padding: 8px;
    margin-top: 8px;
    border: 1px solid var(--border-color);
    word-break: break-all;
}

.timeline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-cyan);
    display: inline-block;
    margin-right: 5px;
}

.timeline-dot.recent {
    background: var(--accent-green);
}

.timeline-dot.stale {
    background: var(--accent-orange);
}

.timeline-dot.old {
    background: var(--text-dim);
}

/* WiFi Layout Container - 3-column layout */
.wifi-layout-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    background: var(--bg-secondary);
    margin: 0 15px 10px 15px;
    border: 1px solid var(--border-color);
    flex: 1;
    min-height: 0; /* Allow shrinking in flex context */
    box-sizing: border-box;
    overflow: hidden;
}

/* WiFi Status Bar */
.wifi-status-bar {
    display: flex;
    gap: 20px;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 11px;
}

.wifi-status-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wifi-status-label {
    color: var(--text-dim);
}

.wifi-status-value {
    color: var(--accent-cyan);
    font-weight: 600;
}

.wifi-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #666;
}

.wifi-status-indicator.idle { background: #666; }
.wifi-status-indicator.scanning { background: var(--accent-green); animation: pulse 1s infinite; }
.wifi-status-indicator.error { background: var(--accent-red); }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* WiFi Main Content - 3 columns */
.wifi-main-content {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(240px, 280px) minmax(240px, 280px);
    gap: 10px;
    flex: 1;
    min-height: 0;
    overflow: auto;
}

/* WiFi Networks Panel (LEFT) */
.wifi-networks-panel {
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    min-width: 0; /* Prevent content from forcing panel wider */
}

.wifi-networks-header {
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.wifi-networks-header h5 {
    margin: 0;
    color: var(--accent-cyan);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wifi-network-filters {
    display: flex;
    gap: 4px;
}

.wifi-filter-btn {
    padding: 4px 8px;
    font-size: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s;
}

.wifi-filter-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.wifi-filter-btn.active {
    background: var(--accent-cyan);
    color: var(--text-inverse);
    border-color: var(--accent-cyan);
}

.wifi-networks-table-wrapper {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.wifi-networks-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.wifi-networks-table thead {
    position: sticky;
    top: 0;
    background: var(--bg-tertiary);
    z-index: 1;
}

.wifi-networks-table th {
    padding: 8px 10px;
    text-align: left;
    color: var(--text-dim);
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    cursor: pointer;
}

.wifi-networks-table th:hover {
    color: var(--accent-cyan);
}

.wifi-networks-table th.sortable::after {
    content: ' \2195';
    opacity: 0.3;
}

.wifi-networks-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.wifi-network-row {
    cursor: pointer;
    transition: background 0.15s;
}

.wifi-network-row:hover {
    background: rgba(0, 255, 255, 0.05);
}

.wifi-network-row.selected {
    background: rgba(0, 255, 255, 0.1);
    border-left: 2px solid var(--accent-cyan);
}

.wifi-network-row .essid {
    font-weight: 500;
    color: var(--text-primary);
}

.wifi-network-row .badge {
    display: inline-block;
    padding: 2px 5px;
    font-size: 9px;
    border-radius: 3px;
    margin-left: 6px;
}

.wifi-network-row .badge-hidden {
    background: rgba(255, 165, 0, 0.2);
    color: var(--accent-orange);
}

.wifi-network-row .badge-new {
    background: rgba(0, 255, 0, 0.2);
    color: var(--accent-green);
}

.wifi-network-row .rssi-value {
    font-family: monospace;
    font-weight: 600;
}

.wifi-network-row .rssi-value.signal-strong { color: var(--accent-green); }
.wifi-network-row .rssi-value.signal-medium { color: var(--accent-yellow); }
.wifi-network-row .rssi-value.signal-weak { color: var(--accent-orange); }
.wifi-network-row .rssi-value.signal-very-weak { color: var(--accent-red); }

.wifi-network-row .security-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 9px;
    border-radius: 3px;
}

.wifi-network-row .security-badge.security-wpa3 { background: rgba(0, 255, 0, 0.15); color: var(--accent-green); }
.wifi-network-row .security-badge.security-wpa { background: rgba(0, 255, 255, 0.15); color: var(--accent-cyan); }
.wifi-network-row .security-badge.security-wep { background: rgba(255, 165, 0, 0.15); color: var(--accent-orange); }
.wifi-network-row .security-badge.security-open { background: rgba(255, 0, 0, 0.15); color: var(--accent-red); }

.wifi-network-placeholder td {
    text-align: center;
    padding: 40px 20px;
}

.wifi-network-placeholder .placeholder-text {
    color: var(--text-dim);
}

.app-collection-state-row td {
    text-align: center;
    padding: 0;
}

.app-collection-state {
    color: var(--text-dim);
    padding: 16px 12px;
    font-size: 11px;
    text-align: center;
}

.app-collection-state.is-loading {
    color: var(--accent-cyan);
}

/* WiFi Radar Panel (CENTER) */
.wifi-radar-panel {
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 12px;
    min-width: 0; /* Prevent content from forcing panel wider */
    overflow: hidden;
}

.wifi-radar-panel h5 {
    margin: 0 0 10px 0;
    color: var(--accent-cyan);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wifi-radar-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.wifi-zone-summary {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    margin-top: 12px;
}

.wifi-zone {
    text-align: center;
}

.wifi-zone-count {
    display: block;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
}

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

.wifi-zone.near .wifi-zone-count { color: var(--accent-green); }
.wifi-zone.mid .wifi-zone-count { color: var(--accent-yellow); }
.wifi-zone.far .wifi-zone-count { color: var(--accent-red); }

/* WiFi Analysis Panel (RIGHT) */
.wifi-analysis-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    overflow: hidden;
}

.wifi-channel-section,
.wifi-security-section {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 12px;
}

.wifi-channel-section {
    flex: 1;
}

.wifi-channel-section h5,
.wifi-security-section h5 {
    margin: 0 0 10px 0;
    color: var(--accent-cyan);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wifi-channel-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}

.channel-band-tab {
    flex: 1;
    padding: 6px 10px;
    font-size: 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s;
}

.channel-band-tab:hover {
    background: var(--bg-secondary);
}

.channel-band-tab.active {
    background: var(--accent-cyan);
    color: var(--text-inverse);
    border-color: var(--accent-cyan);
}

.wifi-channel-chart {
    min-height: 120px;
    overflow-x: auto;
    overflow-y: hidden;
}

.wifi-security-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wifi-security-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.wifi-security-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.wifi-security-item.wpa3 .wifi-security-dot { background: var(--accent-green); }
.wifi-security-item.wpa2 .wifi-security-dot { background: var(--accent-cyan); }
.wifi-security-item.wep .wifi-security-dot { background: var(--accent-orange); }
.wifi-security-item.open .wifi-security-dot { background: var(--accent-red); }

.wifi-security-count {
    margin-left: auto;
    font-weight: 600;
    color: var(--text-primary);
}

/* WiFi Detail Drawer */
.wifi-detail-drawer {
    display: none;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.wifi-detail-drawer.open {
    display: block;
}

.wifi-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.wifi-detail-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wifi-detail-essid {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.wifi-detail-bssid {
    font-size: 11px;
    font-family: monospace;
    color: var(--text-dim);
}

.wifi-detail-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
}

.wifi-detail-close:hover {
    color: var(--accent-red);
}

.wifi-detail-content {
    padding: 15px;
}

.wifi-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.wifi-detail-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wifi-detail-stat .label {
    font-size: 10px;
    color: var(--text-dim);
    text-transform: uppercase;
}

.wifi-detail-stat .value {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.wifi-detail-clients {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.wifi-detail-clients h6 {
    margin: 0 0 10px 0;
    font-size: 11px;
    color: var(--accent-cyan);
    text-transform: uppercase;
}

.wifi-client-count-badge {
    display: inline-block;
    font-size: 10px;
    padding: 1px 6px;
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border-radius: 10px;
    font-weight: 600;
    margin-left: 6px;
    vertical-align: middle;
}

.wifi-client-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.wifi-client-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.wifi-client-identity {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wifi-client-mac {
    font-family: monospace;
    font-size: 12px;
    color: var(--text-primary);
}

.wifi-client-vendor {
    font-size: 10px;
    color: var(--text-dim);
}

.wifi-client-probes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.wifi-client-probe-badge {
    font-size: 9px;
    padding: 2px 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    color: var(--text-secondary);
}

.wifi-client-signal {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.wifi-client-rssi {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

.wifi-client-lastseen {
    font-size: 9px;
    color: var(--text-dim);
}

/* WiFi Responsive */
@media (max-width: 1280px) {
    .wifi-main-content {
        grid-template-columns: minmax(280px, 1fr) 240px 240px;
    }
}

@media (max-width: 1280px) {
    .wifi-layout-container {
        flex: 1;
        min-height: 0;
    }

    .wifi-main-content {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .wifi-networks-panel {
        grid-column: span 2;
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .wifi-main-content {
        grid-template-columns: 1fr;
    }

    .wifi-networks-panel {
        grid-column: span 1;
    }

    .wifi-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Bluetooth Layout Container */
.bt-layout-container {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    margin: 0 15px 10px 15px;
    border: 1px solid var(--border-color);
    flex: 1;
    min-height: 0; /* Allow shrinking in flex context */
}

.bt-visuals-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    overflow-y: auto; /* scroll rather than squash when detail panel + radar exceed available height */
}

.bt-main-area {
    display: flex;
    gap: 12px;
    flex: 1;
    min-height: 420px;
}

.bt-side-panels {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 300px;
    flex-shrink: 0;
}

.bt-side-panel {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bt-tracker-panel h5 {
    margin-bottom: 8px;
}

.bt-tracker-list {
    font-size: 11px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 2px;
    overscroll-behavior: contain;
}

.bt-radar-panel {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#btRadarControls {
    gap: 6px;
}

.bt-radar-filter-btn,
#btRadarPauseBtn {
    min-width: 84px;
    padding: 4px 10px;
    font-size: 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s ease;
}

.bt-radar-filter-btn:hover,
#btRadarPauseBtn:hover {
    color: var(--text-primary);
    border-color: var(--accent-cyan);
}

.bt-radar-filter-btn.active,
#btRadarPauseBtn.active {
    color: #0f172a;
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.bt-zone-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
    font-size: 11px;
}

.bt-zone-card {
    text-align: center;
    border-radius: 6px;
    padding: 8px 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.bt-zone-card.immediate {
    border-color: rgba(34, 197, 94, 0.35);
}

.bt-zone-card.near {
    border-color: rgba(234, 179, 8, 0.35);
}

.bt-zone-card.far {
    border-color: rgba(239, 68, 68, 0.35);
}

.bt-zone-value {
    display: block;
    font-size: 19px;
    font-weight: 700;
}

.bt-zone-card.immediate .bt-zone-value {
    color: #22c55e;
}

.bt-zone-card.near .bt-zone-value {
    color: #eab308;
}

.bt-zone-card.far .bt-zone-value {
    color: #ef4444;
}

.bt-zone-label {
    color: var(--text-dim);
    font-size: 10px;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.bt-radar-panel #btProximityRadar {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bluetooth Device Detail Panel */
.bt-detail-panel {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    flex-shrink: 0;
    max-height: 340px;
    overflow: hidden;
}

.bt-detail-panel .bt-detail-header {
    padding: 6px 10px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.bt-detail-panel .bt-detail-header h5 {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bt-detail-body {
    padding: 8px 10px;
    height: auto;
    max-height: calc(100% - 30px);
    overflow-y: auto;
}

.bt-detail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-dim);
    font-size: 11px;
}

.bt-detail-content {
    height: 100%;
}

.bt-detail-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.bt-detail-identity {
    min-width: 0;
    flex: 1;
}

.bt-detail-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bt-detail-address {
    font-family: var(--font-mono);
    font-size: 10px;
    color: #00d4ff;
}

.bt-detail-rssi-display {
    display: flex;
    align-items: baseline;
    gap: 2px;
    flex-shrink: 0;
    margin-left: 12px;
}

.bt-detail-rssi-value {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
}

.bt-detail-rssi-unit {
    font-size: 10px;
    color: var(--text-dim);
}

.bt-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

.bt-detail-badge {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.bt-detail-badge.ble {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.bt-detail-badge.classic {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.bt-detail-badge.new {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.bt-detail-badge.baseline {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.bt-detail-badge.flag {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

.bt-detail-badge.tracker-high {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.bt-detail-badge.tracker-medium {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
}

.bt-detail-badge.tracker-low {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
}

.bt-detail-tracker-analysis {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 8px;
}

.bt-analysis-header {
    color: #fca5a5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.bt-analysis-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 10px;
    margin-top: 4px;
}

.bt-analysis-label {
    color: var(--text-dim);
    font-size: 9px;
}

.bt-analysis-section {
    margin-top: 6px;
}

.bt-evidence-list {
    margin: 4px 0 0 0;
    padding-left: 14px;
    color: var(--text-primary);
    font-size: 10px;
}

.bt-analysis-warning {
    margin-top: 8px;
    color: #fca5a5;
    font-size: 9px;
    line-height: 1.35;
}

.bt-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-bottom: 6px;
}

.bt-detail-stat {
    background: var(--bg-secondary);
    padding: 4px 6px;
    border-radius: 3px;
    min-width: 0;
}

.bt-detail-stat-label {
    display: block;
    font-size: 8px;
    color: var(--text-dim);
    text-transform: uppercase;
}

.bt-detail-stat-value {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bt-detail-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.bt-detail-services {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.bt-detail-services-list {
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bt-detail-btn {
    padding: 4px 10px;
    font-size: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.bt-detail-btn:hover {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: var(--text-inverse);
}

.bt-detail-btn.active {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.6);
    color: #9fffd1;
}

/* Service Data Inspector */
.bt-detail-service-inspector {
    margin-bottom: 6px;
}

.bt-inspector-toggle {
    font-size: 10px;
    color: var(--accent-cyan);
    cursor: pointer;
    padding: 3px 0;
    user-select: none;
}

.bt-inspector-toggle:hover {
    color: var(--text-primary);
}

.bt-inspector-arrow {
    display: inline-block;
    transition: transform 0.2s;
    font-size: 9px;
}

.bt-inspector-arrow.open {
    transform: rotate(90deg);
}

.bt-inspector-content {
    background: var(--bg-secondary);
    border-radius: 3px;
    padding: 6px 8px;
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-dim);
    max-height: 100px;
    overflow-y: auto;
    word-break: break-all;
}

.bt-inspector-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.bt-inspector-row:last-child {
    border-bottom: none;
}

.bt-inspector-label {
    color: var(--text-dim);
    flex-shrink: 0;
}

.bt-inspector-value {
    color: var(--text-primary);
    text-align: right;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* MAC Cluster Badge */
.bt-mac-cluster-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    font-size: 8px;
    font-weight: 600;
    padding: 1px 4px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Behavioral Flag Badges */
.bt-flag-badge {
    display: inline-block;
    font-size: 8px;
    font-weight: 600;
    padding: 1px 4px;
    border-radius: 3px;
    margin-left: 3px;
    vertical-align: middle;
}

.bt-flag-badge.persistent {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.bt-flag-badge.beacon-like {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.bt-flag-badge.strong-stable {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

/* Selected device highlight */
.bt-device-row.selected {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-cyan);
}

.bt-device-list {
    border-left-color: var(--accent-purple) !important;
    display: flex;
    flex-direction: column;
    min-width: 330px;
    max-width: 420px;
    max-height: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.bt-device-list .wifi-device-list-content {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding: 8px 10px 12px;
    background: var(--bg-primary);
    overscroll-behavior: contain;
}

.bt-device-list .wifi-device-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 4;
    background: var(--bg-primary);
}

.bt-device-list .wifi-device-list-header h5 {
    color: var(--accent-purple);
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}

.bt-list-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.bt-summary-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 5px 6px;
    min-width: 0;
}

.bt-summary-label {
    display: block;
    font-size: 8px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.35px;
}

.bt-summary-value {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bt-list-signal-strip {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.bt-list-signal-title {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.45px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.bt-signal-dist-compact {
    gap: 6px;
    padding: 0;
}

.bt-signal-dist-compact .signal-range {
    gap: 8px;
}

.bt-signal-dist-compact .signal-range span:first-child {
    width: 50px;
    font-size: 9px;
}

.bt-signal-dist-compact .signal-range span:last-child {
    width: 22px;
    font-size: 10px;
}

.bt-signal-dist-compact .signal-bar-bg {
    height: 10px;
}

.bt-device-toolbar {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.bt-device-search {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 11px;
    padding: 7px 8px;
}

.bt-device-search:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

/* Bluetooth Device Filters */
.bt-device-filters {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    flex-shrink: 0;
    background: var(--bg-primary);
    position: sticky;
    top: 44px;
    z-index: 3;
}

.bt-filter-btn {
    padding: 5px 12px;
    font-size: 11px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s ease;
}

.bt-filter-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.bt-filter-btn.active {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: var(--text-inverse);
}

.bt-tracker-item {
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s ease;
    cursor: pointer;
}

.bt-tracker-item:hover {
    background: rgba(239, 68, 68, 0.08);
}

.bt-tracker-item:focus-visible {
    outline: 1px solid var(--accent-cyan);
    outline-offset: -1px;
}

.bt-tracker-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.bt-tracker-left,
.bt-tracker-right {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.bt-tracker-confidence {
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.bt-tracker-confidence-high .bt-tracker-confidence {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.2);
}

.bt-tracker-confidence-medium .bt-tracker-confidence {
    color: #f97316;
    background: rgba(249, 115, 22, 0.2);
}

.bt-tracker-confidence-low .bt-tracker-confidence {
    color: #eab308;
    background: rgba(234, 179, 8, 0.2);
}

.bt-tracker-type {
    font-size: 11px;
    color: var(--text-primary);
    font-weight: 500;
}

.bt-tracker-risk {
    font-size: 9px;
    font-weight: 700;
}

.bt-risk-high {
    color: #ef4444;
}

.bt-risk-medium {
    color: #f97316;
}

.bt-risk-low {
    color: var(--text-dim);
}

.bt-tracker-rssi,
.bt-tracker-seen {
    font-size: 10px;
    color: var(--text-dim);
}

.bt-tracker-row-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 3px;
    gap: 10px;
}

.bt-tracker-address {
    font-size: 9px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bt-tracker-evidence {
    margin-top: 3px;
    font-size: 9px;
    color: var(--text-dim);
    font-style: italic;
}

/* Bluetooth Signal Distribution */
.bt-signal-dist {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 11px;
    padding: 4px 0;
}

.signal-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.signal-range span:first-child {
    width: 80px;
    color: var(--text-dim);
    font-size: 10px;
}

.signal-range span:last-child {
    width: 28px;
    text-align: right;
    font-weight: 600;
    font-size: 12px;
}

.signal-bar-bg {
    flex: 1;
    height: 16px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.bt-signal-dist .signal-bar {
    width: auto;
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.bt-signal-dist .signal-bar.strong {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.bt-signal-dist .signal-bar.medium {
    background: linear-gradient(90deg, #eab308, #ca8a04);
}

.bt-signal-dist .signal-bar.weak {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* Bluetooth Device Row - Compact Design */
.bt-device-row {
    display: flex;
    flex-direction: column;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-left: 4px solid #666;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.bt-device-row:last-child {
    margin-bottom: 0;
}

.bt-device-row:hover {
    background: rgba(0, 212, 255, 0.05);
    border-color: var(--accent-cyan);
}

.bt-device-row:focus-visible {
    outline: 1px solid var(--accent-cyan);
    outline-offset: 1px;
}

.bt-row-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.bt-row-left {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 8px;
    min-width: 0;
    flex: 1;
}

.bt-row-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.bt-proto-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.bt-proto-badge.ble {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.bt-proto-badge.classic {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.bt-history-badge {
    display: inline-block;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.2px;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.bt-irk-badge {
    display: inline-block;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.3px;
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.bt-device-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.bt-rssi-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bt-rssi-bar-bg {
    width: 50px;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.bt-rssi-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.bt-rssi-value {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    min-width: 28px;
    text-align: right;
}

.bt-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bt-status-dot.new {
    background: #3b82f6;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.5);
}

.bt-status-dot.known {
    background: #22c55e;
}

.bt-row-secondary {
    font-size: 10px;
    color: var(--text-dim);
    margin-top: 4px;
    padding-left: 42px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bt-row-actions {
    display: flex;
    justify-content: flex-end;
    padding: 4px 4px 0 42px;
}

/* Locate action on Bluetooth device rows (must be in index.css so it styles in scanner mode) */
.bt-row-actions .bt-locate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 28px;
    padding: 5px 10px;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--accent-green, #38c180);
    background: linear-gradient(180deg, rgba(56, 193, 128, 0.2), rgba(56, 193, 128, 0.12));
    border: 1px solid rgba(56, 193, 128, 0.42);
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.bt-row-actions .bt-locate-btn:hover {
    background: linear-gradient(180deg, rgba(56, 193, 128, 0.28), rgba(56, 193, 128, 0.18));
    border-color: rgba(56, 193, 128, 0.72);
    box-shadow: 0 0 0 1px rgba(56, 193, 128, 0.2), 0 6px 16px rgba(20, 80, 54, 0.35);
    transform: translateY(-1px);
}

.bt-row-actions .bt-locate-btn:active {
    transform: translateY(0);
}

.bt-row-actions .bt-locate-btn svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    flex-shrink: 0;
}

.bt-device-filter-state {
    margin-top: 8px;
}

/* Bluetooth Device Modal */
.bt-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.bt-modal {
    background: var(--bg-secondary, #1a1a2e);
    border: 1px solid var(--border-color, #333);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.bt-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color, #333);
    background: var(--bg-tertiary, #141428);
}

.bt-modal-header h4 {
    margin: 0;
    color: var(--text-primary, #e0e0e0);
    font-size: 16px;
    font-weight: 600;
}

.bt-modal-close {
    background: none;
    border: none;
    color: var(--text-dim, #666);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.bt-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary, #e0e0e0);
}

.bt-modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(85vh - 60px);
}

.bt-modal-section {
    margin-bottom: 16px;
}

.bt-modal-section:last-child {
    margin-bottom: 0;
}

.bt-modal-section-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim, #666);
    margin-bottom: 8px;
}

.bt-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.bt-modal-stat {
    background: var(--bg-tertiary, #141428);
    padding: 10px 12px;
    border-radius: 6px;
}

.bt-modal-stat-label {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--text-dim, #666);
    margin-bottom: 4px;
}

.bt-modal-stat-value {
    font-size: 13px;
    color: var(--text-primary, #e0e0e0);
    font-family: monospace;
}

.bt-modal-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    margin-right: 6px;
    margin-bottom: 6px;
}

.bt-modal-badge.ble {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.bt-modal-badge.classic {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.bt-modal-badge.new {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.bt-modal-badge.baseline {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.bt-modal-badge.flag {
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
}

.bt-modal-rssi {
    text-align: center;
    padding: 16px;
    background: var(--bg-tertiary, #141428);
    border-radius: 8px;
    margin-bottom: 16px;
}

.bt-modal-rssi-value {
    font-size: 36px;
    font-weight: 700;
    font-family: monospace;
}

.bt-modal-rssi-label {
    font-size: 11px;
    color: var(--text-dim, #666);
    margin-top: 4px;
}

.bt-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.bt-modal-actions button {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.bt-modal-btn-primary {
    background: var(--accent-cyan, #00d4ff);
    border: none;
    color: var(--text-inverse);
    font-weight: 600;
}

.bt-modal-btn-primary:hover {
    background: #00b8e6;
}

.bt-modal-btn-secondary {
    background: var(--bg-tertiary, #141428);
    border: 1px solid var(--border-color, #333);
    color: var(--text-primary, #e0e0e0);
}

.bt-modal-btn-secondary:hover {
    background: var(--bg-secondary, #1a1a2e);
}

@media (max-width: 1280px) {
    .bt-layout-container {
        flex-direction: column;
        flex: 1;
        min-height: 0;
    }

    .bt-layout-container .bt-visuals-column {
        max-height: 50vh;
    }

    .bt-main-area {
        min-height: 0;
    }

    .bt-side-panels {
        width: 100%;
    }

    .bt-tracker-list {
        max-height: 280px;
    }

    .bt-device-list {
        width: 100%;
        min-width: auto;
        max-width: none;
        max-height: 320px;
    }

    .bt-list-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.wifi-visual-panel {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 10px;
    position: relative;
}

.wifi-visual-panel h5 {
    color: var(--accent-cyan);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}

/* Radar Display */
.radar-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

#radarCanvas,
#btRadarCanvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, #001515 0%, #000a0a 100%);
    border: 1px solid var(--accent-cyan-dim);
}

#btRadarCanvas {
    background: radial-gradient(circle, #150015 0%, #0a000a 100%);
    border: 1px solid rgba(138, 43, 226, 0.3);
}

/* Channel Graph */
.channel-graph {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 60px;
    padding: 5px 0;
    border-bottom: 1px solid var(--border-color);
}

.channel-bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.channel-bar {
    width: 80%;
    background: var(--border-color);
    min-height: 2px;
    transition: height 0.3s ease, background 0.3s ease;
}

.channel-bar.active {
    background: var(--accent-cyan);
    box-shadow: 0 0 5px var(--accent-cyan);
}

.channel-bar.congested {
    background: var(--accent-orange);
}

.channel-bar.very-congested {
    background: var(--accent-red);
}

.channel-label {
    font-size: 8px;
    color: var(--text-primary);
    margin-top: 3px;
}

/* Security Donut */
.security-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.security-donut {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

#securityCanvas {
    width: 100%;
    height: 100%;
}

.security-legend {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    font-family: var(--font-mono);
}

.security-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.security-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.security-legend-dot.wpa3 {
    background: var(--accent-green);
}

.security-legend-dot.wpa2 {
    background: var(--accent-orange);
}

.security-legend-dot.wep {
    background: var(--accent-red);
}

.security-legend-dot.open {
    background: var(--accent-cyan);
}

/* Signal Strength Meter */
.signal-strength-display {
    text-align: center;
    padding: 5px;
}

.target-ssid {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.signal-value {
    font-family: var(--font-mono);
    font-size: 28px;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan-dim);
}

.signal-value.weak {
    color: var(--accent-red);
    text-shadow: 0 0 10px rgba(255, 51, 102, 0.4);
}

.signal-value.medium {
    color: var(--accent-orange);
    text-shadow: 0 0 10px rgba(255, 136, 0, 0.4);
}

.signal-value.strong {
    color: var(--accent-green);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

.signal-bars-large {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 3px;
    height: 30px;
    margin-top: 8px;
}

.signal-bar-large {
    width: 8px;
    background: var(--border-color);
    transition: all 0.2s ease;
}

.signal-bar-large.active {
    box-shadow: 0 0 5px currentColor;
}

.signal-bar-large.weak {
    background: var(--accent-red);
}

.signal-bar-large.medium {
    background: var(--accent-orange);
}

.signal-bar-large.strong {
    background: var(--accent-green);
}

.signal-bar-large:nth-child(1) {
    height: 20%;
}

.signal-bar-large:nth-child(2) {
    height: 40%;
}

.signal-bar-large:nth-child(3) {
    height: 60%;
}

.signal-bar-large:nth-child(4) {
    height: 80%;
}

.signal-bar-large:nth-child(5) {
    height: 100%;
}

/* Scanline effect overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.03),
            rgba(0, 0, 0, 0.03) 1px,
            transparent 1px,
            transparent 2px);
    z-index: 1000;
}

/* Disclaimer Modal */
.disclaimer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.disclaimer-modal {
    background: var(--bg-card);
    border: 1px solid var(--accent-cyan);
    max-width: 550px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.3);
    pointer-events: auto;
    position: relative;
    z-index: 100000;
}

.disclaimer-modal h2 {
    color: var(--accent-red);
    font-size: 1.5em;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.disclaimer-modal .warning-icon {
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 15px;
    color: var(--accent-red);
}

.disclaimer-modal p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: left;
}

.disclaimer-modal ul {
    text-align: left;
    color: var(--text-secondary);
    font-size: 12px;
    margin: 15px 0;
    padding-left: 20px;
}

.disclaimer-modal ul li {
    margin-bottom: 8px;
}

.disclaimer-modal .accept-btn {
    background: var(--accent-cyan);
    color: var(--text-inverse);
    border: none;
    padding: 12px 40px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    pointer-events: auto;
    position: relative;
    z-index: 100001;
}

.disclaimer-modal .accept-btn:hover {
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.disclaimer-hidden {
    display: none !important;
}

/* Ground Track Map */
#groundTrackMap {
    height: 240px;
    border-radius: 6px;
    margin-top: 10px;
}

.ground-track-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.ground-track-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-cyan);
}

.sat-position-indicator {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #ff0;
    border: 2px solid #000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    animation: pulse-sat 1s infinite;
}

@keyframes pulse-sat {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 0, 0.7);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(255, 255, 0, 0);
    }
}

/* Beacon Flood Alert */
.beacon-flood-alert {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(255, 100, 0, 0.2));
    border: 1px solid #ff4444;
    border-radius: 6px;
    padding: 10px;
    margin: 10px 0;
    animation: beacon-flash 0.5s infinite alternate;
}

@keyframes beacon-flash {
    from {
        opacity: 0.8;
    }

    to {
        opacity: 1;
    }
}

/* WPS Indicator */
.wps-enabled {
    background: #ff6600;
    color: var(--text-inverse);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
}

/* Rogue AP Indicator */
.rogue-indicator {
    background: linear-gradient(90deg, #ff0000, #cc0000);
    color: var(--text-inverse);
    padding: 4px 8px;
    margin: -10px -10px 8px -10px;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: rogue-pulse 1.5s infinite;
}

@keyframes rogue-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* PMKID Capture */
.pmkid-btn {
    background: linear-gradient(135deg, #9933ff, #6600cc);
    color: var(--text-inverse);
}

.pmkid-btn:hover {
    background: linear-gradient(135deg, #aa44ff, #7700dd);
}

/* Find My Detection */
.findmy-device {
    border-left: 3px solid #007aff;
    background: rgba(0, 122, 255, 0.1);
}

.findmy-badge {
    background: linear-gradient(135deg, #007aff, #5856d6);
    color: var(--text-inverse);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
}

/* Tracker Following Alert */
.tracker-following-alert {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.3), rgba(255, 50, 50, 0.2));
    border: 2px solid #ff0000;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    animation: tracker-pulse 1s infinite;
}

@keyframes tracker-pulse {

    0%,
    100% {
        border-color: #ff0000;
    }

    50% {
        border-color: #ff6666;
    }
}

.tracker-following-alert h4 {
    color: #ff4444;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Flight Path Trails */
.flight-trail {
    stroke-dasharray: 5, 5;
    fill: none;
}

/* Squawk Alerts */
.squawk-emergency {
    background: #ff0000 !important;
    animation: squawk-flash 0.3s infinite alternate;
}

.squawk-hijack {
    background: #ff0000 !important;
}

.squawk-radio-fail {
    background: #ff6600 !important;
}

.squawk-mayday {
    background: #ff0000 !important;
}

@keyframes squawk-flash {
    from {
        opacity: 0.7;
    }

    to {
        opacity: 1;
    }
}

.squawk-alert-banner {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff0000;
    color: var(--text-inverse);
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    z-index: 9999;
    animation: squawk-banner-flash 0.5s infinite alternate;
}

@keyframes squawk-banner-flash {
    from {
        background: #ff0000;
    }

    to {
        background: #cc0000;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Military Aircraft */
.military-aircraft {
    border-left: 3px solid #556b2f;
    background: rgba(85, 107, 47, 0.2);
}

.military-badge {
    background: #556b2f;
    color: var(--text-inverse);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: bold;
}

/* Map Clustering */
.marker-cluster {
    background: rgba(0, 212, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-inverse);
    border: 2px solid var(--accent-cyan);
}

.marker-cluster-small {
    width: 30px;
    height: 30px;
    font-size: 12px;
}

.marker-cluster-medium {
    width: 40px;
    height: 40px;
    font-size: 14px;
}

.marker-cluster-large {
    width: 50px;
    height: 50px;
    font-size: 16px;
}
/* Audio Visualizer */
.audio-visualizer {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
}

.signal-meter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.signal-meter label {
    font-size: 10px;
    color: var(--text-secondary);
    width: 40px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meter-bar {
    flex: 1;
    height: 12px;
    background: linear-gradient(90deg, 
        var(--accent-green) 0%, 
        var(--accent-green) 60%, 
        var(--accent-orange) 60%, 
        var(--accent-orange) 80%, 
        var(--accent-red) 80%, 
        var(--accent-red) 100%
    );
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    opacity: 0.3;
}

.meter-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, 
        var(--accent-green) 0%, 
        var(--accent-green) 60%, 
        var(--accent-orange) 60%, 
        var(--accent-orange) 80%, 
        var(--accent-red) 80%, 
        var(--accent-red) 100%
    );
    border-radius: 3px;
    width: 0%;
    transition: width 0.05s ease-out;
}

.meter-peak {
    position: absolute;
    top: 0;
    height: 100%;
    width: 2px;
    background: #fff;
    opacity: 0.8;
    transition: left 0.05s ease-out;
    left: 0%;
}

.meter-value {
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    width: 50px;
    text-align: right;
}

#audioSpectrumCanvas {
    width: 100%;
    height: 60px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.4);
}

/* Airband visualizer in ADS-B dashboard */
.airband-visualizer {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px;
    margin-top: 10px;
}

.airband-visualizer .signal-meter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.airband-visualizer .signal-meter label {
    font-size: 9px;
    color: var(--text-secondary);
    width: 35px;
}

.airband-visualizer .meter-bar {
    flex: 1;
    height: 10px;
}

.airband-visualizer .meter-value {
    font-size: 9px;
    width: 45px;
}

.airband-visualizer canvas {
    width: 100%;
    height: 50px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.4);
}

/* GPS Indicator */
.gps-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: var(--accent-green-dim);
    border: 1px solid var(--accent-green);
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gps-indicator .gps-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: gps-pulse 2s ease-in-out infinite;
}

@keyframes gps-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ============================================
   RADIO CONTROL INTERFACE - Listening Post
   Modern tactical radio-inspired UI
   ============================================ */

/* Radio Panel Container */
.radio-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

/* Frequency Display Section */
.radio-display-section {
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

.freq-display {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px 40px;
    text-align: center;
    box-shadow:
        inset 0 0 40px rgba(0, 0, 0, 0.6),
        0 0 30px var(--accent-cyan-dim);
    position: relative;
    overflow: hidden;
}

.freq-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--accent-cyan) 50%,
        transparent 100%
    );
    opacity: 0.5;
}

.freq-status {
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.freq-status.active {
    color: var(--accent-cyan);
    animation: freq-status-pulse 1.5s ease-in-out infinite;
}

.freq-status.signal {
    color: var(--accent-green);
}

@keyframes freq-status-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.freq-digits {
    font-family: var(--font-mono);
    font-size: 56px;
    font-weight: 700;
    color: var(--accent-cyan);
    text-shadow:
        0 0 10px var(--accent-cyan),
        0 0 25px var(--accent-cyan),
        0 0 50px rgba(74, 158, 255, 0.4);
    letter-spacing: 2px;
    line-height: 1;
}

.freq-digits.signal {
    color: var(--accent-green);
    text-shadow:
        0 0 10px var(--accent-green),
        0 0 25px var(--accent-green),
        0 0 50px rgba(34, 197, 94, 0.4);
}

.freq-unit {
    font-family: var(--font-mono);
    font-size: 20px;
    color: var(--text-secondary);
    margin-left: 8px;
    vertical-align: baseline;
}

.freq-mode-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-cyan-dim);
    border: 1px solid var(--accent-cyan);
    border-radius: 4px;
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-top: 12px;
    letter-spacing: 1px;
}

/* Radio Controls Section */
.radio-controls-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.radio-control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.radio-control-label {
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Rotary Knob */
.radio-knob {
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, var(--bg-elevated), var(--bg-primary));
    border-radius: 50%;
    border: 2px solid var(--border-light);
    position: relative;
    cursor: grab;
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 20px var(--accent-cyan-dim);
    transition: box-shadow 0.2s ease;
}

.radio-knob:hover {
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 30px var(--accent-cyan-dim);
}

.radio-knob:active {
    cursor: grabbing;
}

.radio-knob::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--border-color);
}

.radio-knob::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 22px;
    background: var(--accent-cyan);
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--accent-cyan);
}

.radio-knob.active::after {
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
}

/* Knob tick marks ring */
.knob-ticks {
    position: absolute;
    width: 90px;
    height: 90px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.knob-tick {
    position: absolute;
    width: 2px;
    height: 6px;
    background: var(--border-light);
    top: 0;
    left: 50%;
    transform-origin: center 45px;
}

.knob-tick.major {
    height: 8px;
    background: var(--text-muted);
}

.knob-label {
    font-family: 'Orbitron', monospace;
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.knob-value {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan-dim);
}

/* Knobs Row Container */
.knobs-row {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.knob-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* Button Bank */
.radio-button-bank {
    display: flex;
    gap: 2px;
    background: var(--bg-primary);
    padding: 4px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.radio-btn {
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.15s ease;
    min-width: 50px;
    text-align: center;
}

.radio-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.radio-btn:last-child {
    border-radius: 0 4px 4px 0;
}

.radio-btn:only-child {
    border-radius: 4px;
}

.radio-btn.active {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 15px var(--accent-cyan-dim);
}

.radio-btn:hover:not(.active) {
    background: var(--bg-elevated);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* Tuning Dial */
.tuning-dial {
    width: 100px;
    height: 100px;
    background: conic-gradient(
        from 0deg,
        var(--bg-secondary) 0deg,
        var(--bg-elevated) 45deg,
        var(--bg-secondary) 90deg,
        var(--bg-elevated) 135deg,
        var(--bg-secondary) 180deg,
        var(--bg-elevated) 225deg,
        var(--bg-secondary) 270deg,
        var(--bg-elevated) 315deg,
        var(--bg-secondary) 360deg
    );
    border-radius: 50%;
    border: 3px solid var(--border-light);
    position: relative;
    cursor: grab;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        inset 0 0 30px rgba(0, 0, 0, 0.4);
}

.tuning-dial:active {
    cursor: grabbing;
}

.tuning-dial::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    width: 4px;
    height: 12px;
    background: var(--accent-cyan);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-cyan);
}

/* Fine Tune Buttons */
.fine-tune-btns {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.tune-btn {
    padding: 6px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tune-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.tune-btn:active {
    background: var(--accent-cyan);
    color: var(--bg-primary);
}

/* Arc Signal Meter */
.signal-arc-meter {
    width: 180px;
    height: 100px;
    position: relative;
}

.signal-arc-meter svg {
    width: 100%;
    height: 100%;
}

.signal-arc-bg {
    fill: none;
    stroke: var(--bg-primary);
    stroke-width: 12;
    stroke-linecap: round;
}

.signal-arc-fill {
    fill: none;
    stroke: url(#signal-gradient);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 188.5;
    stroke-dashoffset: 188.5;
    transition: stroke-dashoffset 0.1s ease-out;
}

.signal-arc-needle {
    fill: var(--accent-cyan);
    filter: drop-shadow(0 0 4px var(--accent-cyan));
    transform-origin: 90px 90px;
    transition: transform 0.1s ease-out;
}

.signal-arc-center {
    fill: var(--bg-secondary);
    stroke: var(--border-color);
    stroke-width: 1;
}

.signal-arc-label {
    font-family: var(--font-mono);
    font-size: 8px;
    fill: var(--text-muted);
}

.signal-arc-value {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    fill: var(--accent-cyan);
    text-anchor: middle;
}

/* Scanner Section */
.radio-scanner-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.scanner-range {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.scanner-range input {
    width: 100px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.scanner-range input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 2px var(--accent-cyan-dim);
}

.scanner-range span {
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    color: var(--text-muted);
}

.scanner-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.radio-action-btn {
    padding: 12px 24px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-action-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.radio-action-btn.scan {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: var(--text-inverse);
}

.radio-action-btn.scan:hover {
    background: #1db954;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.radio-action-btn.scan.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

.radio-action-btn.scan.active:hover {
    box-shadow: 0 0 20px var(--accent-red-dim);
}

.radio-action-btn.pause {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: var(--text-inverse);
}

.radio-action-btn.pause:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Scan Progress Bar */
.scan-progress {
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.scan-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
    border-radius: 3px;
    transition: width 0.2s ease-out;
    box-shadow: 0 0 10px var(--accent-cyan);
}

/* Activity Log Section */
.radio-log-section {
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.log-header span {
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.log-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
}

.log-toggle:hover {
    color: var(--accent-cyan);
}

.log-content {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px 15px;
    font-family: var(--font-mono);
    font-size: 11px;
}

/* Radio Meters Section */
.radio-meters-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 15px;
}

.spectrum-display {
    flex: 1;
    max-width: 400px;
}

.spectrum-display canvas {
    width: 100%;
    height: 80px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

/* Responsive adjustments for radio panel */
@media (max-width: 768px) {
    .radio-controls-section {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .knobs-row {
        flex-wrap: wrap;
    }

    .freq-digits {
        font-size: 40px;
    }

    .radio-button-bank {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================
   RADIO MODULE BOX SYSTEM
   Compact modular layout for Listening Post
   ============================================ */

.radio-module-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    position: relative;
}

.radio-module-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10px;
    right: 10px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan-dim), transparent);
}

/* Main Scanner Module - Primary Feature */
.radio-module-box.scanner-main {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(0,20,30,0.95) 100%);
    border: 1px solid var(--accent-cyan-dim);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1), inset 0 0 40px rgba(0, 0, 0, 0.3);
}

.radio-module-box.scanner-main::before {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

.radio-module-box.scanner-main .module-header {
    color: var(--accent-cyan);
    font-size: 13px;
    letter-spacing: 3px;
}

.module-header {
    font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

/* Compact Radio Button Bank */
.radio-button-bank.compact {
    gap: 2px;
}

.radio-button-bank.compact .radio-btn {
    padding: 5px 10px;
    font-size: 10px;
}

/* Radio Input Fields */
.radio-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 6px 8px;
    text-align: center;
}

.radio-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 5px var(--accent-cyan-dim);
}

/* Smaller Action Buttons for Compact Layout */
.radio-action-btn {
    padding: 6px 12px;
    font-size: 10px;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--bg-elevated);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    flex: 1;
}

.radio-action-btn:hover:not(:disabled) {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 10px var(--accent-cyan-dim);
}

.radio-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.radio-action-btn.scan,
.radio-action-btn.listen {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: var(--text-inverse);
}

.radio-action-btn.scan:hover:not(:disabled),
.radio-action-btn.listen:hover:not(:disabled) {
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.radio-action-btn.listen.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

.radio-action-btn.listen.active:hover:not(:disabled) {
    box-shadow: 0 0 20px var(--accent-red-dim);
}

/* Statistics Box */
.stat-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 10px;
    text-align: center;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: bold;
}

.stat-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* Smaller Knobs for Compact Layout */
.radio-module-box .radio-knob {
    width: 55px;
    height: 55px;
}

.radio-module-box .knob-container {
    text-align: center;
}

.radio-module-box .knob-label {
    font-size: 9px;
    margin-top: 5px;
}

.radio-module-box .knob-value {
    font-size: 11px;
}

/* Smaller Tuning Dial for Compact Layout */
.radio-module-box .tuning-dial {
    width: 90px;
    height: 90px;
}

/* Fine Tune Buttons - Compact */
.fine-tune-btns {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.tune-btn {
    padding: 4px 8px;
    font-size: 10px;
    font-family: var(--font-mono);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s;
}

.tune-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* Signal Hits Table Compact */
.radio-module-box table th,
.radio-module-box table td {
    padding: 4px 6px;
    border-bottom: 1px solid var(--border-color);
}

.radio-module-box table tbody tr:hover {
    background: rgba(0, 212, 255, 0.05);
}

/* Log Content Compact */
.radio-module-box .log-content {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 8px;
    font-family: var(--font-mono);
}

/* Listening Mode Selector Buttons */
.radio-mode-btn {
    padding: 12px 24px;
    font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--bg-elevated);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.radio-mode-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.05);
}

.radio-mode-btn.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 255, 136, 0.1));
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2), inset 0 0 20px rgba(0, 212, 255, 0.05);
}

/* Listening Mode Panels */
.listening-mode-panel {
    display: contents;
}

.listening-mode-panel[style*="display: none"] {
    display: none !important;
}

/* Frequency Preset Buttons */
.preset-freq-btn {
    padding: 8px 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.preset-freq-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.1);
}

.preset-freq-btn:active {
    transform: scale(0.98);
}

/* Animation toggle icon states in nav bar */
.nav-tool-btn .icon-effects-on,
.nav-tool-btn .icon-effects-off {
    position: absolute;
    transition: opacity 0.2s, transform 0.2s;
    font-size: 14px;
}

.nav-tool-btn .icon-effects-on {
    opacity: 1;
    transform: rotate(0deg);
}

.nav-tool-btn .icon-effects-off {
    opacity: 0;
    transform: rotate(-90deg);
}

[data-animations="off"] .nav-tool-btn .icon-effects-on {
    opacity: 0;
    transform: rotate(90deg);
}

[data-animations="off"] .nav-tool-btn .icon-effects-off {
    opacity: 1;
    transform: rotate(0deg);
}

/* Disable cosmetic animations when toggled off */
[data-animations="off"] .globe-svg,
[data-animations="off"] .rotating-meridians,
[data-animations="off"] .meridian-1,
[data-animations="off"] .meridian-2,
[data-animations="off"] .meridian-3,
[data-animations="off"] .welcome-scanline,
[data-animations="off"] .landing-scanline,
[data-animations="off"] .scanline,
[data-animations="off"] .signal-wave,
[data-animations="off"] .signal-wave-1,
[data-animations="off"] .signal-wave-2,
[data-animations="off"] .signal-wave-3,
[data-animations="off"] .logo-dot,
[data-animations="off"] .welcome-logo {
    animation: none !important;
}

/* ============================================
   VISUAL REFRESH OVERRIDES
   ============================================ */

:root {
    --visual-surface-soft: linear-gradient(180deg, rgba(18, 28, 40, 0.9) 0%, rgba(10, 16, 24, 0.95) 100%);
    --visual-surface-panel: linear-gradient(160deg, rgba(20, 33, 48, 0.95) 0%, rgba(11, 18, 27, 0.96) 100%);
    --visual-edge-cyan: rgba(74, 163, 255, 0.34);
    --visual-edge-green: rgba(56, 193, 128, 0.28);
    --visual-glow-soft: 0 14px 30px rgba(0, 0, 0, 0.32);
    --visual-glow-cyan: 0 0 24px rgba(74, 163, 255, 0.16);
    --mode-ambient-left: rgba(74, 163, 255, 0.12);
    --mode-ambient-right: rgba(56, 193, 128, 0.08);
    --mode-ambient-bottom: rgba(214, 168, 94, 0.05);
    --top-rail-gutter: 12px;
    --top-rail-gap: 6px;
    --top-rail-height: 44px;
}

body {
    background-image:
        radial-gradient(1200px 560px at 8% -10%, var(--mode-ambient-left), transparent 60%),
        radial-gradient(900px 520px at 92% -18%, var(--mode-ambient-right), transparent 60%),
        radial-gradient(800px 440px at 50% 130%, var(--mode-ambient-bottom), transparent 65%),
        var(--noise-image),
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: auto, auto, auto, 40px 40px, 48px 48px, 48px 48px;
}

body[data-mode="wifi"],
body[data-mode="bluetooth"],
body[data-mode="bt_locate"] {
    --mode-ambient-left: rgba(56, 193, 128, 0.14);
    --mode-ambient-right: rgba(74, 163, 255, 0.08);
}

body[data-mode="satellite"],
body[data-mode="weathersat"],
body[data-mode="sstv"],
body[data-mode="sstv_general"] {
    --mode-ambient-left: rgba(74, 163, 255, 0.14);
    --mode-ambient-right: rgba(143, 123, 214, 0.09);
    --mode-ambient-bottom: rgba(56, 193, 128, 0.05);
}

body[data-mode="analytics"],
body[data-mode="spystations"],
body[data-mode="tscm"] {
    --mode-ambient-left: rgba(214, 168, 94, 0.12);
    --mode-ambient-right: rgba(74, 163, 255, 0.08);
}

[data-theme="light"] body {
    --mode-ambient-left: rgba(31, 95, 168, 0.09);
    --mode-ambient-right: rgba(31, 138, 87, 0.05);
    --mode-ambient-bottom: rgba(181, 134, 58, 0.04);
}

[data-theme="light"] {
    --visual-surface-soft: linear-gradient(180deg, rgba(245, 248, 252, 0.95) 0%, rgba(235, 240, 248, 0.97) 100%);
    --visual-surface-panel: linear-gradient(160deg, rgba(248, 250, 253, 0.96) 0%, rgba(240, 244, 250, 0.97) 100%);
    --visual-edge-cyan: rgba(31, 95, 168, 0.22);
    --visual-edge-green: rgba(31, 138, 87, 0.18);
    --visual-glow-soft: 0 10px 24px rgba(18, 40, 66, 0.08);
    --visual-glow-cyan: 0 0 16px rgba(31, 95, 168, 0.1);
}

.mode-nav {
    background: linear-gradient(180deg, rgba(22, 33, 48, 0.96) 0%, rgba(14, 22, 33, 0.98) 100%);
    border-bottom-color: rgba(74, 163, 255, 0.24);
}

#mainNav.mode-nav {
    margin: var(--top-rail-gap) var(--top-rail-gutter) 0;
    padding: 0 12px;
    min-height: var(--top-rail-height);
    height: var(--top-rail-height);
    border: 1px solid rgba(74, 163, 255, 0.22);
    border-radius: 10px;
    box-shadow: var(--visual-glow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.mode-nav-dropdown-menu {
    background: linear-gradient(180deg, #162130 0%, #0e1621 100%);
    border-color: rgba(74, 163, 255, 0.22);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(74, 163, 255, 0.1);
}

.run-state-strip {
    margin: 8px var(--top-rail-gutter) 0;
    border-color: rgba(74, 163, 255, 0.3);
    background: linear-gradient(180deg, rgba(20, 31, 44, 0.96) 0%, rgba(12, 19, 29, 0.97) 100%);
    box-shadow: var(--visual-glow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    min-height: var(--top-rail-height);
    padding: 6px 12px;
    border-radius: 10px;
}

.run-state-strip .run-state-chip {
    min-height: 22px;
    padding: 2px 8px;
}

.run-state-strip .run-state-btn {
    min-height: 26px;
    padding: 4px 10px;
}

.run-state-strip .run-state-right {
    gap: 6px;
}

.main-content {
    margin: 0 12px;
    border: 1px solid rgba(74, 163, 255, 0.22);
    border-radius: 10px;
    box-shadow: var(--visual-glow-soft), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(6px);
}

.sidebar {
    background: var(--visual-surface-soft);
    border-right-color: rgba(74, 163, 255, 0.22);
}

.section {
    background: var(--visual-surface-panel);
    border-color: rgba(74, 163, 255, 0.22);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.section:hover {
    border-color: var(--visual-edge-cyan);
    box-shadow: var(--visual-glow-cyan), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.section h3 {
    background: linear-gradient(180deg, #1c2c3f 0%, #141f2c 100%);
    border-bottom-color: rgba(74, 163, 255, 0.2);
}

.section h3::before {
    background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-green) 100%);
}

.section h3::after {
    background: rgba(12, 18, 28, 0.9);
    border: 1px solid rgba(74, 163, 255, 0.24);
}

.form-group input,
.form-group select {
    background: rgba(8, 13, 20, 0.72);
    border-color: rgba(74, 163, 255, 0.2);
    border-radius: 6px;
}

.preset-btn,
.control-btn,
.clear-btn,
.run-btn,
.stop-btn {
    border-radius: 7px;
}

.preset-btn,
.control-btn,
.clear-btn {
    border-color: rgba(74, 163, 255, 0.24);
    background: linear-gradient(180deg, rgba(16, 24, 35, 0.88) 0%, rgba(10, 15, 24, 0.9) 100%);
}

.output-panel {
    background: linear-gradient(180deg, rgba(8, 13, 19, 0.98) 0%, rgba(7, 11, 18, 0.99) 100%);
}

.output-header {
    background: linear-gradient(180deg, rgba(18, 28, 42, 0.95) 0%, rgba(13, 21, 31, 0.98) 100%);
    border-bottom-color: rgba(74, 163, 255, 0.22);
}

.output-content {
    background: linear-gradient(180deg, rgba(8, 13, 19, 0.6) 0%, rgba(8, 13, 19, 0.9) 100%);
}

.stats > div {
    border-color: rgba(74, 163, 255, 0.2);
    background: linear-gradient(180deg, rgba(19, 28, 40, 0.8) 0%, rgba(12, 18, 27, 0.82) 100%);
}

.message {
    border-color: rgba(74, 163, 255, 0.26);
    border-left-width: 4px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(21, 31, 44, 0.8) 0%, rgba(15, 23, 33, 0.82) 100%);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.status-bar {
    position: sticky;
    bottom: 0;
    z-index: 9;
    border-top-color: rgba(74, 163, 255, 0.24);
    background: linear-gradient(180deg, rgba(17, 26, 39, 0.96) 0%, rgba(10, 16, 24, 0.97) 100%);
    backdrop-filter: blur(7px);
}

.status-indicator,
.control-group {
    border-color: rgba(74, 163, 255, 0.2);
    background: linear-gradient(180deg, rgba(15, 23, 34, 0.78) 0%, rgba(9, 14, 23, 0.8) 100%);
    border-radius: 6px;
}

.status-dot.running {
    box-shadow: 0 0 0 4px rgba(56, 193, 128, 0.15), 0 0 14px rgba(56, 193, 128, 0.4);
}

.mode-content.active {
    animation: modePanelEntrance 220ms ease both;
}

@keyframes modePanelEntrance {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-theme="light"] .mode-nav {
    background: linear-gradient(180deg, rgba(240, 244, 250, 0.97) 0%, rgba(232, 238, 247, 0.98) 100%);
    border-bottom-color: rgba(31, 95, 168, 0.18);
}

[data-theme="light"] #mainNav.mode-nav {
    background: linear-gradient(180deg, rgba(245, 248, 253, 0.98) 0%, rgba(238, 243, 250, 0.99) 100%);
    border-color: rgba(31, 95, 168, 0.16);
    box-shadow: 0 10px 24px rgba(18, 40, 66, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .mode-nav-dropdown-menu {
    background: #e9eef5;
}

[data-theme="light"] .run-state-strip {
    background: linear-gradient(180deg, rgba(245, 248, 253, 0.97) 0%, rgba(238, 243, 250, 0.98) 100%);
    border-color: rgba(31, 95, 168, 0.18);
    box-shadow: 0 10px 24px rgba(18, 40, 66, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .main-content {
    border-color: rgba(31, 95, 168, 0.16);
    box-shadow: 0 10px 24px rgba(18, 40, 66, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .sidebar {
    border-right-color: rgba(31, 95, 168, 0.16);
}

[data-theme="light"] .section {
    border-color: rgba(31, 95, 168, 0.18);
    box-shadow: 0 2px 8px rgba(18, 40, 66, 0.06);
}

[data-theme="light"] .section:hover {
    border-color: rgba(31, 95, 168, 0.3);
    box-shadow: 0 4px 14px rgba(18, 40, 66, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .section h3 {
    background: linear-gradient(180deg, #ebf1fa 0%, #e4ecf8 100%);
    border-bottom-color: rgba(31, 95, 168, 0.14);
}

[data-theme="light"] .section h3::after {
    background: rgba(245, 248, 253, 0.95);
    border-color: rgba(31, 95, 168, 0.18);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(31, 95, 168, 0.18);
}

[data-theme="light"] .preset-btn,
[data-theme="light"] .control-btn,
[data-theme="light"] .clear-btn {
    border-color: rgba(31, 95, 168, 0.22);
    background: linear-gradient(180deg, rgba(245, 248, 253, 0.92) 0%, rgba(238, 243, 250, 0.94) 100%);
}

[data-theme="light"] .output-panel {
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.99) 0%, rgba(245, 248, 253, 0.99) 100%);
}

[data-theme="light"] .output-header {
    background: linear-gradient(180deg, rgba(238, 243, 250, 0.96) 0%, rgba(232, 238, 247, 0.98) 100%);
    border-bottom-color: rgba(31, 95, 168, 0.16);
    box-shadow: 0 10px 24px rgba(18, 40, 66, 0.08);
}

[data-theme="light"] .output-content {
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.7) 0%, rgba(250, 252, 255, 0.95) 100%);
}

[data-theme="light"] .stats > div {
    border-color: rgba(31, 95, 168, 0.18);
    background: linear-gradient(180deg, rgba(245, 248, 253, 0.85) 0%, rgba(240, 244, 250, 0.88) 100%);
}

[data-theme="light"] .message {
    border-color: rgba(31, 95, 168, 0.2);
    background: linear-gradient(180deg, rgba(248, 250, 253, 0.88) 0%, rgba(242, 246, 252, 0.9) 100%);
    box-shadow: 0 4px 12px rgba(18, 40, 66, 0.08);
}

[data-theme="light"] .status-bar {
    border-top-color: rgba(31, 95, 168, 0.18);
    background: linear-gradient(180deg, rgba(242, 246, 252, 0.97) 0%, rgba(235, 240, 248, 0.98) 100%);
    box-shadow: 0 10px 24px rgba(18, 40, 66, 0.08);
}

[data-theme="light"] .status-indicator,
[data-theme="light"] .control-group {
    border-color: rgba(31, 95, 168, 0.16);
    background: linear-gradient(180deg, rgba(245, 248, 253, 0.82) 0%, rgba(240, 244, 250, 0.85) 100%);
    box-shadow: 0 10px 24px rgba(18, 40, 66, 0.08);
}

[data-animations="off"] .mode-content.active {
    animation: none !important;
}

@media (max-width: 1023px) {
    .run-state-strip {
        margin-left: 8px;
        margin-right: 8px;
    }
}
