#ml-theme-switch {
  position: fixed; inset: auto auto max(.7rem,env(safe-area-inset-bottom)) max(.7rem,env(safe-area-inset-left));
  z-index: 10000; width: auto; min-height: 36px; padding: .45rem .8rem; margin: 0;
  border: 1px solid #8796a6; border-radius: 2rem; background: #243247; color: #fff;
  box-shadow: 0 2px 8px #0003; cursor: pointer; font: 600 13px/1.2 system-ui,sans-serif;
}
#ml-theme-switch[aria-pressed="true"] { background: #e1efff; color: #163c63; border-color: #537495; }
#ml-theme-switch:focus-visible { outline: 3px solid #1973c1; outline-offset: 3px; }
.ml-new { display:inline-block; align-self:center; margin-inline-start:auto; padding:.23em .54em; border-radius:4px; background:#b71e32; color:white; font:800 10px/1.1 system-ui,sans-serif; letter-spacing:.04em; }
@media print { #ml-theme-switch { display:none; } }

html[data-ml-light] {
  color-scheme:light;
  --bg:#f5f7fa; --surface:#fff; --surface-2:#edf2f7; --surface-glass:#fffffff2;
  --panel:#fff; --ink:#213348; --txt:#213348; --text:#213348; --muted:#4d6276;
  --accent:#9dd9f2; --line:#c8d4df;
  background:#f5f7fa;
}
html[data-ml-light] body { background:#f5f7fa !important; color:#213348 !important; }
html[data-ml-light] :is(header,aside,footer,.site-nav,.topbar,.summary-toolbar,.tabs,.contents,.reading-rail,.hover-menu,.category,.panel,.card,.course-card,.hero-card,.grid1item1,.grid2item2,.grid3item3,.ml-chapters,details,.sidebox,.sidebar,.lesson,.entry,.course-content,.view-toggle) {
  background:#fff !important; color:#213348 !important; border-color:#c8d4df !important;
}
html[data-ml-light] :is(.hero,.summary-hero,summary,th,dl div) { background:linear-gradient(120deg,#f2f7fb,#deebf3) !important; color:#213348 !important; }
html[data-ml-light] .summary-hero::after { background:transparent; }
html[data-ml-light] :is(h1,h2,h3,h4,h5,h6,p,li,dt,dd,figcaption,label,.hero-intro,.brand,.sub,.tagline,.desc,.card-title,.chapter-name,.footer-tagline) { color:#263b50 !important; }
html[data-ml-light] :is(a,.hero-plm-inline,.hero-kicker,.summary-kicker,.chapter-count) { color:#15577d !important; }
html[data-ml-light] :is(select,input:not([type=checkbox],[type=radio]),textarea,button:not(#ml-theme-switch),.btn,.btn_title,.course-link,.nav-cta,.chapter-links a,.contact-link,.grid2li,.grid3li) { background-color:#eff5fa !important; color:#203d57 !important; border-color:#a9bdce !important; }
html[data-ml-light] :is(.active,[aria-current=page],button[aria-pressed=true]:not(#ml-theme-switch)) { background-color:#d1e9fc !important; color:#163c63 !important; }
html[data-ml-light] :is(.hero-card,.grid1item1,.nav-links a,.tab):hover { background:#e2eff9 !important; }
html[data-ml-light] .btn_title { background:#f5f9fc !important; }
html[data-ml-light] .nav-toggle span { background:currentColor; }
html[data-ml-light] {
  --ml-bg:#f5f7fa; --ml-panel:#fff; --ml-panel2:#edf2f7; --ml-text:#213348; --ml-muted:#4d6276;
  --ml-line:#c8d4df; --ml-shadow:0 8px 20px #263b5012;
}
html[data-ml-light] :is(.forum-hero,.shop-hero,.product-hero,.contact-hero,.auto-lesson-switcher,.nav-links.is-open,.nav-links.open) { background:#edf3f8 !important; color:#213348 !important; }
html[data-ml-light] .legacy-course-modern #aside.sidenav,
html[data-ml-light] .legacy-course-modern #main :is(section,article,.table-container),
html[data-ml-light] .legacy-course-modern #main>div:not(.modal) { background:#fff !important; }
html[data-ml-light] .legacy-course-modern #main :is(h1,h2,h3,p,li,td) { color:#263b50 !important; }
