:root[data-theme="light"]{color-scheme:light;--bg:#F5F7FA;--card:#fff;--text:#0A192F;--border:#D8E0E8;--maroon:#006BB6;--muted:#526477;--soft:#E8F1F8;--light:#EDF4FA}
:root[data-theme="light"] body{background:#F5F7FA!important;color:#0A192F!important}
:root[data-theme="light"] .site-header{background:rgba(255,255,255,.97)!important;color:#0A192F!important;border-color:#D8E0E8!important;box-shadow:0 5px 24px rgba(10,25,47,.07)!important}
:root[data-theme="light"] .brand strong,:root[data-theme="light"] .section-head h2,:root[data-theme="light"] .phone-banner h3,:root[data-theme="light"] .lesson-heading h1,:root[data-theme="light"] .exercise h3,:root[data-theme="light"] .lesson-card h3,:root[data-theme="light"] .editor-intro h1,:root[data-theme="light"] .sidebar-head h2,:root[data-theme="light"] .workspace-heading h2,:root[data-theme="light"] .sections-heading h3{color:#0A192F!important}
:root[data-theme="light"] .brand small,:root[data-theme="light"] .header-tagline,:root[data-theme="light"] .header-progress,:root[data-theme="light"] .eyebrow,:root[data-theme="light"] .time-pill,:root[data-theme="light"] .card-time,:root[data-theme="light"] footer,:root[data-theme="light"] .hero-sub,:root[data-theme="light"] .lesson-card p,:root[data-theme="light"] .phone-banner p,:root[data-theme="light"] .lesson-content p,:root[data-theme="light"] .lesson-content li,:root[data-theme="light"] .editor-intro>p:last-child,:root[data-theme="light"] .sidebar-head span,:root[data-theme="light"] .sections-heading p,:root[data-theme="light"] .editor-count,:root[data-theme="light"] .editor-header-actions #saveStatus{color:#526477!important}
:root[data-theme="light"] .lesson-card,:root[data-theme="light"] .lesson-shell,:root[data-theme="light"] .exercise,:root[data-theme="light"] .prompt-box,:root[data-theme="light"] .builder-panel,:root[data-theme="light"] .library-tools,:root[data-theme="light"] .prompt-card,:root[data-theme="light"] .custom-case,:root[data-theme="light"] .custom-nav a,:root[data-theme="light"] .editor-sidebar,:root[data-theme="light"] .editor-workspace{background:#fff!important;border-color:#D8E0E8!important;color:#0A192F!important}
:root[data-theme="light"] .phone-banner,:root[data-theme="light"] .benefits,:root[data-theme="light"] .lesson-card:last-child,:root[data-theme="light"] .builder-choice{background:#EAF1F7!important;color:#0A192F!important}
:root[data-theme="light"] .outline,:root[data-theme="light"] .library-home,:root[data-theme="light"] .library-action{background:#fff!important;color:#006BB6!important;border-color:#006BB6!important}
:root[data-theme="light"] .outline:hover,:root[data-theme="light"] .library-home:hover,:root[data-theme="light"] .library-action:hover{background:#E8F1F8!important}
:root[data-theme="light"] .prompt-preview,:root[data-theme="light"] .custom-case .exercise,:root[data-theme="light"] .custom-case .prompt-box,:root[data-theme="light"] .builder-choice,:root[data-theme="light"] .editor-list button,:root[data-theme="light"] .section-card,:root[data-theme="light"] .lesson-prompt-card{background:#F5F7FA!important;color:#0A192F!important;border-color:#D8E0E8!important}
:root[data-theme="light"] .prompt-card p,:root[data-theme="light"] .builder-head p,:root[data-theme="light"] .builder-note,:root[data-theme="light"] .custom-case .intro,:root[data-theme="light"] .custom-actions span,:root[data-theme="light"] .small-note,:root[data-theme="light"] .library-count,:root[data-theme="light"] .library-section-head p{color:#526477!important}
:root[data-theme="light"] .library-hero,:root[data-theme="light"] .builder-hero,:root[data-theme="light"] .library-help{background:linear-gradient(110deg,#EAF1F7,#fff)!important;color:#0A192F!important;border-color:#D8E0E8!important}
:root[data-theme="light"] .library-hero-mark,:root[data-theme="light"] .library-hero .eyebrow,:root[data-theme="light"] .builder-hero .eyebrow{color:#006BB6!important}
:root[data-theme="light"] .library-tools input,:root[data-theme="light"] .library-tools select,:root[data-theme="light"] .builder-footer input,:root[data-theme="light"] .prompt-dialog textarea,:root[data-theme="light"] .field-grid input,:root[data-theme="light"] .field-grid textarea,:root[data-theme="light"] .section-card input,:root[data-theme="light"] .section-card textarea,:root[data-theme="light"] .lesson-prompt-card input,:root[data-theme="light"] .lesson-prompt-card textarea{background:#fff!important;color:#0A192F!important;border-color:#B8C5D1!important}
:root[data-theme="light"] .prompt-dialog{background:#fff!important;color:#0A192F!important}
:root[data-theme="light"] .editor-toolbar,:root[data-theme="light"] .workspace-heading,:root[data-theme="light"] .prompt-edit-area{border-color:#D8E0E8!important}
:root[data-theme="light"] .field-grid label,:root[data-theme="light"] .section-card label{color:#24384D!important}
:root[data-theme="light"] .section-card-head strong,:root[data-theme="light"] .lesson-prompt-card-head{color:#006BB6!important}
:root[data-theme="light"] .export-note{background:#EAF1F7!important;color:#0A192F!important}
:root[data-theme="light"] .export-note p{color:#526477!important}
:root[data-theme="light"] .export-note code{color:#006BB6!important}
:root[data-theme="light"] .editor-tab{color:#526477!important;border-color:#D8E0E8!important}
:root[data-theme="light"] .editor-tab.active{background:#006BB6!important;color:#fff!important}
:root[data-theme="light"] .editor-list button.active{background:#E8F1F8!important;color:#0A192F!important;border-color:#006BB6!important}
:root[data-theme="light"] .section-card-actions button{background:#fff!important;color:#526477!important;border-color:#D8E0E8!important}
:root[data-theme="light"] .library-empty{background:#fff!important;color:#0A192F!important}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:9px 13px;border:1px solid currentColor;border-radius:5px;background:transparent;color:inherit;font:12px 'DM Mono',monospace;cursor:pointer;white-space:nowrap}
.theme-toggle:hover{background:rgba(0,107,182,.1)}.theme-toggle:focus-visible{outline:3px solid #006BB6;outline-offset:3px}