/* Original Dark styles and typography remain intact. Chalk is screen-only. */
@media screen{html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
/* Screen-only import. Original Dark and print styles stay untouched. */
footer .ml-theme-switch{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px;font:500 14px/1.5 'DM Sans',Arial,sans-serif;max-width:100%;color:var(--muted)}
footer .ml-theme-switch select{box-sizing:border-box;max-width:100%;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);font:inherit;cursor:pointer}
footer .ml-theme-switch select:focus-visible{outline:3px solid var(--green);outline-offset:3px}
html[data-ml-theme=chalk]{--ink:#152d2b;--muted:#526763;--paper:#f5f8f7;--line:#718680;--green:#006b60;--lime:#d5f476;--blue:#324ccb;--surface:#fff;--surface-raised:#e8f1ee;--vp-correct-bg:#e8f1ee;--vp-wrong-bg:#fce9e8;--vp-correct-border:#006b60;--vp-wrong-border:#98424b}
html[data-ml-theme=chalk] body{background:var(--paper)!important;color:var(--ink)!important}
html[data-ml-theme=chalk] body :is(h1,h2,h3,h4,h5,h6){color:var(--ink)!important;-webkit-text-fill-color:currentColor;background-image:none!important}
html[data-ml-theme=chalk] body .intro h1{background:none!important}
html[data-ml-theme=chalk] body :is(a,.eyebrow,.topic .num,.topic-meta,.pick-label){color:var(--green)}
html[data-ml-theme=chalk] body :is(.intro p,.course-heading p,.topic p,.feature p,.note,.standards-line,.sources,.question-label,.freshbar span,.ml-lesson-crumbs,.ml-coordinate-figure figcaption){color:var(--muted)!important}
html[data-ml-theme=chalk] body :is(.panel,.note,.topic,.unit-index a,.vp-home-card,.vp-gate,.ml-role-panel,.ml-role-dialog,.sat-q,.sat-panel,.em-panel,.ml-search-box,.ma-panel,.ma-card,.ma-stat,.ma-course,.ml-account-dialog,.ml-role-option,.ml-account-tabs,.ml-search-results a){background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important;box-shadow:none!important}
html[data-ml-theme=chalk] body :is(.grade,.grade.blue,.video-lesson,.example,.second-example,.tip,.count,.idea-overview li,.challenge-callout,.ml-continue,.ml-progress,.ml-topic-progress,.mq-welcome,.mq-card,.eg-board,.em-topic-card,.ml-role-card){background:var(--surface-raised)!important;color:var(--ink)!important;border-color:var(--line)!important;box-shadow:none!important}
html[data-ml-theme=chalk] body :is(.grade p,.grade .tag,.video-lesson p,.video-source,.challenge-callout p,.tip,.count,.ml-continue p){color:var(--muted)!important}
html[data-ml-theme=chalk] body :is(.grade .formula,.grade .tag){color:var(--green)!important}
html[data-ml-theme=chalk] body :is(.logo,.ml-footer-logo){background:var(--lime)!important;color:var(--ink)!important;box-shadow:none!important}
html[data-ml-theme=chalk] body :is(.home-link,.back,.brand,.teacher,.ml-account-link,.ml-search-btn,.ml-search-btn kbd){color:var(--ink)!important;border-color:var(--line)!important}
html[data-ml-theme=chalk] body :is(button,.button,.pro-button,.ma-button){background:var(--green);color:#fff;border-color:var(--green);box-shadow:none;filter:none}
html[data-ml-theme=chalk] body :is(.grade .button,.grade.blue .button,.video-lesson .button,.challenge-callout .button){background:var(--lime)!important;color:var(--ink)!important;border:1px solid var(--green)}
html[data-ml-theme=chalk] body :is(.secondary,.choice,.mq-match button,.idea-choices button,.em-choices button,.sat-opt,.eg-opt,.rt-choice,.ml-role-choices button,.vp-options button[data-vp-option]){background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important;filter:none!important;box-shadow:none!important}
html[data-ml-theme=chalk] body :is(.choice,.mq-match button,.idea-choices button,.em-choices button,.sat-opt,.eg-opt,.rt-choice,.ml-role-choices button,.vp-options button[data-vp-option]):not(:disabled):hover{background:var(--surface-raised)!important;border-color:var(--green)!important}
html[data-ml-theme=chalk] body :is(.selected,.sat-opt.sel,.rt-picked,.vp-selected){border-color:var(--green)!important}
html[data-ml-theme=chalk] body :is(.choice.correct,.idea-choices button.correct,.em-correct,.eg-opt.ok,.vp-correct,.mq-match button:disabled){background:#e8f1ee!important;color:#152d2b!important;border-color:#006b60!important}
html[data-ml-theme=chalk] body :is(.choice.wrong,.idea-choices button.wrong,.em-incorrect,.eg-opt.no,.vp-incorrect){background:#fce9e8!important;color:#652c35!important;border-color:#98424b!important}
html[data-ml-theme=chalk] body :is(.feedback,.idea-feedback,.vp-status){background:var(--surface-raised);color:var(--ink);border-color:var(--line)}
html[data-ml-theme=chalk] body :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important;caret-color:var(--ink)}
html[data-ml-theme=chalk] body :is(input,textarea)::placeholder{color:var(--muted)!important;opacity:1}
html[data-ml-theme=chalk] body :is(input[type=checkbox],input[type=radio]){accent-color:var(--green)}
html[data-ml-theme=chalk] body :is(th,td){background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-ml-theme=chalk] body th{background:var(--surface-raised)!important}
html[data-ml-theme=chalk] body .tabs a{color:var(--muted)}
html[data-ml-theme=chalk] body .tabs a.active{color:var(--green);border-color:var(--green)}
html[data-ml-theme=chalk] body :is(.ml-account-link,.ml-search-btn){background:transparent!important}
html[data-ml-theme=chalk] body :is(.ml-search-overlay,.ml-account-backdrop){background:#152d2b66}
html[data-ml-theme=chalk] body :is(.ml-account-top p,.ma-auth-intro,.ml-role-copy small,.ma-hint,.ma-muted,.ml-search-hint,.ml-search-empty){color:var(--muted)!important}
html[data-ml-theme=chalk] body .ml-size button{background:transparent;color:var(--muted)}
html[data-ml-theme=chalk] body :is(.level,.level-easy,.level-medium,.level-hard,.level-challenge){background:var(--surface-raised);color:var(--ink);border:1px solid var(--line)}
html[data-ml-theme=chalk] body :is(button,a,input,textarea,select,summary):focus-visible{outline-color:var(--green)!important}
html[data-ml-theme=chalk] body :is(button,.button):hover{filter:none}
html[data-ml-theme=chalk] body footer.ml-footer{background:var(--surface)!important;color:var(--muted)!important}
html[data-ml-theme=chalk] body footer.ml-footer :is(b,.ml-footer-lockup){color:var(--ink)}
html[data-ml-theme=chalk] body footer.ml-footer a.ml-footer-home{background:var(--lime);color:var(--ink);border:1px solid var(--green)}
/* Anchor buttons must override the general link color as well as button CSS. */
html[data-ml-theme=chalk] body a.button{background:var(--green)!important;color:#fff!important}
html[data-ml-theme=chalk] body a.button.secondary{background:var(--surface)!important;color:var(--ink)!important}
/* Prices has explicit original Dark colors. */
html[data-ml-theme=chalk] body .pick-role{--pick-teal:#006b60;--pick-lime:#d5f476;background:var(--paper);color:var(--ink)}
html[data-ml-theme=chalk] body .pick-role :is(.pro-card,.pick-tabs,.pick-billing,.pick-trust section){background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)}
html[data-ml-theme=chalk] body .pick-role .pick-pro{background:var(--surface-raised)!important;border-color:var(--green)}
html[data-ml-theme=chalk] body .pick-role :is(p,.pro-price small,.pick-footnote,.pick-checkout-note,.pick-notice){color:var(--muted)!important}
html[data-ml-theme=chalk] body .pick-role :is(.pick-tabs button,.pick-billing button){background:transparent;color:var(--ink)}
html[data-ml-theme=chalk] body .pick-role :is(.pick-tabs button[aria-selected=true],.pick-billing button[aria-pressed=true]){background:var(--green);color:#fff}
html[data-ml-theme=chalk] body .pick-role :is(.pick-value,.pick-features li:before){color:var(--green)}
html[data-ml-theme=chalk] body .pick-role :is(.pick-badge,.pro-button){background:var(--lime);color:var(--ink);border:1px solid var(--green)}
html[data-ml-theme=chalk] body .pick-role .pro-button.secondary{background:transparent;color:var(--green);border-color:var(--green)}
/* Colors only: preserve all SVG geometry, sizing, labels and values. */
html[data-ml-theme=chalk] body #app :is(svg.sat-fig,svg.calc-graph,svg.ml-course-graph,svg.ml-topic-art,svg[data-tb-sketch],.graph-example svg,.em-topic-diagram svg,.ml-art svg,.ml-math-figure),html[data-ml-theme=chalk] body .alg-poly-graph{background:#fff!important;color:#006b60!important;border-color:#718680!important}
html[data-ml-theme=chalk] body #app :is(svg.sat-fig,svg.calc-graph,svg.ml-topic-art,.ml-math-figure) :is(.ml-figure-label,.ml-figure-key,text){fill:#152d2b!important;color:#152d2b!important;stroke:none!important}
html[data-ml-theme=chalk] body #app :is(svg.sat-fig,svg.calc-graph,svg.ml-topic-art,.ml-math-figure) :is(.ml-figure-line,.curve,.f,.ml-figure-angle,.ml-figure-hole){stroke:#006b60!important}
html[data-ml-theme=chalk] body #app svg.sat-fig :is(path,line,polyline,polygon,ellipse):not(defs *,clipPath *,mask *,marker *){stroke:#006b60!important}
html[data-ml-theme=chalk] body #app :is(svg.sat-fig,svg.calc-graph,svg.ml-topic-art,.ml-math-figure) :is(.ml-figure-grid,.major,.minor,.g){stroke:#d8e1df!important;fill:none!important}
html[data-ml-theme=chalk] body #app :is(svg.sat-fig,svg.calc-graph,svg.ml-topic-art,.ml-math-figure) :is(.ml-figure-axis,.axis,.a,.fig-arrow,.fig-asym,.asym){stroke:#526763!important;fill:none!important}
html[data-ml-theme=chalk] body #app :is(svg.sat-fig,svg.calc-graph,svg.ml-topic-art,.ml-math-figure) :is(.ml-figure-point,.point,.p){fill:#d5f476!important;stroke:#006b60!important;stroke-width:2px!important}
html[data-ml-theme=chalk] body #app :is(svg.sat-fig,svg.calc-graph,svg.ml-topic-art,.ml-math-figure) :is(.ml-figure-filled,.ml-figure-arrow-head){fill:#006b60!important}
html[data-ml-theme=chalk] body #app :is(svg.sat-fig,svg.calc-graph,svg.ml-topic-art,.ml-math-figure) :is(.ml-figure-hole,.hole,.ml-figure-background),html[data-ml-theme=chalk] body #app svg.sat-fig rect[fill=white]{fill:#fff!important}
html[data-ml-theme=chalk] body #app .ml-math-figure .ml-figure-unfilled{fill:none!important}
html[data-ml-theme=chalk] body :is(.alg-poly-axis-x,.alg-poly-axis-y){color:#152d2b!important}
html[data-ml-theme=chalk] body .ml-katex-source .katex{color:inherit}
html[data-ml-theme=chalk][dir=rtl] body :is(.choice,.idea-choices button,.em-choices button,.sat-opt,.eg-opt,.rt-choice,.vp-options button){text-align:start!important}
html[data-ml-theme=chalk][dir=rtl] body .pick-features li{padding-left:0;padding-inline-start:24px}
html[data-ml-theme=chalk][dir=rtl] body .pick-features li:before{left:auto;inset-inline-start:0}
/* Match the shared answer-card rules' specificity without changing Dark. */
html[data-ml-theme=chalk] body #app :is(.choices .choice,.mq-match button,.idea-choices button,.em-choices button,.sat-opt,.eg-opt,.rt-choice,.ml-role-choices button,.vp-options button[data-vp-option]){background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-ml-theme=chalk] body #app :is(.mq-match button.selected,.idea-choices button.selected,.sat-opt.sel,.rt-choice.rt-picked,.ml-role-choices button[aria-pressed=true],.vp-options button.vp-selected){background:var(--surface-raised)!important;border-color:var(--green)!important}
html[data-ml-theme=chalk] body #app :is(.choice.correct,.idea-choices button.correct,.em-choices button.em-correct,.eg-opt.ok,.vp-options button.vp-correct){background:#e8f1ee!important;color:#152d2b!important;border-color:#006b60!important}
html[data-ml-theme=chalk] body #app :is(.choice.wrong,.idea-choices button.wrong,.em-choices button.em-incorrect,.eg-opt.no,.vp-options button.vp-incorrect){background:#fce9e8!important;color:#652c35!important;border-color:#98424b!important}
html[data-ml-theme=chalk] body #app :is(.choice,.idea-choices button,.em-choices button,.sat-opt,.eg-opt,.rt-choice,.vp-options button):not(:disabled):not(.correct):not(.wrong):not(.vp-correct):not(.vp-incorrect):hover{background:var(--surface-raised)!important;border-color:var(--green)!important}
html[data-ml-theme=chalk] body #app section.em-home.satp-card,html[data-ml-theme=chalk] body #app :is(.satp-hero,.ml-landing-hero){background:var(--surface-raised)!important;border-color:var(--line)!important;color:var(--ink)!important}
html[data-ml-theme=chalk] body #app :is(.satp-card p,.satp-meta,.satp-pill){color:var(--muted)!important}
html[data-ml-theme=chalk] body #app :is(.satp-btn,.satp-btn:visited){background:var(--lime)!important;color:var(--ink)!important;border:1px solid var(--green)}
html[data-ml-theme=chalk] body #app :is(.satp-lv,.satp-ct){fill:var(--ink)!important}
html[data-ml-theme=chalk] body #app :is(.satp-st,.satp-chip,.satp-dot,.satp-flag){stroke:var(--green)}
html[data-ml-theme=chalk] body #app .em-topic-diagram svg.ml-topic-art{background:#fff!important;border-color:#718680!important}
html[data-ml-theme=chalk] body #app .em-topic-diagram svg.ml-topic-art :is(.ml-figure-label,.ml-figure-key){fill:#152d2b!important}
html[data-ml-theme=chalk] body #app .em-topic-diagram svg.ml-topic-art .ml-figure-line{stroke:#006b60!important}
html[data-ml-theme=chalk] body #app .em-topic-diagram svg.ml-topic-art .ml-figure-point{fill:#d5f476!important;stroke:#006b60!important;stroke-width:2px!important}
html[data-ml-theme=chalk] body #app :is(.grade,.grade.blue){background:var(--surface)!important;border-color:var(--line)!important;box-shadow:none!important;color:var(--ink)!important}
html[data-ml-theme=chalk] body #app :is(.grade p,.grade .tag){color:var(--muted)!important}
html[data-ml-theme=chalk] body #app :is(.psat-gauge text,.psat-gauge g text){fill:var(--ink)!important}
html[data-ml-theme=chalk] body #app .psat-gauge :is(.pg-arc,.pg-needle line){stroke:var(--green)!important}
html[data-ml-theme=chalk] body #app .psat-gauge circle{fill:var(--lime)!important;stroke:var(--green);stroke-width:2px}

html[data-ml-theme=chalk] body #app :is(.idea-link,.ml-learning-idea,.walk-frame,.worked-answer){background:var(--surface-raised)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-ml-theme=chalk] body #app :is(.idea-link b,.idea-link small,.walk-frame .walk-text,.walk-progress){color:var(--ink)!important}
html[data-ml-theme=chalk] body .pick-role section.pro-card.pick-pro{background:var(--surface-raised)!important;border-color:var(--green)}
html[data-ml-theme=chalk] body .pick-role .pick-billing button[aria-pressed=true] .pick-value{color:#fff!important}
html[data-ml-theme=chalk] body #app .satp-chipon{fill:var(--lime)!important}
html[data-ml-theme=chalk][dir=rtl] body .ml-katex-source .katex{direction:ltr;unicode-bidi:isolate}
html[data-ml-theme=chalk][dir=rtl] body #app :is(svg.sat-fig,svg.calc-graph,svg.ml-course-graph,svg.ml-topic-art,.ml-math-figure){direction:ltr}
/* Signed-in components: lime is a highlight fill, never pale text on white. */
html[data-ml-theme=chalk] body :is(.ma-stats strong,.ma-message,.ma-favourite-tag,.ml-preview-stat strong,.mq-earned,.mq-badge.earned .mq-badge-symbol,.video-play){color:var(--green)!important}
html[data-ml-theme=chalk] body :is(.ml-account-menu,.ml-account-notice,.ma-save-warning,.ml-role-hero,.ml-role-preview-stage,.ml-preview-stat,.ml-preview-card,.ml-role-info){background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important;box-shadow:none!important}
html[data-ml-theme=chalk] body .ml-account-menu [role=menuitem]{background:transparent!important;color:var(--ink)!important;text-align:start}
html[data-ml-theme=chalk] body .ml-account-menu [role=menuitem]:is(:hover,:focus-visible){background:var(--surface-raised)!important;color:var(--green)!important}
html[data-ml-theme=chalk] body .ml-account-menu [data-menu-signout]{color:#8a2636!important}
html[data-ml-theme=chalk] body :is(.ma-button,.ma-root .ma-button,.ml-account-dialog .ma-button){background:var(--green)!important;color:#fff!important;border-color:var(--green)!important}
html[data-ml-theme=chalk] body :is(.ma-button.secondary,.ma-root .ma-button.secondary){background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-ml-theme=chalk] body :is(.button,.ma-button,.pro-button) :is(span,strong,b,small){color:inherit!important}
html[data-ml-theme=chalk] body :is(.ma-text,.ma-save-warning button){background:transparent!important;color:var(--green)!important}
html[data-ml-theme=chalk] body .ml-account-tabs button[aria-selected=true]{color:#fff!important;background:var(--green)!important}
html[data-ml-theme=chalk] body .ma-avatar-choice input:checked+span{background:var(--lime)!important;color:var(--green)!important;border-color:var(--green)!important}
html[data-ml-theme=chalk] body :is(.ml-role-root,.ml-role-dialog,.ml-role-settings,.ml-role-copy b,.ml-role-root code,.ml-role-settings code){color:var(--ink)!important}
html[data-ml-theme=chalk] body :is(.ml-role-muted,.ml-role-hero p,.ml-preview-stat span,.ml-role-options small,.ml-role-table caption){color:var(--muted)!important}
html[data-ml-theme=chalk] body :is(.ml-role-kicker,.ml-role-art){color:var(--green)!important}
html[data-ml-theme=chalk] body :is(.ml-role-preview-note,.ml-role-info){background:var(--surface-raised)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-ml-theme=chalk] body .ml-role-option:has(input:checked){background:var(--surface-raised)!important;border-color:var(--green)!important}
html[data-ml-theme=chalk] body .ml-role-option:has(input:checked) :is(.ml-role-art,.ml-role-check){background:var(--lime)!important;color:var(--green)!important;border-color:var(--green)!important}
html[data-ml-theme=chalk] body .ml-admin-preview-switch button{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-ml-theme=chalk] body .ml-admin-preview-switch button[aria-pressed=true]{background:var(--surface-raised)!important;border-color:var(--green)!important}
html[data-ml-theme=chalk] body :is(.ml-role-error){color:#8a2636!important}
html[data-ml-theme=chalk] body .ml-role-table .heat.good{background:#e8f1ee!important;color:#164c37!important}
html[data-ml-theme=chalk] body .ml-role-table .heat.mid{background:#fff3cf!important;color:#654b0c!important}
html[data-ml-theme=chalk] body .ml-role-table .heat.low{background:#fce9e8!important;color:#652c35!important}
html[data-ml-theme=chalk] body :is(.ma-root progress,.ma-root progress::-webkit-progress-bar){background:var(--surface-raised)}
html[data-ml-theme=chalk] body .ma-root progress::-webkit-progress-value{background:var(--green)}
html[data-ml-theme=chalk] body .ma-root progress::-moz-progress-bar{background:var(--green)}
html[data-ml-theme=chalk][dir=rtl] body .ml-account-menu{right:auto;inset-inline-end:0}

/* Game totals, feedback, and action links share the light palette. */
html[data-ml-theme=chalk] body :is(.eg-big,.eg-rows .pts,.eg-rows .rk,.eg-rows li:nth-child(1) .rk,.eg-rows li:nth-child(2) .rk,.eg-rows li:nth-child(3) .rk){color:var(--green)!important}
html[data-ml-theme=chalk] body .eg-msg{color:#654b0c!important}
html[data-ml-theme=chalk] body .eg-hearts{color:#8a2636!important}
html[data-ml-theme=chalk] body .eg-btn{background:var(--green)!important;color:#fff!important}
html[data-ml-theme=chalk] body .eg-btn.alt{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-ml-theme=chalk] body .eg-avatar{background:var(--lime)!important;color:var(--ink)!important}

/* Course and exam landing pages and numbered lesson ideas. */
html[data-ml-theme=chalk] body #app :is(.idea-number,.ml-landing-pill){color:var(--green)!important}
html[data-ml-theme=chalk] body #app :is(.ml-landing-hero p,.ml-landing-note){color:var(--muted)!important}
html[data-ml-theme=chalk] body #app :is(svg.ml-course-graph,.ml-art svg,svg.ml-topic-art) text{fill:var(--ink)!important;fill-opacity:1!important}

html[data-ml-theme=chalk] body #app :is(.satp-lead){color:var(--muted)!important}
html[data-ml-theme=chalk] body #app .sat-lock{color:var(--green)!important}
html[data-ml-theme=chalk] body #app a.sat-btn{background:var(--green)!important;color:#fff!important}
html[data-ml-theme=chalk] body #app a.sat-btn.secondary{background:var(--surface)!important;color:var(--ink)!important}
html[data-ml-theme=chalk] body #app :is(.ml-browser-tools,.ml-browser-group,.ml-browser-empty,.ml-landing-card){background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-ml-theme=chalk] body #app .ml-landing-hero svg text{fill:var(--ink)!important;fill-opacity:1!important}

html[data-ml-theme=chalk] body #app .ml-landing-btn:not(.alt){background:var(--lime)!important;color:var(--ink)!important;border-color:var(--green)!important}
html[data-ml-theme=chalk] body #app .ml-landing-btn.alt{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}

/* Keep long equations at their original scale, within their reading container. */
html[data-ml-theme=chalk] body #app :is(.step,p):has(.ml-ch1-equation){max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}

html[data-ml-theme=chalk] body #app .ml-learning-panel:has(table){max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
html[data-ml-theme=chalk] body .ml-search-results a.active b{color:var(--green)!important}
html[data-ml-theme=chalk] body .ml-search-results mark{background:var(--lime)!important;color:var(--ink)!important}
html[data-ml-theme=chalk] body .ml-search-results a:is(.active,:hover){background:var(--surface-raised)!important}
/* Remaining application states with fixed Dark colors. */
html[data-ml-theme=chalk] body :is(.mla-account-dialog,.ml-contact,.mlwm,.ml-preview-bar,.ml-loading-status,.mlb-print-help){background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-ml-theme=chalk] body :is(.mla-admin-owner,.ml-preview-bar strong,.sat-score,.satp-best,.rt-idea:not(.rt-off) .rt-step output,.rt-summary .rt-big){color:var(--green)!important}
html[data-ml-theme=chalk] body :is(.ml-contact label,.ml-contact-close,.mlwm-n){color:var(--ink)!important}
html[data-ml-theme=chalk] body :is(.ml-contact-intro,.ml-contact-note,.mlb-print-help p,.mlwm-empty){color:var(--muted)!important}
html[data-ml-theme=chalk] body :is(.ml-contact-status[data-error=true],.rt-timer.rt-out,.rt-low-t,.rt-review .rt-res.rt-wrongc,.mla-admin-remove){color:#8a2636!important}
html[data-ml-theme=chalk] body :is(.ml-contact-status[data-error=false],.mlwm-h){color:var(--green)!important}
html[data-ml-theme=chalk] body :is(.rt-warn,.rt-timer.rt-low,.rt-flag.rt-on,.rt-mid,.sat-timer.low,.sat-flag.on){color:#654b0c!important}
html[data-ml-theme=chalk] body :is(.mlwm-tip b){color:var(--green)!important}
html[data-ml-theme=chalk] body :is(.ml-contact [type=submit],.mla-account-dialog [type=submit],.mla-admin-form button){background:var(--green)!important;color:#fff!important}
html[data-ml-theme=chalk] body :is(.mla-pager button,.mla-account-dialog button:not([type=submit])){background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-ml-theme=chalk] body :is(.mla-admin-remove,.ml-preview-bar button){background:var(--surface-raised)!important;border-color:var(--line)!important}
html[data-ml-theme=chalk] body .ml-preview-bar button{color:var(--ink)!important}
html[data-ml-theme=chalk] body :is(.sat-num,.sat-navbtn){background:var(--surface-raised)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-ml-theme=chalk] body :is(.sat-elimtog.on,.sat-filter button.on,.sat-opt.sel b,.rt-choice.rt-picked .rt-letter){background:var(--green)!important;color:#fff!important;border-color:var(--green)!important}
html[data-ml-theme=chalk] body .mq-toast{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-ml-theme=chalk] body .mq-play [data-mq-verdict]{background:var(--green)!important;color:#fff!important}

html[data-ml-theme=chalk] body :is(.sat-flag.on,.rt-flag.rt-on){background:#fff3cf!important;color:#654b0c!important;border-color:#8c6b1f!important}
}
@media print{.ml-theme-switch{display:none!important}}

/* Approved Classic Light presentation. Screen only; Dark and print are unchanged. */
@media screen {
html[data-ml-theme=chalk]{--ink:#152929;--muted:#526762;--paper:#f4f7f6;--line:#7a9186;--green:#145b4a;--lime:#d5f476;--surface:#fff;--surface-raised:#edf4f1;--learning-border:#7a9186}
html[data-ml-theme=chalk] body #app :is(.ml-learning-tabs a.active,.tabs a.active),html[data-ml-theme=chalk] body .pick-role :is(.pick-tabs button[aria-selected=true],.pick-billing button[aria-pressed=true]){background:var(--lime)!important;color:var(--ink)!important;border-color:var(--green)!important}
html[data-ml-theme=chalk] body .pick-role .pick-billing button[aria-pressed=true] .pick-value{color:var(--ink)!important}
html[data-ml-theme=chalk] body #app :is(.ml-learning-panel,.ml-learning-worked){border-color:var(--line)!important}
html[data-ml-theme=chalk] body #app :is(.panel.game .question,.idea-question h3,.calc-question-title,.em-question,.sat-stem,.vp-question>.math){font-size:1.25rem!important;line-height:1.6!important}
html[data-ml-theme=chalk] body #app :is(.choice,.idea-choices button,.em-choices button,.sat-opt,.vp-options button){display:block;font-size:1.125rem!important;line-height:1.6!important;min-height:48px;min-width:0;white-space:normal}
html[data-ml-theme=chalk] body #app :is(.idea-question h3>.math,.choice .math,.idea-choices button .math,.sat-opt .math){font-size:inherit!important}
html[data-ml-theme=chalk] body #app .ml-katex-source .katex{font-size:1em!important}
html[data-ml-theme=chalk] body #app .ml-ch1-equation{display:inline;max-width:none;overflow:visible;white-space:nowrap;vertical-align:baseline}
html[data-ml-theme=chalk] body #app :is(.step,p):has(.ml-ch1-equation){overflow:visible}
html[data-ml-theme=chalk] body #app :is(.choice.selected,.idea-choices button.selected,.sat-opt.sel,.vp-options button.vp-selected){background:var(--lime)!important;color:var(--ink)!important;border-color:var(--green)!important}
html[data-ml-theme=chalk] body :is(button,a,input,textarea,select,summary):focus-visible{outline:2px solid #125e97!important;outline-offset:3px}
html[data-ml-theme=chalk] body #app .ml-learning-panel article>.math:has(.ml-coordinate-figure){font-size:1.25rem!important;line-height:1.6!important}
html[data-ml-theme=chalk] body .pick-role .pick-pro .pick-features li:before{color:var(--green)!important}
html[data-ml-theme=chalk] body #app .ml-coordinate-figure :is(text,.ml-figure-label,.ml-figure-key){fill:var(--ink)!important;color:var(--ink)!important}
html[data-ml-theme=chalk] body #app .ml-coordinate-figure .ml-figure-grid{stroke:#d8e1df!important}
@media(max-width:600px){html[data-ml-theme=chalk] body #app .ml-learning-panel article>.math:has(.ml-coordinate-figure){font-size:1.125rem!important}html[data-ml-theme=chalk] body #app :is(.panel.game .question,.idea-question h3,.calc-question-title,.em-question,.sat-stem,.vp-question>.math){font-size:1.125rem!important}html[data-ml-theme=chalk] body #app :is(.choice,.idea-choices button,.em-choices button,.sat-opt,.vp-options button){font-size:1rem!important}}
}

/* Approved reading scale in both appearances; no color, layout structure or print changes. */
@media screen {
html:is([data-ml-theme=chalk],[data-ml-theme=dark]) body #app :is(.panel.game .question,.idea-question h3,.calc-question-title,.em-question,.sat-stem,.vp-question>.math,.rt-q,.eg-q){font-size:1.25rem!important;line-height:1.6!important}
html:is([data-ml-theme=chalk],[data-ml-theme=dark]) body #app :is(.choice,.idea-choices button,.em-choices button,.sat-opt,.vp-options button,.rt-choice,.eg-opt){display:block;font-size:1.125rem!important;line-height:1.6!important;min-height:48px;min-width:0;white-space:normal}
html:is([data-ml-theme=chalk],[data-ml-theme=dark]) body #app :is(.idea-question h3>.math,.choice .math,.idea-choices button .math,.sat-opt .math){font-size:inherit!important}
html:is([data-ml-theme=chalk],[data-ml-theme=dark]) body #app .ml-katex-source .katex{font-size:1em!important}
html:is([data-ml-theme=chalk],[data-ml-theme=dark]) body #app .ml-ch1-equation{display:inline;max-width:none;overflow:visible;white-space:nowrap;vertical-align:baseline}
html:is([data-ml-theme=chalk],[data-ml-theme=dark]) body #app :is(.step,p):has(.ml-ch1-equation){max-width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;padding-block:.2em}
html:is([data-ml-theme=chalk],[data-ml-theme=dark]) body #app .ml-learning-panel article>.math:has(.ml-coordinate-figure){font-size:1.25rem!important;line-height:1.6!important}
html:is([data-ml-theme=chalk],[data-ml-theme=dark]) body :is(button:not(.choice):not(.sat-opt):not(.rt-choice):not(.eg-opt):not([data-option]):not([data-vp-option]),a.button,.pro-button,.ma-button,.sat-btn,.em-link,.ml-learning-game){font-size:15px!important;min-height:44px}
html:is([data-ml-theme=chalk],[data-ml-theme=dark]) body #app :is(.ml-learning-tabs a,.tabs a){font-size:15px!important;min-height:44px;box-sizing:border-box}
html:is([data-ml-theme=chalk],[data-ml-theme=dark]) body footer .ml-theme-switch{font-size:15px}
html:is([data-ml-theme=chalk],[data-ml-theme=dark]) body #app .ml-learning-panel:has(table){max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
@media(max-width:600px){
html:is([data-ml-theme=chalk],[data-ml-theme=dark]) body #app :is(.panel.game .question,.idea-question h3,.calc-question-title,.em-question,.sat-stem,.vp-question>.math,.rt-q,.eg-q){font-size:1.125rem!important}
html:is([data-ml-theme=chalk],[data-ml-theme=dark]) body #app :is(.choice,.idea-choices button,.em-choices button,.sat-opt,.vp-options button,.rt-choice,.eg-opt){font-size:1rem!important}
html:is([data-ml-theme=chalk],[data-ml-theme=dark]) body #app .ml-learning-panel article>.math:has(.ml-coordinate-figure){font-size:1.125rem!important}
}
}

/* Targeted inherited Dark figure-caption contrast correction; existing Dark muted token, screen only. */
@media screen {
html[data-ml-theme=dark] body .ml-coordinate-figure figcaption{color:var(--muted)}
}

/* SAT/PSAT topic-card surfaces: Classic Light only; preserve Dark and print. */
@media screen {
html[data-ml-theme=chalk] body #app .satp-root .em-card{background:var(--surface-raised)!important;border-color:var(--line)!important;color:var(--ink)!important}
html[data-ml-theme=chalk] body #app .satp-root .em-card .satp-best{color:var(--muted)!important}
html[data-ml-theme=chalk] body #app .em-topic-diagram{background:var(--surface)!important;border-color:var(--line)!important}
}

/* Account subscription actions and admin header: Classic Light screen-only contrast. */
@media screen {
html[data-ml-theme=chalk] body [data-pro-subscription] .pro-button{background:var(--green)!important;color:#fff!important;border-color:var(--green)!important}
html[data-ml-theme=chalk] body [data-pro-subscription] .pro-button.secondary{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-ml-theme=chalk] body .mla-root .mla-head{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important;border-top-color:var(--green)!important}
}

/* Shared lesson contrast: Classic Light screen only; preserve Dark, print and typography. */
@media screen {
html[data-ml-theme=chalk] body #app .worked-steps li:last-child{color:var(--green)!important}
html[data-ml-theme=chalk] body #app .ml-video-soon{background:var(--surface-raised)!important}
}
