#view-discovery  { display: flex !important; flex-direction: column; height: 100vh; background: #f1f5f9; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; }
        #disc-hero {
            flex: none !important;
            width: 100%;
            height: auto !important;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px 32px 32px;
            min-height: calc(100vh - 54px);
            box-sizing: border-box;
        }
        #view-discovery.has-results #disc-hero {
            min-height: auto !important;
            justify-content: flex-start !important;
        }
        #audited-pipeline-section {
            clear: both !important;
            position: relative !important;
            width: 100%;
            max-width: 1120px;
            margin: 32px auto 48px;
            padding: 0 24px;
            box-sizing: border-box;
            flex: none !important;
        }
        #view-discovery > section,
        #view-discovery > footer {
            flex: none !important;
        }
        #view-simulation { display: none !important; }
        body.sim-mode #view-discovery  { display: none !important; }
        body.sim-mode #view-simulation { display: block !important; }

        /* Hide sim-only floating elements in discovery mode */
        #ai-toggle-btn, #ai-panel, #back-to-disc { display: none !important; }
        body.sim-mode #ai-toggle-btn { display: flex !important; }
        body.sim-mode #back-to-disc  { display: block !important; }

        /* Discovery page uses Inter */
        #view-discovery * { font-family: 'Inter', system-ui, sans-serif; box-sizing: border-box; }
        
        body, p, span, div, h1, h2, h3, h4, h5, h6, input, textarea, code, pre, label, td, th {
            user-select: text !important;
            -webkit-user-select: text !important;
            -moz-user-select: text !important;
            -ms-user-select: text !important;
        }
        
        #disc-card {
            background: #ffffff !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            border: 1px solid #d5d5d2 !important;
            box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
            border-radius: 24px !important;
            transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
            outline: none !important;
        }
        #disc-card:focus-within {
            background: #ffffff !important;
            border: 1px solid #bbb8b3 !important;
            box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
            outline: none !important;
        }
        #disc-query {
            background: #ffffff !important;
            border-radius: 23px 23px 0 0 !important;
            border: none !important;
            outline: none !important;
            font-size: 15px !important;
            line-height: 1.6 !important;
            color: #1a1a1a !important;
            resize: none !important;
            will-change: height;
            contain: inline-size;
        }
        #disc-query::placeholder {
            color: #9b9b9b !important;
            opacity: 1 !important;
            font-weight: 400 !important;
            font-size: 15px !important;
        }

        /* Chip transitions */
        .disc-chip { transition: all 0.15s ease; }

        /* Suggestion pills hover */
        .sugg-pill:hover {
            background: #f7f7f6 !important;
            border-color: #bbb8b3 !important;
            color: #1a1a1a !important;
        }

        /* Results fade-in */
        @keyframes fadeUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
        .result-card { animation: fadeUp 0.35s ease forwards; }

        #toast-feed { z-index: 99999; }
/* --- Extracted Style Block --- */
.system-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 2000;
            font-family: 'JetBrains Mono', monospace;
            font-size: 8px;
            color: #64748b;
        }

        .sde-formula {
            font-style: italic;
        }

        .validator-badge {
            color: #0f172a;
            font-weight: bold;
        }

        @media (max-width: 768px) {
            .system-footer { display: none !important; }
        }
