/* White page canvas in both themes; surfaces own their readable foregrounds. */
html[data-smarti-ui] {
  --sm-canvas:#ffffff; --sm-canvas-ink:#073375; --sm-canvas-muted:#435d82;
  --sm-surface:#ffffff; --sm-card-background:#ffffff; --sm-soft:#f3f7ff;
  --sm-ink:#073375; --sm-muted:#435d82; --sm-line:#dce6f4;
  --sm-blue:#075dd7; --sm-blue-deep:#084cba; --sm-on-blue:#ffffff;
  --sm-gold:#ffc640; --sm-green:#087e58; --sm-green-soft:#eaf8f2;
  --sm-red:#b32a35; --sm-red-soft:#fff0f0; --sm-track:#dfe6f2;
  --sm-shadow:0 5px 18px #1238710d; --sm-radius:20px;
  --sm-font:"Segoe UI",Arial,ui-sans-serif,system-ui,sans-serif;
  color-scheme:light;
}
html[data-smarti-ui][data-theme="dark"] {
  --sm-canvas:#ffffff; --sm-surface:#10488f;
  --sm-card-background:linear-gradient(135deg,#1c60b4 0%,#0b3e85 52%,#1755a3 100%);
  --sm-soft:#15539b; --sm-ink:#ffffff; --sm-muted:#d6e6fc; --sm-line:#548bcc;
  --sm-blue:#a0d3ff; --sm-blue-deep:#d2eaff; --sm-on-blue:#ffffff;
  --sm-green:#64e5ae; --sm-green-soft:#084a60;
  --sm-red:#ffb8bb; --sm-red-soft:#612d53; --sm-track:#7292be;
  --sm-shadow:0 7px 22px #07377b24; color-scheme:light;
}
html[data-smarti-ui][data-theme="dark"] select {
  color-scheme:dark;
  color:var(--sm-ink);
  background:var(--sm-card-background);
}
html[data-smarti-ui][data-theme="dark"] select option,
html[data-smarti-ui][data-theme="dark"] select optgroup {
  color:#fff;
  background-color:#0b3e85;
}
html[data-smarti-ui] {
  --home-bg:var(--sm-canvas); --home-ink:var(--sm-ink); --home-muted:var(--sm-muted);
  --home-card:var(--sm-surface); --home-line:var(--sm-line); --home-blue:var(--sm-blue);
  --home-shadow:var(--sm-shadow); --home-gold:var(--sm-gold);
}

/* Shared header lockup: Smart + Sunny Marty as the i + EXAM PREP. */
html[data-smarti-ui] .smarti-marty-lockup{display:inline-grid;grid-template-columns:max-content auto;grid-template-rows:auto auto;align-items:end;width:max-content;color:inherit;text-decoration:none;line-height:1}
html[data-smarti-ui] .smarti-marty-word{font:800 1em/1 var(--sm-font);letter-spacing:-.055em}
html[data-smarti-ui] .smarti-marty-i{width:.78em;height:1.42em;margin:0 0 -.18em -.02em;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 2px 2px #07337518)}
html[data-smarti-ui] .smarti-marty-sub{grid-column:1/3;margin-top:.18em;text-align:center;font:750 .24em/1.2 var(--sm-font);letter-spacing:.25em;color:var(--sm-gold)}
