/* ─── KAL Portal — dark mode leftovers (DK1, D51; KB1) ────────────────────
   Since KB1 the KAL Bright kit (public/css/kal-bright.css) owns the dark
   theme: html[data-theme="dark"] gives every --kb-* token its dark value and
   style.css / theme-views.css point every Portal token at those. This file
   holds ONLY what the kit cannot know:
   - the shadow / scrim BASES the Portal mixes its alpha tints from (dark
     shadows are black, not warm brown);
   - the Microsoft sign-in button's own dark variant;
   - native controls the theme does not draw (option lists, placeholders,
     the file picker's button).
   Quill is drawn on kit tokens in kb-portal.css (UF1), so it follows the
   theme with no dark-only rules here.
   public/js/theme.js sets html[data-theme] before the first paint and flips
   the page to light for printing, so a print is always light. Paper outputs
   carry html[data-theme-fixed="light"] and never go dark. A paper island
   inside a dark page (an email preview) carries data-theme="light".
*/

html[data-theme="dark"] {
  --shadow-color: #000000;
  --shadow-ink: #000000;
  --scrim-ink: #000000;
  --scrim-cool: #000000;
  --shadow-inset-coral: #000000;
  --chart-grid: rgba(255, 255, 255, 0.07);

  --ms-btn-bg: #2f2f2f;
  --ms-btn-fg: #ffffff;
  --ms-btn-border: #8c8c8c;
  --ms-btn-hover-bg: #3b3b3b;
  --ms-btn-hover-border: #a8a8a8;
}

/* ── Native controls the theme does not style ─────────────────────── */
/* Selects' option lists and date pickers follow `color-scheme: dark` (set by
   the kit); the field itself keeps the Portal look. */
html[data-theme="dark"] option { background: var(--kb-surface); color: var(--kb-ink); }
html[data-theme="dark"] ::placeholder { color: var(--kb-muted); opacity: 1; }