/* --- Extracted Style Block --- */
#mobile-shell { display: none; }



        @media (max-width: 768px) {

            /* Hide entire desktop layout */
            #architect-layout, #ai-panel, #ai-toggle-btn { display: none !important; }

            /* By default, hide mobile shell in discovery mode */
            #mobile-shell {
                display: none !important;
            }

            /* Show mobile shell ONLY in simulation mode */
            body.sim-mode #mobile-shell {
                display: flex !important;
                flex-direction: column;
                height: 100vh;
                height: 100dvh;
                width: 100%;
                max-width: 100vw;
                background: #02020a;
                font-family: 'Inter', system-ui, sans-serif;
                color: #e2e8f0;
                overflow: hidden;
                position: relative;
            }

            /* Discovery view mobile optimization */
            #view-discovery {
                padding: 10px 10px 24px 10px !important;
                background: #f8f8f6 !important;
            }
            #view-discovery > div:first-child {
                padding: 10px 14px !important;
            }
            #disc-hero {
                padding: 24px 12px 24px 12px !important;
                min-height: auto !important;
            }
            #view-discovery h1 {
                font-size: 20px !important;
                line-height: 1.3 !important;
            }
            #disc-card {
                border-radius: 16px !important;
            }
            #disc-query {
                padding: 14px 16px 8px 16px !important;
                font-size: 14px !important;
            }
            #disc-card > div:last-child {
                border-radius: 0 0 16px 16px !important;
                padding: 8px 10px !important;
            }
            #model-select-btn, #celltype-select-btn {
                padding: 5px 8px !important;
                font-size: 11px !important;
            }
            #disc-run-btn {
                width: 28px !important;
                height: 28px !important;
                padding: 6px !important;
            }
            
            /* Safety gate buttons tap target size */
            .safety-btn {
                padding: 8px 6px !important;
                font-size: 10px !important;
            }
            
            /* Responsive grid in report card */
            #disc-results {
                width: 100% !important;
                margin-top: 14px !important;
            }
            #disc-results > div {
                padding: 14px 16px !important;
                border-radius: 12px !important;
            }
            #disc-results > div > div[style*="display:grid"],
            #disc-results > div > div[style*="display: grid"] {
                grid-template-columns: 1fr !important;
                gap: 14px !important;
            }



            /* NAV BAR */

            #mob-nav {

                display: flex;

                align-items: center;

                justify-content: space-between;

                padding: 0 1rem;

                height: 48px;

                min-height: 48px;

                background: rgba(2, 2, 10, 0.9) !important;

                backdrop-filter: blur(12px) !important;

                border-bottom: 1px solid rgba(255,255,255,0.06) !important;

                flex-shrink: 0;

                z-index: 10;

            }

            .mob-nav-brand {

                display: flex;

                align-items: center;

                gap: 8px;

                font-size: 14px;

                font-weight: 900;

                letter-spacing: -0.02em;

                color: #fff;

                text-transform: uppercase;

            }

            .mob-nav-status {

                display: flex;

                align-items: center;

                gap: 5px;

                font-size: 8px;

                font-weight: 700;

                color: #2563eb;

                text-transform: uppercase;

                letter-spacing: 0.1em;

                background: rgba(37,99,235,0.1);

                border: 1px solid rgba(37,99,235,0.3);

                padding: 3px 10px;

                border-radius: 100px;

            }

            .mob-status-dot {

                width: 5px;

                height: 5px;

                background: #2563eb;

                border-radius: 50%;

                animation: pulse 2s infinite;

            }

            .mob-exit-btn {

                background: rgba(255,255,255,0.05);

                border: 1px solid rgba(255,255,255,0.1);

                color: #94a3b8;

                padding: 5px 12px;

                border-radius: 6px;

                font-size: 9px;

                font-weight: 700;

                text-transform: uppercase;

                letter-spacing: 0.08em;

                cursor: pointer;

            }



            /* DESKTOP NOTICE BANNER */

            #mob-desktop-banner {

                display: flex;

                align-items: center;

                gap: 8px;

                padding: 7px 14px;

                background: rgba(37,99,235,0.1);

                border-bottom: 1px solid rgba(37,99,235,0.2);

                font-size: 10px;

                color: #93c5fd;

                flex-shrink: 0;

            }

            #mob-desktop-banner span:nth-child(2) { flex: 1; font-weight: 600; }

            #mob-desktop-banner button {

                background: none;

                border: none;

                color: #475569;

                font-size: 18px;

                cursor: pointer;

                line-height: 1;

                padding: 0;

            }



            /* TAB CONTENT */

            .mob-tab-content {

                flex: 1;

                overflow: hidden;

                position: relative;

                min-height: 0;

            }



            /* SIMULATION TAB */

            #mob-canvas-wrap {

                width: 100%;

                height: 100%;

                background: #000;

                position: relative;

                overflow: hidden;

            }

            #mob-canvas-wrap canvas {

                display: block !important;

                width: 100% !important;

                height: 100% !important;

                object-fit: cover;

            }



            /* HUD overlay */

            #mob-hud-overlay {

                position: absolute;

                top: 10px;

                left: 10px;

                display: flex;

                flex-direction: column;

                gap: 5px;

                z-index: 20;

                background: rgba(0,0,0,0.75);

                backdrop-filter: blur(8px);

                border: 1px solid rgba(255,255,255,0.08);

                border-left: 2px solid #2563eb;

                border-radius: 8px;

                padding: 10px 12px;

            }

            .mob-hud-stat { display: flex; flex-direction: column; gap: 1px; }

            .mob-hud-label {

                font-size: 7px;

                font-weight: 900;

                color: #475569;

                text-transform: uppercase;

                letter-spacing: 0.08em;

                font-family: 'JetBrains Mono', monospace;

            }

            .mob-hud-value {

                font-size: 12px;

                font-weight: 700;

                color: #e2e8f0;

                font-family: 'JetBrains Mono', monospace;

            }



            /* Inject FAB */

            #mob-inject-fab {

                position: absolute;

                bottom: 16px;

                right: 12px;

                display: flex;

                flex-direction: column;

                gap: 6px;

                align-items: stretch;

                z-index: 20;

                width: 200px;

            }

            #mob-inject-fab select {

                background: rgba(0,0,0,0.85);

                border: 1px solid rgba(37,99,235,0.4);

                color: #93c5fd;

                padding: 7px 10px;

                border-radius: 8px;

                font-size: 9px;

                font-family: 'JetBrains Mono', monospace;

                font-weight: 700;

                backdrop-filter: blur(10px);

                width: 100%;

            }

            #mob-inject-btn {

                background: #2563eb;

                color: white;

                border: none;

                padding: 11px;

                border-radius: 10px;

                font-size: 11px;

                font-weight: 900;

                text-transform: uppercase;

                letter-spacing: 0.06em;

                cursor: pointer;

                box-shadow: 0 4px 20px rgba(37,99,235,0.4);

            }



            /* AI PROTOCOL TAB */

            #mob-ai-tab {

                display: flex;

                flex-direction: column;

                overflow: hidden;

            }

            .mob-ai-header {

                padding: 12px 16px;

                background: rgba(37,99,235,0.08);

                border-bottom: 1px solid rgba(37,99,235,0.15);

                flex-shrink: 0;

            }

            .mob-ai-title {

                font-size: 11px;

                font-weight: 900;

                color: #60a5fa;

                letter-spacing: 0.05em;

                text-transform: uppercase;

                margin-bottom: 2px;

            }

            .mob-ai-subtitle-text {

                font-size: 9px;

                color: #475569;

                font-weight: 600;

            }

            .mob-ai-section {

                padding: 10px 14px;

                border-bottom: 1px solid rgba(255,255,255,0.04);

                flex-shrink: 0;

            }

            .mob-ai-section-label {

                font-size: 8px;

                font-weight: 900;

                color: #475569;

                text-transform: uppercase;

                letter-spacing: 0.1em;

                margin-bottom: 6px;

            }

            .mob-ai-row {

                display: flex;

                gap: 8px;

                align-items: center;

            }

            .mob-ai-row select {

                flex: 1;

                background: rgba(0,0,0,0.6);

                border: 1px solid rgba(255,255,255,0.08);

                color: #e2e8f0;

                padding: 8px 10px;

                border-radius: 6px;

                font-size: 10px;

                font-family: 'JetBrains Mono', monospace;

            }

            .mob-inject-sm {

                background: #2563eb;

                color: white;

                border: none;

                padding: 8px 12px;

                border-radius: 6px;

                font-size: 9px;

                font-weight: 900;

                text-transform: uppercase;

                cursor: pointer;

                white-space: nowrap;

            }

            #mob-ai-messages-wrap {

                flex: 1;

                overflow-y: auto;

                -webkit-overflow-scrolling: touch;

                padding: 12px 14px;

                display: flex;

                flex-direction: column;

                gap: 10px;

                min-height: 0;

            }

            .mob-ai-starter {

                font-size: 10px;

                color: #475569;

                font-style: italic;

                text-align: center;

                padding: 20px 0;

            }

            .mob-ai-msg-user {

                align-self: flex-end;

                background: rgba(37,99,235,0.2);

                border: 1px solid rgba(37,99,235,0.3);

                color: #93c5fd;

                padding: 8px 12px;

                border-radius: 12px 12px 3px 12px;

                font-size: 11px;

                max-width: 85%;

                line-height: 1.4;

            }

            .mob-ai-msg-ai {

                align-self: flex-start;

                background: rgba(255,255,255,0.04);

                border: 1px solid rgba(255,255,255,0.08);

                color: #cbd5e1;

                padding: 8px 12px;

                border-radius: 12px 12px 12px 3px;

                font-size: 11px;

                max-width: 90%;

                line-height: 1.5;

            }

            #mob-ai-quickbtns {

                display: grid;

                grid-template-columns: 1fr 1fr;

                gap: 6px;

                padding: 10px 14px;

                border-top: 1px solid rgba(255,255,255,0.04);

                border-bottom: 1px solid rgba(255,255,255,0.04);

                flex-shrink: 0;

            }

            .mob-quick-btn {

                background: rgba(255,255,255,0.04);

                border: 1px solid rgba(255,255,255,0.08);

                color: #94a3b8;

                padding: 8px 6px;

                border-radius: 6px;

                font-size: 9px;

                font-weight: 700;

                cursor: pointer;

                text-align: center;

                transition: background 0.15s;

            }

            .mob-quick-btn:active { background: rgba(37,99,235,0.2); color: #60a5fa; }

            .mob-ai-input-row {

                display: flex;

                gap: 8px;

                padding: 10px 14px;

                background: rgba(0,0,0,0.4);

                border-top: 1px solid rgba(255,255,255,0.06);

                flex-shrink: 0;

            }

            #mob-ai-prompt {

                flex: 1;

                background: rgba(255,255,255,0.05);

                border: 1px solid rgba(255,255,255,0.1);

                color: #e2e8f0;

                padding: 10px 12px;

                border-radius: 8px;

                font-size: 12px;

                outline: none;

                font-family: 'Inter', sans-serif;

            }

            .mob-ai-send-btn {

                background: #2563eb;

                color: white;

                border: none;

                padding: 10px 16px;

                border-radius: 8px;

                font-size: 10px;

                font-weight: 900;

                text-transform: uppercase;

                cursor: pointer;

            }



            /* BOTTOM TAB BAR */

            #mob-tabbar {

                display: flex;

                background: #000;

                border-top: 1px solid rgba(255,255,255,0.08);

                flex-shrink: 0;

                height: 54px;

            }

            .mob-tab-btn {

                flex: 1;

                background: none;

                border: none;

                border-top: 3px solid transparent;

                color: #64748b;

                font-size: 9px;

                font-weight: 800;

                text-transform: uppercase;

                letter-spacing: 0.06em;

                cursor: pointer;

                display: flex !important;

                flex-direction: column !important;

                align-items: center !important;

                justify-content: center !important;

                gap: 3px !important;

                transition: all 0.15s;

                font-family: 'Inter', sans-serif;

                padding: 4px 0 !important;

            }

            .mob-tab-btn.mob-tab-active {

                color: #3b82f6 !important;

                border-top-color: #3b82f6 !important;

                background: rgba(59, 130, 246, 0.05) !important;

            }

        }
