        /* =========================================================================
           THREE-COLUMN EPISTEMIC TRIAD GRID LAYOUT
           ========================================================================= */
        .app-layout {
            display: grid;
            grid-template-columns: 280px minmax(0, 1fr) 350px;
            min-height: 100vh;
            width: 100%;
            background-color: var(--canvas);
        }

        /* =========================================================================
           LEFT PANEL: CONSOLE MATRIX SIDEBAR
           ========================================================================= */
        aside.console-matrix-panel {
            width: 280px;
            min-width: 280px;
            max-width: 280px;
            min-height: 100vh;
            height: 100%;
            max-height: 100vh;
            position: sticky;
            top: 0;
            background: var(--surface);
            border-right: 1px solid var(--seam-border);
            display: flex;
            flex-direction: column;
            padding: 1.15rem 1rem;
            gap: 1.1rem;
            overflow-y: auto;
            z-index: 500;
            box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
        }

        /* Custom scrollbar for sidebar */
        aside.console-matrix-panel::-webkit-scrollbar {
            width: 4px;
        }
        aside.console-matrix-panel::-webkit-scrollbar-thumb {
            background: var(--seam-border);
            border-radius: 2px;
        }

        /* =========================================================================
           RIGHT FIXED COLUMN: COGNITIVE RADAR & B2B SPONSOR MATRIX PANEL
           ========================================================================= */
        aside.cognitive-radar-panel {
            width: 350px;
            min-width: 350px;
            max-width: 350px;
            min-height: 100vh;
            height: 100%;
            max-height: 100vh;
            position: sticky;
            top: 0;
            background: var(--surface);
            border-left: 1px solid var(--seam-border);
            display: flex;
            flex-direction: column;
            padding: 1.15rem 1rem;
            gap: 1rem;
            overflow-y: auto;
            z-index: 500;
            box-shadow: -4px 0 24px rgba(0, 0, 0, 0.4);
        }

        /* Custom scrollbar for radar panel */
        aside.cognitive-radar-panel::-webkit-scrollbar {
            width: 4px;
        }
        aside.cognitive-radar-panel::-webkit-scrollbar-thumb {
            background: var(--seam-border);
            border-radius: 2px;
        }
        aside.console-matrix-panel::-webkit-scrollbar-thumb {
            background: var(--seam-border);
            border-radius: 2px;
        }

        .console-header-block {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-bottom: 0.85rem;
            border-bottom: 1px solid var(--seam-border-subtle);
        }

        .console-brand-row {
            display: flex;
            align-items: center;
            gap: 0.65rem;
        }

        .console-logo-glyph {
            width: 28px;
            height: 28px;
            background: linear-gradient(135deg, var(--primary-container), var(--secondary-container));
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 12px var(--glow-cyan);
            color: var(--canvas);
            font-weight: 800;
            font-size: 0.95rem;
        }

        .console-brand-text {
            font-size: 0.95rem;
            font-weight: 700;
            letter-spacing: 0.05em;
            color: var(--text-primary);
        }

        .console-brand-text span {
            color: var(--primary);
        }

        .sidebar-brand-subtitle {
            font-size: 0.625rem;
            color: var(--text-muted);
            letter-spacing: 0.04em;
            margin-top: 1px;
        }

        .console-status-pill {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            background: rgba(16, 185, 129, 0.1);
            border: 1px solid rgba(16, 185, 129, 0.3);
            color: var(--secondary);
            font-size: 0.625rem;
            font-weight: 700;
            letter-spacing: 0.06em;
            padding: 0.2rem 0.5rem;
            border-radius: 9999px;
        }

        .telemetry-pulse-dot {
            width: 6px;
            height: 6px;
            background-color: var(--secondary-container);
            border-radius: 50%;
            box-shadow: 0 0 8px var(--secondary-container);
            animation: pulse-ring 2s infinite ease-in-out;
        }

        @keyframes pulse-ring {
            0% { transform: scale(0.95); opacity: 0.8; }
            50% { transform: scale(1.3); opacity: 1; }
            100% { transform: scale(0.95); opacity: 0.8; }
        }

        /* Sidebar Sections */
        .sidebar-section {
            display: flex;
            flex-direction: column;
            gap: 0.45rem;
        }

        .sidebar-section-title {
            font-size: 0.625rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--text-muted);
            font-weight: 700;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 0.2rem;
        }

        .sidebar-total-badge {
            font-size: 0.5625rem;
            color: var(--secondary);
            font-weight: 600;
        }

        /* Section 1: Navigation */
        .sidebar-nav-list {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }

        .sidebar-nav-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: var(--text-muted);
            text-decoration: none;
            font-size: 0.75rem;
            font-weight: 500;
            padding: 0.45rem 0.65rem;
            border-radius: var(--radius-sm);
            border: 1px solid transparent;
            background: transparent;
            cursor: pointer;
            transition: all 0.15s ease;
            width: 100%;
            text-align: left;
            font-family: inherit;
        }

        .sidebar-nav-item:hover, .sidebar-nav-item.active {
            color: var(--text-primary);
            background: var(--surface-container-low);
            border-color: var(--seam-border);
        }

        .sidebar-nav-item.active {
            border-left: 2px solid var(--primary);
            background: rgba(6, 182, 212, 0.06);
        }

        .sidebar-bookmarks-btn {
            border: 1px solid var(--seam-border-subtle);
            background: var(--surface-container-lowest);
        }

        .sidebar-badge-count {
            background: var(--primary-container);
            color: var(--canvas);
            font-size: 0.625rem;
            font-weight: 700;
            padding: 0.1rem 0.45rem;
            border-radius: 9999px;
            min-width: 18px;
            text-align: center;
        }

        /* Section 2: Macro Tracks */
        .sidebar-tracks-list {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }

        .sidebar-track-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.4rem 0.6rem;
            border-radius: var(--radius-sm);
            border: 1px solid var(--seam-border-subtle);
            background: var(--surface-container-low);
            font-size: 0.71875rem;
            color: var(--text-surface);
            cursor: pointer;
            transition: all 0.15s ease;
            user-select: none;
        }

        .sidebar-track-item:hover, .sidebar-track-item.active {
            border-color: var(--primary-container);
            background: rgba(6, 182, 212, 0.08);
            color: var(--text-primary);
        }

        .sidebar-track-item.active {
            border-left: 2px solid var(--primary);
        }

        .track-item-label {
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }

        .check-item-count {
            font-size: 0.625rem;
            color: var(--text-muted);
            background: var(--surface-container);
            padding: 0.1rem 0.35rem;
            border-radius: 2px;
        }

        /* Section 3: Evidence Ladder */
        .evidence-ladder-list {
            display: flex;
            flex-direction: column;
            gap: 0.3rem;
            background: var(--surface-container-lowest);
            border: 1px solid var(--seam-border-subtle);
            border-radius: var(--radius-sm);
            padding: 0.5rem 0.6rem;
        }

        .evidence-ladder-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.6875rem;
            color: var(--text-surface);
            cursor: pointer;
            user-select: none;
            padding: 0.15rem 0;
        }

        .evidence-ladder-item input[type="checkbox"] {
            accent-color: var(--primary);
            cursor: pointer;
        }

        .ladder-label {
            line-height: 1.3;
        }

        /* Section 4: ALEPH PRO Dossier Card */
        .pro-dossier-card {
            background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(245, 158, 11, 0.06));
            border: 1px solid rgba(6, 182, 212, 0.25);
            border-radius: var(--radius-sm);
            padding: 0.85rem;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
        }

        .pro-dossier-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .pro-dossier-badge {
            font-size: 0.5625rem;
            font-weight: 800;
            letter-spacing: 0.08em;
            color: var(--primary);
            text-transform: uppercase;
        }

        .pro-sparkle {
            font-size: 0.75rem;
        }

        .pro-dossier-title {
            font-size: 0.8125rem;
            font-weight: 700;
            color: var(--text-primary);
        }

        .pro-dossier-features {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 0.3rem;
            font-size: 0.65625rem;
            color: var(--text-muted);
            line-height: 1.35;
        }

        .pro-dossier-btn {
            margin-top: 0.25rem;
            background: rgba(6, 182, 212, 0.15);
            border: 1px solid var(--primary-container);
            color: var(--primary);
            font-size: 0.6875rem;
            font-weight: 700;
            padding: 0.35rem 0.6rem;
            border-radius: var(--radius-sm);
            cursor: pointer;
            text-align: center;
            transition: all 0.2s ease;
        }

        .pro-dossier-btn:hover {
            background: var(--primary-container);
            color: var(--canvas);
            box-shadow: 0 0 10px var(--glow-cyan);
        }

        @keyframes blink-cursor {
            0%, 50% { opacity: 1; }
            51%, 100% { opacity: 0; }
        }

        /* =========================================================================
           RIGHT VIEWPORT: MAIN RESEARCH WORKBENCH
           ========================================================================= */
        main.main-content-viewport {
            flex: 1;
            min-width: 0;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
        }


