/* Generated by authoring/tools/make_dark_css.py from base.css and app.css. Do not edit by hand. */
@media screen and (prefers-color-scheme: dark){
:root{--ink:#e7ebf4;--muted:#aab4c9;--faint:#9aa5bc;--line:#2d3752;--paper:#161d2e;--bg:#0e1321;--brand:#8fa8ff;--soft:#1c2540;--amber:#e4ad6c;--slate:#1b2233;--shadow:0 6px 25px rgba(0,0,0,.35)}
.skip-link{background:#252525}
.nav-link:hover{background:rgba(37,37,37,0.0471)}
.topbar{background:#131a27}
.btn.secondary:hover{background:#151929}
.btn.lime:hover{background:#1c2744}
.panel{background:#252525}
.chip.live{color:#bdc8df;background:#162036}
.chip.quest-fail{background:#352816;color:#e5c7a8}
.chip.multi-chip{background:#13192f;color:#b1b9cb}
.callout{background:#171e2f}
.note{background:#302814;border:1px solid #6c5c34;color:#d6c6b0}
.mini-process span{background:#252525}
input,select,textarea{border:1px solid #464d5e;background:#252525}
input:disabled{background:#1d1f27}
table{background:#252525}
th{background:#191c28}
code{background:#1c212a}
.term{background:#252525}
.empty{border:1px dashed #464e5e;background:#252525}
.construction{background:#252525}
.result{border:1px solid #3c4968}
.result.error{background:#312514;border-color:#6e5835;color:#e5d0b2}
.error{color:#e3bcad}
.trace-node{background:#252525}
.map-actions a{background:#252525}
.step-link .ico{color:#abb2c0}
.map-frame{background:#252525}
.map-note{border-top:1px solid #3f4756}
.resource-entry{background:#252525}
.overview-stages>div{border-top:2px solid #444f6b}
.quest-feature{border:1px solid #425071;background:linear-gradient(110deg,#161f31,#152035)}
.quest-feature .mini-meta{color:#bdc2ce}
.quest-feature .quest-emblem{border:1px solid #3f4c6d;background:rgba(37,37,37,0.533)}
.question-panel{background:#252525}
.review-mark.marked{color:#d7bfa1;background:#332a15}
.option{border:1px solid #40485c}
.option:hover{background:#111a2b}
.option:has(input:checked){background:#151f34}
.choice-letter{border:1px solid #444c60;background:#252525;color:#b7bdc9}
.chosen-tick{color:#b6c1d8}
.question-side{background:#252525}
.progress-track{background:#1c222e}
.question-jumps button{background:#252525}
.question-jumps button.answered{background:#162036;border-color:#3a4b6e;color:#c2cbe0}
.question-jumps button.current{color:#c7d0e5}
.grid-legend i{background:#1c2841}
.review-summary>div{background:#161c2d}
.lesson-toc{background:#252525}
.term-pills button{border:1px solid #3f4963;background:#131b2b}
.result-hero.is-fail{background:#2f2513;color:#e0d4bd;border:1px solid #6f5b36}
.result-hero .eyebrow:before{background:#233255}
.result-hero.is-fail .eyebrow{color:#d1c2a8}
.quest-explanation{background:#252525}
.preview-banner{background:#1b202b}
dialog{background:#252525}
.auth-layout{background:#252525}
:root{--ink:#e7ebf4;--muted:#aab4c9;--faint:#9aa5bc;--line:#2d3752;--paper:#161d2e;--bg:#0e1321;--brand:#8fa8ff;--soft:#1c2540;--shadow:0 6px 25px rgba(0,0,0,.35)}
.nav-link.active:after{background:#244f58}
.topbar{background:#252525}
.btn.secondary:hover{background:#12192b}
.btn.lime{background:#244f58;color:#cfd8f8}
.btn.lime:hover{background:#1c3d44}
.callout{background:#131b2e}
.chip.live{background:#13212f;color:#a8c9f2}
.chip.multi-chip{background:#18132e;color:#a69dd2}
.program-hero{background:#252525;border:1px solid #344665}
.program-metrics strong{color:#b4c4f4}
.vehicle-security:hover,.vehicle-security:focus-visible{border-color:#396c77}
.vehicle-mobile-links summary{color:#aebfde}
.vehicle-topic-links a{background:#252525}
.vehicle-topic-links .is-live{background:#12202d;color:#b2d3f4}
.vehicle-topic-links .is-live span{color:#aadbf3}
.option:has(input:checked){background:#121b2d}
.option:has(input:checked) .chosen-tick{color:#7e95ed}
.question-jumps button.answered{background:#131c2f;border-color:#35496e;color:#aac1e8}
.question-jumps button.current{color:#b4c4f4}
.quest-feature{background:linear-gradient(110deg,#131e2e,#252525);border-color:#344b6d}
.result-hero .eyebrow:before{background:#244f58}
:root{--label:#b0b9cc;--danger:#ff8b80;--good:#6fcf97}
.btn.secondary{border-color:#3f5171}
.meta,.small-note{color:#b0b9cc}
.program-head span{color:#b0b9cc}
.mode-button{background:#151e35;color:#b5c3dd}
.prototype-line{background:#131b2e;border-bottom:1px solid #314165;color:#b0b9cc}
.page-title26 .eyebrow{color:#7e95ed}
.soft-note26{color:#b0b9cc;border:1px solid #314266;background:#121b2c}
.status-pill26{background:#131c2e;color:#b1bacb}
.status-pill26.live{background:#153121;color:#bee8d7}
.status-pill26.warn{background:#332715;color:#f0d4ac}
.status-pill26.error{background:#311914;color:#e6b0a7}
.status-pill26.purple{background:#18132e;color:#b1a6d5}
.tabs26 a{color:#aeb6c9}
.tabs26 a.active{color:#7e95ed}
.metric26{background:#252525}
.metric26 small{color:#b0b9cc}
.metric26 strong{color:#b5c8f4}
.metric26 strong span{color:#abb4c3}
.metric26 p{color:#abb4c3}
.resume26:after{box-shadow:0 0 0 22px rgba(37,37,37,0.0118),0 0 0 23px rgba(37,37,37,0.0706)}
.resume26 .eyebrow:before{background:#244f58}
.resume26 .btn{background:#244f58;color:#cfd8f8;border-color:#396c77}
.progress-inline26 span{background:#295965}
.home-next26{background:#252525}
.home-steps26 a{color:#b5c6dc}
.home-steps26 a:last-child{color:#7e95ed}
.list-card26{background:#252525}
.list-row26 p{color:#aab3c4}
.empty26{border:1px dashed #35486d;background:#151d35;color:#adb7c8}
.empty26 h3{color:#c1cfe4}
.field-hint26{color:#a9b4c7}
.form-error26{background:#2f1713;border:1px solid #754138;color:#e5b0a8}
.admin-card26{background:#252525}
.admin-card26>.ico{color:#859eea}
.admin-card26 p{color:#a7b0c2}
.admin-card26 .card-link26{color:#8aa5ee}
.admin-subnav26 a{background:#252525}
.admin-subnav26 a.active{color:#7e95ed;background:#121b2d}
.table26 td small{color:#abb4c3}
.question-edit-choice26{background:#151d35}
.state-steps26 span{background:#252525}
.state-steps26 .active{color:#7e95ed;background:#121b2d;border-color:#364871}
.audit26{border-left:2px solid #324568}
.audit26 article:before{background:#304475;border:2px solid #454545}
.audit26 p{color:#a9b4c5}
.diff26>div{background:#11182a;border:1px solid #314367}
.diff26>div:last-child{background:#121d2b}
.diff26 h3{color:#b3c7e4}
.quiz-focusbar26{background:#252525}
.quiz-focusbar26 .focus-mark26{color:#7e95ed;border:1px solid #314366;background:#11182b}
.quiz-focusbar26 strong{color:#bccde9}
.quiz-focusbar26 small{color:#acb6c8}
.save-state26{color:#abb4c3}
.save-state26.error{color:#e1a9a1}
.choice-control26{background:#252525}
.option.single:has(input:checked) .choice-control26:after{background:#252525}
.option .choice-letter{color:#abb6c7}
.option:has(input:checked) .choice-letter{color:#7e95ed}
.selection-count26{color:#abbcdb}
.review-selected26 .review-label26{color:#abb8cf}
.review-selected26 .selected-answer26{background:#121b2d}
.review-dialog-actions26{background:#252525}
.unanswered-link26{color:#eacfac;background:#2c2212}
.pause-summary26{background:#121b2c}
.review-badge26{color:#b0bccb}
.review-badge26.correct{color:#b6efe0}
.auth-demo-tag26{background:#121b2d;color:#b1c0d7}
.auth26 .field small{color:#a6b0c2}
.password-row26 button{background:#252525}
.success-mark26{background:#153123;color:#b6efe0}
.warning-mark26{background:#322714;color:#e7caa4}
.help-section26{background:#252525}
.settings-option26 p{color:#a8b3c6}
.role-options26 button{background:#252525;border:1px solid #33476b}
.role-options26 button:hover{background:#121b2b}
.role-options26 small{color:#abb4c3}
.kb-card26{background:#252525}
.kb-card26 p{color:#a7b2c3}
.document-meta26{color:#a8b4c8}
.chat-history26{background:#252525}
.chat-history26 button{background:#11192a;border:1px solid #314366;color:#b7c7e0}
.chat-main26{background:#252525}
.chat-bubble26{background:#11192b;border:1px solid #304265}
.chat-bubble26.user{background:#131c2d}
.chat-bubble26 small{color:#a3b0c7}
.prompt-chips26 button{border:1px solid #33466a;background:#252525;color:#aac0de}
.stat-row26{color:#a6b2c8}
.trace-node26{background:#252525}
.trace-node26 p{color:#abb4c3}
.trace-grid26 small{color:#a5afc2}
.op-state26 p{color:#abb4c3}
.screen-link26{background:#252525}
.notice26{background:#2d2312;border:1px solid #755f38;color:#ead8b6}
.required26{color:#dda79f}
.nav-complete26{color:#7e95ed}
.result-hero.is-fail .eyebrow{color:#dcccb1}
.screen-card26{background:#252525}
:root{--brand:#8fa8ff;--ink:#e7ebf4;--muted:#aab4c9;--line:#2d3752;--bg:#0e1321}
.live-edition{color:#a9cbe8}
.info-note{color:#aec1d5;border:1px solid #324968;background:#131e2e}
.metric{background:#252525}
.metric strong{color:#acc6f3}
.resume-hero .btn{background:#244f58;border-color:#396c77;color:#cfd8f8}
.resource-card{background:#252525}
.status{background:#171e2e;color:#b3bfd0}
.status.ok{background:#173027;color:#bae8da}
.status.warn{background:#342815;color:#e8cfb0}
.status.purple{background:#1a132f;color:#b7a4d4}
.form-error{background:#2e1913;color:#e5b8a9;border:1px solid #704936}
.form-ok{background:#173027;color:#bae8da}
.save-strip{background:#131c2d;color:#acbdd2}
.save-strip.error{background:#312214;color:#e7c7aa}
.save-strip button{background:#252525}
.logout{border:1px solid #34476c;color:#b1c1de;background:#252525}
.article-toc{background:#252525}
.option:has(input:checked){background:#121b2d}
.selected-number{color:#a8b7cc}
.review-card .my-answer{background:#121b2d}
.dialog-body .actions{background:#252525}
.result-hero.is-fail .eyebrow{color:#dcc6a9}
.source-ref{background:#252525}
.answer-card{background:#131d2d;border:1px solid #334c6a}
.admin-links a{background:#252525}
.diff-grid pre{background:#121a2b}
.program-head span{color:#acb7c9}
.outline-note{background:#252525}
.source-warning{color:#e8cfae}
.relation-flow>div{background:#121c2b;border:1px solid #33476a}
.relation-flow small{color:#a7b5ca}
.relation-flow>span{color:#8eadd7}
.graph-node28{background:#252525}
.lesson-video29{background:#11192a}
.transcript29 button:hover,.transcript29 button:focus-visible{background:#131c2f}
.transcript29 button span:first-child{color:#aac1e8}
.soft-preview210{background:#12192b;border:1px solid #324668}
.search-hit210 blockquote{background:#12192b}
.logo-preview210{background:#131d2f}
.logo-preview210>span{color:#cfd8f8}
.brand-symbol.has-logo210{background:#252525}
.search-hit210 summary{color:#a5bde8}
.private-note211{background:#131d2f}
.reading input[readonly]{background:#131b2b}
.consent212{background:#121b2d;border:1px solid #34496b}
.local-save212{color:#e4d7ba}
.reading-tools212{border:1px solid #34496b;background:#252525}
.reading-tools212 p{color:#adb8cc}
.recovery-comparison212>div{background:#121b2b}
.logo-version-mark213{background:#121b2d;color:#a1bdf2}
.answer-summary{background:#342815;color:#eedabd}
.answer-summary.is-ok{background:#173221;color:#c4e8d0}
.explanation-option.is-mismatch{background:#2b2212}
:root{--faint:#9aa5bc}
.step-index{color:#aab3ca}
.vehicle-map-caution{color:#b0b7c6}
.tf{border:1px solid #324468;background:linear-gradient(180deg,#151e35 0,#252525 64px)}
.tf-kind{background:#141b30;color:#9ab1ee}
.tf-title{color:#d6dcec}
.tf-badge{background:#252525;color:#809dec}
.tf .tf-caption{background:#121b2b}
.tf-caption p{color:#c2cadc}
.tf-caption-label{color:#9ab1ee}
.tf-bulb{color:#f1d39f}
.tf .tf-note{color:#f3d3ac}
.tf-node{border:1.5px solid #33446a;background:#252525}
.tf-step{box-shadow:0 0 0 3px #252525}
.tf-node-text strong{color:#d6dcec}
.tf-node-text span{color:#bac2d2}
.tf-arrow-label{background:#131b2f;color:#afc1ea}
.tf-group[data-g="0"]{--gbg:#121a2d;--gline:#33436a;--gfg:#9ab1ee}
.tf-group[data-g="1"]{--gbg:#153331;--gline:#36706a;--gfg:#b9f0f5}
.tf-group[data-g="2"]{--gbg:#19122c;--gline:#443369;--gfg:#b9a4e1}
.tf-group[data-g="3"]{--gbg:#322814;--gline:#725e37;--gfg:#f5ddb8}
.tf-group .tf-node{background:#252525}
.tf-vs{color:#a6b0c7}
.tf-card{background:#252525}
.tf-card[data-c="0"]{--cfg:#9ab1ee;--cbg:#121a2d;--cline:#33436a}
.tf-card[data-c="1"]{--cfg:#b9f0f5;--cbg:#153331;--cline:#36706a}
.tf-card[data-c="2"]{--cfg:#b9a4e1;--cbg:#19122c;--cline:#443369}
.tf-card[data-c="3"]{--cfg:#f5ddb8;--cbg:#322814;--cline:#725e37}
.tf-card[data-c="4"]{--cfg:#eda4c0;--cbg:#2e131e;--cline:#6b3449}
.tf-card li{color:#c9d1e3}
.tf .tone-ok{--cfg:#b6efce;--cbg:#153321;--cline:#3a7951;--gfg:#b6efce}
.tf .tone-warn{--cfg:#f4d9b3;--cbg:#342915;--cline:#78623a}
.tf .tone-bad{--cfg:#ef9d97;--cbg:#2f1513;--cline:#713c36}
.tf .tf-node.tone-ok{border-color:#3a7951;background:#132d1c}
.tf .tf-node.tone-warn{border-color:#78623a;background:#2e2513}
.tf .tf-node.tone-bad{border-color:#713c36;background:#2c1412}
.tf .tf-node.tone-ok .tf-badge{color:#b6efce}
.tf .tf-node.tone-warn .tf-badge{color:#f4d9b3}
.tf .tf-node.tone-bad .tf-badge{color:#ef9d97}
.tf .tablewrap{border:1px solid #334469}
.tf-table tbody th,.tf-table tbody td{border-top:1px solid #314265;color:#cdd5e9}
.tf-table tbody tr:nth-child(even){background:#11182a}
.tf-table tbody th .tf-icon{color:#809dec}
.tf-table tr.tone-ok{background:#132f1c}
.tf-table tr.tone-warn{background:#2f2513}
.tf-table tr.tone-bad{background:#2d1412}
.tf-table tr.tone-note{background:#151929}
.tf-layer{border:1.5px solid #33436a;background:linear-gradient(90deg,#131b2f,#252525 70%)}
.tf-layer:nth-child(2n){background:linear-gradient(90deg,#153331,#252525 70%);border-color:#36706a}
.tf-layer-text strong{color:#d6dcec}
.tf-layer-text span{color:#bac2d2}
.tf-seq-actor{border:1.5px solid #33436a;background:#121a2d;color:#d6dcec}
.tf-seq-actor .tf-badge{color:#9ab1ee}
.tf-seq-time{color:#bac2d2}
.tf-seq-lane{background-image:linear-gradient(90deg,transparent calc(50% - 1px),#1e2a44 calc(50% - 1px),#1e2a44 calc(50% + 1px),transparent calc(50% + 1px))}
.tf-seq-label{background:#252525;box-shadow:0 0 0 1px #19253d;color:#d6dcec}
.tf-seq-note{border:1px solid #725e37;background:#312914}
.tf-seq-list::before{background:#1a253f}
.tf-seq-item{border:1px solid #334469;background:#252525}
.tf-seq-item::before{box-shadow:0 0 0 3px #141b30}
.tf-seq-item-time{color:#bac2d2}
.tf-seq-item-who{color:#afc1ea}
.tf-bar-label{color:#d6dcec}
.tf-bar-track{background:#161e2e}
.tf-bar{background:linear-gradient(90deg,#26355e,#1f4fd1)}
.tf-bar-value{color:#d6dcec;background:rgba(37,37,37,0.9)}
.tf-bar-note{color:#bac2d2}
.tf.has-hl [data-part]:not(.is-hl),.tf.has-hl [data-part]:not(.is-hl) *{color:#b3bbc9}
.tf.has-hl tr[data-part].is-hl{background:#332815}
.tf.has-hl [data-part]:not(.is-hl) .tf-step{box-shadow:0 0 0 3px #252525}
:root{--brand:#8fa8ff}
.auth-or{color:#b3bbc9}
.auth-or::before,.auth-or::after{background:#1b253b}
.auth-error{background:#2f1513;color:#f3b1ac}
.next-lesson{background:#111b2b}
.dict-entry{background:#252525}
}
@media screen and (prefers-color-scheme: dark) and (max-width:767px){
.vehicle-stage a:focus-visible{outline:2px solid #396c77}
.vehicle-flowbar button:focus-visible{outline-color:#396c77}
}
@media screen and (prefers-color-scheme: dark) and (max-width:767px),(max-width:1023px) and (max-height:600px){
.mobile-quiz-summary{background:#141d30;border:1px solid #324668}
.mobile-quiz-summary strong{color:#abc2ef}
.mobile-quiz-summary small{color:#adb8cc}
.mobile-quiz-summary button{background:#252525;border:1px solid #35496f;color:#abc3ec}
.mobile-answer-track{background:#18253c}
.question-bottom{background:rgba(37,37,37,0.969);border-top:1px solid #35486c}
.mobile-quiz-summary{background:#131c2e;border:1px solid #33476a}
.question-bottom{background:#252525;border-top:1px solid #34496c}
}
@media screen and (prefers-color-scheme: dark) and (max-width:640px){
.tf-table tbody tr{border:1px solid #334469;background:#252525}
.tf-table tbody tr:nth-child(even){background:#252525}
.tf-table tbody td::before{color:#bac2d2}
}

/* Hand-tuned rules (after the generated ones) */
@media screen and (prefers-color-scheme: dark){
:root{color-scheme:dark;--brand:var(--brand-org-dark,#8fa8ff)}
body{background:var(--bg);color:var(--ink)}
img{opacity:.92}
.btn:not(.secondary):not(.ghost){background:var(--brand-org,#123de1);border-color:var(--brand-org,#123de1);color:#fff}
.tf-step,.tf-layer-no{color:#fff}
.tf-seq-msg{border-bottom-color:#8ea3d8}.tf-seq-msg.is-right::after{border-left-color:#8ea3d8}.tf-seq-msg.is-left::after{border-right-color:#8ea3d8}
.tf-seq-msg.tone-bad{border-bottom-color:#ff8b80}.tf-seq-msg.is-right.tone-bad::after{border-left-color:#ff8b80}.tf-seq-msg.is-left.tone-bad::after{border-right-color:#ff8b80}
.tf-seq-msg.tone-ok{border-bottom-color:#6fcf97}.tf-seq-msg.is-right.tone-ok::after{border-left-color:#6fcf97}.tf-seq-msg.is-left.tone-ok::after{border-right-color:#6fcf97}
.tf-seq-lane{background-image:linear-gradient(90deg,transparent calc(50% - 1px),#4a5a82 calc(50% - 1px),#4a5a82 calc(50% + 1px),transparent calc(50% + 1px))}
.tf-arrow{color:#8ea3d8}
.auth-or::before,.auth-or::after{background:#3d4a6b}.auth-or{color:#aab4c9}.tf-seq-label{box-shadow:0 0 0 1px #3a4668}
}
