/* R127: complete Kawaii palette, including dialogs and controls. */
html[data-theme="kawaii"]{
 color-scheme:light;--bg:#fffaf2;--card:#fffefb;--panel:#f2f8f2;--raised:#e9f3eb;--field:#fffefc;
 --ink:#203e37;--muted:#50685e;--brand:#73528f;--brand2:#326f60;--gold:#684784;--mint:#27634f;--pink:#9a3b5b;
 --secondary:#edf7ef;--secondary-line:#adc9b9;--hero:linear-gradient(115deg,#edf7ef,#fffaf2);--hero-line:#c1d7c9;--hero-ink:#294c40;
 --hero-button:#73528f;--hero-button-ink:#fff;--hero-button-line:#73528f;--button-line:#73528f;--brand-ink:#fff;
 --badge-bg:#eee5f5;--badge-line:#c9b4dc;--selected-bg:#e9def3;--selected-line:#8c69a8;
 --timer-bg:#edf5ef;--timer-line:#accbb8;--urgent-bg:#ffe1e8;--urgent-ink:#8c243f;--urgent-line:#d48d9f;
 --good-bg:#d9efdf;--good-line:#4c8c64;--good:#21613e;--bad-bg:#ffe2e8;--bad-line:#bd6f83;--bad-ink:#8d2540;--bad:#8d2540;
 --nav-bg:#edf7f0;--progress-bg:#d4e2d8;--question-ink:#203e37;--plain-question:#203e37;--context-ink:#294c40;--asked-ink:#203e37;
 --noquestion-ink:#203e37;--question-label-ink:#50685e;--option-ink:#203e37;--quiz-answer:#203e37;--read-context:#294c40;--read-question:#203e37;--read-answer:#275a43;--incise-ink:#684784;--option-correct-ink:#21543b;
 --letter-bg:#eef5ef;--letter-line:#afc9b7;--resume-bg:#edf7ef;--resume-line:#b8d0c0;--notice-bg:#fff1cb;--notice-line:#d3bd7f;--notice-ink:#655020;
 --strong-red:#a6314c;--memory-question:#203e37;--future:#684784;--future-soft:#eee5f5;--accent:#73528f;--accent-soft:#eee5f5;
 --review-green:#21543b;--review-red:#8d2540;--review-good-fill:#d9efdf;--review-bad-fill:#ffe2e8;--review-good-line:#4c8c64;--review-bad-line:#bd6f83;
 --paper-rule:#afcdbb35;--paper-margin:#cf9caa55;
}
html[data-theme="kawaii"] body :is(dialog,.question-selector,.practice-resume){color:#203e37;background:#fffefb}
html[data-theme="kawaii"] body :is(.question-selector-list button,.memory-picker-list button){color:#203e37!important;background:#fffefb!important;border-color:#b4cdbd!important}
html[data-theme="kawaii"] body :is(.question-selector-list,.memory-picker-list) :is(strong,.asked,.question-context){color:#203e37!important;-webkit-text-fill-color:#203e37!important;text-shadow:none!important}
html[data-theme="kawaii"] body #app :is(.resume,.memory-resume){background:#edf7ef!important;color:#203e37!important;border-color:#b8d0c0!important}
html[data-theme="kawaii"] body :is(.resume,.practice-resume,.memory-resume) :is(h3,p,strong,small){color:#294c40!important;-webkit-text-fill-color:#294c40!important}
html[data-theme="kawaii"] body :is(button.secondary,button.ps-button,button.back,.ps-back){color:#294c40;background:var(--secondary);border-color:#adc9b9}
html[data-theme="kawaii"] body button.primary{background:#73528f!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#73528f!important}
html[data-theme="kawaii"] body button:disabled:not(.answer):not(.memory-choice){opacity:1!important;color:#53665a!important;-webkit-text-fill-color:#53665a!important;background:#e0e9e1!important;border-color:#bbcdbe!important}
html[data-theme="kawaii"] body #app :is(.nav button,.nav button.active,.back,.ps-back,.book-progress-copy,.section-heading>span){color:#496454!important;-webkit-text-fill-color:#496454!important}
html[data-theme="kawaii"] body #app .nav button.active{background:#e5d8f1!important;color:#644381!important;-webkit-text-fill-color:#644381!important}
html[data-theme="kawaii"] body #app .book-progress-track>span{background:#377855!important}
/* A fixed red identity for the principal CPU exam in every theme. */
html[data-theme]{--exam-surface:#210b14;--exam-tint:#320f1d;--exam-control:#351321;--exam-panel:#280d18;--exam-line:#a33150;--exam-ink:#fff5f7;--exam-muted:#e9bdc9;--countdown-ink:#fff5f7;--verse-ink:#fff0f4;--verse-ref:#ffb8c9;--cancel-ink:#fff0f4}
html[data-theme] body #app #main-content .book-exam-card{background:var(--card)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="kawaii"] body #app #main-content .book-exam-card :is(h2,p,span,small,label,legend,output){color:#294c40!important;-webkit-text-fill-color:#294c40!important}
html[data-theme="kawaii"] body #app #main-content .book-exam-card :is(input,select,button:not(.primary)){background:#fffefb!important;color:#294c40!important;-webkit-text-fill-color:#294c40!important;border-color:#adc9b9!important}
html[data-theme="kawaii"] body #app #main-content .book-exam-card button.active{background:#e6d9f1!important;border-color:#9576ac!important}
html[data-cpu-exam-countdown][data-theme] body{background:#1b080f!important;color:#fff5f7!important}
html[data-cpu-exam-countdown][data-theme] body #app{background:radial-gradient(ellipse at 50% 30%,#4a1025,#1b080f 68%)!important}
html[data-cpu-exam-countdown][data-theme] body #app .exam-countdown{color:#fff5f7!important;background:transparent!important}
html[data-cpu-exam-countdown][data-theme] body #app .countdown-heading :is(h1,small,p){color:#fff0f4!important;-webkit-text-fill-color:#fff0f4!important;opacity:1!important}
html[data-cpu-exam-countdown][data-theme] body #app #exam-countdown-number{color:#ff5d7d!important;-webkit-text-fill-color:#ff5d7d!important;text-shadow:none!important}
html[data-cpu-exam-countdown][data-theme] body #app .countdown-track{stroke:#81304a!important}html[data-cpu-exam-countdown][data-theme] body #app #exam-countdown-ring{stroke:#ff557b!important}
html[data-cpu-exam-countdown][data-theme] body #app .exam-quote p{color:#fff0f4!important;-webkit-text-fill-color:#fff0f4!important;opacity:1!important;text-shadow:none!important}html[data-cpu-exam-countdown][data-theme] body #app .exam-quote cite{color:#ffb6cc!important;-webkit-text-fill-color:#ffb6cc!important}
html[data-cpu-exam-countdown][data-theme] body #app .quote-divider{background:#bb385b!important}html[data-cpu-exam-countdown][data-theme] body #app .countdown-cancel{color:#fff5f7!important;-webkit-text-fill-color:#fff5f7!important;border-color:#ee6486!important;background:#471123!important}
.cpu-exam-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;margin:5px 0 9px}
.cpu-exam-status-row{display:grid;grid-template-columns:minmax(0,1fr) 88px minmax(0,1fr);align-items:center;gap:8px}
/* Keep the question and alternatives in the space recovered from the picker. */
html body #app .mobile-study-session>.memory-workspace{margin-top:5px!important}
html body #app .mobile-study-session :is(.question,.memory-prompt){margin-top:6px!important;margin-bottom:9px!important}
@media(max-width:600px){
 html body #app .mobile-study-session>.question,html body #app .mobile-study-session .memory-prompt{padding:9px 10px!important}
 html body #app .mobile-study-session .question-annotation-head{margin-bottom:5px!important;min-height:28px!important}
 html body #app .mobile-study-session .question-context{margin-top:0!important}
 html body #app .mobile-study-session .asked{margin-top:10px!important}
 html body #app .mobile-study-session :is(.answer,.memory-choice){padding:10px!important;gap:9px!important}
 html body #app .mobile-study-session .memory-options{gap:8px!important}
 html body #app .mobile-study-session .memory-steps{margin-bottom:7px!important}
 .cpu-exam-title-row{gap:9px;margin-bottom:7px}.cpu-exam-position{font-size:10px!important}
}

html[data-theme="kawaii"] body #app #main-content button:disabled:not(.answer):not(.memory-choice){background:#e0e9e1!important;color:#53665a!important;-webkit-text-fill-color:#53665a!important;border-color:#bbcdbe!important;opacity:1!important}
html[data-theme="kawaii"] body #app #main-content :is(.answer,.memory-choice){opacity:1!important}
html[data-theme="kawaii"] body #app #main-content :is(.answer.correct,.memory-choice[data-state="correct"]){background:#d9efdf!important;border-color:#4c8c64!important;color:#21543b!important}
html[data-theme="kawaii"] body #app #main-content :is(.answer.wrong,.memory-choice[data-state="wrong"]){background:#ffe2e8!important;border-color:#bd6f83!important;color:#8d2540!important}
html[data-theme="kawaii"] body #app #main-content .eyebrow{color:#496454!important;-webkit-text-fill-color:#496454!important}