/* =========================================================================
   TOP HEADER & GLOBAL LAYOUT
   ========================================================================= */

        /* 1. Top Header */
        header.stitch-header {
            background-color: rgba(17, 19, 25, 0.94);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--seam-border);
            padding: 0.65rem 1.15rem;
            position: sticky;
            top: 0;
            z-index: 400;
            display: flex;
            flex-direction: column;
            gap: 0.55rem;
        }

        .header-top-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 0.6rem;
            flex-wrap: nowrap;
        }

        .brand-block {
            display: flex;
            align-items: center;
            gap: 0.55rem;
            flex-shrink: 0;
        }

        .brand-logo-glyph {
            width: 26px;
            height: 26px;
            background: linear-gradient(135deg, var(--primary-container), var(--secondary-container));
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 12px var(--glow-cyan);
            color: var(--canvas);
            font-weight: 800;
            font-size: 0.9rem;
        }

        .brand-title {
            font-size: 0.875rem;
            font-weight: 700;
            letter-spacing: 0.06em;
            color: var(--text-primary);
            text-transform: uppercase;
            font-family: 'Geist', -apple-system, sans-serif;
            white-space: nowrap;
        }

        .brand-title span {
            color: var(--primary);
        }

        .edition-pill, .wal-badge {
            font-size: 0.625rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            padding: 0.2rem 0.5rem;
            border-radius: var(--radius-sm);
            background: rgba(6, 182, 212, 0.1);
            border: 1px solid rgba(6, 182, 212, 0.3);
            color: var(--primary);
            font-weight: 700;
            font-family: 'JetBrains Mono', monospace;
            white-space: nowrap;
        }

        .telemetry-capsule {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            background: rgba(12, 14, 20, 0.85);
            border: 1px solid rgba(16, 185, 129, 0.28);
            padding: 0.3rem 0.8rem;
            border-radius: 9999px;
            font-size: 0.65rem;
            font-family: 'JetBrains Mono', monospace;
            letter-spacing: 0.04em;
            color: var(--text-surface);
            box-shadow: 0 0 14px rgba(16, 185, 129, 0.08);
            white-space: nowrap;
            flex-shrink: 1;
            max-width: 380px;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        @media (max-width: 1980px) {
            .telemetry-capsule {
                display: none !important;
            }
        }

        @media (max-width: 1750px) {
            header.stitch-header .edition-pill {
                display: none !important;
            }
        }

        .header-controls {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            flex-shrink: 0;
            margin-left: auto;
        }

        /* Font Size Customization Control in Top Header */
        .font-size-control {
            display: inline-flex;
            align-items: center;
            background: var(--surface-container-lowest);
            border: 1px solid var(--seam-border);
            border-radius: var(--radius-sm);
            padding: 2px;
            gap: 1px;
        }

        .btn-font-step,
        .btn-font-indicator {
            background: transparent;
            border: none;
            color: var(--text-primary);
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.6875rem;
            font-weight: 700;
            padding: 0.25rem 0.45rem;
            cursor: pointer;
            border-radius: 2px;
            transition: all 0.15s ease;
            line-height: 1.1;
            user-select: none;
        }

        .btn-font-indicator {
            color: var(--primary);
            font-size: 0.65rem;
            min-width: 42px;
            text-align: center;
            border-left: 1px solid var(--seam-border-subtle);
            border-right: 1px solid var(--seam-border-subtle);
        }

        .btn-font-step:hover:not(:disabled),
        .btn-font-indicator:hover {
            background: var(--surface-container);
            color: var(--primary);
        }

        .btn-font-step:disabled {
            opacity: 0.35;
            cursor: not-allowed;
        }

        .search-box {
            position: relative;
            display: flex;
            align-items: center;
        }

        .search-input {
            background: var(--surface-container-lowest);
            border: 1px solid var(--seam-border-subtle);
            color: var(--text-primary);
            padding: 0.35rem 2rem 0.35rem 0.65rem;
            font-size: 0.75rem;
            font-family: 'JetBrains Mono', monospace;
            border-radius: var(--radius-sm);
            width: 100%;
            transition: all 0.2s ease;
        }

        .search-input:focus {
            outline: none;
            border-color: var(--primary-container);
            box-shadow: 0 0 8px var(--glow-cyan);
        }

        .search-kbd {
            position: absolute;
            right: 0.5rem;
            font-size: 0.6rem;
            color: var(--text-dim);
            background: var(--surface-container);
            padding: 0.15rem 0.3rem;
            border-radius: 2px;
            pointer-events: none;
        }

        .segmented-lang-pill {
            display: inline-flex;
            background: var(--surface-container-lowest);
            border: 1px solid var(--seam-border);
            border-radius: var(--radius-sm);
            padding: 2px;
        }

        .segmented-lang-pill button {
            background: transparent;
            border: none;
            color: var(--text-muted);
            padding: 0.25rem 0.6rem;
            font-size: 0.6875rem;
            font-weight: 600;
            font-family: 'JetBrains Mono', monospace;
            cursor: pointer;
            border-radius: 2px;
            transition: all 0.15s ease;
        }

        .segmented-lang-pill button.active {
            background: var(--primary-container);
            color: var(--canvas);
            box-shadow: 0 0 8px var(--glow-cyan);
            font-weight: 700;
        }

        /* Filter Tracks Bar (Liquidated in v4.1 The Epistemic Triad) */
        .filter-tracks-bar {
            display: none !important;
        }

        /* 2. FLAGSHIP HERO: THE DAILY BREAKTHROUGH STUDIO */

/* HERO STUDIO CONTAINER */

        .hero-breakthrough-studio {
            padding: 2rem 2.5rem;
            border-bottom: 1px solid var(--seam-border);
            background: linear-gradient(180deg, rgba(13, 19, 34, 0.8) 0%, rgba(7, 9, 14, 0.95) 100%);
            position: relative;
        }

        .hero-edition-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1rem;
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .hero-edition-bar-left {
            display: inline-flex;
            align-items: center;
            gap: 0.65rem;
            flex-wrap: wrap;
        }

        .edition-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(245, 158, 11, 0.1);
            border: 1px solid rgba(245, 158, 11, 0.35);
            padding: 0.3rem 0.75rem;
            border-radius: var(--radius-sm);
            color: var(--tertiary);
            font-size: 0.6875rem;
            font-weight: 600;
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }

        .edition-telemetry-tags {
            display: flex;
            gap: 0.75rem;
            font-size: 0.6875rem;
            color: var(--text-muted);
        }

        .edition-telemetry-tags span {
            color: var(--primary);
        }

        .hero-editorial-title {
            font-size: calc(2.15rem * var(--font-scale, 1));
            font-weight: 700;
            line-height: 1.24;
            letter-spacing: -0.025em;
            color: var(--text-primary);
            margin-bottom: 0.75rem;
            max-width: 1400px;
        }

        .hero-paper-meta-row {
            display: flex;
            align-items: center;
            gap: 0.85rem;
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-bottom: 1.75rem;
            flex-wrap: wrap;
        }

        .meta-pill {
            background: var(--surface-container);
            padding: 0.15rem 0.5rem;
            border-radius: 2px;
            border: 1px solid var(--seam-border-subtle);
        }

        .meta-impact {
            color: var(--secondary);
            font-weight: 600;
        }


