:root{color-scheme:light;--surface:#fff;--page:#faf8fc;--text:#30233f;--chart:#8052c7;--chart-alt:#23856d}html[data-theme=dark]{color-scheme:dark;--surface:#251f31;--page:#17131f;--text:#eee6f7;--muted:#b9adc9;--line:#45394f;--blue:#bb9aef;--navy:#211638;--chart:#c09aee;--chart-alt:#70d5b6}html[data-theme=dark] body{background:var(--page);color:var(--text)}html[data-theme=dark] :is(.card,.stat,.metrics-strip,.streak-tag,.pill,.auth,.auth-form-wrap,.mode-button,.sidebar,.topbar select,.fields input,.fields select,.fields textarea,.auth-form input,.graph-details input,.graph-details textarea){background:var(--surface);color:var(--text);border-color:var(--line)}html[data-theme=dark] :is(h1,h2,h3,.topbar strong,.auth-form h2,.goal-number,.skill-top h3){color:var(--text)}html[data-theme=dark] :is(.btn.secondary,.btn.light,.sidebar button.current,.choice:has(input:checked),.hero,.insight,.lesson,.hint,.pace-options>div,.graph-scroll){background:#342744;color:var(--text);border-color:#5b4371}html[data-theme=dark] :is(.hero p,.hero .eyebrow,.hero-meta,.insight p,.insight .eyebrow,.pace-details summary,.metrics-strip span,.goal-number span,.streak-tag,.course-body p){color:#c4b5d6}html[data-theme=dark] :is(.feedback,.feedback.wrong){background:#293b35;border-color:#49715e;color:#e0f4e9}html[data-theme=dark] .feedback.wrong{background:#423225;border-color:#876740}html[data-theme=dark] :is(.correct,.step.mastered){color:#90dfb8}html[data-theme=dark] .incorrect{color:#ffc18d}html[data-theme=dark] .graph-node rect{fill:var(--surface);stroke:#9179a5}html[data-theme=dark] .graph-node text{fill:var(--text)}html[data-theme=dark] .graph-node.selected rect{fill:#45315b}html[data-theme=dark] .graph-node .node-status{fill:var(--muted)}html[data-theme=dark] :is(progress,progress::-webkit-progress-bar){background:#463750}html[data-theme=dark] .course-art{background:#42315d;color:#d0b0f5}html[data-theme=dark] .art-1{background:#25483f;color:#a4d8c8}html[data-theme=dark] .task-type{background:#483259;color:#dfc4f7}html[data-theme=dark] .task-type.review{background:#25483f;color:#a4d8c8}html[data-theme=dark] .task-type.test{background:#493b21;color:#efd196}html[data-theme=dark] .avatar{background:#4b355d;color:#ead5fc}html[data-theme=dark] .text-button{color:#c5a2ef}html[data-theme=dark] .inline-error{color:#ff9dab}html[data-theme=dark] .sidebar{background:var(--surface)}html[data-theme=dark] .sidebar button{color:var(--muted)}.auth-theme{position:fixed;right:18px;top:18px;z-index:2}.theme-toggle{white-space:nowrap}.chart-layout{display:grid;grid-template-columns:1fr 1fr;gap:22px}.trend-chart{width:100%;height:auto;display:block;overflow:visible}.trend-chart text{fill:var(--muted);font-size:13px}.chart-grid{stroke:var(--line);stroke-width:1}.chart-line{fill:none;stroke:var(--chart);stroke-width:3}.chart-point{fill:var(--chart);stroke:var(--surface);stroke-width:2}.chart-point:focus{outline:2px solid var(--chart-alt)}.topic-row{padding:20px 0;border-top:1px solid var(--line);display:grid;grid-template-columns:180px 1fr;gap:14px}.topic-row>small{grid-column:2}.topic-bars label{font-size:.8rem;color:var(--muted)}.topic-bars progress{height:9px}.mastery-bar::-webkit-progress-value{background:var(--chart-alt)}.mastery-bar::-moz-progress-bar{background:var(--chart-alt)}.topic-legend{display:flex;gap:20px;font-size:.85rem;color:var(--chart)}.topic-legend span:last-child{color:var(--chart-alt)}@media(max-width:1000px){.chart-layout{grid-template-columns:1fr}.topbar-right{flex-wrap:wrap;gap:6px}.theme-toggle{font-size:.72rem;padding:8px;min-height:34px}}@media(max-width:720px){.topic-row{grid-template-columns:1fr}.topic-row>small{grid-column:1}.topbar{height:auto;min-height:90px;padding:12px 0;gap:12px}.topbar-right{justify-content:flex-end}.topbar select{max-width:145px}.auth-theme{font-size:.7rem}}
html[data-theme=dark] progress::-webkit-progress-bar{background:#463750}html[data-theme=dark] progress{background:#463750}
