html[data-theme="light"] {
  --bg:#f5f7f8;--panel:#fff;--panel2:#eaf0f3;--line:#bdcbd4;
  --text:#192830;--muted:#4e626e;--cyan:#006e81;--green:#176e48;
  --purple:#6841b5;--orange:#985213;--amber:#985213;--yellow:#735200;--red:#ab2735;
  --shadow:0 16px 40px rgba(20,35,45,.1);
}
html[data-theme="light"] :is(.topbar,.siteHeader) {background:rgba(255,255,255,.97);border-color:var(--line)}
html[data-theme="light"] :is(.hero,.card,.boundaryClass,.eq,.formulaRow,.flow .box,.metric,.libraryItem,.node,.pageHeader,.band.alt,.formula,.callout,.siteFooter,.homeFooter,.propertyMenu,.builderCanvas) {background:var(--panel);border-color:var(--line);color:var(--text)}
html[data-theme="light"] :is(.pill,.canonicalTagline,.labelRow,.lede,.prose p,.prose li,.es-spidertaz-footer p) {color:var(--muted)}
html[data-theme="light"] :is(.homeFooterGrid a,.homeFooterGrid a:visited,.footerGrid a,.footerGrid a:visited,.es-spidertaz-home h2 a,.es-spidertaz-home h2 a:visited) {color:var(--cyan)}
html[data-theme="light"] :is(a:hover,a:focus-visible) {color:#005463}
html[data-theme="light"] :is(.accountForm input,.accountForm textarea,.control input,.control select,.readout,.approachTrack,.es-spidertaz-form input) {background:#fff;color:var(--text);border-color:var(--line)}
html[data-theme="light"] input::placeholder {color:var(--muted);opacity:1}
html[data-theme="light"] :is(.action,.action:visited) {background:#006e81;color:#fff}
html[data-theme="light"] :is(.action.secondary,.action.secondary:visited) {background:transparent;color:var(--text)}
html[data-theme="light"] .notice.good {background:#e7f5ed;color:#175b3d}
html[data-theme="light"] .notice.bad {background:#fff0f1;color:#982531}
/* Fixed-color plot strokes and labels retain their dark instrument background. */
html[data-theme="light"] :is(.canvas,.plotPanel) {--text:#f1f5f9;--muted:#a5afbc;--cyan:#38d6e8;--green:#5de09b;--orange:#ffad5a;--yellow:#ffe66d;--purple:#a78bfa;color:#f1f5f9}
html[data-theme="light"] :is(a,button,input,textarea,select):focus-visible {outline:2px solid #006e81;outline-offset:3px}
@media(max-width:380px) {
  .topbar .brand {gap:6px;font-size:11px;letter-spacing:0}
  .topbar .brand span {min-width:0;overflow-wrap:anywhere}
  .topbar .brandmark {width:20px;height:20px;flex:0 0 20px}
  .siteHeader .brandMark {flex:0 0 20px;width:20px;height:20px}
  .siteHeader .siteBrand {gap:6px}
  .siteHeader .siteBrand span:last-child {font-size:12px}
}