/* FOOTER */

        /* 6. Footer */
        footer.stitch-footer {
            border-top: 1px solid var(--seam-border);
            padding: 1.25rem 2.5rem;
            background: var(--surface);
            font-size: 0.6875rem;
            color: var(--text-muted);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .footer-left {
            display: flex;
            align-items: center;
            gap: 1.25rem;
        }

        .footer-status-indicator {
            color: var(--secondary);
            font-weight: 600;
        }

        /* Tooltip */
        #tooltip {
            position: absolute;
            opacity: 0;
            background: rgba(17, 19, 25, 0.95);
            border: 1px solid var(--seam-border);
            padding: 0.5rem 0.75rem;
            border-radius: var(--radius-sm);
            font-size: 0.75rem;
            color: var(--text-primary);
            pointer-events: none;
            transition: opacity 0.15s ease;
            z-index: 2000;
            box-shadow: 0 4px 20px rgba(0,0,0,0.6);
        }

        /* =========================================================================
           RESPONSIVE BREAKPOINTS: EPISTEMIC TRIAD ADAPTATION
           ========================================================================= */
        @media (max-width: 1200px) {
            .app-layout {
                grid-template-columns: 260px minmax(0, 1fr);
            }
            aside.console-matrix-panel {
                width: 260px;
                min-width: 260px;
                max-width: 260px;
            }
            aside.cognitive-radar-panel {
                display: none;
            }
        }

        @media (max-width: 768px) {
            .app-layout {
                grid-template-columns: minmax(0, 1fr);
            }
            aside.console-matrix-panel {
                display: none;
            }
            aside.cognitive-radar-panel {
                display: none;
            }
        }

        /* =========================================================================
           THEMATIC AUDIO HUB (v5.1): 5 CARDS ADAPTIVE GRID & CONTROLS
           ========================================================================= */
        .headliners-grid-5 {
            display: grid;
            grid-template-columns: repeat(5, 1fr) !important;
            gap: 1rem;
            align-items: stretch;
        }

        @media (max-width: 1400px) {
            .headliners-grid-5 {
                grid-template-columns: repeat(3, 1fr) !important;
            }
        }

        @media (max-width: 950px) {
            .headliners-grid-5 {
                grid-template-columns: repeat(2, 1fr) !important;
            }
        }

        @media (max-width: 640px) {
            .headliners-grid-5 {
                grid-template-columns: 1fr !important;
            }
        }

        .thematic-track-card {
            padding: 1.1rem;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-height: 380px;
            border: 1px solid rgba(6, 182, 212, 0.25);
            background: rgba(17, 19, 25, 0.7);
            border-radius: var(--radius-md, 8px);
            transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
            position: relative;
        }

        .thematic-track-card:hover {
            transform: translateY(-2px);
            border-color: var(--primary, #06b6d4);
            box-shadow: 0 8px 24px -4px rgba(6, 182, 212, 0.18);
        }

        .thematic-track-card.active-playing {
            border-color: #10b981;
            box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
        }

        .btn-play-thematic-audio {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            width: 100%;
            padding: 0.5rem 0.75rem;
            background: rgba(6, 182, 212, 0.12);
            border: 1px solid rgba(6, 182, 212, 0.4);
            color: var(--primary, #06b6d4);
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.72rem;
            font-weight: 700;
            border-radius: var(--radius-sm, 4px);
            cursor: pointer;
            transition: all 0.2s ease;
            text-transform: uppercase;
            letter-spacing: 0.03em;
            margin-bottom: 0.4rem;
        }

        .btn-play-thematic-audio:hover {
            background: var(--primary, #06b6d4);
            color: #0d1117;
            box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
        }

        .btn-play-thematic-audio.playing {
            background: rgba(16, 185, 129, 0.2);
            border-color: #10b981;
            color: #10b981;
        }

        .btn-read-deep-dossier {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            padding: 0.4rem 0.65rem;
            background: transparent;
            border: 1px solid var(--seam-border-subtle, rgba(255, 255, 255, 0.1));
            color: var(--text-surface, #94a3b8);
            font-size: 0.6875rem;
            font-weight: 600;
            border-radius: var(--radius-sm, 4px);
            cursor: pointer;
            transition: all 0.15s ease;
            text-align: center;
        }

        .btn-read-deep-dossier:hover {
            color: var(--text-primary, #ffffff);
            border-color: var(--seam-border, rgba(255, 255, 255, 0.25));
            background: var(--surface-container-low, rgba(255, 255, 255, 0.05));
        }

        .mini-audio-wave {
            display: inline-flex;
            align-items: flex-end;
            gap: 2px;
            height: 12px;
            margin-left: 4px;
        }

        .wave-bar {
            width: 2px;
            height: 100%;
            background-color: currentColor;
            border-radius: 1px;
            animation: wavePulse 1s infinite ease-in-out;
        }

        .wave-bar:nth-child(2) { animation-delay: 0.2s; }
        .wave-bar:nth-child(3) { animation-delay: 0.4s; }
        .wave-bar:nth-child(4) { animation-delay: 0.1s; }

        @keyframes wavePulse {
            0%, 100% { height: 20%; }
            50% { height: 100%; }
        }

        .hero-weekly-gold {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.05) 100%) !important;
            border-color: rgba(245, 158, 11, 0.4) !important;
            box-shadow: 0 8px 32px rgba(245, 158, 11, 0.12) !important;
        }

        .badge-weekly-edition {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            background: rgba(245, 158, 11, 0.2);
            border: 1px solid rgba(245, 158, 11, 0.6);
            color: #fbbf24;
            padding: 0.25rem 0.65rem;
            border-radius: var(--radius-sm, 4px);
            font-size: 0.6875rem;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        /* =========================================================================
           DAILY EDITIONS HISTORY NAVIGATOR BAR
           ========================================================================= */
        .editions-history-nav {
            background: var(--surface);
            border-bottom: 1px solid var(--seam-border);
            padding: 0.55rem 1.15rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.65rem;
            position: relative;
            z-index: 300;
            transition: background-color 0.2s ease, border-color 0.2s ease;
        }

        .editions-nav-container {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.65rem;
            flex-wrap: nowrap;
        }

        .editions-nav-left {
            display: flex;
            align-items: center;
            gap: 0.55rem;
            position: relative;
            flex-shrink: 0;
        }

        .editions-history-label {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            font-size: 0.65rem;
            font-weight: 700;
            letter-spacing: 0.06em;
            color: var(--text-muted);
            text-transform: uppercase;
            white-space: nowrap;
        }

        .edition-selector-dropdown-wrapper {
            position: relative;
        }

        .btn-edition-selector {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            background: var(--surface-container-lowest);
            border: 1px solid var(--seam-border);
            color: var(--text-primary);
            padding: 0.38rem 0.65rem;
            border-radius: var(--radius-sm);
            font-size: 0.75rem;
            font-weight: 600;
            font-family: 'JetBrains Mono', monospace;
            cursor: pointer;
            transition: all 0.15s ease;
            white-space: nowrap;
        }

        .btn-edition-selector:hover {
            border-color: var(--primary);
            background: var(--surface-container-low);
            box-shadow: 0 0 10px var(--glow-cyan);
        }

        .dropdown-chevron {
            font-size: 0.75rem;
            color: var(--text-muted);
            transition: transform 0.2s ease;
        }

        .editions-dropdown-menu {
            position: absolute;
            top: calc(100% + 6px);
            left: 0;
            min-width: 380px;
            max-width: 440px;
            max-height: 420px;
            overflow-y: auto;
            background: var(--surface);
            border: 1px solid var(--seam-border);
            border-radius: var(--radius-md);
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
            z-index: 600;
            display: none;
            flex-direction: column;
            padding: 0.4rem;
            gap: 0.35rem;
        }

        .editions-dropdown-menu.show {
            display: flex;
            animation: fadeInDropdown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @keyframes fadeInDropdown {
            from { opacity: 0; transform: translateY(-4px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .edition-menu-item {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
            padding: 0.55rem 0.75rem;
            border-radius: var(--radius-sm);
            border: 1px solid transparent;
            background: var(--surface-container-lowest);
            cursor: pointer;
            transition: all 0.15s ease;
            text-align: left;
            font-family: inherit;
            color: var(--text-surface);
        }

        .edition-menu-item:hover {
            background: var(--surface-container);
            border-color: var(--seam-border);
        }

        .edition-menu-item.active {
            border-color: var(--primary);
            background: rgba(6, 182, 212, 0.08);
        }

        .edition-item-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.5rem;
        }

        .edition-item-date {
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--text-primary);
        }

        .edition-item-headline {
            font-size: 0.6875rem;
            color: var(--text-muted);
            line-height: 1.35;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .edition-item-badges {
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }

        .edition-audio-pill {
            font-size: 0.5625rem;
            font-weight: 600;
            padding: 0.1rem 0.35rem;
            border-radius: 3px;
            background: rgba(16, 185, 129, 0.15);
            color: var(--secondary);
            border: 1px solid rgba(16, 185, 129, 0.3);
        }

        .editions-nav-search {
            flex: 1 1 360px;
            max-width: 520px;
            min-width: 270px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .search-box-lower {
            width: 100%;
            position: relative;
            display: flex;
            align-items: center;
        }

        .search-icon-prefix {
            position: absolute;
            left: 0.7rem;
            font-size: 0.75rem;
            pointer-events: none;
            opacity: 0.75;
            z-index: 2;
        }

        .search-box-lower .search-input {
            width: 100% !important;
            padding: 0.38rem 125px 0.38rem 2.0rem !important;
            font-size: 0.75rem;
            background: var(--surface-container-lowest);
            border: 1px solid var(--seam-border);
            color: var(--text-primary);
            border-radius: var(--radius-sm);
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .search-box-lower .search-input:focus {
            width: 100% !important;
            border-color: var(--primary);
            box-shadow: 0 0 10px var(--glow-cyan);
        }

        .search-box-actions {
            position: absolute;
            right: 0.4rem;
            display: flex;
            align-items: center;
            gap: 0.3rem;
            z-index: 3;
            pointer-events: auto;
        }

        .search-box-actions .search-kbd {
            position: static;
        }

        .editions-nav-controls {
            display: flex;
            align-items: center;
            gap: 0.38rem;
            flex-shrink: 0;
        }

        .btn-edition-nav {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            background: var(--surface-container-lowest);
            border: 1px solid var(--seam-border);
            color: var(--text-surface);
            padding: 0.38rem 0.58rem;
            border-radius: var(--radius-sm);
            font-size: 0.72rem;
            font-weight: 600;
            font-family: 'JetBrains Mono', monospace;
            cursor: pointer;
            transition: all 0.15s ease;
            white-space: nowrap;
        }

        .btn-edition-nav:hover:not(:disabled) {
            border-color: var(--primary);
            color: var(--primary);
            background: var(--surface-container);
        }

        .btn-edition-nav:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            border-color: var(--seam-border-subtle);
        }

        .btn-edition-today {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            background: rgba(16, 185, 129, 0.12);
            border: 1px solid rgba(16, 185, 129, 0.35);
            color: var(--secondary);
            padding: 0.38rem 0.58rem;
            border-radius: var(--radius-sm);
            font-size: 0.72rem;
            font-weight: 700;
            font-family: 'JetBrains Mono', monospace;
            cursor: pointer;
            transition: all 0.15s ease;
            white-space: nowrap;
        }

        .btn-edition-today:hover {
            background: rgba(16, 185, 129, 0.22);
            box-shadow: 0 0 10px var(--glow-emerald);
        }

        .edition-count-indicator {
            font-size: 0.6875rem;
            font-weight: 600;
            color: var(--text-muted);
            font-family: 'JetBrains Mono', monospace;
        }

        /* =========================================================================
           TOP LUXURY MULTI-THEME SELECTOR CAPSULE & DROPDOWN MENU
           ========================================================================= */
        .theme-selector-wrap {
            position: relative;
            display: inline-block;
        }

        .btn-theme-toggle {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            background: var(--surface-container);
            border: 1px solid var(--seam-border);
            color: var(--text-primary);
            padding: 0.35rem 0.75rem;
            border-radius: var(--radius-sm);
            font-size: 0.75rem;
            font-weight: 600;
            font-family: var(--font-mono);
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
        }

        .btn-theme-toggle:hover {
            border-color: var(--primary);
            color: var(--primary);
            box-shadow: 0 0 14px var(--glow-accent);
            background: var(--surface-container-high);
        }

        .theme-icon {
            font-size: 0.85rem;
            line-height: 1;
        }

        .theme-chevron {
            font-size: 0.65rem;
            opacity: 0.7;
            margin-left: 0.15rem;
            transition: transform 0.2s ease;
        }

        .theme-dropdown-menu {
            position: absolute;
            top: calc(100% + 0.45rem);
            right: 0;
            width: 310px;
            background: var(--surface);
            border: 1px solid var(--seam-border);
            border-radius: var(--radius-md);
            box-shadow: 0 16px 48px -6px rgba(0, 0, 0, 0.80), 0 0 0 1px var(--seam-border-subtle);
            z-index: 1000;
            padding: 0.5rem;
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            animation: themeMenuIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @keyframes themeMenuIn {
            from {
                opacity: 0;
                transform: translateY(-6px) scale(0.97);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .theme-menu-header {
            padding: 0.4rem 0.6rem 0.5rem;
            font-size: 0.625rem;
            font-family: var(--font-mono);
            font-weight: 700;
            letter-spacing: 0.08em;
            color: var(--text-muted);
            border-bottom: 1px solid var(--seam-border-subtle);
            margin-bottom: 0.35rem;
        }

        .theme-menu-list {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }

        .theme-option-item {
            display: flex;
            align-items: center;
            gap: 0.65rem;
            padding: 0.55rem 0.65rem;
            background: transparent;
            border: 1px solid transparent;
            border-radius: var(--radius-sm);
            color: var(--text-surface);
            text-align: left;
            cursor: pointer;
            transition: all 0.15s ease;
            width: 100%;
        }

        .theme-option-item:hover {
            background: var(--surface-container-high);
            border-color: var(--seam-border-subtle);
        }

        .theme-option-item.active {
            background: var(--surface-container);
            border-color: var(--primary);
            box-shadow: 0 0 12px var(--glow-accent);
        }

        .theme-swatch {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            flex-shrink: 0;
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
        }

        .swatch-champagne {
            background: radial-gradient(circle at 30% 30%, #fbbf24, #b45309 85%, #07080b);
            border-color: rgba(251, 191, 36, 0.7);
        }

        .swatch-titanium {
            background: radial-gradient(circle at 30% 30%, #ffffff, #64748b 85%, #08090c);
            border-color: rgba(255, 255, 255, 0.7);
        }

        .swatch-emerald {
            background: radial-gradient(circle at 30% 30%, #34d399, #065f46 85%, #050c0a);
            border-color: rgba(52, 211, 153, 0.7);
        }

        .swatch-cyber {
            background: radial-gradient(circle at 30% 30%, #38bdf8, #1e1b4b 85%, #07090e);
            border-color: rgba(56, 189, 248, 0.7);
        }

        .swatch-light {
            background: radial-gradient(circle at 30% 30%, #ffffff, #e2e8f0 85%, #0284c7);
            border-color: rgba(0, 0, 0, 0.2);
        }

        .theme-option-info {
            flex-grow: 1;
            min-width: 0;
        }

        .theme-option-title {
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }

        .theme-option-sub {
            font-size: 0.625rem;
            color: var(--text-muted);
            margin-top: 0.15rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .theme-check {
            font-size: 0.8rem;
            color: var(--primary);
            opacity: 0;
            transition: opacity 0.15s ease;
        }

        .theme-option-item.active .theme-check {
            opacity: 1;
        }

        /* =========================================================================
           LIGHT THEME OVERRIDES FOR LAYOUT & PANELS (PURE BLACK CONTRAST)
           ========================================================================= */
        [data-theme="light"] header.stitch-header {
            background-color: rgba(255, 255, 255, 0.97);
            box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
        }

        [data-theme="light"] .telemetry-capsule {
            background: #f1f5f9;
            border-color: rgba(5, 150, 105, 0.35);
            color: #000000;
            font-weight: 600;
        }

        [data-theme="light"] aside.console-matrix-panel {
            background: #ffffff;
            box-shadow: 4px 0 20px rgba(0, 0, 0, 0.04);
        }

        [data-theme="light"] aside.cognitive-radar-panel {
            background: #ffffff;
            box-shadow: -4px 0 20px rgba(0, 0, 0, 0.04);
        }

        [data-theme="light"] .glass-panel {
            background: #ffffff;
            border-color: rgba(14, 116, 144, 0.24);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
        }

        [data-theme="light"] .compact-audio-bar {
            background: #ffffff;
            border-color: rgba(14, 116, 144, 0.26);
            box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
        }

        [data-theme="light"] .compact-waveform {
            background: #f1f5f9 !important;
            border-color: #cbd5e1;
        }

        [data-theme="light"] .compact-waveform .wave-bar {
            background: #94a3b8;
        }

        [data-theme="light"] .compact-waveform .wave-bar.active {
            background: var(--primary);
        }

        [data-theme="light"] .search-input {
            background: #ffffff !important;
            color: #000000 !important;
            border-color: #94a3b8 !important;
            font-weight: 500;
        }

        [data-theme="light"] .search-input::placeholder {
            color: #475569 !important;
        }

        [data-theme="light"] .search-kbd {
            background: #f1f5f9;
            color: #1e293b;
            border-color: #cbd5e1;
        }

        [data-theme="light"] .editions-dropdown-menu {
            background: #ffffff;
            border-color: #94a3b8;
            box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
        }

        [data-theme="light"] .edition-menu-item {
            background: #f8fafc;
            color: #000000;
        }

        [data-theme="light"] .edition-menu-item:hover {
            background: #f1f5f9;
        }

        [data-theme="light"] .edition-menu-item.active {
            background: rgba(2, 132, 199, 0.10);
            border-color: var(--primary);
        }

        [data-theme="light"] .headliner-card {
            background: #ffffff;
            border-color: rgba(14, 116, 144, 0.24);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
        }

        [data-theme="light"] .newsroom-card,
        [data-theme="light"] .research-paper-card,
        [data-theme="light"] .paper-card {
            background: #ffffff !important;
            border-color: rgba(14, 116, 144, 0.22) !important;
            box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
        }

        [data-theme="light"] .radar-telemetry-box {
            background: #f8fafc;
            border-color: #cbd5e1;
            color: #000000;
        }

        [data-theme="light"] .user-profile-dropdown {
            background: #ffffff;
            color: #000000;
            border-color: #94a3b8;
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
        }

        [data-theme="light"] .hero-breakthrough-studio {
            background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%) !important;
            border-bottom: 1px solid var(--seam-border);
        }

        [data-theme="light"] .hero-editorial-title {
            color: #000000 !important;
        }

        [data-theme="light"] .meta-pill {
            background: #ffffff !important;
            border-color: #94a3b8 !important;
            color: #000000 !important;
            font-weight: 600;
        }

        [data-theme="light"] .unified-hero-card {
            background: #ffffff !important;
            border-color: rgba(14, 116, 144, 0.25) !important;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 0 20px rgba(2, 132, 199, 0.06) !important;
        }

        [data-theme="light"] .takeaway-item {
            background: #f8fafc !important;
            border-color: #cbd5e1 !important;
            color: #000000 !important;
            font-weight: 500;
        }

        [data-theme="light"] .takeaway-item:hover {
            background: #f1f5f9 !important;
            border-color: rgba(5, 150, 105, 0.45) !important;
        }

        [data-theme="light"] .btn-action-outline {
            background: #f8fafc !important;
            border-color: #94a3b8 !important;
            color: #000000 !important;
            font-weight: 600;
        }

        [data-theme="light"] .btn-action-outline:hover {
            border-color: var(--primary) !important;
            color: var(--primary) !important;
            background: #f1f5f9 !important;
        }

        [data-theme="light"] #graph-container,
        [data-theme="light"] #graph-container svg,
        [data-theme="light"] #radarSvg {
            background: #ffffff !important;
            border-radius: var(--radius-sm);
        }

        [data-theme="light"] .eli5-accordion {
            background: #f8fafc !important;
            border-color: #94a3b8 !important;
        }

        [data-theme="light"] .eli5-accordion summary {
            background: #f1f5f9 !important;
            color: #000000 !important;
            border-color: #cbd5e1 !important;
            font-weight: 700 !important;
        }

        [data-theme="light"] .eli5-content {
            background: #ffffff !important;
            color: #000000 !important;
            border-top-color: #cbd5e1 !important;
        }

        [data-theme="light"] .news-lead {
            color: #000000 !important;
        }

        [data-theme="light"] .news-para,
        [data-theme="light"] .news-paragraph {
            color: #000000 !important;
        }

        [data-theme="light"] .portal-master-footer {
            background: #f1f5f9 !important;
            border-top-color: #cbd5e1 !important;
            box-shadow: none !important;
        }




