/* Star Awake: one static sky, solid reading/task surfaces. Export documents stay paper. */
:root{color-scheme:dark;--bg:#04070c;--paper:#0c141f;--ink:#e4eaf0;--muted:#a6b8c8;--line:#2e4051;--soft:#142332;--accent:#dac393;--control-line:#587087;--success:#9be6c7;--danger:#ffbeb9;--green:#dac393}
html{background:#04070c}body[data-ui-theme=sky]{background:var(--bg);color:var(--ink);min-height:100svh;position:relative;isolation:isolate;color-scheme:dark}
body[data-ui-theme=sky]::selection{background:#dac393;color:#080d14}body[data-ui-theme=sky] :where(a,button,input,select,textarea,summary):focus-visible{outline:2px solid #f0cf88;outline-offset:4px}body[data-ui-theme=sky] :is(input,textarea){caret-color:#f0cf88}body[data-ui-theme=sky] :is(input,textarea)::placeholder{color:#9fb0c0;opacity:1}
body[data-ui-theme=sky] .sky-background{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1}body[data-ui-theme=sky] .site-header{background:#04070c;border-bottom-color:#283644;box-shadow:none}body[data-ui-theme=sky] .site-header .brand{color:#f0e7d8}body[data-ui-theme=sky] .site-header .brand small{color:#bdac8c}body[data-ui-theme=sky] .site-header .main-nav{background:transparent}body[data-ui-theme=sky] .site-header .main-nav a{color:#c2cbd4}body[data-ui-theme=sky] .site-header .main-nav a:hover{background:#192536;color:#f0ddbb}body[data-ui-theme=sky] .site-header .main-nav a[aria-current]{background:#dac393;color:#080d14}body[data-ui-theme=sky] .site-header .local-badge{color:#d9c9ad;border-color:#8f7953;background:transparent}body[data-ui-theme=sky] .skip-link{background:#dac393;color:#080d14}
body[data-ui-theme=sky] footer{background:#060b12;border-color:#283644;color:#a6b8c8}body[data-ui-theme=sky] footer a{color:#d8c194}body[data-ui-theme=sky] .page-head,body[data-ui-theme=sky] .intro,body[data-ui-theme=sky] .learn-heading{background:transparent;border-color:#35475a}body[data-ui-theme=sky] :is(h1,h2,h3,h4){color:#efe6d6}body[data-ui-theme=sky] :is(.panel,.course-group,.chapter-card,.quiz-panel,.note-card,.test-course-group){background:#0c141f;border-color:var(--line);box-shadow:none}body[data-ui-theme=sky] :is(.chapter-card,.course-group>summary,.test-course-group>summary):hover{background:#142332;border-color:#8f7953}body[data-ui-theme=sky] .tool-list .tool-card{background:transparent}body[data-ui-theme=sky] .tool-list .tool-card:hover{background:#0e1a28}body[data-ui-theme=sky] .tool-card>svg:first-child{color:#dac393}
body[data-ui-theme=sky] :is(input,select,textarea){background:#0a121c;color:#e4eaf0;border-color:var(--control-line)}body[data-ui-theme=sky] input:is([type=radio],[type=checkbox]){accent-color:#dac393}body[data-ui-theme=sky] option{background:#0c141f;color:#e4eaf0}body[data-ui-theme=sky] button{background:#101e2c;color:#dce5ed;border-color:var(--control-line)}body[data-ui-theme=sky] button:hover:not(:disabled),body[data-ui-theme=sky] .secondary:hover{background:#1b3043;color:#fff1d4;border-color:#bea16b}
body[data-ui-theme=sky] :is(button.primary,.primary,.start-test,.tool-finder .tabs button[aria-pressed=true],button[aria-pressed=true]){background:#dac393;color:#080d14;border-color:#dac393}body[data-ui-theme=sky] :is(button.primary,.primary,.start-test):hover:not(:disabled){background:#eddbb6;color:#080d14}body[data-ui-theme=sky] :is(.secondary,.button){background:#101e2c;color:#e6d6b6;border-color:#8f7953}body[data-ui-theme=sky] button:disabled{opacity:.5}body[data-ui-theme=sky] .tool-finder .tabs button{background:#0c141f;color:#b9c7d4;border-color:#587087}body[data-ui-theme=sky] .tool-finder input{background:#0c141f}
body[data-ui-theme=sky] :is(.current-selection,.stat,.memory-card,.reader-progress,.progress-track){background:#142332;color:#dce5ed}body[data-ui-theme=sky] :is(.status-pill,.mini-badge,.count-badge,.pill){color:#baccdb;background:#142332;border-color:#3a5065;box-shadow:none}body[data-ui-theme=sky] .expand-label,body[data-ui-theme=sky] .course-actions a,body[data-ui-theme=sky] .breadcrumb>span:last-child{color:#dbc69f}body[data-ui-theme=sky] :is(.course-body,.test-course-group>.chapter-grid,.chapters-heading,#quiz-picker){border-color:#2e4051}body[data-ui-theme=sky] .chapter-option[aria-pressed=true]{background:#263020;border-color:#dac393;color:#f3e2c2;box-shadow:none}body[data-ui-theme=sky] .chapter-option[aria-pressed=true] h3{color:#f3e2c2}body[data-ui-theme=sky] .difficulty label{background:#0a121c;color:#becbd7;border-color:#587087}body[data-ui-theme=sky] .difficulty label[data-level]:has(input:checked){background:#dac393;border-color:#dac393;color:#080d14;box-shadow:none}
body[data-ui-theme=sky] .option{background:#0c1824;color:#dce5ed;border-color:#587087}body[data-ui-theme=sky] .option:hover:not(:disabled){background:#192e40;border-color:#dac393}body[data-ui-theme=sky] .option b{background:#263a4e;color:#dbe5ee}body[data-ui-theme=sky] .option.correct{background:#102b25;border-color:#77d7b1;color:#c0f4df}body[data-ui-theme=sky] .option.correct b{background:#9be6c7;color:#071c13}body[data-ui-theme=sky] .option.incorrect{background:#321e26;border-color:#f39b9a;color:#ffd3cc}body[data-ui-theme=sky] .option.incorrect b{background:#ffbeb9;color:#311316}body[data-ui-theme=sky] .option.answered-neutral{background:#0c141f;color:#a6b8c8;border-color:#354b60}body[data-ui-theme=sky] .question-number{color:#d4bf99}body[data-ui-theme=sky] :is(.feedback,.result,.notice:not(:empty)){background:#142332;border-color:#4c657c;color:#dce5ed}body[data-ui-theme=sky] :is(.feedback a,.source-link){color:#d9c49d}body[data-ui-theme=sky] .feedback[data-correct=true]>strong{color:#9be6c7}body[data-ui-theme=sky] .feedback[data-correct=false]>strong,body[data-ui-theme=sky] :is(.error,#error,#quiz-message,#answer-error){color:#ffbeb9}body[data-ui-theme=sky] .notice.error{background:#321e26;border-color:#ba7b7a}body[data-ui-theme=sky] .progress-track span{background:#dac393}body[data-ui-theme=sky] .warn{background:#342b1b;color:#f2dbad}body[data-ui-theme=sky] .day-cell.event{background:#1e2c3c;border-color:#b7a075}body[data-ui-theme=sky] .big-number{color:#ead9b9}
/* Reading is quiet and opaque; only the page margins expose the starfield. */
body[data-ui-theme=sky] .learning-reader-shell{background:#0b131e;border:1px solid #2e4051;border-radius:12px;padding:20px 24px 24px;color:#d4dee8;--reader-line-height:1.9}body[data-ui-theme=sky] .learning-reader-shell[data-reader-line=loose]{--reader-line-height:2.12}body[data-ui-theme=sky] .learning-reader-shell .reader,body[data-ui-theme=sky] .learning-reader-shell .reader :is(p,li,td){color:#d4dee8}body[data-ui-theme=sky] .learning-reader-shell .reader :is(h1,h2,h3,h4){color:#ecd6ac}body[data-ui-theme=sky] .learning-reader-shell .reader :is(a){color:#e8cc92}body[data-ui-theme=sky] .reader-tools{background:#101e2c;border-color:#3d5368;backdrop-filter:none}body[data-ui-theme=sky] :is(.reader-controls button,.reader-size){background:#192c3d;color:#dce5ed;border-color:#587087}body[data-ui-theme=sky] .reader-size button[aria-pressed=true],body[data-ui-theme=sky] #reader-theme{background:#dac393;color:#080d14}body[data-ui-theme=sky] .reader-progress>span{background:#dac393}body[data-ui-theme=sky] .learning-reader-shell :is(.toc,blockquote){background:#101e2c;border-color:#3d5368;color:#d4dee8}body[data-ui-theme=sky] .learning-reader-shell .reader th{background:#192c3d;color:#ecddbf;border-color:#3d5368}body[data-ui-theme=sky] .learning-reader-shell :is(.reader td,.table-scroll){border-color:#3d5368}body[data-ui-theme=sky] .reader-end{color:#a6b8c8}body[data-ui-theme=sky] .reader-link-disabled{background:#142332;border-color:#2e4051;color:#9db0c1}
/* An explicit reading preference can still choose a gentle paper surface. */
body[data-ui-theme=sky] .learning-reader-shell[data-reader-theme=light]{background:#f6f2e9;color:#303942;color-scheme:light}body[data-ui-theme=sky] .learning-reader-shell[data-reader-theme=light] .reader,body[data-ui-theme=sky] .learning-reader-shell[data-reader-theme=light] .reader :is(p,li,td){color:#303942}body[data-ui-theme=sky] .learning-reader-shell[data-reader-theme=light] .reader :is(h1,h2,h3,h4){color:#66502a}body[data-ui-theme=sky] .learning-reader-shell[data-reader-theme=light] :is(.toc,blockquote){background:#eae5da;color:#303942;border-color:#bab2a4}body[data-ui-theme=sky] .learning-reader-shell[data-reader-theme=light] :is(.toc a,.reader a){color:#685020}body[data-ui-theme=sky] .learning-reader-shell[data-reader-theme=light] .reader th{background:#eae5da;color:#3e3930}body[data-ui-theme=sky] .learning-reader-shell[data-reader-theme=light] :is(.reader td,.table-scroll){border-color:#bab2a4}body[data-ui-theme=sky] .learning-reader-shell[data-reader-theme=light] .reader-end{color:#5e665f}
/* Display-only SVG palette. Serialized SVG/PNG/PDF exports keep their original paper colors. */
body[data-ui-theme=sky] :is(.chart-wrap,.chart-preview,.report-chart) svg [fill="#fffefa"],body[data-ui-theme=sky] .chart-wrap svg [fill="#fbf7ee"]{fill:#0c141f}body[data-ui-theme=sky] :is(.chart-wrap,.chart-preview,.report-chart) svg text{fill:#d4dee8}body[data-ui-theme=sky] :is(.chart-wrap,.chart-preview,.report-chart) svg circle[fill="#24211d"]{fill:#dac393}body[data-ui-theme=sky] :is(.chart-wrap,.chart-preview,.report-chart) svg [fill="#8a4f1d"]{fill:#e8cc92}body[data-ui-theme=sky] :is(.chart-wrap,.chart-preview,.report-chart) svg [stroke="#8a4f1d"]{stroke:#e8cc92}body[data-ui-theme=sky] :is(.chart-wrap,.chart-preview,.report-chart) svg [stroke="#57534e"]{stroke:#b5c8d8}body[data-ui-theme=sky] .chart-wrap svg [stroke="#726452"]{stroke:#b3c6d7}body[data-ui-theme=sky] .report-preview-text{color:#d4dee8}
@media(max-width:700px){body[data-ui-theme=sky] .learning-reader-shell{padding:14px 14px 20px;margin-inline:-4px}body[data-ui-theme=sky] .learning-reader-shell .reader-tools{margin-inline:-14px;padding-inline:10px}body[data-ui-theme=sky] .reader-controls button{min-height:44px}body[data-ui-theme=sky] .reader-chapter-nav{gap:8px}body[data-ui-theme=sky] .reader-chapter-nav>*{font-size:12px;padding-inline:8px}}
@media print{:root{color-scheme:light;--bg:white;--paper:white;--ink:#222;--muted:#555;--line:#bbb;--soft:#f4f4f4}html,body[data-ui-theme=sky]{background:white!important;color:#222!important}body[data-ui-theme=sky] .sky-background,body[data-ui-theme=sky] .site-header,body[data-ui-theme=sky] footer,body[data-ui-theme=sky] .reader-tools{display:none!important}body[data-ui-theme=sky] :is(.panel,.learning-reader-shell,.course-group,.chapter-card,.quiz-panel){background:white!important;color:#222!important;border-color:#bbb!important}body[data-ui-theme=sky] :is(h1,h2,h3,h4,p,li,td,th,a,.reader,.reader *,.report-preview-text){color:#222!important}body[data-ui-theme=sky] :is(.toc,blockquote,.reader th){background:#f4f4f4!important;color:#222!important}body[data-ui-theme=sky] :is(.chart-wrap,.chart-preview,.report-chart) svg [fill="#fffefa"],body[data-ui-theme=sky] .chart-wrap svg [fill="#fbf7ee"]{fill:#fffefa}body[data-ui-theme=sky] :is(.chart-wrap,.chart-preview,.report-chart) svg text{fill:#24211d}}

body[data-ui-theme=sky] .site-header .brand>span{font-size:inherit;font-weight:inherit}body[data-ui-theme=sky] .chapter-option[aria-pressed=true]{background:#25251f}body[data-ui-theme=sky] .reader-controls button[aria-pressed=true]{background:#dac393;color:#080d14}
