:root {
            --color-ledger: #a855f7;       /* Purple for ledger console */
            --color-pictograph: #38bdf8;   /* Cyan for pictograph elements */
            --color-chart: #10b981;        /* Emerald for standard bar/pie */
            --color-accent-glow: rgba(168, 85, 247, 0.35);
        }

        section {
            margin-bottom: 6rem;
            scroll-margin-top: 2rem;
        }

        .section-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 1.75rem;
        }

        .section-tag {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.8rem;
            color: var(--color-accent);
            background: rgba(168, 85, 247, 0.1);
            padding: 4px 10px;
            border-radius: 6px;
            border: 1px solid rgba(168, 85, 247, 0.2);
            text-shadow: 0 0 5px var(--color-accent-glow);
        }

        .section-header h2 {
            font-size: 1.75rem;
            font-weight: 700;
        }

        .section-intro {
            color: var(--text-muted);
            margin-bottom: 2rem;
            line-height: 1.6;
            font-size: 1rem;
            max-width: 850px;
        }

        /* Tabs header */
        .tabs-header {
            display: flex;
            gap: 8px;
            border-bottom: 1px solid var(--card-border);
            margin-bottom: 2rem;
            padding-bottom: 1px;
        }

        .tab-btn {
            background: none;
            border: none;
            color: var(--text-muted);
            font-family: 'Outfit', sans-serif;
            font-weight: 600;
            font-size: 1rem;
            padding: 10px 20px;
            cursor: pointer;
            position: relative;
            transition: color 0.2s ease;
        }

        .tab-btn:hover {
            color: var(--text-color);
        }

        .tab-btn.active {
            color: var(--color-accent);
        }

        .tab-btn.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--color-accent);
            box-shadow: 0 0 8px var(--color-accent-glow);
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .workspace-grid {
            display: grid;
            grid-template-columns: 1.35fr 1fr;
            gap: 2rem;
            align-items: start;
        }

        @media (max-width: 960px) {
            .workspace-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Chronological ledger logger */
        .ledger-console {
            background: #050608;
            border: 1px solid var(--card-border);
            border-radius: 16px;
            font-family: 'JetBrains Mono', monospace;
            padding: 1.25rem;
            height: 300px;
            overflow-y: auto;
            color: #22c55e; /* green code color */
            display: flex;
            flex-direction: column;
            gap: 4px;
            box-shadow: inset 0 4px 15px rgba(0,0,0,0.8);
        }

        .ledger-entry {
            display: flex;
            justify-content: space-between;
            font-size: 0.85rem;
            border-bottom: 1px dashed rgba(34, 197, 94, 0.08);
            padding: 2px 0;
        }

        .ledger-entry-num {
            color: #16a34a;
        }

        /* Canvas panel */
        .canvas-panel {
            position: relative;
            width: 100%;
            height: 300px;
            background: rgba(0, 0, 0, 0.25);
            border-radius: 16px;
            border: 1px solid var(--card-border);
            overflow: hidden;
        }

        canvas {
            display: block;
            width: 100%;
            height: 100%;
        }

        /* Increments grid clickers */
        .clicker-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
            margin-bottom: 1.25rem;
        }

        .btn-clicker {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid var(--card-border);
            border-radius: 12px;
            padding: 0.75rem 0.5rem;
            font-size: 1.4rem;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            transition: all var(--transition-speed) ease;
            color: var(--text-color);
        }

        .btn-clicker:hover {
            background: rgba(255, 255, 255, 0.05);
            border-color: rgba(255, 255, 255, 0.15);
            transform: translateY(-2px);
        }

        .btn-clicker span.label {
            font-size: 0.75rem;
            color: var(--text-muted);
            font-family: 'Outfit', sans-serif;
            font-weight: 500;
        }

        /* Solver styles */
        .solver-step {
            margin-bottom: 1.5rem;
            padding-left: 1rem;
            border-left: 2px solid var(--card-border);
        }

        .solver-step:last-child {
            margin-bottom: 0;
        }

        .solver-step-title {
            font-weight: 600;
            font-size: 1rem;
            color: var(--text-color);
            margin-bottom: 0.5rem;
        }

        .solver-step-desc {
            font-size: 0.85rem;
            color: var(--text-muted);
            line-height: 1.5;
        }

        /* Quiz option styling */
        .quiz-option {
            background: rgba(255, 255, 255, 0.015);
            border: 1px solid var(--card-border);
            border-radius: 12px;
            padding: 1rem 1.25rem;
            margin-bottom: 0.75rem;
            cursor: pointer;
            transition: all var(--transition-speed) ease;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .quiz-option:hover {
            background: rgba(255, 255, 255, 0.04);
            border-color: rgba(255, 255, 255, 0.1);
            transform: translateX(4px);
        }

        .quiz-option.correct {
            background: rgba(16, 185, 129, 0.08);
            border-color: rgba(16, 185, 129, 0.3);
            color: #10b981;
        }

        .quiz-option.incorrect {
            background: rgba(244, 63, 94, 0.08);
            border-color: rgba(244, 63, 94, 0.3);
            color: #f43f5e;
        }

        .quiz-feedback {
            margin-top: 1rem;
            padding: 1rem;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid var(--card-border);
            font-size: 0.9rem;
            line-height: 1.5;
            display: none;
        }