.header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.theme-toggle{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;color:var(--blue);background:var(--pale);border:1px solid var(--line);border-radius:9px}
.theme-toggle:hover{background:#dce9fd}
.theme-toggle .icon{width:18px;height:18px}
@media(max-width:900px) and (min-width:651px){.header-inner{gap:12px;padding-left:20px;padding-right:20px}.main-nav{gap:12px}.theme-toggle{width:35px;height:36px}.header-actions{gap:5px}}
@media(max-width:650px){.header-actions{grid-column:2;grid-row:1}.header-actions .header-focus{display:flex}.theme-toggle{width:37px;height:37px}.header-actions .header-focus>span:last-child{display:none}}
html[data-theme="dark"]{color-scheme:dark;--blue:#92bcff;--blue-dark:#bbd5ff;--navy:#e7f0ff;--muted:#b1c3dd;--line:#304865;--surface:#14243b;--bg:#0b1525;--pale:#213856;background:var(--bg);color:var(--navy)}
html[data-theme="dark"] a{color:#a5cbff}
html[data-theme="dark"] .site-header{background:#112036}
html[data-theme="dark"] .brand{color:#e7f0ff}
html[data-theme="dark"] .brand-mark{background:#4075c4;color:#fff}
html[data-theme="dark"] .nav-tab{color:#b6c8e1}
html[data-theme="dark"] .nav-tab.active{color:#bcd8ff}
html[data-theme="dark"] .theme-toggle,html[data-theme="dark"] .header-focus{background:#233b5d;border-color:#3c5777;color:#c4deff}
html[data-theme="dark"] .theme-toggle:hover{background:#304d73}
html[data-theme="dark"] .hero{background:linear-gradient(120deg,#182f4c,#122640);border-color:#324c6d}
html[data-theme="dark"] h1,html[data-theme="dark"] .hero h1{color:#eaf3ff}
html[data-theme="dark"] h1 em{color:#93c0ff}
html[data-theme="dark"] .hero-copy>p,html[data-theme="dark"] .hero-features,html[data-theme="dark"] .eyebrow{color:#bad0ee}
html[data-theme="dark"] .float-chip{background:#233e60;border-color:#486381;color:#edf5ff;box-shadow:0 8px 25px #020b1d50}
html[data-theme="dark"] .float-chip div>span{color:#c4d4e9}
html[data-theme="dark"] .chip-symbol,html[data-theme="dark"] .chip-bottom>.icon{background:#325174;color:#d5e8ff}
html[data-theme="dark"] .art-orbit{border-color:#4d6c9660}
html[data-theme="dark"] .daily-strip,html[data-theme="dark"] .panel,html[data-theme="dark"] .planning-section,html[data-theme="dark"] .coaching-feature{background:#14243b;border-color:#304865}
html[data-theme="dark"] .strip-icon,html[data-theme="dark"] .rail-tip{background:#1a304b;border-color:#304865;color:#b4d2fd}
html[data-theme="dark"] .daily-metric strong,html[data-theme="dark"] .timer-ring strong{color:#b2d1ff}
html[data-theme="dark"] .strip-title div>span,html[data-theme="dark"] .daily-metric span,html[data-theme="dark"] .rail-label,html[data-theme="dark"] .path-group,html[data-theme="dark"] .rail-tip>span:last-child,html[data-theme="dark"] .breadcrumb,html[data-theme="dark"] .section-heading p,html[data-theme="dark"] .panel-intro,html[data-theme="dark"] .timer-explainer,html[data-theme="dark"] .mini-label,html[data-theme="dark"] .content-footnote,html[data-theme="dark"] footer{color:#b0c4e0}
html[data-theme="dark"] .rail-tip p{color:#c4d8f1}
html[data-theme="dark"] .path-button{color:#c2d4ec;background:transparent;border-color:#38516f}
html[data-theme="dark"] .path-button.active,html[data-theme="dark"] .path-button:hover{background:#213b5d;color:#d4e7ff}
html[data-theme="dark"] .count-pill,html[data-theme="dark"] .course-group-heading span{background:#203754;border-color:#3d5675;color:#c7ddf9}
html[data-theme="dark"] .filter-tabs>button{color:#bacce5}
html[data-theme="dark"] .filter-tabs>button.active{color:#b9d7ff}
html[data-theme="dark"] .search-box,html[data-theme="dark"] .personal-textarea,html[data-theme="dark"] .plan-form input,html[data-theme="dark"] .plan-form select,html[data-theme="dark"] .timer-settings input,html[data-theme="dark"] #dailyGoal{background:#11243c;border-color:#426080;color:#e4efff}
html[data-theme="dark"] .search-box input{color:#e4efff}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#a9bdd6}
html[data-theme="dark"] .course-card{background:linear-gradient(130deg,#1b3353,#152a43);border-color:#3a5474}
html[data-theme="dark"] .course-card:nth-child(3n+2){background:linear-gradient(130deg,#1b374f,#172b44)}
html[data-theme="dark"] .course-card:nth-child(3n+3){background:linear-gradient(130deg,#253551,#182b46)}
html[data-theme="dark"] .course-card h3{color:#e4f0ff}
html[data-theme="dark"] .course-card p,html[data-theme="dark"] .course-meta,html[data-theme="dark"] .course-meta .icon,html[data-theme="dark"] .weight-label{color:#bed0e8}
html[data-theme="dark"] .course-icon,html[data-theme="dark"] .course-card:nth-child(3n+2) .course-icon,html[data-theme="dark"] .course-card:nth-child(3n+3) .course-icon{background:#2a4263;color:#c0ddff}
html[data-theme="dark"] .bookmark{color:#aec6e5}
html[data-theme="dark"] .bookmark:hover,html[data-theme="dark"] .bookmark.saved{background:#304b70;color:#d9eaff}
html[data-theme="dark"] .bookmark.saved svg{fill:#426991}
html[data-theme="dark"] .course-progress{background:#344964}
html[data-theme="dark"] .course-progress>span{background:#91bbf3}
html[data-theme="dark"] .card-action{background:#243e60;color:#d9eaff;border-color:#3a5376}
html[data-theme="dark"] .card-action:hover{background:#304e77}
html[data-theme="dark"] .card-action>span:last-child,html[data-theme="dark"] .course-group-heading{color:#bcd4f5}
html[data-theme="dark"] .primary-button,html[data-theme="dark"] .unit-note-actions .primary-button{background:#85b5ff;color:#122a4a}
html[data-theme="dark"] .primary-button:hover{background:#a5caff;color:#102747}
html[data-theme="dark"] .timer-modes{background:#213953}
html[data-theme="dark"] .timer-modes button{color:#bfcee3}
html[data-theme="dark"] .timer-modes button.active{background:#3a5a83;color:#fff}
html[data-theme="dark"] .ring-base{stroke:#314966}
html[data-theme="dark"] .ring-progress{stroke:#8bb9fa}
html[data-theme="dark"] .timer-ring>div>span,html[data-theme="dark"] .session-dots span{color:#b8cae3}
html[data-theme="dark"] .session-dots span{background:#36516e}
html[data-theme="dark"] .session-dots span.filled{background:#99c0fa}
html[data-theme="dark"] .icon-button{color:#b7cde8}
html[data-theme="dark"] .close-button{background:#274365;color:#d7e9ff;border:1px solid #4b6685}
html[data-theme="dark"] .icon-button:hover{color:#edf6ff;background:#274365}
html[data-theme="dark"] .goal-complete{color:#c2d5ef;border-color:#3a5575;background:#1c3554}
html[data-theme="dark"] .goal-complete.done{background:#1f473c;color:#c2eddb}
html[data-theme="dark"] .bottom-banner,html[data-theme="dark"] .coaching-intro{background:#183354;border-color:#365579}
html[data-theme="dark"] .bottom-banner p,html[data-theme="dark"] .coaching-intro p,html[data-theme="dark"] .coaching-feature p,html[data-theme="dark"] .planning-section>p,html[data-theme="dark"] .plan-form label,html[data-theme="dark"] .reflection-prompts,html[data-theme="dark"] .plan-item span{color:#bdd0e8}
html[data-theme="dark"] .coaching-intro h3{color:#d7e8ff}
html[data-theme="dark"] .bottom-banner>button{background:#244266;border-color:#45678b;color:#dcecff}
html[data-theme="dark"] .banner-icon{background:#29476c;color:#c3deff}
html[data-theme="dark"] .subsection-notice{background:#1d3655;border-color:#3d5879;color:#c4d8f1}
html[data-theme="dark"] .plan-item,html[data-theme="dark"] .plan-check{border-color:#42607e}
html[data-theme="dark"] .plan-item.done strong{color:#a9c1de}
html[data-theme="dark"] #guidance ul{color:#bed2ed!important}
html[data-theme="dark"] .lesson-dialog{background:#13243d;color:#e6f1ff;border:1px solid #365477;box-shadow:0 25px 100px #0008}
html[data-theme="dark"] .lesson-dialog::backdrop{background:#020a17c9}
html[data-theme="dark"] .lesson-dialog-header,html[data-theme="dark"] .lesson-dialog-footer{background:#162c48;border-color:#355071}
html[data-theme="dark"] .lesson-dialog-footer>span{color:#b8cee8}
html[data-theme="dark"] .lesson-tabs{border-color:#375271}
html[data-theme="dark"] .lesson-tabs button{color:#bed0e9}
html[data-theme="dark"] .lesson-tabs button.active{color:#bcdcff}
html[data-theme="dark"] .note-disclaimer,html[data-theme="dark"] .unit-picker-heading p,html[data-theme="dark"] .notes-actions{color:#bacde7}
html[data-theme="dark"] .unit,html[data-theme="dark"] .unit-choice{background:linear-gradient(130deg,#1c3554,#192f4a);border-color:#416182}
html[data-theme="dark"] .unit h3,html[data-theme="dark"] .unit-picker-heading h3,html[data-theme="dark"] .unit-choice-copy strong{color:#e4f0ff}
html[data-theme="dark"] .unit p,html[data-theme="dark"] .unit li,html[data-theme="dark"] .unit-index{color:#c5d7ee}
html[data-theme="dark"] .unit-choice-open{color:#dcecff}
html[data-theme="dark"] .unit-choice-open:hover{background:#294566}
html[data-theme="dark"] .unit-choice-copy>span,html[data-theme="dark"] .unit-section-title{color:#c0d7f4}
html[data-theme="dark"] .unit-choice-number{background:#304f75;color:#e1efff}
html[data-theme="dark"] .unit-choice-footer{background:#233c5b;border-color:#3e5b7c;color:#bed1ea}
html[data-theme="dark"] .unit-study{color:#dceaff}
html[data-theme="dark"] .unit-study input{accent-color:#94bfff}
html[data-theme="dark"] .unit-choice.studied{border-color:#75a695}
html[data-theme="dark"] .unit-study-summary,html[data-theme="dark"] .selected-unit{background:#1d385a;border-color:#3f6084;color:#c5d8f2}
html[data-theme="dark"] .unit-study-summary strong,html[data-theme="dark"] .selected-unit h3{color:#cce3ff}
html[data-theme="dark"] .unit-back,html[data-theme="dark"] .small-button{background:#284568;border-color:#4a698c;color:#deecff}
html[data-theme="dark"] .unit-back:hover{background:#35577c}
html[data-theme="dark"] .unit-note-actions{border-color:#43607f}
html[data-theme="dark"] .source-links{color:#c2d6f0}
html[data-theme="dark"] .question-bank-tools{background:#1b3453;border-color:#3c5a7a}
html[data-theme="dark"] .question-bank-tools label,html[data-theme="dark"] .question-bank-summary,html[data-theme="dark"] .question-head{color:#c3d6ef}
html[data-theme="dark"] .question-bank-tools select,html[data-theme="dark"] .question-head select{background:#112844;border-color:#4a6a8c;color:#e4f1ff}
html[data-theme="dark"] .question-bank-summary strong{color:#aad0ff}
html[data-theme="dark"] .question-card{background:linear-gradient(130deg,#1a3152,#172e4b);border-color:#486584}
html[data-theme="dark"] .question-card h3{color:#eef6ff}
html[data-theme="dark"] .question-meta span{background:#2a466b;border-color:#4b6a8e;color:#d7e7ff}
html[data-theme="dark"] .question-option{background:#233b59;border-color:#4a6688;color:#e5efff}
html[data-theme="dark"] .question-option>span{background:#345375;color:#dfeeff}
html[data-theme="dark"] .question-option:hover{background:#304d70;border-color:#86b1ec}
html[data-theme="dark"] .question-option.selected{background:#325c87;border-color:#a4ceff;color:#fff}
html[data-theme="dark"] .question-option.correct{background:#1d4536;border-color:#80bb9d;color:#d0f7e1}
html[data-theme="dark"] .question-option.wrong{background:#512a3b;border-color:#c18097;color:#ffe1e9}
html[data-theme="dark"] .question-feedback{background:#213d60;border-color:#517397;color:#d3e5ff}
html[data-theme="dark"] .question-feedback b{color:#e8f3ff}
html[data-theme="dark"] .question-controls{background:#142941;border-color:#3a5477}
html[data-theme="dark"] .question-controls .question-actions{background:transparent}
html[data-theme="dark"] .question-actions .primary-button{background:#85b5ff;color:#122a4a}
html[data-theme="dark"] .question-actions .primary-button:hover{background:#a5caff}
html[data-theme="dark"] .question-actions .primary-button:disabled{background:#2d4563;color:#c0d1e8;opacity:1}
html[data-theme="dark"] .question-actions .text-button,html[data-theme="dark"] .question-nav-button{background:#284465;border-color:#4a6585;color:#e3efff}
html[data-theme="dark"] .question-actions .text-button:disabled{background:#243b56;color:#adbfda;opacity:1}
html[data-theme="dark"] .text-button{color:#b9d9ff}
html[data-theme="dark"] .empty-state{color:#c0d1e7;border-color:#3f5a7c;background:#182c48}
html[data-theme="dark"] .toast{background:#304d72;color:#fff;border-color:#58769a}
