/* Math Lab dark theme "Ink blue" (Nov 2026). Generated by tools/build-dark-palette.mjs; do not edit by hand.
   Same navy identity one step lighter and bluer; readable text at every size (WCAG AA).
   Dark only and screen only. To undo: remove mathlab-dark from guideAssets in dist/server/typography-entry.mjs. */
@media screen{
html:not([data-ml-theme=chalk]):not([data-theme=light]){
  --paper:#14223F;--surface:#1C2D50;--surface-raised:#26395F;--line:#304670;--learning-border:#304670;
  --ink:#EAF0F8;--muted:#B3C1D6;--green:#45DCCB;--lime:#C8F25A;
  --bg:#14223F;--teal:#45DCCB;--teal-soft:#1A4556;--lime-soft:#2E3B1A;
  --good:#5EE29A;--bad:#FF8A8A;--warn:#F5A877;--warn-soft:#3A2C22;
  --ml-dark-faint:#95A6C0;--ml-dark-line-strong:#5670A8;
}
html:not([data-ml-theme=chalk]):not([data-theme=light]) body{background-color:#14223F}
html:not([data-ml-theme=chalk]):not([data-theme=light]) :is(input,select,textarea){border-color:#5670A8}
html:not([data-ml-theme=chalk]):not([data-theme=light]) :is(input,textarea)::placeholder{color:#95A6C0;opacity:1}
html:not([data-ml-theme=chalk]):not([data-theme=light]) :is(button,a,input,select,textarea,[tabindex]):focus-visible{outline:3px solid #8FD8FF;outline-offset:2px}
html:not([data-ml-theme=chalk]):not([data-theme=light]){--muted:#B3C1D6;--paper:#14223F;--line:#304670;--surface:#1C2D50;--surface-raised:#26395F}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .logo{color:#0E1A33}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .grade .button,html:not([data-ml-theme=chalk]):not([data-theme=light]) .grade.blue .button{color:#0E1A33}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .topic-search input,html:not([data-ml-theme=chalk]):not([data-theme=light]) select{border-color:#5670A8}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .idea-link{border-color:#5670A8;background:#26395F!important}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .idea-link:hover,html:not([data-ml-theme=chalk]):not([data-theme=light]) .idea-link:focus-visible{background:#304670}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .idea-link:hover{background:#304670!important}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ma-social-button{background:var(--surface-raised,#26395F)}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-account-tabs button[aria-selected=true]{color:#1A4556}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-account-dialog input,html:not([data-ml-theme=chalk]):not([data-theme=light]) .ma-root input:not([type=checkbox]):not([type=radio]){background:var(--surface-raised,#26395F);border:1px solid #95A6C0}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ma-panel{background:var(--surface,#1C2D50)}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ma-button{color:#1A4556!important}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ma-course{background:var(--surface-raised,#26395F)}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ma-avatar-choice>span{background:var(--surface-raised,#26395F)}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-account-menu{background:#1C2D50;border:1px solid #304670}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-account-menu [role=menuitem]:hover,html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-account-menu [role=menuitem]:focus-visible{background:#26395F}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-account-notice{background:#1C2D50;border:1px solid #304670}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ma-save-warning{background:#1C2D50}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .vp-badge{border:1px solid var(--line,#5670A8)}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .vp-gate{border:1px solid var(--line,#5670A8);background:var(--surface,#1C2D50)}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .vp-home-card{border:1px solid var(--line,#5670A8);background:var(--surface,#1C2D50)}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .vp-table td,html:not([data-ml-theme=chalk]):not([data-theme=light]) .vp-table th{border:1px solid var(--line,#5670A8)}
html:not([data-ml-theme=chalk]):not([data-theme=light]) #app table.sat-tab th,html:not([data-ml-theme=chalk]):not([data-theme=light]) #app table.sat-tab td{background:var(--surface-raised,#26395F)}
html:not([data-ml-theme=chalk]):not([data-theme=light]) #app table.sat-tab th{background:var(--surface,#1C2D50)}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-curriculum-landing .ml-landing-btn{color:#0E1A33!important}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-learning-page .ml-learning-tabs a.active{color:#0E1A33}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-learning-page :is(button:not(.choice):not([data-option]):not([data-vp-option]):not(.secondary),a.button:not(.secondary)){color:#0E1A33}
html:not([data-ml-theme=chalk]):not([data-theme=light]) body #app#app :is(.calc-course .choice,.game .choice,.idea-choices button):not(:disabled):not(.correct):not(.wrong):not(.selected):not([aria-pressed=true]):hover{border-color:#95A6C0!important}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-curriculum-landing .ml-browser-tools{background:#1C2D50}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-curriculum-landing .ml-browser-search-row input{background:#14223F}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-curriculum-landing details.ml-browser-group{background:#1C2D50}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-curriculum-landing .ml-browser-group[open]>.ml-browser-summary{border-bottom:1px solid #304670}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-curriculum-landing .ml-browser-empty{background:#1C2D50}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .calc-course select{border:1px solid #95A6C0}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .calc-course .tb-value-table input{border:1px solid #95A6C0}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .calc-sheet{color:#0E1A33}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .calc-sheet .calc-table th,html:not([data-ml-theme=chalk]):not([data-theme=light]) .calc-sheet .calc-table td,html:not([data-ml-theme=chalk]):not([data-theme=light]) .calc-sheet .math,html:not([data-ml-theme=chalk]):not([data-theme=light]) .calc-sheet .fraction{color:#0E1A33}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .pick-role{--pick-lime:#C8F25A;background:#14223F}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .pick-role .pro-hero p{color:#B3C1D6}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .pick-tabs,html:not([data-ml-theme=chalk]):not([data-theme=light]) .pick-billing{border:1px solid #304670;background:#1C2D50}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .pick-tabs button,html:not([data-ml-theme=chalk]):not([data-theme=light]) .pick-billing button{color:#B3C1D6}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .pick-tabs button[aria-selected=true]{color:#0E1A33}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .pick-role .pro-card{background:#1C2D50}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .pick-role .pro-price small{color:#B3C1D6}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .pick-badge{color:#0E1A33}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .pick-role .pro-card .pick-card-note{color:#B3C1D6}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .pick-footnote{color:#B3C1D6}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .pick-checkout-note{color:#B3C1D6}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .pick-trust section{border:1px solid #304670}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .pick-trust p{color:#B3C1D6}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .pick-notice{color:#95A6C0}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-role-panel{background:#1C2D50}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-role-muted{color:#B3C1D6}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-role-root input:not([type=checkbox]):not([type=radio]),html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-role-root select,html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-role-settings input:not([type=radio]),html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-role-settings select,html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-role-dialog input:not([type=radio]){border:1px solid #95A6C0}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-role-options label:has(input:checked){background:#1A4556}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-role-table th{background:#1C2D50}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-role-dialog{background:#1C2D50}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-role-option{border:1px solid #5670A8!important}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-role-check{background:#1C2D50}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-role-option:has(input:checked){background:linear-gradient(150deg,#1A4556,#11233a)!important}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-role-hero{border:1px solid #5670A8;background:linear-gradient(130deg,#142b43,#1C2D50)}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-role-hero p{color:#B3C1D6}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-admin-preview-switch button{border:1px solid #5670A8}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-admin-preview-switch button[aria-pressed=true]{background:#1A4556}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-preview-stat{border:1px solid #5670A8;background:#1C2D50}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-preview-stat span{color:#B3C1D6}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-preview-card{border:1px solid #5670A8;background:#1C2D50}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-role-root textarea,html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-role-dialog textarea,html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-role-settings textarea{border:1px solid #95A6C0;background:#14223F}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-role-root input::placeholder,html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-role-root textarea::placeholder,html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-role-dialog input::placeholder,html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-role-dialog textarea::placeholder,html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-role-settings input::placeholder,html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-role-settings textarea::placeholder{color:#B3C1D6}
html:not([data-ml-theme=chalk]):not([data-theme=light]) body .ml-call{border-left:4px solid #C8F25A}
html:not([data-ml-theme=chalk]):not([data-theme=light]) body .ml-call-text{color:#B3C1D6}
html:not([data-ml-theme=chalk]):not([data-theme=light]) body #app .ml-board-btn{border-color:#C8F25A!important;background:#C8F25A!important}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-five-min{border:1px solid #C8F25A}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-five-min b{color:#C8F25A}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .mlc{--mlc-surface:var(--surface, #1C2D50);--mlc-muted:var(--muted, #95A6C0);--mlc-teal:var(--green, #45DCCB);--mlc-lime:var(--lime, #C8F25A)}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .mlc-chip.mlc-l4{color:#0E1A33}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .mlc-btn.lime{color:#0E1A33}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .mlc-entry{border:1px solid var(--lime, #C8F25A)}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .mlc-entry small{color:var(--muted, #95A6C0)}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .mlc-choice.picked b{color:#0E1A33}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .em-topic-status{color:var(--muted,#95A6C0)}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .em-topic-status[data-state="done"]::before{background:#2CC5B3}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-mistake,html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-next,html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-plan{--mlg-accent:var(--teal,var(--green,#2CC5B3));--mlg-muted:var(--muted,#95A6C0);--mlg-line:var(--line,#304670)}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-mk-btn{color:#0E1A33}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-rec,html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-chip-rec{background:#C8F25A;color:#0E1A33}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-mode{color:var(--muted,#95A6C0)}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-builds{color:var(--muted,#95A6C0)}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-builds a{color:var(--teal,var(--green,#2CC5B3))}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-promo{--p-teal:#2CC5B3}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-promo[data-theme] .mlp-grid>path{stroke:#2CC5B3}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ml-promo[data-theme] .mlp-eyebrow span{background:#2CC5B3}
html[data-theme="dark"]:not([data-ml-theme=chalk]):not([data-theme=light]){--bg:#14223F;--surface:#1C2D50;--muted:#95A6C0;--line:#304670;--teal:#45DCCB;--teal-soft:#1A4556;--lime:#C8F25A;--lime-soft:#2E3B1A;--warn-soft:#3A2C22;--good:#5EE29A;--bad:#FF8A8A}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .zoom button{border:1px solid #304670}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .xrow{border:1px solid #304670}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .xrow.err{border-color:#FF8A8A}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .xin input{background:#1C2D50}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .xmsg{color:#FF8A8A}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .presets button{border:1px solid #304670}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .slider input{accent-color:#2CC5B3}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .parent-pick button{border:1px solid #304670}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .match-status.win{background:#2E3B1A}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ibox{border:1px solid #304670}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ends button{border:1px solid #304670}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .ans{color:#0E1A33}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .iv-thumb{background:#14223F}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .iv-play{border:2px solid #C8F25A}
html:not([data-ml-theme=chalk]):not([data-theme=light]) :is(.ci-btn,.ci-track button,.pick-tabs button,.sat-btn.alt,.ml-landing-btn.alt,.calc-filter button,button.secondary,.pro-button.secondary){border-color:#5670A8!important}
html:not([data-ml-theme=chalk]):not([data-theme=light]) :is(.ci-btn,.sat-btn.alt,.ml-landing-btn.alt,button.secondary,.pro-button.secondary):hover{border-color:#45DCCB!important}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .vp-home-card{border-color:#304670!important}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .mlc-tag{color:#45DCCB!important}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .em-topic-card a.button:not(#ml-x):not(#ml-y){display:flex;align-items:center;justify-content:center;width:100%;background:rgba(69,220,203,.10)!important;border:1.5px solid #45DCCB!important;border-radius:12px!important;color:#45DCCB!important;-webkit-text-fill-color:#45DCCB;font-weight:700}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .em-topic-card a.button:not(#ml-x):not(#ml-y):hover{background:#2CC5B3!important;border-color:#2CC5B3!important;color:#0E1A33!important;-webkit-text-fill-color:#0E1A33}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .em-topic-card .em-topic-status[data-state=active]+a.button:not(#ml-x):not(#ml-y){background:#2CC5B3!important;border-color:#2CC5B3!important;color:#0E1A33!important;-webkit-text-fill-color:#0E1A33}
html:not([data-ml-theme=chalk]):not([data-theme=light]) .mlw-preview-tools button.secondary:not(#ml-x):not(#ml-y){background:#FFFFFF!important;color:#0A6971!important;-webkit-text-fill-color:#0A6971;border:1.5px solid #0A6971!important}
html:not([data-ml-theme=chalk]):not([data-theme=light]) :is(.ml-landing-btn.alt,.sat-btn.alt,.mlc-btn.ghost,a.button.secondary,button.secondary):not(#ml-x){color:#EAF0F8!important;-webkit-text-fill-color:#EAF0F8}

}
