/* ==========================================================================
   PowerLight — Theme scopes
   Dark (night-ops) is the default, declared in colors.css/effects.css.
   Apply data-theme="light" to <html>, <body>, or any section wrapper to
   flip that scope to light mode. Primitives (--pl-ink, --pl-violet…) never
   remap — only the theme-aware component tokens and semantic aliases do.
   ========================================================================== */
[data-theme="light"] {
  color-scheme: light;
  background: var(--pl-light);
  color: var(--pl-light-ink);

  /* --- Surfaces --- */
  --pl-surface: var(--pl-light);
  --pl-surface-deep: var(--pl-light-2);
  --pl-surface-card: #FFFFFF;
  --pl-surface-glow: #FBFAFE;

  /* --- Text --- */
  --pl-text-hi: var(--pl-light-ink);
  --pl-text-body: var(--pl-light-muted);
  --pl-text-body-2: var(--pl-light-ink-2);
  --pl-text-label: #6A6384;
  --pl-text-faint: #8A83A2;

  /* --- Hairlines & control outlines --- */
  --pl-hairline: var(--pl-border);
  --pl-hairline-strong: var(--pl-light-line-strong);
  --pl-control-line: rgba(26,22,34,.30);

  /* --- Accent & status as foreground (deep violet for contrast) --- */
  --pl-accent-fg: var(--pl-violet-deep);
  --pl-ready-fg: var(--pl-ready-deep);
  --pl-hud-line: rgba(108,79,214,.55);

  /* --- Violet washes rebased on deep violet --- */
  --pl-violet-a10: rgba(108,79,214,.07);
  --pl-violet-a12: rgba(108,79,214,.09);
  --pl-violet-a22: rgba(108,79,214,.18);
  --pl-violet-a40: rgba(108,79,214,.32);
  --pl-violet-a55: rgba(108,79,214,.45);

  /* --- Depth: soft ink shadows replace black; glows soften, never vanish --- */
  --pl-shadow-card: 0 16px 40px rgba(26,22,34,.10);
  --pl-shadow-media: inset 0 0 0 1px rgba(26,22,34,.04), 0 16px 40px rgba(26,22,34,.14);
  --pl-shadow-chip: 0 2px 8px rgba(26,22,34,.16);
  --pl-glow-sm: 0 0 10px rgba(108,79,214,.35);
  --pl-glow-md: 0 0 22px 4px rgba(108,79,214,.35);
  --pl-glow-lg: 0 0 30px 8px rgba(108,79,214,.40);
  --pl-glow-active: 0 0 0 6px rgba(108,79,214,.14), 0 0 22px 5px rgba(108,79,214,.40);
  --pl-glow-ready: 0 0 10px rgba(18,138,87,.5);

  /* --- Semantic aliases --- */
  --bg: var(--pl-light);
  --bg-deep: var(--pl-light-2);
  --surface-card: #FFFFFF;
  --text-heading: var(--pl-light-ink);
  --text-body: var(--pl-light-muted);
  --text-label: #6A6384;
  --accent-hi: var(--pl-violet-deep);
  --status-ready: var(--pl-ready-deep);
  --border-dark: var(--pl-border);
}