/* --- Extracted Style Block --- */
/* PROPERTIES FOR KAGAWEA ULTRA MICROSCOPE VIEW */

        #viewport-microscope {

            width: 100%;

            height: 100%;

            filter: contrast(1.3) brightness(1.2) saturate(1.4);

            display: block;

        }



        .scanline-overlay {

            position: absolute;

            inset: 0;

            background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.08) 50%);

            background-size: 100% 4px;

            pointer-events: none;

            z-index: 5;

            opacity: 0.3;

        }



        .bloom-overlay {

            position: absolute;

            inset: 0;

            background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.4) 100%);

            pointer-events: none;

            z-index: 4;

        }



        /* INSTITUTIONAL SCROLLBAR (HIGH-DENSITY STANDARD) */

        .custom-scrollbar::-webkit-scrollbar { width: 14px !important;

            width: 10px;

        }

        .custom-scrollbar::-webkit-scrollbar-track {

            background: #0f172a; /* Slate-900 */

            border-radius: 4px;

        }

        .custom-scrollbar::-webkit-scrollbar-thumb {

            background: #4f46e5; /* Indigo-600 */

            border: 2px solid #0f172a; /* Creates padding effect */

            border-radius: 6px;

        }

        .custom-scrollbar::-webkit-scrollbar-thumb:hover {

            background: #64748b; /* Slate-500 highlight */

        }

        /* Modern Native Scrollbar */
        html::-webkit-scrollbar, body::-webkit-scrollbar, #view-discovery::-webkit-scrollbar {
            width: 14px;
        }
        html::-webkit-scrollbar-track, body::-webkit-scrollbar-track, #view-discovery::-webkit-scrollbar-track {
            background: #f8fafc;
            border-left: 1px solid #e2e8f0;
        }
        html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb, #view-discovery::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border: 3px solid #f8fafc;
            border-radius: 10px;
        }
        html::-webkit-scrollbar-thumb:hover, body::-webkit-scrollbar-thumb:hover, #view-discovery::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

        /* Floating Full-Height Custom Scrollbar Navigator */
        #floating-scroll-controls {
            position: fixed;
            right: 0;
            top: 0;
            bottom: 0;
            height: 100vh;
            width: 16px;
            background: transparent;
            border: none;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            padding: 0;
            z-index: 99999;
            user-select: none;
            opacity: 1;
            pointer-events: auto;
            box-sizing: border-box;
        }

        .scroll-track {
            width: 100%;
            height: 100%;
            position: relative;
            cursor: pointer;
            background: transparent;
        }

        .scroll-thumb {
            width: 6px;
            background: rgba(129, 140, 248, 0.45);
            border-radius: 3px;
            position: absolute;
            left: 5px;
            min-height: 40px;
            cursor: grab;
            transition: background 0.15s, width 0.15s, left 0.15s, box-shadow 0.15s;
            box-shadow: 0 0 6px rgba(129, 140, 248, 0.15);
        }

        .scroll-thumb:hover {
            background: rgba(129, 140, 248, 0.85);
            width: 10px;
            left: 3px;
            box-shadow: 0 0 10px rgba(129, 140, 248, 0.45);
        }

        .scroll-thumb.dragging {
            background: #e0e7ff;
            width: 10px;
            left: 3px;
            cursor: grabbing;
            box-shadow: 0 0 12px rgba(224, 231, 255, 0.6);
        }

        @media (max-width: 768px) {
            #floating-scroll-controls {
                display: none !important;
            }
        }
