/* White theme (theme.js sets html[data-theme="light"]). Only colours: the design tokens and the legacy variables
   get light values; the few places with colours written out are listed below. The rose accent stays, a little
   darker so text in it reads on white. */
html[data-theme="light"] {
  color-scheme: light;
  --ds-bg-deep: #efe9f2;
  --ds-bg-base: #f7f2f8;
  --ds-bg-elevated: #ffffff;

  --ds-rose-300: #b02f5a;
  --ds-rose-400: #c1406b;
  --ds-rose-500: #d0466f;
  --ds-rose-600: #b0335d;
  --ds-rose-glow: rgba(208, 70, 111, 0.22);
  --ds-rose-soft: rgba(208, 70, 111, 0.10);
  --ds-rose-tint: rgba(208, 70, 111, 0.08);

  --ds-plum-300: #5f45b5;
  --ds-plum-400: #6f55c6;
  --ds-plum-glow: rgba(111, 85, 198, 0.18);

  --ds-ok: #1c8550;
  --ds-ok-soft: rgba(28, 133, 80, 0.10);
  --ds-ok-border: rgba(28, 133, 80, 0.38);
  --ds-warn: #9a6100;
  --ds-warn-soft: rgba(196, 128, 0, 0.12);
  --ds-warn-border: rgba(196, 128, 0, 0.42);
  --ds-danger: #c42b44;
  --ds-danger-soft: rgba(196, 43, 68, 0.10);
  --ds-danger-border: rgba(196, 43, 68, 0.42);
  --ds-lost: #c0307a;
  --ds-lost-soft: rgba(192, 48, 122, 0.10);
  --ds-gold: #946d00;

  --ds-text-primary: #1e1724;
  --ds-text-secondary: #43394d;
  --ds-text-muted: #6b6076;
  --ds-text-subtle: #887d93;

  --ds-glass-bg: linear-gradient(155deg, rgba(255, 255, 255, 0.96) 0%, rgba(253, 249, 252, 0.94) 100%);
  --ds-glass-bg-solid: rgba(255, 255, 255, 0.94);
  --ds-glass-blur: blur(18px) saturate(120%);
  --ds-glass-border: rgba(70, 30, 70, 0.12);
  --ds-glass-border-hover: rgba(208, 70, 111, 0.36);
  --ds-glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --ds-glass-shadow: 0 10px 28px rgba(60, 20, 55, 0.08), 0 2px 6px rgba(60, 20, 55, 0.05);

  --ds-sub-bg: rgba(70, 30, 70, 0.035);
  --ds-sub-bg-hover: rgba(70, 30, 70, 0.065);
  --ds-sub-bg-deep: rgba(70, 30, 70, 0.05);
  --ds-sub-border: rgba(70, 30, 70, 0.11);
  --ds-sub-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.6);

  --ds-float-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.97) 0%, rgba(250, 246, 251, 0.96) 100%);
  --ds-float-blur: blur(22px) saturate(130%);
  --ds-float-border: rgba(70, 30, 70, 0.13);
  --ds-float-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --ds-float-shadow: 0 16px 40px rgba(60, 20, 55, 0.14), 0 3px 10px rgba(60, 20, 55, 0.08);

  --ds-cta-shadow: 0 6px 18px rgba(208, 70, 111, 0.26), inset 0 1px 0 rgba(255, 235, 245, 0.35);

  --panel2: rgba(70, 30, 70, 0.045);
}
html[data-theme="light"] body { background: radial-gradient(1200px 600px at 80% -10%, #f6dfeb 0%, transparent 60%), var(--bg); }

/* Places in design-system.css / style.css with their colours written out (dark glass): white versions. */
html[data-theme="light"] body::before { opacity: 0.35; }
html[data-theme="light"] .lang-sel option { background: #ffffff; color: var(--ds-text-primary); }
html[data-theme="light"] .ds-glass,
html[data-theme="light"] .card,
html[data-theme="light"] dialog { background: linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(252, 248, 251, 0.97)); color: var(--ds-text-primary); }
html[data-theme="light"] .call-grid .chat { background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(251, 247, 250, 0.98)); }
html[data-theme="light"] .cmd-display { background: linear-gradient(165deg, rgba(208, 70, 111, 0.05) 0%, rgba(70, 30, 70, 0.04) 100%); }
html[data-theme="light"] .watch-notice { background: linear-gradient(155deg, rgba(244, 188, 92, 0.18), rgba(255, 250, 240, 0.95)); }
html[data-theme="light"] .decide { background: linear-gradient(155deg, rgba(208, 70, 111, 0.10), rgba(255, 255, 255, 0.92)); }
html[data-theme="light"] .dial { background: radial-gradient(circle at 50% 50%, rgba(208, 70, 111, 0.06) 0 31%, rgba(70, 30, 70, 0.04) 32% 100%); }
html[data-theme="light"] .plugin-stage { background: linear-gradient(155deg, rgba(208, 70, 111, 0.06), rgba(255, 255, 255, 0.92)); }
html[data-theme="light"] #call.plugin-theme-radio .plugin-stage { background: linear-gradient(155deg, rgba(96, 165, 250, 0.16), rgba(255, 255, 255, 0.9)); }
html[data-theme="light"] #call.plugin-theme-coach .plugin-stage { background: linear-gradient(155deg, rgba(251, 146, 60, 0.16), rgba(255, 255, 255, 0.9)); }
html[data-theme="light"] #call.plugin-theme-lab .plugin-stage { background: linear-gradient(155deg, rgba(45, 212, 191, 0.16), rgba(255, 255, 255, 0.9)); }
html[data-theme="light"] #call.plugin-theme-date .plugin-stage { background: linear-gradient(155deg, rgba(244, 114, 182, 0.18), rgba(255, 255, 255, 0.9)); }
html[data-theme="light"] #call.plugin-theme-velvet .plugin-stage { background: linear-gradient(155deg, rgba(190, 46, 98, 0.16), rgba(255, 255, 255, 0.9)); }
html[data-theme="light"] #call.plugin-theme-obey .plugin-stage { background: linear-gradient(155deg, rgba(205, 42, 74, 0.15), rgba(255, 255, 255, 0.9)); }
html[data-theme="light"] #call.plugin-theme-tease .plugin-stage { background: linear-gradient(155deg, rgba(168, 85, 247, 0.15), rgba(255, 255, 255, 0.9)); }
html[data-theme="light"] #call.plugin-theme-whisper .plugin-stage { background: linear-gradient(155deg, rgba(242, 148, 168, 0.16), rgba(255, 255, 255, 0.9)); }
html[data-theme="light"] .topic-flip { background: linear-gradient(155deg, rgba(208, 70, 111, 0.07), rgba(255, 255, 255, 0.95)); }
html[data-theme="light"] .sponsor-slider-card { background: linear-gradient(160deg, rgba(208, 70, 111, 0.10), rgba(255, 255, 255, 0.95)); }
html[data-theme="light"] .sponsor-slider-card.is-year { background: linear-gradient(160deg, rgba(246, 204, 104, 0.18), rgba(208, 70, 111, 0.06), rgba(255, 255, 255, 0.95)); }
html[data-theme="light"] dialog:not(.disguise-overlay)::backdrop { background: rgba(40, 20, 40, 0.35); }
html[data-theme="light"] .tab-bar { background: rgba(255, 255, 255, 0.96); }
html[data-theme="light"] .queue-bar { background: rgba(255, 255, 255, 0.96); }

/* Text colours written out for dark backgrounds: darker versions on white. White text on solid rose stays. */
html[data-theme="light"] button.on,
html[data-theme="light"] .tag.on,
html[data-theme="light"] .speed-mode-tabs button.on { color: var(--ds-rose-600); border-color: rgba(208, 70, 111, 0.55); box-shadow: none; }
/* The waiting-room tab is filled with the accent, so its text stays white like a primary button. */
html[data-theme="light"] .wr-tabs .tab.on { color: #fff; border-color: transparent; }
html[data-theme="light"] button.danger { color: var(--ds-danger); }
html[data-theme="light"] button.danger:hover:not(:disabled) { color: #a1203a; }
html[data-theme="light"] .cmds button[data-cmd="edge"],
html[data-theme="light"] #statusNear { color: var(--ds-warn); }
html[data-theme="light"] .cmds button[data-cmd="release"],
html[data-theme="light"] .held-btn,
html[data-theme="light"] .respect-badge,
html[data-theme="light"] .wr-live,
html[data-theme="light"] .plugin-tag.reached { color: var(--ds-ok); }
html[data-theme="light"] .lost-btn { color: var(--ds-lost); }
html[data-theme="light"] .rules,
html[data-theme="light"] .res-sub { color: var(--ds-text-secondary); }
html[data-theme="light"] .res-stats .delta.down { color: #3d64a0; }
html[data-theme="light"] .plan-card-sub.best,
html[data-theme="light"] .plan-slider-ticks button.on,
html[data-theme="light"] .sponsor-plan-note.is-save,
html[data-theme="light"] .ach-all-done,
html[data-theme="light"] .ach-cat-btn.complete .ach-cat-cnt,
html[data-theme="light"] .chat-tr-tag { color: var(--ds-gold); }
html[data-theme="light"] .event-count,
html[data-theme="light"] #eventCount,
html[data-theme="light"] .guide-steps > li::marker { color: #946d00; }
html[data-theme="light"] .ach-t-bronze { color: #9a5a26; }
html[data-theme="light"] .ach-t-silver { color: #5f6d80; }
html[data-theme="light"] .ach-t-gold { color: #946d00; }
html[data-theme="light"] .ach-t-diamond { color: #1b78a0; }
html[data-theme="light"] .ach-t-special { color: #b02f5a; }
html[data-theme="light"] .plugin-traffic-badge[data-light="green"] { color: #15803d; }
html[data-theme="light"] .plugin-traffic-badge[data-light="yellow"] { color: #a16207; }
html[data-theme="light"] .plugin-traffic-badge[data-light="red"] { color: #b91c1c; }
html[data-theme="light"] .pm-tag-phrases { color: #b02f5a; }
html[data-theme="light"] .pm-tag-plugins { color: #5f45b5; }
html[data-theme="light"] .pm-tag-hidden,
html[data-theme="light"] .pm-err { color: var(--ds-warn); }
html[data-theme="light"] .pm-like-btn.liked { color: var(--ds-rose-400); }
/* The excitement bars in a call: a frosted dark chip so their white text still reads on a light page. */
html[data-theme="light"] .status-person,
html[data-theme="light"] .status-segments small { color: var(--ds-text-primary); }
html[data-theme="light"] .status-side[data-side="right"] small { color: var(--ds-text-secondary); }
html[data-theme="light"] .status-detail { background: rgba(255, 255, 255, 0.92); border-color: var(--ds-glass-border); box-shadow: var(--ds-glass-shadow); }
html[data-theme="light"] .status-title { color: var(--ds-text-muted); }
