/* Generated by scripts/build_dark_css.py from styles.css. Do not edit by hand. */
@media (prefers-color-scheme: dark){
:root:not([data-theme=light]){
  --bg:#0f1117;--card:#171a23;--text:#e9ebf2;--muted:#9aa2b4;--line:#2a2f3d;
  --accent:#8b7dff;--good:#3ccf8e;--bad:#ff6b75;--warn:#f0b452;--focus:#b9b0ff;
  --surface-soft:#1b1f2a;--shadow:0 10px 30px rgba(0,0,0,.35);color-scheme:dark;
}
:root:not([data-theme=light]) .beta{background:#1a182a}
:root:not([data-theme=light]) .progress{background:#1e1e27}
:root:not([data-theme=light]) .cta.secondary{background:var(--card)}
:root:not([data-theme=light]) .nav{background:rgba(23,26,35,0.95)}
:root:not([data-theme=light]) .lesson .n{background:#181627}
:root:not([data-theme=light]) .example{background:#161423;border:1px solid #1e1b2f}
:root:not([data-theme=light]) .choice{background:var(--card)}
:root:not([data-theme=light]) .choice.selected{background:#171423}
:root:not([data-theme=light]) .choice.correct{background:#182921}
:root:not([data-theme=light]) .choice.wrong{background:#251516}
:root:not([data-theme=light]) .feedback.good{background:#182921;color:#a6ecd0}
:root:not([data-theme=light]) .feedback.bad{background:#251516;color:#de8a92}
:root:not([data-theme=light]) .pill{background:#181627}
:root:not([data-theme=light]) .mastery-box{background:var(--card)}
:root:not([data-theme=light]) .segment button{background:var(--card)}
:root:not([data-theme=light]) .icon-close{background:#1e2026}
:root:not([data-theme=light]) .practice-form select{background:var(--card)}
:root:not([data-theme=light]) .small-action{background:#181627}
:root:not([data-theme=light]) .exam-form-grid select,:root:not([data-theme=light]) .omr-form input,:root:not([data-theme=light]) .omr-form select,:root:not([data-theme=light]) .qb-filter input,:root:not([data-theme=light]) .qb-filter select{background:var(--card)}
:root:not([data-theme=light]) .question-palette button{background:var(--card)}
:root:not([data-theme=light]) .question-palette button.answered{background:#191727;border-color:#232037}
:root:not([data-theme=light]) .danger-lite{background:var(--card);border:1px solid #351e20}
:root:not([data-theme=light]) .review-explanation{background:#191921}
:root:not([data-theme=light]) .qb-options span{background:#191921}
:root:not([data-theme=light]) .qb-solution{background:#182921}
:root:not([data-theme=light]) .omr-preview{background:var(--card)}
:root:not([data-theme=light]) .omr-row{border-bottom:1px dotted var(--surface-soft)}
:root:not([data-theme=light]) .cloud-badge{background:#161f27;color:#85baea;border:1px solid #1f2b36}
:root:not([data-theme=light]) .auth-box input,:root:not([data-theme=light]) .profile-fields input{background:var(--card)}
:root:not([data-theme=light]) .account-alert.good{background:#182921;color:#a6ecd0}
:root:not([data-theme=light]) .account-alert.bad{background:#251516;color:#de8a92}
:root:not([data-theme=light]) .profile-photo{background:#181627}
:root:not([data-theme=light]) .local-cloud-note{background:var(--card)}
:root:not([data-theme=light]) .sync-row{background:var(--card)}
:root:not([data-theme=light]) .status-dot{border:3px solid #201e34}
:root:not([data-theme=light]) .reset-box{background:var(--card)}
:root:not([data-theme=light]) body[data-network="offline"]:before{background:#332c1d;color:#eed29e}
:root:not([data-theme=light]) body{background:radial-gradient(circle at 50% -180px,#191728 0,#161923 380px)}
:root:not([data-theme=light]) .cloud-dot{border:1px solid #1c2431;background:#141b23}
:root:not([data-theme=light]) .beta{background:#1a182a}
:root:not([data-theme=light]) .mini-switch{background:rgba(23,26,35,0.75)}
:root:not([data-theme=light]) .mission-dots i.done{background:var(--card)}
:root:not([data-theme=light]) .hero-cta{background:var(--card);color:#c7c4e1}
:root:not([data-theme=light]) .continue-icon{background:#181627}
:root:not([data-theme=light]) .week-day i{background:var(--surface-soft)}
:root:not([data-theme=light]) .week-day.active i{background:#191727}
:root:not([data-theme=light]) .path-card.current{border-color:#221f36}
:root:not([data-theme=light]) .current-badge{background:#181627}
:root:not([data-theme=light]) .path-score{background:var(--card)}
:root:not([data-theme=light]) .learn-next{background:linear-gradient(135deg,var(--card),var(--card))}
:root:not([data-theme=light]) .topic-status{background:var(--surface-soft)}
:root:not([data-theme=light]) .topic-status.progressing{background:#312a1c;color:#ecc992}
:root:not([data-theme=light]) .topic-status.strong{background:#1a2d24;color:#a2ecce}
:root:not([data-theme=light]) .lesson .n.complete{background:#1a2d24}
:root:not([data-theme=light]) .smart-practice{background:linear-gradient(135deg,var(--card),#151322)}
:root:not([data-theme=light]) .practice-kpis>div{background:var(--card)}
:root:not([data-theme=light]) .mode-card.featured{border-color:#221f36;background:linear-gradient(145deg,var(--card),var(--card))}
:root:not([data-theme=light]) .result-stats span{background:var(--card)}
:root:not([data-theme=light]) .track:hover,:root:not([data-theme=light]) .path-lesson:hover,:root:not([data-theme=light]) .exam-action:hover{border-color:#201e35}
:root:not([data-theme=light]) .choice:hover:not(:disabled){border-color:#25223c}
:root:not([data-theme=light]) .mission-icon{background:#181627}
:root:not([data-theme=light]) .mission-done{border-color:#253d31;background:var(--card)}
:root:not([data-theme=light]) .mission-done .mission-icon{background:#1a2d24}
:root:not([data-theme=light]) .milestone-card{background:linear-gradient(135deg,var(--card),var(--card))}
:root:not([data-theme=light]) .milestone-icon{background:#1a1626}
:root:not([data-theme=light]) .badge-chip{background:var(--card)}
:root:not([data-theme=light]) .badge-chip.unlocked{border-color:#211e34;background:var(--card)}
:root:not([data-theme=light]) .achievement-icon{background:#181627}
:root:not([data-theme=light]) .achievement.unlocked{border-color:#211f35;background:var(--card)}
:root:not([data-theme=light]) .heatmap i,:root:not([data-theme=light]) .heat-legend i{background:#1f2228}
:root:not([data-theme=light]) .heat-0{background:#1f2228!important}
:root:not([data-theme=light]) .heat-1{background:#1f1d32!important}
:root:not([data-theme=light]) .heat-2{background:#2d2948!important}
:root:not([data-theme=light]) .unlock-panel{border:1px solid #201e33;background:var(--card)}
:root:not([data-theme=light]) body{background:radial-gradient(circle at 50% -120px,#1a1729 0,#161923 360px)}
:root:not([data-theme=light]) .noscript{background:#332c1d;color:#f0d8a9}
:root:not([data-theme=light]) .boot-loader span{border:4px solid #201e34}
:root:not([data-theme=light]) .nav{box-shadow:0 -8px 30px rgba(0,0,0,0.18)}
:root:not([data-theme=light]) .nav button:hover{background:#151322}
:root:not([data-theme=light]) .nav button.active{background:#181525}
:root:not([data-theme=light]) .card{box-shadow:0 8px 26px rgba(0,0,0,0.18)}
:root:not([data-theme=light]) .hero{box-shadow:0 18px 44px rgba(0,0,0,0.42)}
:root:not([data-theme=light]) .choice-key{background:#1b1d26}
:root:not([data-theme=light]) .choice.selected .choice-key{background:#1c192c}
:root:not([data-theme=light]) .choice.correct .choice-key{background:#1f362a}
:root:not([data-theme=light]) .choice.wrong .choice-key{background:#2f1b1d}
@media(min-width:900px){:root:not([data-theme=light]) .nav:after{box-shadow:0 12px 40px rgba(0,0,0,0.30)}}
:root:not([data-theme=light]) .lesson-demo-tag{color:#edd09b;background:#352f1e;border:1px solid #564c31}
:root:not([data-theme=light]) .lesson-meta span,:root:not([data-theme=light]) .lesson-prerequisites span{background:#1b1d24}
:root:not([data-theme=light]) .lesson-outline{background:#151322;border:1px solid #1d1a2d}
:root:not([data-theme=light]) .lesson-outline a{border:1px solid #1d1b2e;background:var(--card)}
:root:not([data-theme=light]) .lesson-section{background:var(--card);box-shadow:0 7px 22px rgba(0,0,0,0.14)}
:root:not([data-theme=light]) .lesson-section p{color:#b9bdcc}
:root:not([data-theme=light]) .lesson-formula{background:#171524;border:1px solid #1e1b2e}
:root:not([data-theme=light]) .lesson-formula code{color:#c9c1e2}
:root:not([data-theme=light]) .lesson-example{border:1px solid var(--surface-soft);background:var(--card)}
:root:not([data-theme=light]) .lesson-table th{background:#181625;color:#b3afc7}
:root:not([data-theme=light]) .lesson-callout{border:1px solid #292733;background:var(--card)}
:root:not([data-theme=light]) .lesson-callout.tip{background:#16261d;border-color:#253b2f}
:root:not([data-theme=light]) .lesson-callout.warning{background:#262016;border-color:#453b27}
:root:not([data-theme=light]) .lesson-callout.important{background:#221313;border-color:#362021}
:root:not([data-theme=light]) .lesson-mistake{background:var(--card)}
:root:not([data-theme=light]) .lesson-mistake b{color:#9eedc9}
:root:not([data-theme=light]) .batch-hint{color:var(--muted,#b5b5b5)}
:root:not([data-theme=light]) .choice:not(:disabled):hover{border-color:#26233d}
:root:not([data-theme=light]) .update-toast{box-shadow:0 12px 30px rgba(0,0,0,0.50)}
:root:not([data-theme=light]) .segment button.active{background:var(--text);border-color:var(--text);color:var(--bg)}
:root:not([data-theme=light]) .boot-loader span{border-color:#2a2f3d;border-top-color:var(--accent)}
:root:not([data-theme=light]) select,:root:not([data-theme=light]) input,:root:not([data-theme=light]) textarea{background-color:var(--surface-soft);color:var(--text);border-color:var(--line)}
:root:not([data-theme=light]) ::placeholder{color:#6f7789}
}
:root[data-theme=dark]{
  --bg:#0f1117;--card:#171a23;--text:#e9ebf2;--muted:#9aa2b4;--line:#2a2f3d;
  --accent:#8b7dff;--good:#3ccf8e;--bad:#ff6b75;--warn:#f0b452;--focus:#b9b0ff;
  --surface-soft:#1b1f2a;--shadow:0 10px 30px rgba(0,0,0,.35);color-scheme:dark;
}
:root[data-theme=dark] .beta{background:#1a182a}
:root[data-theme=dark] .progress{background:#1e1e27}
:root[data-theme=dark] .cta.secondary{background:var(--card)}
:root[data-theme=dark] .nav{background:rgba(23,26,35,0.95)}
:root[data-theme=dark] .lesson .n{background:#181627}
:root[data-theme=dark] .example{background:#161423;border:1px solid #1e1b2f}
:root[data-theme=dark] .choice{background:var(--card)}
:root[data-theme=dark] .choice.selected{background:#171423}
:root[data-theme=dark] .choice.correct{background:#182921}
:root[data-theme=dark] .choice.wrong{background:#251516}
:root[data-theme=dark] .feedback.good{background:#182921;color:#a6ecd0}
:root[data-theme=dark] .feedback.bad{background:#251516;color:#de8a92}
:root[data-theme=dark] .pill{background:#181627}
:root[data-theme=dark] .mastery-box{background:var(--card)}
:root[data-theme=dark] .segment button{background:var(--card)}
:root[data-theme=dark] .icon-close{background:#1e2026}
:root[data-theme=dark] .practice-form select{background:var(--card)}
:root[data-theme=dark] .small-action{background:#181627}
:root[data-theme=dark] .exam-form-grid select,:root[data-theme=dark] .omr-form input,:root[data-theme=dark] .omr-form select,:root[data-theme=dark] .qb-filter input,:root[data-theme=dark] .qb-filter select{background:var(--card)}
:root[data-theme=dark] .question-palette button{background:var(--card)}
:root[data-theme=dark] .question-palette button.answered{background:#191727;border-color:#232037}
:root[data-theme=dark] .danger-lite{background:var(--card);border:1px solid #351e20}
:root[data-theme=dark] .review-explanation{background:#191921}
:root[data-theme=dark] .qb-options span{background:#191921}
:root[data-theme=dark] .qb-solution{background:#182921}
:root[data-theme=dark] .omr-preview{background:var(--card)}
:root[data-theme=dark] .omr-row{border-bottom:1px dotted var(--surface-soft)}
:root[data-theme=dark] .cloud-badge{background:#161f27;color:#85baea;border:1px solid #1f2b36}
:root[data-theme=dark] .auth-box input,:root[data-theme=dark] .profile-fields input{background:var(--card)}
:root[data-theme=dark] .account-alert.good{background:#182921;color:#a6ecd0}
:root[data-theme=dark] .account-alert.bad{background:#251516;color:#de8a92}
:root[data-theme=dark] .profile-photo{background:#181627}
:root[data-theme=dark] .local-cloud-note{background:var(--card)}
:root[data-theme=dark] .sync-row{background:var(--card)}
:root[data-theme=dark] .status-dot{border:3px solid #201e34}
:root[data-theme=dark] .reset-box{background:var(--card)}
:root[data-theme=dark] body[data-network="offline"]:before{background:#332c1d;color:#eed29e}
:root[data-theme=dark] body{background:radial-gradient(circle at 50% -180px,#191728 0,#161923 380px)}
:root[data-theme=dark] .cloud-dot{border:1px solid #1c2431;background:#141b23}
:root[data-theme=dark] .beta{background:#1a182a}
:root[data-theme=dark] .mini-switch{background:rgba(23,26,35,0.75)}
:root[data-theme=dark] .mission-dots i.done{background:var(--card)}
:root[data-theme=dark] .hero-cta{background:var(--card);color:#c7c4e1}
:root[data-theme=dark] .continue-icon{background:#181627}
:root[data-theme=dark] .week-day i{background:var(--surface-soft)}
:root[data-theme=dark] .week-day.active i{background:#191727}
:root[data-theme=dark] .path-card.current{border-color:#221f36}
:root[data-theme=dark] .current-badge{background:#181627}
:root[data-theme=dark] .path-score{background:var(--card)}
:root[data-theme=dark] .learn-next{background:linear-gradient(135deg,var(--card),var(--card))}
:root[data-theme=dark] .topic-status{background:var(--surface-soft)}
:root[data-theme=dark] .topic-status.progressing{background:#312a1c;color:#ecc992}
:root[data-theme=dark] .topic-status.strong{background:#1a2d24;color:#a2ecce}
:root[data-theme=dark] .lesson .n.complete{background:#1a2d24}
:root[data-theme=dark] .smart-practice{background:linear-gradient(135deg,var(--card),#151322)}
:root[data-theme=dark] .practice-kpis>div{background:var(--card)}
:root[data-theme=dark] .mode-card.featured{border-color:#221f36;background:linear-gradient(145deg,var(--card),var(--card))}
:root[data-theme=dark] .result-stats span{background:var(--card)}
:root[data-theme=dark] .track:hover,:root[data-theme=dark] .path-lesson:hover,:root[data-theme=dark] .exam-action:hover{border-color:#201e35}
:root[data-theme=dark] .choice:hover:not(:disabled){border-color:#25223c}
:root[data-theme=dark] .mission-icon{background:#181627}
:root[data-theme=dark] .mission-done{border-color:#253d31;background:var(--card)}
:root[data-theme=dark] .mission-done .mission-icon{background:#1a2d24}
:root[data-theme=dark] .milestone-card{background:linear-gradient(135deg,var(--card),var(--card))}
:root[data-theme=dark] .milestone-icon{background:#1a1626}
:root[data-theme=dark] .badge-chip{background:var(--card)}
:root[data-theme=dark] .badge-chip.unlocked{border-color:#211e34;background:var(--card)}
:root[data-theme=dark] .achievement-icon{background:#181627}
:root[data-theme=dark] .achievement.unlocked{border-color:#211f35;background:var(--card)}
:root[data-theme=dark] .heatmap i,:root[data-theme=dark] .heat-legend i{background:#1f2228}
:root[data-theme=dark] .heat-0{background:#1f2228!important}
:root[data-theme=dark] .heat-1{background:#1f1d32!important}
:root[data-theme=dark] .heat-2{background:#2d2948!important}
:root[data-theme=dark] .unlock-panel{border:1px solid #201e33;background:var(--card)}
:root[data-theme=dark] body{background:radial-gradient(circle at 50% -120px,#1a1729 0,#161923 360px)}
:root[data-theme=dark] .noscript{background:#332c1d;color:#f0d8a9}
:root[data-theme=dark] .boot-loader span{border:4px solid #201e34}
:root[data-theme=dark] .nav{box-shadow:0 -8px 30px rgba(0,0,0,0.18)}
:root[data-theme=dark] .nav button:hover{background:#151322}
:root[data-theme=dark] .nav button.active{background:#181525}
:root[data-theme=dark] .card{box-shadow:0 8px 26px rgba(0,0,0,0.18)}
:root[data-theme=dark] .hero{box-shadow:0 18px 44px rgba(0,0,0,0.42)}
:root[data-theme=dark] .choice-key{background:#1b1d26}
:root[data-theme=dark] .choice.selected .choice-key{background:#1c192c}
:root[data-theme=dark] .choice.correct .choice-key{background:#1f362a}
:root[data-theme=dark] .choice.wrong .choice-key{background:#2f1b1d}
@media(min-width:900px){:root[data-theme=dark] .nav:after{box-shadow:0 12px 40px rgba(0,0,0,0.30)}}
:root[data-theme=dark] .lesson-demo-tag{color:#edd09b;background:#352f1e;border:1px solid #564c31}
:root[data-theme=dark] .lesson-meta span,:root[data-theme=dark] .lesson-prerequisites span{background:#1b1d24}
:root[data-theme=dark] .lesson-outline{background:#151322;border:1px solid #1d1a2d}
:root[data-theme=dark] .lesson-outline a{border:1px solid #1d1b2e;background:var(--card)}
:root[data-theme=dark] .lesson-section{background:var(--card);box-shadow:0 7px 22px rgba(0,0,0,0.14)}
:root[data-theme=dark] .lesson-section p{color:#b9bdcc}
:root[data-theme=dark] .lesson-formula{background:#171524;border:1px solid #1e1b2e}
:root[data-theme=dark] .lesson-formula code{color:#c9c1e2}
:root[data-theme=dark] .lesson-example{border:1px solid var(--surface-soft);background:var(--card)}
:root[data-theme=dark] .lesson-table th{background:#181625;color:#b3afc7}
:root[data-theme=dark] .lesson-callout{border:1px solid #292733;background:var(--card)}
:root[data-theme=dark] .lesson-callout.tip{background:#16261d;border-color:#253b2f}
:root[data-theme=dark] .lesson-callout.warning{background:#262016;border-color:#453b27}
:root[data-theme=dark] .lesson-callout.important{background:#221313;border-color:#362021}
:root[data-theme=dark] .lesson-mistake{background:var(--card)}
:root[data-theme=dark] .lesson-mistake b{color:#9eedc9}
:root[data-theme=dark] .batch-hint{color:var(--muted,#b5b5b5)}
:root[data-theme=dark] .choice:not(:disabled):hover{border-color:#26233d}
:root[data-theme=dark] .update-toast{box-shadow:0 12px 30px rgba(0,0,0,0.50)}
:root[data-theme=dark] .segment button.active{background:var(--text);border-color:var(--text);color:var(--bg)}
:root[data-theme=dark] .boot-loader span{border-color:#2a2f3d;border-top-color:var(--accent)}
:root[data-theme=dark] select,:root[data-theme=dark] input,:root[data-theme=dark] textarea{background-color:var(--surface-soft);color:var(--text);border-color:var(--line)}
:root[data-theme=dark] ::placeholder{color:#6f7789}
