:root[data-examsim-theme="dark"]{color-scheme:dark}
:root[data-examsim-theme="dark"] body{background:#101827;color:#e8edf6}
:root[data-examsim-theme="dark"] .card,:root[data-examsim-theme="dark"] .question-card,:root[data-examsim-theme="dark"] .account-menu nav{background:#172235;color:#e8edf6;border-color:#34435a}
:root[data-examsim-theme="dark"] input,:root[data-examsim-theme="dark"] select,:root[data-examsim-theme="dark"] textarea{background:#101827;color:#e8edf6;border-color:#465671}
:root[data-examsim-theme="dark"] .top,:root[data-examsim-theme="dark"] .home-header{background:#172235;color:#e8edf6;border-color:#34435a}
:root[data-examsim-theme="dark"] .account-menu nav a,:root[data-examsim-theme="dark"] .account-menu nav button{color:#e8edf6}
:root[data-examsim-theme="dark"] .muted,:root[data-examsim-theme="dark"] .vendor-card span,:root[data-examsim-theme="dark"] small{color:#b8c5d8}
:root[data-examsim-theme="dark"] .option,:root[data-examsim-theme="dark"] .answer-row,:root[data-examsim-theme="dark"] .answer-grid>div,:root[data-examsim-theme="dark"] .exam-entry,:root[data-examsim-theme="dark"] .progress-stat,:root[data-examsim-theme="dark"] .navigator a,:root[data-examsim-theme="dark"] .score-bar{background:#1d2b40;color:#e8edf6;border-color:#465671}
:root[data-examsim-theme="dark"] select option,:root[data-examsim-theme="dark"] input::placeholder,:root[data-examsim-theme="dark"] textarea::placeholder{background:#101827;color:#e8edf6}
:root[data-examsim-theme="dark"] button:disabled,:root[data-examsim-theme="dark"] input:disabled,:root[data-examsim-theme="dark"] select:disabled{background:#354156!important;color:#c0cad9!important;border-color:#56657a!important;opacity:1}
:root[data-examsim-theme="dark"] .scenario,:root[data-examsim-theme="dark"] .explanation,:root[data-examsim-theme="dark"] .exam-summary{background:#1d2b40;color:#e8edf6;border-color:#465671}
:root[data-examsim-theme="dark"] .account-menu nav{background:#172235;border-color:#465671}
@media(prefers-color-scheme:dark){:root[data-examsim-theme="system"]{color-scheme:dark}:root[data-examsim-theme="system"] .muted,:root[data-examsim-theme="system"] small{color:#b8c5d8}:root[data-examsim-theme="system"] .option,:root[data-examsim-theme="system"] .answer-row,:root[data-examsim-theme="system"] .answer-grid>div,:root[data-examsim-theme="system"] .exam-entry,:root[data-examsim-theme="system"] .progress-stat,:root[data-examsim-theme="system"] .navigator a,:root[data-examsim-theme="system"] .score-bar,:root[data-examsim-theme="system"] .scenario,:root[data-examsim-theme="system"] .explanation,:root[data-examsim-theme="system"] .exam-summary,:root[data-examsim-theme="system"] table,:root[data-examsim-theme="system"] th,:root[data-examsim-theme="system"] td,:root[data-examsim-theme="system"] .leave-session-dialog{background:#1d2b40;color:#e8edf6;border-color:#465671}:root[data-examsim-theme="system"] select option{background:#101827;color:#e8edf6}:root[data-examsim-theme="system"] button:disabled,:root[data-examsim-theme="system"] input:disabled,:root[data-examsim-theme="system"] select:disabled{background:#354156!important;color:#c0cad9!important;border-color:#56657a!important;opacity:1}}
:root[data-examsim-theme="dark"] table,:root[data-examsim-theme="dark"] th,:root[data-examsim-theme="dark"] td,:root[data-examsim-theme="dark"] .leave-session-dialog{background:#172235;color:#e8edf6;border-color:#465671}
@media(prefers-color-scheme:dark){:root[data-examsim-theme="system"]{color-scheme:dark}:root[data-examsim-theme="system"] body{background:#101827;color:#e8edf6}:root[data-examsim-theme="system"] .card,:root[data-examsim-theme="system"] .question-card,:root[data-examsim-theme="system"] .account-menu nav{background:#172235;color:#e8edf6;border-color:#34435a}}

:root[data-examsim-theme="dark"] .option.is-correct,
:root[data-examsim-theme="dark"] .answer-row.correct,
:root[data-examsim-theme="dark"] .practice-page .answer-result.is-correct,
:root[data-examsim-theme="dark"] .correct-answer-review,
:root[data-examsim-theme="dark"] .answer-grid .correct-answer-panel,
:root[data-examsim-theme="dark"] .review-card.review-good { background:#123D2B; color:#D1FAE5; border-color:#34D399; }
:root[data-examsim-theme="dark"] .option.is-correct { box-shadow:inset 4px 0 #34D399; }
:root[data-examsim-theme="dark"] .option.is-correct strong,
:root[data-examsim-theme="dark"] .option.is-correct .option-status,
:root[data-examsim-theme="dark"] .answer-row.correct .badge,
:root[data-examsim-theme="dark"] .practice-page .answer-result.is-correct h3 { color:#6EE7B7; }
:root[data-examsim-theme="dark"] .answer-row.correct .badge { background:#16563F; }
:root[data-examsim-theme="dark"] .option.is-correct .option-status::before,
:root[data-examsim-theme="dark"] .answer-row.correct .badge::before,
:root[data-examsim-theme="dark"] .practice-page .answer-result.is-correct h3::before { content:"✓ "; }
:root[data-examsim-theme="dark"] .option.is-correct input { accent-color:#6EE7B7; }
:root[data-examsim-theme="dark"] .option.is-wrong,
:root[data-examsim-theme="dark"] .practice-page .answer-result.is-wrong,
:root[data-examsim-theme="dark"] .review-card.review-bad { background:#3B1F29; color:#FFE4E6; border-color:#FB7185; }
:root[data-examsim-theme="dark"] .option.is-wrong { box-shadow:inset 4px 0 #FB7185; }
:root[data-examsim-theme="dark"] .option.is-wrong strong,
:root[data-examsim-theme="dark"] .option.is-wrong .option-status,
:root[data-examsim-theme="dark"] .practice-page .answer-result.is-wrong h3 { color:#FDA4AF; }
:root[data-examsim-theme="dark"] .option.is-wrong .option-status::before { content:"× "; }
:root[data-examsim-theme="dark"] .option.is-wrong input { accent-color:#FDA4AF; }
:root[data-examsim-theme="dark"] .option:focus-within { outline:2px solid #93C5FD; outline-offset:2px; }
:root[data-examsim-theme="dark"] .correct-answer-review { padding:10px; border:1px solid #34D399; border-radius:8px; }

@media (prefers-color-scheme:dark) {
    :root[data-examsim-theme="system"] .option.is-correct,
    :root[data-examsim-theme="system"] .answer-row.correct,
    :root[data-examsim-theme="system"] .practice-page .answer-result.is-correct,
    :root[data-examsim-theme="system"] .correct-answer-review,
    :root[data-examsim-theme="system"] .answer-grid .correct-answer-panel,
    :root[data-examsim-theme="system"] .review-card.review-good { background:#123D2B; color:#D1FAE5; border-color:#34D399; }
    :root[data-examsim-theme="system"] .option.is-correct { box-shadow:inset 4px 0 #34D399; }
    :root[data-examsim-theme="system"] .option.is-correct strong,
    :root[data-examsim-theme="system"] .option.is-correct .option-status,
    :root[data-examsim-theme="system"] .answer-row.correct .badge,
    :root[data-examsim-theme="system"] .practice-page .answer-result.is-correct h3 { color:#6EE7B7; }
    :root[data-examsim-theme="system"] .answer-row.correct .badge { background:#16563F; }
    :root[data-examsim-theme="system"] .option.is-correct .option-status::before,
    :root[data-examsim-theme="system"] .answer-row.correct .badge::before,
    :root[data-examsim-theme="system"] .practice-page .answer-result.is-correct h3::before { content:"✓ "; }
    :root[data-examsim-theme="system"] .option.is-correct input { accent-color:#6EE7B7; }
    :root[data-examsim-theme="system"] .option.is-wrong,
    :root[data-examsim-theme="system"] .practice-page .answer-result.is-wrong,
    :root[data-examsim-theme="system"] .review-card.review-bad { background:#3B1F29; color:#FFE4E6; border-color:#FB7185; }
    :root[data-examsim-theme="system"] .option.is-wrong { box-shadow:inset 4px 0 #FB7185; }
    :root[data-examsim-theme="system"] .option.is-wrong strong,
    :root[data-examsim-theme="system"] .option.is-wrong .option-status,
    :root[data-examsim-theme="system"] .practice-page .answer-result.is-wrong h3 { color:#FDA4AF; }
    :root[data-examsim-theme="system"] .option.is-wrong .option-status::before { content:"× "; }
    :root[data-examsim-theme="system"] .option.is-wrong input { accent-color:#FDA4AF; }
    :root[data-examsim-theme="system"] .option:focus-within { outline:2px solid #93C5FD; outline-offset:2px; }
    :root[data-examsim-theme="system"] .correct-answer-review { padding:10px; border:1px solid #34D399; border-radius:8px; }
}
