/* role-switcher-theme.css: AIChums 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 page's
   default). The values mirror the page's own card palette (bg-white /
   dark:bg-gray-800, gray-200 / gray-700 borders, gray text, indigo accents).
   Scoped to the mount so nothing else on the page is affected. Dark mode
   follows both mechanisms this page uses: the pre-paint resolver in <head>
   sets html.dark AND html[data-theme="dark"]; header-embed.js sets
   data-theme as well. */

.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 moment 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;
}
