        :root {
            --research-bg: #060813;
            --panel-bg: #0a0f20;
            --card-bg: #10182e;
            --card-border: rgba(255, 255, 255, 0.08);
            --card-border-glow: rgba(56, 189, 248, 0.22);
            --accent-cyan: #38bdf8;
            --accent-blue: #3b82f6;
            --accent-green: #10b981;
            --accent-amber: #f59e0b;
            --accent-purple: #a855f7;
            --accent-coral: #f43f5e;
        }

        html, body {
            min-height: 100%;
            margin: 0 !important;
            padding: 0 !important;
            background-color: var(--research-bg) !important;
            color: #f8fafc !important;
            font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
            overscroll-behavior-y: auto !important;
            -webkit-overflow-scrolling: touch;
            letter-spacing: -0.01em;
        }

        .main-content {
            display: flex;
            flex-direction: column;
            height: 100vh;
            height: 100dvh;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior-y: auto;
            flex: 1;
            min-width: 0;
            box-sizing: border-box;
            padding-bottom: 0;
            background: #060813;
        }

        /* --- 🔬 PRECISION LABORATORY CONSOLE HEADER --- */
        #researchHeader {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 0 18px;
            height: 56px;
            min-height: 56px;
            background: linear-gradient(90deg, #090e1c 0%, #0d152a 100%);
            border-bottom: 1px solid rgba(56, 189, 248, 0.18);
            box-sizing: border-box;
            width: 100%;
            z-index: 50;
            flex-shrink: 0;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
        }

        .header-back-btn, .header-refresh-btn {
            font-size: 0.8rem;
            font-weight: 600;
            padding: 6px 12px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: #cbd5e1;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 8px;
            text-decoration: none;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            flex-shrink: 0;
        }

        .header-back-btn:hover, .header-refresh-btn:hover {
            color: #ffffff;
            background: rgba(56, 189, 248, 0.15);
            border-color: rgba(56, 189, 248, 0.4);
            box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
        }

        .header-refresh-btn:active i {
            transform: rotate(180deg);
            transition: transform 0.3s ease;
        }

        .research-header-title {
            font-size: 0.98rem;
            font-weight: 700;
            color: #ffffff;
            margin: 0;
            flex: 1 1 auto;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 8px;
            letter-spacing: -0.01em;
        }

        .header-tag {
            font-size: 0.68rem;
            font-weight: 700;
            font-family: 'JetBrains Mono', monospace;
            background: rgba(56, 189, 248, 0.12);
            color: var(--accent-cyan);
            border: 1px solid rgba(56, 189, 248, 0.3);
            border-radius: 6px;
            padding: 2px 8px;
            flex-shrink: 0;
            letter-spacing: 0.3px;
        }

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

        .btn-create-lab {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            background: rgba(99, 102, 241, 0.16);
            border: 1px solid rgba(99, 102, 241, 0.4);
            color: #a5b4fc;
            padding: 6px 12px;
            border-radius: 8px;
            text-decoration: none;
            font-size: 0.82rem;
            font-weight: 600;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            white-space: nowrap;
            flex-shrink: 0;
        }

        .btn-create-lab:hover {
            background: rgba(99, 102, 241, 0.28);
            border-color: rgba(99, 102, 241, 0.7);
            color: #ffffff;
            box-shadow: 0 0 14px rgba(99, 102, 241, 0.35);
        }

        .btn-create-lab i {
            font-size: 0.95rem;
        }

        .btn-edit-lab {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: #e2e8f0;
            padding: 6px 12px;
            border-radius: 8px;
            text-decoration: none;
            font-size: 0.82rem;
            font-weight: 600;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            white-space: nowrap;
            flex-shrink: 0;
        }

        .btn-edit-lab:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.25);
            color: #ffffff;
        }

        .btn-edit-lab i {
            font-size: 0.95rem;
        }



        /* --- 2-COLUMN VIEW LAYOUT (DESKTOP) --- */
        #research-view-scroll.research-view-layout {
            display: flex;
            flex-direction: row;
            height: calc(100vh - 60px);
            overflow: hidden;
            width: 100%;
            box-sizing: border-box;
            flex: 1;
        }

        /* LEFT COLUMN: INTERACTIVE LAB VIEWER */
        .lab-viewer-pane {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            background: radial-gradient(circle at 50% 15%, #0f172e 0%, #070b16 100%);
            padding: 16px 20px !important;
            overflow-y: auto;
            box-sizing: border-box;
            gap: 14px;
        }

        /* 🎬 16:9 MEDIA DISPLAY SCREEN (COURSEVIEW STANDARD) */
        .lesson-content-display {
            width: 100%;
            aspect-ratio: 16 / 9;
            max-height: 480px;
            background: #020409;
            border: 1px solid rgba(56, 189, 248, 0.28);
            border-bottom: none;
            border-top-left-radius: 12px;
            border-top-right-radius: 12px;
            overflow: hidden;
            display: flex;
            align-items: stretch;
            justify-content: center;
            position: relative;
            box-sizing: border-box;
            margin: 0 !important;
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65), 0 0 25px rgba(56, 189, 248, 0.08);
        }

        .sim-wrapper {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100%;
            height: 100%;
            display: flex;
            background: #020409;
        }

        .sim-canvas {
            width: 100%;
            height: 100%;
            display: block;
        }

        /* 📄 DOCUMENT VIEWER (INSIDE 16:9 SCREEN) */
        .research-document-viewer {
            width: 100%;
            height: 100%;
            overflow-y: auto;
            padding: 20px 24px;
            background: #080a11;
            box-sizing: border-box;
            color: #e2e8f0;
            line-height: 1.6;
        }

        .doc-header-block {
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding-bottom: 12px;
            margin-bottom: 14px;
        }

        .doc-paper-title {
            font-size: 1.15rem;
            font-weight: 800;
            color: #ffffff;
            margin: 0 0 6px 0;
        }

        .doc-meta-row {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 0.74rem;
            color: #94a3b8;
            flex-wrap: wrap;
        }

        .doc-section {
            margin-bottom: 16px;
        }

        .doc-section-title {
            font-size: 0.88rem;
            font-weight: 700;
            color: var(--accent-cyan);
            margin: 0 0 8px 0;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .doc-equation-box {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-left: 3px solid var(--accent-cyan);
            border-radius: 6px;
            padding: 10px 14px;
            margin: 10px 0;
            font-size: 0.92rem;
            overflow-x: auto;
        }

        .doc-table-wrap {
            overflow-x: auto;
            margin: 12px 0;
        }

        .doc-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.76rem;
            font-family: 'JetBrains Mono', monospace;
        }

        .doc-table th, .doc-table td {
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 6px 10px;
            text-align: left;
        }

        .doc-table th {
            background: rgba(255, 255, 255, 0.06);
            color: #38bdf8;
        }

        /* 📑 PDF REPORT VIEWER (INSIDE 16:9 SCREEN) */
        .research-pdf-viewer {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            background: #181920;
            box-sizing: border-box;
            position: relative;
        }

        .pdf-toolbar-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 14px;
            background: #0f1118;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 0.76rem;
            color: #cbd5e1;
            flex-shrink: 0;
        }

        .pdf-page-scroll {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 16px;
        }

        .pdf-sheet-page {
            width: 100%;
            max-width: 600px;
            background: #ffffff;
            color: #0f172a;
            border-radius: 4px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
            padding: 24px 28px;
            box-sizing: border-box;
            font-family: 'Times New Roman', Times, serif;
            font-size: 0.82rem;
            line-height: 1.5;
            position: relative;
        }

        .pdf-sheet-watermark {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) rotate(-30deg);
            font-size: 3rem;
            font-weight: 900;
            color: rgba(0, 0, 0, 0.04);
            pointer-events: none;
            user-select: none;
            white-space: nowrap;
        }

        /* 💻 CODE VIEWER (INSIDE 16:9 SCREEN) */
        .research-code-viewer {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            background: #09090b;
            box-sizing: border-box;
        }

        .code-toolbar-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 12px;
            background: #11131a;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            font-size: 0.74rem;
            color: #94a3b8;
            flex-shrink: 0;
        }

        .code-pre-block {
            margin: 0;
            flex: 1;
            overflow: auto;
            padding: 14px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.76rem;
            line-height: 1.6;
            color: #38bdf8;
            background: #05060a;
        }

        /* 🎛️ Parameter Tuning Controls Bar (Precision Instrument Panel) */
        .media-docked-controls {
            width: 100%;
            background: linear-gradient(180deg, #0e162c 0%, #080d1a 100%);
            border: 1px solid rgba(56, 189, 248, 0.22);
            border-top: 1px solid rgba(56, 189, 248, 0.12);
            border-bottom-left-radius: 12px;
            border-bottom-right-radius: 12px;
            padding: 12px 18px;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 18px;
            box-sizing: border-box;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
            margin: 0 0 8px 0;
        }

        .param-group {
            display: flex;
            flex-direction: column;
            gap: 5px;
            min-width: 0;
        }

        .param-group-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.72rem;
            font-weight: 700;
            color: #cbd5e1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            gap: 4px;
            text-transform: uppercase;
            letter-spacing: 0.4px;
        }

        .param-val-badge {
            font-family: 'JetBrains Mono', monospace;
            font-weight: 700;
            color: var(--accent-cyan);
            font-size: 0.74rem;
            flex-shrink: 0;
            background: rgba(56, 189, 248, 0.12);
            padding: 1.5px 8px;
            border-radius: 5px;
            border: 1px solid rgba(56, 189, 248, 0.3);
        }

        .param-val-badge.badge-angle {
            color: #fbbf24;
            background: rgba(251, 191, 36, 0.12);
            border-color: rgba(251, 191, 36, 0.3);
        }

        .param-val-badge.badge-drag {
            color: #34d399;
            background: rgba(52, 211, 153, 0.12);
            border-color: rgba(52, 211, 153, 0.3);
        }

        .param-group input[type="range"] {
            width: 100%;
            height: 5px;
            accent-color: var(--accent-cyan);
            background: rgba(255, 255, 255, 0.14);
            border-radius: 4px;
            cursor: pointer;
            outline: none;
            margin: 4px 0 2px 0;
            transition: background 0.2s;
        }

        .param-group.param-velocity input[type="range"] {
            accent-color: #38bdf8;
        }

        .param-group.param-angle input[type="range"] {
            accent-color: #fbbf24;
        }

        .param-group.param-drag input[type="range"] {
            accent-color: #34d399;
        }

        .param-group input[type="range"]:hover {
            background: rgba(255, 255, 255, 0.22);
        }

        /* 🎬 16:9 MEDIA DISPLAY CONTAINER & FLOATING ACTION BUTTONS */
        .media-display-container {
            position: relative;
            width: 100%;
        }

        .btn-screen-action {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: rgba(10, 15, 28, 0.9);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 1.15rem;
            cursor: pointer;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            z-index: 30;
        }

        .btn-screen-action.btn-bulb {
            position: absolute;
            top: 12px;
            right: 12px;
            border: 1.5px solid #f59e0b;
            color: #fbbf24;
            background: rgba(245, 158, 11, 0.18);
            box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 16px rgba(245, 158, 11, 0.35);
        }

        .btn-screen-action.btn-bulb:hover {
            background: rgba(245, 158, 11, 0.32);
            border-color: #fbbf24;
            transform: scale(1.08);
            box-shadow: 0 6px 22px rgba(0, 0, 0, 0.7), 0 0 22px rgba(245, 158, 11, 0.5);
        }

        .btn-screen-action.btn-telemetry {
            position: absolute;
            top: 12px;
            right: 58px;
            border: 1.5px solid rgba(16, 185, 129, 0.6);
            color: #34d399;
            background: rgba(16, 185, 129, 0.18);
            box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 16px rgba(16, 185, 129, 0.25);
        }

        .btn-screen-action.btn-telemetry:hover {
            background: rgba(16, 185, 129, 0.32);
            border-color: #34d399;
            transform: scale(1.08);
            box-shadow: 0 6px 22px rgba(0, 0, 0, 0.7), 0 0 22px rgba(16, 185, 129, 0.45);
        }

        .btn-screen-action.btn-settings {
            position: absolute;
            bottom: 12px;
            right: 12px;
            display: none !important; /* Hidden on desktop: docked controls bar is already visible */
            border: 1px solid rgba(56, 189, 248, 0.5);
            color: #38bdf8;
            background: rgba(56, 189, 248, 0.15);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 12px rgba(56, 189, 248, 0.25);
        }

        .btn-screen-action.btn-settings:hover {
            background: rgba(56, 189, 248, 0.2);
            border-color: #38bdf8;
            transform: scale(1.06);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6), 0 0 16px rgba(56, 189, 248, 0.35);
        }

        /* 🎮 VARIABLE CONTROLLER REMOTE (BOTTOM SHEET - UNBLURRED & LIVE) */
        .remote-bottom-sheet-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.25);
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            z-index: 9999;
            display: none;
            align-items: flex-end;
            justify-content: center;
            transition: opacity 0.2s ease;
        }

        .remote-bottom-sheet-card {
            width: 100%;
            max-width: 520px;
            background: #0d111c;
            border: 1px solid rgba(56, 189, 248, 0.35);
            border-radius: 20px 20px 0 0;
            box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.85), 0 0 30px rgba(56, 189, 248, 0.12);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            animation: sheetLiftUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
            box-sizing: border-box;
        }

        @keyframes sheetLiftUp {
            from {
                transform: translateY(100%);
                opacity: 0.5;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .sheet-drag-handle-bar {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 10px 0 4px 0;
            cursor: pointer;
        }

        .sheet-drag-pill {
            width: 42px;
            height: 4px;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.25);
            transition: background 0.2s;
        }

        .sheet-drag-handle-bar:hover .sheet-drag-pill {
            background: var(--accent-cyan);
        }

        .remote-sheet-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 6px 20px 12px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .remote-sheet-title {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 1rem;
            font-weight: 700;
            color: #f8fafc;
        }

        .remote-sheet-body {
            padding: 14px 20px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .remote-param-row {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.07);
            border-radius: 10px;
            padding: 10px 14px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            transition: border-color 0.2s, background 0.2s;
        }

        .remote-param-row:hover, .remote-param-row:focus-within {
            border-color: rgba(56, 189, 248, 0.4);
            background: rgba(56, 189, 248, 0.04);
        }

        .remote-sheet-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px)) 20px;
            background: #090c14;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
        }

        @media (min-width: 901px) {
            .remote-bottom-sheet-overlay {
                align-items: center;
            }
            .remote-bottom-sheet-card {
                border-radius: 18px;
                max-width: 480px;
                margin-bottom: 0;
            }
        }

        /* 💡 SCIENTIFIC CLAIM POPUP MODAL */
        .claim-modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 9999;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 16px;
        }

        .claim-modal-card {
            background: #0f1320;
            border: 1px solid rgba(251, 191, 36, 0.35);
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(251, 191, 36, 0.15);
            border-radius: 16px;
            max-width: 860px;
            width: 95%;
            height: 82vh;
            max-height: 82vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            box-sizing: border-box;
        }

        @keyframes modalPopIn {
            from {
                opacity: 0;
                transform: scale(0.92) translateY(10px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .claim-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 20px;
            background: #14192b;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            flex-shrink: 0;
        }

        .claim-modal-title {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1.05rem;
            font-weight: 700;
            color: #f8fafc;
        }

        .dossier-nav-tabs {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 6px;
            padding: 8px 16px;
            background: #090c15;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            flex-shrink: 0;
        }

        .dossier-tab-btn {
            padding: 8px 10px;
            font-size: 0.8rem;
            font-weight: 600;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: #94a3b8;
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
        }

        .dossier-tab-btn:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #f8fafc;
            border-color: rgba(255, 255, 255, 0.15);
        }

        .dossier-tab-btn.active {
            background: #2563eb;
            border-color: #3b82f6;
            color: #ffffff;
            box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
        }

        @media (max-width: 640px) {
            .dossier-nav-tabs {
                display: flex;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
                gap: 4px;
                padding: 6px 10px;
            }

            .dossier-nav-tabs::-webkit-scrollbar {
                display: none;
            }

            .dossier-tab-btn {
                flex: 1 0 auto;
                padding: 6px 10px;
                font-size: 0.72rem;
            }
        }

        .claim-modal-close {
            background: transparent;
            border: none;
            color: #94a3b8;
            font-size: 1.25rem;
            cursor: pointer;
            padding: 4px;
            border-radius: 6px;
            line-height: 1;
            transition: color 0.15s;
        }

        .claim-modal-close:hover {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.1);
        }

        .claim-modal-body {
            padding: 18px 20px;
            display: flex;
            flex-direction: column;
            gap: 16px;
            flex: 1 1 0;
            min-height: 0;
            overflow-y: auto;
            overflow-x: hidden;
            scrollbar-width: thin;
        }

        .dossier-pane {
            display: none;
            flex-direction: column;
            gap: 16px;
            width: 100%;
        }

        .dossier-pane.active {
            display: flex;
            animation: fadeInTab 0.15s ease-in-out;
        }

        @keyframes fadeInTab {
            from { opacity: 0.7; }
            to { opacity: 1; }
        }

        .claim-highlight-box {
            background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(56, 189, 248, 0.08) 100%);
            border: 1px solid rgba(251, 191, 36, 0.35);
            border-radius: 12px;
            padding: 16px;
            color: #f8fafc;
            font-size: 0.95rem;
            line-height: 1.6;
        }

        .claim-point-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        @media (max-width: 640px) {
            .claim-point-grid {
                grid-template-columns: 1fr;
            }
        }

        .claim-point-card {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            padding: 12px;
            font-size: 0.82rem;
            color: #cbd5e1;
        }

        .claim-point-card strong {
            display: block;
            margin-bottom: 4px;
            color: #ffffff;
            font-size: 0.88rem;
        }

        .claim-modal-footer {
            padding: 12px 20px;
            background: #14192b;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            flex-shrink: 0;
        }

        .btn-dismiss-claim {
            background: #2563eb;
            color: white;
            border: 1px solid #3b82f6;
            border-radius: 8px;
            padding: 8px 18px;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-dismiss-claim:hover {
            background: #1d4ed8;
        }

        /* RIGHT COLUMN: PEER PROOFS & CREATOR PROFILE */
        .lab-sidebar-panel {
            width: 380px;
            flex-shrink: 0;
            border-left: 1px solid rgba(56, 189, 248, 0.16);
            background: #090e1c;
            display: flex;
            flex-direction: column;
            box-sizing: border-box;
            overflow: hidden;
            box-shadow: -4px 0 24px rgba(0, 0, 0, 0.45);
        }

        /* 👤 CREATOR PROFILE HEADER CARD (ABOVE CHAT) */
        .creator-profile-header-card {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 10px 14px;
            background: linear-gradient(90deg, #11192e 0%, #16203a 100%);
            border-bottom: 1px solid rgba(56, 189, 248, 0.16);
            flex-shrink: 0;
            box-sizing: border-box;
            min-height: 52px;
        }

        .creator-profile-left {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
            flex: 1;
            text-decoration: none;
            color: inherit;
        }

        .creator-avatar-wrap {
            position: relative;
            width: 34px;
            height: 34px;
            flex-shrink: 0;
        }

        .creator-avatar-badge {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.8rem;
            color: #ffffff;
            border: 1.5px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
        }

        .creator-verified-icon {
            position: absolute;
            bottom: -2px;
            right: -2px;
            font-size: 0.72rem;
            color: #38bdf8;
            background: #0b1120;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }

        .creator-details-meta {
            display: flex;
            flex-direction: column;
            min-width: 0;
            gap: 1px;
        }

        .creator-name-line {
            font-size: 0.86rem;
            font-weight: 700;
            color: #ffffff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            display: flex;
            align-items: center;
            gap: 5px;
            transition: color 0.15s;
        }

        .creator-profile-left:hover .creator-name-line {
            color: var(--accent-cyan);
        }

        .creator-sub-line {
            font-size: 0.7rem;
            color: #94a3b8;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .disc-count-pill {
            font-size: 0.66rem;
            color: #94a3b8;
            background: #252934;
            border: 1px solid #373e4f;
            padding: 0 6px;
            border-radius: 8px;
            font-weight: 700;
        }

        .btn-creator-follow {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 5px 12px;
            font-size: 0.74rem;
            font-weight: 700;
            border-radius: 14px;
            background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
            color: #ffffff;
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            flex-shrink: 0;
            text-decoration: none;
            user-select: none;
        }

        .btn-creator-follow:hover {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            box-shadow: 0 4px 14px rgba(37, 99, 235, 0.5);
            transform: translateY(-1px);
        }

        .btn-creator-follow.following {
            background: rgba(255, 255, 255, 0.08);
            color: #cbd5e1;
            border: 1px solid rgba(255, 255, 255, 0.15);
            box-shadow: none;
        }

        .btn-creator-follow.following:hover {
            background: rgba(239, 68, 68, 0.16);
            border-color: rgba(239, 68, 68, 0.4);
            color: #fca5a5;
        }

        /* Discussions Stream (Gray Theme) */
        .discussions-stream-container {
            display: flex;
            flex-direction: column;
            flex: 1;
            min-height: 0;
            position: relative;
            background: #111317;
        }

        .discussions-list {
            flex: 1;
            overflow-y: auto;
            padding: 12px 12px 140px 12px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            box-sizing: border-box;
            scroll-behavior: smooth;
            background: #111317;
        }

        .disc-card {
            background: #1c1f26;
            border: 1px solid #2b303c;
            border-radius: 10px;
            padding: 10px 12px;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
        }

        .disc-card:hover {
            border-color: #4b5563;
            background: #21252f;
            transform: translateY(-1px);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
        }

        .disc-card.highlight-verification {
            border-left: 3.5px solid #10b981;
            background: linear-gradient(90deg, rgba(16, 185, 129, 0.08) 0%, #1c1f26 40%);
        }
        .disc-card.highlight-counter_example {
            border-left: 3.5px solid #f43f5e;
            background: linear-gradient(90deg, rgba(244, 63, 94, 0.08) 0%, #1c1f26 40%);
        }
        .disc-card.highlight-stress_test {
            border-left: 3.5px solid #38bdf8;
            background: linear-gradient(90deg, rgba(56, 189, 248, 0.08) 0%, #1c1f26 40%);
        }
        .disc-card.highlight-derivation {
            border-left: 3.5px solid #a855f7;
            background: linear-gradient(90deg, rgba(168, 85, 247, 0.08) 0%, #1c1f26 40%);
        }

        .disc-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 6px;
        }

        .disc-user {
            display: flex;
            align-items: center;
            gap: 7px;
        }

        .disc-avatar {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: linear-gradient(135deg, #475569, #334155);
            border: 1px solid #64748b;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            font-weight: 700;
            color: #f8fafc;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
        }

        .disc-name {
            font-weight: 700;
            font-size: 0.78rem;
            color: #f8fafc;
        }

        .disc-tag-badge {
            font-size: 0.66rem;
            font-weight: 700;
            padding: 2px 7px;
            border-radius: 5px;
            font-family: 'JetBrains Mono', monospace;
            letter-spacing: 0.2px;
        }

        .disc-tag-badge.verification { background: rgba(16, 185, 129, 0.16); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
        .disc-tag-badge.counter_example { background: rgba(244, 63, 94, 0.16); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); }
        .disc-tag-badge.stress_test { background: rgba(56, 189, 248, 0.16); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
        .disc-tag-badge.derivation { background: rgba(168, 85, 247, 0.16); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }

        .disc-body {
            font-size: 0.8rem;
            line-height: 1.55;
            color: #cbd5e1;
            margin-bottom: 6px;
        }

        .proof-attachment {
            background: #14161c;
            border: 1px solid #2d3340;
            border-radius: 8px;
            padding: 7px 9px;
            margin-bottom: 6px;
        }

        .proof-title {
            font-size: 0.72rem;
            font-weight: 700;
            color: #38bdf8;
            margin-bottom: 3px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .proof-metrics {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.69rem;
            color: #94a3b8;
            margin-bottom: 5px;
        }

        .btn-proof-action {
            background: #252934;
            border: 1px solid #373e4f;
            color: #cbd5e1;
            font-size: 0.68rem;
            font-weight: 600;
            padding: 3px 8px;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .btn-proof-action:hover {
            background: #333a4a;
            color: #ffffff;
            border-color: #64748b;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
        }

        /* ============================================================
           💬 ADVANCED MINIMALIST CHAT & PROOF COMPOSER (GRAY THEME)
           ============================================================ */
        .reply-composer {
            background: #14161b;
            border-bottom: 1px solid #232730;
            padding: 10px 12px;
            box-sizing: border-box;
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            gap: 6px;
            position: relative;
        }

        .composer-card {
            background: #1e2128;
            border: 1px solid #2d323e;
            border-radius: 12px;
            padding: 10px 12px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
            position: relative;
        }

        .composer-card:focus-within {
            border-color: #64748b;
            box-shadow: 0 0 16px rgba(148, 163, 184, 0.18), 0 4px 14px rgba(0, 0, 0, 0.4);
            background: #232732;
        }

        .composer-textarea {
            width: 100%;
            background: transparent;
            border: none;
            color: #f1f5f9;
            font-family: inherit;
            font-size: 0.85rem;
            line-height: 1.5;
            padding: 0;
            min-height: 64px;
            max-height: 180px;
            box-sizing: border-box;
            resize: none;
            outline: none;
            scrollbar-width: thin;
        }

        .composer-textarea::placeholder {
            color: #788294;
            font-size: 0.82rem;
            line-height: 1.5;
        }

        /* Integrated Bottom Action Bar */
        .composer-bottom-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding-top: 6px;
            border-top: 1px solid #2b303c;
        }

        .composer-tools-left {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        /* Minimalist Tag Select Pill */
        .tag-select-minimal {
            background: #2a2e39;
            border: 1px solid #3d4454;
            color: #cbd5e1;
            font-size: 0.7rem;
            font-weight: 600;
            padding: 3px 6px;
            border-radius: 6px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            outline: none;
            transition: all 0.15s ease;
        }

        .tag-select-minimal:hover {
            border-color: #64748b;
            color: #ffffff;
            background: #313643;
        }

        .tag-select-minimal.verification { color: #34d399; }
        .tag-select-minimal.counter_example { color: #f87171; }
        .tag-select-minimal.stress_test { color: #38bdf8; }
        .tag-select-minimal.derivation { color: #c084fc; }

        /* Minimalist Icon Action Buttons */
        .composer-icon-btn {
            background: #252934;
            border: 1px solid #353b49;
            color: #94a3b8;
            font-size: 0.82rem;
            width: 26px;
            height: 26px;
            border-radius: 6px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s ease;
            padding: 0;
        }

        .composer-icon-btn:hover {
            background: #2f3442;
            color: #f1f5f9;
            border-color: #4b5366;
        }

        .composer-icon-btn.active {
            background: #3c4456;
            border-color: #64748b;
            color: var(--accent-cyan);
        }

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

        .btn-submit-reply {
            background: linear-gradient(135deg, #475569 0%, #334155 100%);
            color: #ffffff;
            border: 1px solid #64748b;
            font-size: 0.74rem;
            font-weight: 700;
            padding: 4px 10px;
            border-radius: 14px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
        }

        .btn-submit-reply:hover {
            background: linear-gradient(135deg, #64748b 0%, #475569 100%);
            border-color: #94a3b8;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
        }

        .btn-submit-reply .shortcut-hint {
            font-size: 0.62rem;
            opacity: 0.75;
            font-family: 'JetBrains Mono', monospace;
            background: rgba(0, 0, 0, 0.35);
            padding: 1px 4px;
            border-radius: 3px;
        }

        /* Attached Test Snapshot Pill */
        .composer-attached-preview {
            background: #222631;
            border: 1px solid #373e4f;
            border-radius: 6px;
            padding: 4px 8px;
            font-size: 0.7rem;
            color: #cbd5e1;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .attached-test-badge {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            gap: 6px;
        }

        .btn-remove-attachment {
            background: transparent;
            border: none;
            color: #94a3b8;
            cursor: pointer;
            padding: 1px 4px;
            border-radius: 3px;
            font-size: 0.8rem;
            line-height: 1;
        }

        .btn-remove-attachment:hover {
            color: #f87171;
            background: rgba(239, 68, 68, 0.15);
        }

        /* Live Math Preview Strip */
        .composer-math-preview {
            background: #181b22;
            border: 1px dashed #42495b;
            border-radius: 6px;
            padding: 6px 10px;
            font-size: 0.8rem;
            color: #f1f5f9;
            max-height: 80px;
            overflow-y: auto;
        }

        .preview-label {
            font-size: 0.65rem;
            font-weight: 700;
            color: #94a3b8;
            margin-bottom: 2px;
            display: flex;
            align-items: center;
            gap: 3px;
            text-transform: uppercase;
            letter-spacing: 0.4px;
        }

        .preview-content {
            font-size: 0.82rem;
            line-height: 1.4;
            color: #f8fafc;
        }



        /* --- MOBILE SCREEN OVERRIDES --- */
        @media (max-width: 1024px) {
            .app-container {
                height: 100vh !important;
                overflow: hidden !important;
            }

            .main-content {
                height: 100vh !important;
                overflow: hidden !important;
                padding-bottom: 56px !important;
                display: flex !important;
                flex-direction: column !important;
            }

            #research-view-scroll.research-view-layout {
                flex-direction: column !important;
                height: calc(100vh - 56px - 56px) !important;
                flex: 1 1 0 !important;
                min-height: 0 !important;
                overflow: hidden !important;
                display: flex !important;
                width: 100% !important;
            }

            .lab-viewer-pane {
                padding: 6px 10px 2px 10px !important;
                width: 100% !important;
                box-sizing: border-box !important;
                overflow: visible !important;
                background: radial-gradient(circle at 50% 15%, #0f172e 0%, #070b16 100%) !important;
                flex: 0 0 auto !important;
                height: auto !important;
                gap: 6px !important;
                z-index: 10;
            }

            .media-display-container {
                width: 100% !important;
            }

            .lesson-content-display {
                width: 100% !important;
                aspect-ratio: 16 / 9 !important;
                height: auto !important;
                min-height: 190px !important;
                max-height: 250px !important;
                border-radius: 12px !important;
                border: 1px solid rgba(56, 189, 248, 0.28) !important;
                box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6) !important;
                margin: 0 !important;
            }

            .btn-screen-action {
                width: 34px !important;
                height: 34px !important;
                font-size: 1rem !important;
            }

            .btn-screen-action.btn-bulb {
                top: 8px !important;
                right: 8px !important;
            }

            .btn-screen-action.btn-telemetry {
                top: 8px !important;
                right: 48px !important;
            }

            .btn-screen-action.btn-settings {
                display: inline-flex !important;
                bottom: 8px !important;
                right: 8px !important;
            }

            /* On mobile, hide the static docked controls bar because ⚙️ Settings Button opens the live tuning popup */
            .media-docked-controls {
                display: none !important;
            }

            /* Peer Proofs & Chat Internal Scroll Container */
            .lab-sidebar-panel {
                width: 100% !important;
                flex: 1 1 0 !important;
                min-height: 0 !important;
                border-left: none !important;
                border-top: 1px solid rgba(56, 189, 248, 0.16) !important;
                padding: 0 !important;
                margin: 2px 0 0 0 !important;
                box-sizing: border-box !important;
                overflow: hidden !important;
                display: flex !important;
                flex-direction: column !important;
                background: #090e1c !important;
            }

            .sidebar-panel-header {
                flex-shrink: 0 !important;
                padding: 6px 10px !important;
                background: #12141c !important;
            }

            .discussions-stream-container {
                flex: 1 1 0 !important;
                min-height: 0 !important;
                display: flex !important;
                flex-direction: column !important;
                overflow: hidden !important;
                padding: 0 !important;
            }

            .reply-composer {
                flex-shrink: 0 !important;
                padding: 8px 10px !important;
                margin: 0 !important;
                border-bottom: 1px solid #232730 !important;
                background: #14161b !important;
                border-radius: 0 !important;
            }

            .composer-card {
                padding: 8px 10px !important;
                gap: 6px !important;
                border-radius: 10px !important;
            }

            .composer-textarea {
                min-height: 46px !important;
                max-height: 120px !important;
                font-size: 0.82rem !important;
                padding: 2px 2px !important;
                line-height: 1.45 !important;
            }

            .btn-proof-action, .btn-submit-reply {
                padding: 4px 8px !important;
                font-size: 0.7rem !important;
            }

            .discussions-list {
                flex: 1 1 0 !important;
                min-height: 0 !important;
                overflow-y: auto !important;
                -webkit-overflow-scrolling: touch !important;
                padding: 8px 10px 240px 10px !important;
                gap: 8px !important;
                scroll-behavior: smooth !important;
            }



            #researchHeader {
                padding: 0 10px !important;
                height: 50px !important;
                min-height: 50px !important;
            }

            .header-back-btn {
                padding: 5px 8px !important;
                font-size: 0.78rem !important;
            }

            .research-header-title {
                font-size: 0.88rem !important;
            }

            /* Mobile icon-only treatment for header action buttons */
            .btn-create-lab span {
                display: none !important;
            }

            .btn-create-lab {
                padding: 5px 8px !important;
                min-width: 32px !important;
                height: 32px !important;
                box-sizing: border-box !important;
            }

            .btn-create-lab i {
                font-size: 1.15rem !important;
                margin: 0 !important;
            }

            .btn-edit-lab span {
                display: none !important;
            }

            .btn-edit-lab {
                padding: 5px 8px !important;
                min-width: 32px !important;
                height: 32px !important;
                box-sizing: border-box !important;
            }

            .btn-edit-lab i {
                font-size: 1.05rem !important;
                margin: 0 !important;
            }

            /* 💡 Scientific Claim Modal Fixed Dimensions on Mobile */
            .claim-modal-overlay {
                padding: 10px !important;
            }

            .claim-modal-card {
                width: 100% !important;
                max-width: 100% !important;
                height: 86vh !important;
                max-height: 86vh !important;
                border-radius: 14px !important;
            }

            .claim-modal-header {
                padding: 10px 14px !important;
            }

            .claim-modal-body {
                padding: 12px 14px !important;
                gap: 12px !important;
            }

            .claim-modal-footer {
                padding: 10px 14px !important;
            }
        }

        /* ============================================================
           📄 PRINT STYLESHEET (High-Fidelity Research Report PDF Export)
           ============================================================ */
        @media print {
            body, html {
                background: #ffffff !important;
                color: #000000 !important;
                height: auto !important;
                overflow: visible !important;
            }

            .sidebar,
            .bottom-nav,
            #researchHeader,
            .right-sidebar-panel,
            .media-docked-controls,
            .btn-screen-action,
            .dossier-nav-bar,
            .claim-modal-header,
            .claim-modal-footer,
            .pdf-toolbar-bar,
            #testConfigModal,
            #mobileProofSheetModal {
                display: none !important;
            }

            .app-container,
            .main-content,
            .research-workspace-layout,
            .media-workspace-pane,
            .media-display-container,
            .claim-modal-overlay,
            .claim-modal-card,
            .claim-modal-body,
            .dossier-pane.active,
            .research-pdf-viewer,
            .pdf-page-scroll {
                display: block !important;
                position: static !important;
                width: 100% !important;
                height: auto !important;
                margin: 0 !important;
                padding: 0 !important;
                border: none !important;
                box-shadow: none !important;
                background: transparent !important;
                overflow: visible !important;
            }

            .pdf-sheet-page {
                max-width: 100% !important;
                width: 100% !important;
                margin: 0 !important;
                padding: 20mm !important;
                box-shadow: none !important;
                border: none !important;
                page-break-after: always;
            }
        }
