 :root {
            --primary: #0f172a;
            --accent: #3b82f6;
            --alert: #ef4444;
            --success: #10b981;
            --bg: #ffffff;
            --text: #334155;
            --mono: 'Courier New', Courier, monospace;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            line-height: 1.6;
            color: var(--text);
            margin: 0;
            padding: 0;
            background: #f8fafc;
        }

        /* GLOBAL NAV */
        #global-nav {
            position: sticky;
            top: 0;
            background: var(--primary);
            color: white;
            padding: 10px 20px;
            z-index: 1000;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        #global-nav button, #global-nav a {
            background: none;
            border: 1px solid rgba(255,255,255,0.3);
            color: white;
            padding: 5px 15px;
            text-decoration: none;
            cursor: pointer;
            font-size: 0.9rem;
        }

        /* LAYOUT */
        main {
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
        }

        h1 {
            font-size: 2.2rem;
            color: var(--primary);
            font-weight: 800;
            line-height: 1.2;
            margin-bottom: 0.5rem;
        }

        h2 {
            margin-top: 3rem;
            border-bottom: 2px solid var(--accent);
            padding-bottom: 10px;
            color: var(--primary);
        }

        h3 {
            margin-top: 2rem;
            font-weight: 700;
        }

        h4 {
            font-style: italic;
            color: #64748b;
            margin-top: 2rem;
            border-left: 4px solid var(--accent);
            padding-left: 15px;
        }

        p {
            margin-bottom: 1.2rem;
        }

        /* STICKY TOC */
        #toc {
            background: white;
            border: 1px solid #e2e8f0;
            padding: 10px;
            margin-bottom: 20px;
            overflow-x: auto;
            white-space: nowrap;
            position: sticky;
            top: 50px; /* Below global nav */
            z-index: 900;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }
        #toc a {
            margin-right: 15px;
            text-decoration: none;
            color: var(--accent);
            font-weight: 600;
            font-size: 0.9rem;
        }

        /* BLUF CONTAINER */
        .bluf-container {
            background: #eff6ff;
            border-left: 5px solid var(--accent);
            padding: 20px;
            margin: 20px 0;
            position: relative;
        }
        .status-badge {
            position: absolute;
            top: -10px;
            right: 10px;
            background: var(--success);
            color: white;
            padding: 4px 10px;
            font-size: 0.75rem;
            font-weight: bold;
            border-radius: 4px;
            box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
            animation: pulse 2s infinite;
        }

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

        /* MODULES */
        .truth-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin: 30px 0;
        }
        .module-block {
            background: white;
            padding: 20px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
        }
        .quick-verdict { border-top: 4px solid var(--primary); }
        .counter-consensus { border-top: 4px solid var(--alert); }

        /* MATH & CHARTS */
        .math-container {
            background: white;
            padding: 15px;
            border: 1px solid #cbd5e1;
            margin: 20px 0;
            overflow-x: auto;
            width: 100%;
            touch-action: pan-y;
        }
        .chart-wrapper {
            width: 100%;
            height: 300px;
            position: relative;
            background: white;
            border: 1px solid #e2e8f0;
            margin: 20px 0;
        }

        /* SGE SNIPPET */
        .sge-snippet {
            background: #f1f5f9;
            padding: 15px;
            border-radius: 6px;
            font-weight: 600;
            color: var(--primary);
        }

        /* REALITY CHECK */
        .reality-check {
            background: var(--primary);
            color: white;
            padding: 15px;
            margin-top: 20px;
            font-weight: bold;
            text-align: center;
        }

        /* CALCULATOR */
        .neural-calc {
            background: white;
            padding: 20px;
            border: 2px solid var(--accent);
            border-radius: 8px;
        }
        .neural-calc input {
            width: 100%;
            padding: 10px;
            margin: 10px 0;
            border: 1px solid #cbd5e1;
        }
        .neural-calc button {
            background: var(--accent);
            color: white;
            border: none;
            padding: 10px 20px;
            cursor: pointer;
            width: 100%;
            font-weight: bold;
        }
        .calc-result {
            margin-top: 15px;
            font-weight: bold;
            font-size: 1.2rem;
            color: var(--alert);
        }

        /* UTILS */
        .copy-tool {
            background: #e2e8f0;
            padding: 2px 6px;
            border-radius: 4px;
            cursor: pointer;
            font-family: var(--mono);
            font-size: 0.9em;
        }
        
        /* FOOTER */
        .panic-footer {
            background: #000;
            color: #ef4444;
            padding: 40px 20px;
            text-align: center;
            margin-top: 50px;
            border-top: 5px solid var(--alert);
        }
        .disclaimer {
            font-size: 0.8rem;
            color: #94a3b8;
            margin-top: 20px;
            text-align: left;
        }

        @media (max-width: 600px) {
            h1 { font-size: 1.8rem; }
            .truth-grid { grid-template-columns: 1fr; }
        }