:root {
            --color-lineplot: #a855f7; /* Purple accent */
            --color-lineplot-glow: rgba(168, 85, 247, 0.35);
            --color-marker: #38bdf8; /* Cyan for markers */
            --color-marker-glow: rgba(56, 189, 248, 0.35);
            --color-highlight: #ffb000; /* Amber for hovering */
            --color-grid: rgba(255, 255, 255, 0.05);
            --color-stats: #10b981; /* Emerald for metric outputs */
        }

        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;
        }

        .workspace-grid {
            display: grid;
            grid-template-columns: 1.4fr 1fr;
            gap: 2rem;
            align-items: start;
        }

        @media (max-width: 960px) {
            .workspace-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Line plot sandbox */
        .plot-container {
            position: relative;
            width: 100%;
            height: 250px;
            background: rgba(0, 0, 0, 0.25);
            border-radius: 16px;
            border: 1px solid var(--card-border);
            overflow: hidden;
            touch-action: none;
        }

        #canvasLinePlot {
            display: block;
            width: 100%;
            height: 100%;
            cursor: crosshair;
        }

        /* Raw data list */
        .raw-data-panel {
            background: rgba(255, 255, 255, 0.01);
            border: 1px solid var(--card-border);
            border-radius: 12px;
            padding: 1rem;
            margin-top: 1rem;
        }

        .raw-data-title {
            font-size: 0.85rem;
            color: var(--text-muted);
            font-weight: 600;
            margin-bottom: 0.75rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .raw-data-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            max-height: 120px;
            overflow-y: auto;
            padding-right: 4px;
        }

        .badge-point {
            background: rgba(56, 189, 248, 0.1);
            border: 1px solid rgba(56, 189, 248, 0.25);
            color: var(--color-marker);
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.85rem;
            padding: 4px 8px;
            border-radius: 6px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            transition: all 0.2s ease;
        }

        .badge-point:hover {
            background: rgba(239, 68, 68, 0.15);
            border-color: rgba(239, 68, 68, 0.3);
            color: #ef4444;
            transform: scale(0.95);
        }

        /* Controls styling */
        .presets-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 6px;
            margin-bottom: 1.25rem;
        }

        .input-row {
            display: flex;
            gap: 8px;
            margin-bottom: 1.25rem;
        }

        .input-select {
            background: #0f121e;
            border: 1px solid var(--card-border);
            border-radius: 8px;
            color: var(--text-color);
            padding: 8px 12px;
            font-family: 'Outfit', sans-serif;
            font-size: 0.9rem;
            flex-grow: 1;
            outline: none;
            cursor: pointer;
            transition: border-color 0.2s ease;
        }

        .input-select:focus {
            border-color: var(--color-accent);
        }

        .math-fraction {
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            vertical-align: middle;
            font-size: 0.85em;
            line-height: 1;
            padding: 0 2px;
        }

        .math-fraction .numerator {
            border-bottom: 1px solid currentColor;
            padding-bottom: 1px;
            text-align: center;
            width: 100%;
        }

        .math-fraction .denominator {
            padding-top: 1px;
            text-align: center;
            width: 100%;
        }

        .solver-step {
            margin-bottom: 1.25rem;
            padding-left: 0.75rem;
            border-left: 2px solid var(--card-border);
        }

        .solver-step:last-child {
            margin-bottom: 0;
        }

        .solver-step-title {
            font-weight: 600;
            font-size: 0.95rem;
            color: var(--text-color);
            margin-bottom: 0.4rem;
        }

        .solver-step-desc {
            font-size: 0.85rem;
            color: var(--text-muted);
            line-height: 1.5;
        }

        /* Quiz elements */
        .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;
        }

        /* Custom canvas instruction helper */
        .canvas-helper-text {
            position: absolute;
            top: 12px;
            right: 12px;
            font-size: 0.7rem;
            color: rgba(255, 255, 255, 0.3);
            font-family: 'JetBrains Mono', monospace;
            pointer-events: none;
        }