/* role-switcher-theme.css: VTradeEvents colours for the shared "Viewing as"
   role switcher (/SHARED_DASHBOARD/css/role-switcher.css).

   The shared stylesheet reads the host page's --home-* tokens and falls back
   to light values. settings.html is a Tailwind page that defines none, so
   without this file the card would stay white in dark mode. The values mirror
   the page's own Tailwind card palette (bg-white / dark:bg-gray-800, gray
   text and borders) with the site's indigo accent (header-embed.js registers
   vtradeevents as #6366f1). Scoped to the mount so nothing else on the page
   is affected. Dark mode follows both mechanisms this page can carry:
   app-ui.js toggles html.dark, the shared header sets html[data-theme="dark"]. */

.role-switcher-mount {
  --home-card-bg: #ffffff;
  --home-text: #111827;
  --home-muted: #6b7280;
  --home-border: #e5e7eb;
  --home-accent: #4f46e5;
  --home-accent-light: #eef2ff;
}

html.dark .role-switcher-mount,
[data-theme="dark"] .role-switcher-mount {
  --home-card-bg: #1f2937;
  --home-text: #f9fafb;
  --home-muted: #9ca3af;
  --home-border: #374151;
  --home-accent: #818cf8;
  --home-accent-light: #312e81;
}

/* The shared file switches its alert/success colours on [data-theme="dark"]
   only; repeat them for a page where only html.dark is set. The script adds
   .rs-root to the mount element itself. */
html.dark .role-switcher-mount.rs-root {
  --rs-danger-bg: #3b1219;
  --rs-danger-border: #f87171;
  --rs-danger-text: #fecaca;
  --rs-ok-text: #86efac;
}
