:root[data-theme="dark"]{color-scheme:dark;background:#101714;color:#e3ece7;--green:#75c5a4;--line:#34443c;--muted:#a0b0a7}
:root[data-theme="dark"] body{background:#101714;color:#e3ece7}
:root[data-theme="dark"] header,:root[data-theme="dark"] aside,:root[data-theme="dark"] footer{background:#18221d;border-color:#34443c}
:root[data-theme="dark"] .brand{color:#e3ece7}
:root[data-theme="dark"] .logo{background:#245b49}
:root[data-theme="dark"] a{color:#8ed8b7}
:root[data-theme="dark"] nav button{color:#c0cec6}
:root[data-theme="dark"] nav button.active{background:#244338;color:#a7e5c7}
:root[data-theme="dark"] nav .number{border-color:#4c6659}
:root[data-theme="dark"] .card,:root[data-theme="dark"] .stat,:root[data-theme="dark"] .empty{background:#1a2520;border-color:#34443c;color:#e3ece7}
:root[data-theme="dark"] .hero-card{background:#204637;color:#f3faf6}
:root[data-theme="dark"] .hero-card p{color:#d3e7dc}
:root[data-theme="dark"] .hero-card .tag{background:#32634f;color:#e4f4eb}
:root[data-theme="dark"] input:not([type=radio]),:root[data-theme="dark"] select,:root[data-theme="dark"] textarea{background:#111a16;color:#e3ece7;border-color:#4a5b51}
:root[data-theme="dark"] .button.secondary,:root[data-theme="dark"] button.secondary{background:#25352d;border-color:#526b5c;color:#d7eee2}
:root[data-theme="dark"] .tag{background:#2a3931;color:#c3d6cb}
:root[data-theme="dark"] .tag.green{background:#244a37;color:#a7e5b9}
:root[data-theme="dark"] .tag.amber{background:#514328;color:#f0d797}
:root[data-theme="dark"] .option{border-color:#34443c}
:root[data-theme="dark"] .option:has(input:checked),:root[data-theme="dark"] .survey-steps .active{background:#254335;border-color:#5b9e77;color:#d2efdc}
:root[data-theme="dark"] .survey-steps button{background:#1a2520;color:#bdcbc2;border-color:#34443c}
:root[data-theme="dark"] .progress{background:#35443b}
:root[data-theme="dark"] .timeline li{border-color:#3e5949}
:root[data-theme="dark"] .timeline li:before{border-color:#101714}
:root[data-theme="dark"] td{border-color:#2a3831}
:root[data-theme="dark"] .notice,:root[data-theme="dark"] .milestone{background:#24372c;border-color:#3e5945}
:root[data-theme="dark"] .milestone p{color:#c2d2c7}
:root[data-theme="dark"] #feedback{background:#24422f;color:#c7efd0}
:root[data-theme="dark"] #feedback.error{background:#4a2925;color:#ffd0c6}
:root[data-theme="dark"] button:focus-visible,:root[data-theme="dark"] a:focus-visible{outline-color:#e6bd68}
.theme-toggle{white-space:nowrap}
@media(max-width:700px){.theme-toggle{width:100%}}
:root[data-theme="dark"] .context-pill,:root[data-theme="dark"] .triad-card,:root[data-theme="dark"] .triad-btn{background:#1a2520;border-color:#34443c;color:#d7eee2}
:root[data-theme="dark"] .context-pill[aria-pressed="true"]{background:#2e6b56;border-color:#5b9e77;color:#fff}
:root[data-theme="dark"] .triad-btn[aria-pressed="true"][data-triad-pick="most"]{background:#a7e5c7;border-color:#a7e5c7;color:#102b20;box-shadow:0 0 0 2px #a7e5c7}
:root[data-theme="dark"] .triad-btn[aria-pressed="true"][data-triad-pick="least"]{background:#ffd0b8;border-color:#ffd0b8;color:#4b2115;box-shadow:0 0 0 2px #ffd0b8}
:root[data-theme="dark"] .v2-survey .choice:has(input:checked){background:#294d3c;color:#f3fff7;border-color:#a7e5c7;box-shadow:inset 4px 0 #a7e5c7}
:root[data-theme="dark"] .v2-survey .choice input{accent-color:#a7e5c7}
:root[data-theme="dark"] .quadrant-alert{background:#3a271c;border-color:#7a4b2d;color:#f6dec9}
:root[data-theme="dark"] .source-excerpt{background:#111a16;border-color:#34443c;color:#cfe2d7}
:root[data-theme="dark"] .sandbox-result.is-pass{background:#1e3a2b;border-color:#44835f}
:root[data-theme="dark"] .sandbox-result.is-fail{background:#3f221e;border-color:#8a453b}

:root[data-theme="dark"] #nav:has(.screening-label) > a { color: #c2d6ca; }
:root[data-theme="dark"] #nav:has(.screening-label) > a.active,
:root[data-theme="dark"] .screening-page .plan-nav a[aria-current="page"],
:root[data-theme="dark"] .screening-page .wheel-legend button[aria-pressed="true"],
:root[data-theme="dark"] .screening-page .competency-groups button[aria-pressed="true"] {
    background: #294d3c;
    color: #f3fff7;
    border-color: #a7e5c7;
}
:root[data-theme="dark"] #nav:has(.screening-label) > a.active .number,
:root[data-theme="dark"] .screening-page :is(.primary, .button:not(.secondary)) { color: #102b20; }
:root[data-theme="dark"] .screening-page :is(.task-editor, .learning-track, .wheel-detail, .plan-nav a:not([aria-current])) {
    background: #1a2520;
    color: #e3ece7;
}
:root[data-theme="dark"] .screening-page :is(.wheel-score, .track-body summary, .task-editor > summary::before, .learning-track > summary::before) { color: #a7e5c7; }
:root[data-theme="dark"] .screening-page .v2-pagination button[aria-current="page"] { color: #fff; }
:root[data-theme="dark"] .screening-page .field-error { color: #ffd0c6; }
