/* Signature Suite public forms theme — /book, /e, /f, /a, /t
   Toggle: Dark | Light — both Signature Suite neon red (#f0202e).
   Orange website accents removed. Default = dark. Persists sd-public-theme. */

:root,
html[data-theme="dark"]{
  --bg:#0a0a0a;
  --card:#141414;
  --field:#0f0f0f;
  --line:#262626;
  --line2:#383838;
  --ink:#f3f1f0;
  --tx:#f3f1f0;
  --mut:#a39d9b;
  --gold:#e0434b;
  --gold2:#ff7a7f;
  --gold3:#9e1c24;
  --err:#ff6b6b;
  --ok:#7fc8a0;
  --bad:#ff6b6b;
  --run:#8fc1e8;
  --hot:#e0262f;
  --btn1:#e5343d;
  --btn2:#a8141c;
  --btnink:#FFFFFF;
  --onacc:#FFFFFF;
  --chip:#1a1a1a;
  --noteBg:#1a0f10;
  --noteLine:#4f1c20;
  --deal:rgba(224,38,47,.16);
  --dealTx:#ff7a7f;
  --ghost:#1a1a1a;
  --okBg:rgba(47,107,58,.22);
  --okTx:#A8E0B4;
  --errBg:rgba(192,57,43,.22);
  --errTx:#F0B0A8;
  --infoBg:rgba(58,110,165,.22);
  --infoTx:#B8D4EC;
  --accrgb:224,38,47;
  --neon:#f0202e;
  /* Calendar day status — same hue meaning in Dark and Light */
  --stOpen:#A8E0B4;
  --stFull:#F0B0A8;
  --stClosed:#a39d9b;
  --radius:12px;
  --font:"Manrope",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --fontDisplay:"Space Grotesk","Manrope",system-ui,sans-serif;
  --shadow:0 1px 2px rgba(0,0,0,.35);
  color-scheme:dark;
}

html[data-theme="light"]{
  --bg:#F7F5F4;
  --card:#FFFFFF;
  --field:#FFFFFF;
  --line:rgba(0,0,0,.10);
  --line2:rgba(0,0,0,.16);
  --ink:#1A1414;
  --tx:#1A1414;
  --mut:#6B6362;
  --gold:#e0434b;
  --gold2:#c41e28;
  --gold3:#9e1c24;
  --err:#C62828;
  --ok:#2E7D4F;
  --bad:#C62828;
  --run:#1565C0;
  --hot:#e0262f;
  --btn1:#e5343d;
  --btn2:#a8141c;
  --btnink:#FFFFFF;
  --onacc:#FFFFFF;
  --chip:#F0EBEA;
  --noteBg:rgba(240,32,46,.08);
  --noteLine:rgba(240,32,46,.28);
  --deal:rgba(240,32,46,.10);
  --dealTx:#c41e28;
  --ghost:#F0EBEA;
  --okBg:rgba(46,125,79,.12);
  --okTx:#1B5E3A;
  --errBg:rgba(198,40,40,.12);
  --errTx:#8B1A1A;
  --infoBg:rgba(21,101,192,.10);
  --infoTx:#0D47A1;
  --accrgb:224,38,47;
  --neon:#f0202e;
  --stOpen:#1B5E3A;
  --stFull:#8B1A1A;
  --stClosed:#6B6362;
  --radius:12px;
  --font:"Manrope",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --fontDisplay:"Space Grotesk","Manrope",system-ui,sans-serif;
  --shadow:0 1px 2px rgba(0,0,0,.08);
  color-scheme:light;
}

html[data-theme="dark"] .brand b,
html[data-theme="light"] .brand b{color:var(--neon)}
html[data-theme="dark"] .brand b{
  text-shadow:0 0 1px rgba(255,255,255,.35),0 0 6px rgba(var(--accrgb),.75),0 0 14px rgba(var(--accrgb),.4);
}
html[data-theme="light"] .brand b{
  text-shadow:0 0 8px rgba(var(--accrgb),.25);
}
html[data-theme="dark"] button.go,
html[data-theme="dark"] .tip .tipActs .prim,
html[data-theme="dark"] .calDay.on{
  box-shadow:0 0 0 1px rgba(var(--accrgb),.35),0 0 14px rgba(var(--accrgb),.35);
}
html[data-theme="light"] button.go,
html[data-theme="light"] .tip .tipActs .prim,
html[data-theme="light"] .calDay.on{
  box-shadow:0 0 0 1px rgba(var(--accrgb),.28),0 2px 10px rgba(var(--accrgb),.22);
}

.brand{display:flex;align-items:center;gap:10px;margin-bottom:14px;flex-wrap:wrap}
.brand img{height:44px;width:auto}
.brand b{font-family:var(--fontDisplay);color:var(--tx);font-size:17px;letter-spacing:.01em;font-weight:700}
.themeToggle{margin-left:auto;display:inline-flex;border:1px solid var(--line);border-radius:999px;overflow:hidden;background:var(--chip);padding:2px;gap:2px}
.themeToggle button{font:inherit;font-size:12px;font-weight:650;letter-spacing:.02em;border:0;border-radius:999px;padding:6px 12px;background:transparent;color:var(--mut);cursor:pointer;line-height:1.2;-webkit-tap-highlight-color:transparent}
.themeToggle button.on,
.themeToggle button[aria-pressed="true"]{background:var(--btn1);color:var(--btnink)}
.themeToggle button:focus-visible{outline:2px solid rgba(var(--accrgb),.5);outline-offset:1px}