/* --- Extracted Style Block --- */
@media (max-width: 768px) {
            html, body { overflow-x: hidden !important; width: 100vw !important; }
            .px-12, .px-24, .px-8, .px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
            .py-24, .py-16 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
            .text-5xl { font-size: 2.25rem !important; line-height: 1.1 !important; }
            .text-6xl { font-size: 2.5rem !important; line-height: 1.1 !important; }
            .text-7xl { font-size: 2.75rem !important; line-height: 1.1 !important; }
            .grid { gap: 1.5rem !important; }
            .lg\:grid-cols-2, .lg\:grid-cols-3, .lg\:grid-cols-4 { grid-template-columns: 1fr !important; }
            .nav-links { display: none !important; }
            .hero { padding: 4rem 1.5rem !important; min-height: auto !important; }
            .cap-bento { display: flex !important; flex-direction: column !important; }
            .cap-card { padding: 2rem !important; }
        }
/* --- Extracted Style Block --- */
/* Guarantee Horizontal Navbar Layout on Mobile & Desktop */
nav, .nav-dock, #mob-nav {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
}

@media (max-width: 1024px) {
    nav, .nav-dock {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.75rem 1.25rem !important;
    }
}
/* --- Extracted Style Block --- */
/* Executive Navbar Logo Alignment & Responsive Sizing */
.nav-logo-responsive {
    height: 38px !important;
    width: auto !important;
    max-height: 38px !important;
    object-fit: contain;
    display: block;
    transform: translateY(-3px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-logo-responsive:hover {
    opacity: 0.85;
}

@media (max-width: 768px) {
    .nav-logo-responsive {
        height: 32px !important;
        max-height: 32px !important;
        transform: translateY(-2px);
    }
}
