/* Console palette, final word: black ground, white type, green highlights.
   Loaded last; wins over every edition kit and the light theme. */
html:root, html:root[data-theme], html:root[data-edition], html:root[data-edition][data-theme] {
  color-scheme: dark;
  --bg: #050605 !important;
  --bg-elevated: #0c0f0d !important;
  --bg-sunken: #000000 !important;
  --border: #1a2420 !important;
  --border-strong: #26352e !important;
  --text: #f2f5f3 !important;
  --text-muted: #a9b5ae !important;
  --text-faint: #7d8a83 !important;
  --accent: #2bd46b !important;
  --accent-strong: #5fe08e !important;
  --accent-2: #2bd46b !important;
  --accent-soft: rgba(43, 212, 107, 0.12) !important;
  --accent-contrast: #050605 !important;
  --amber: #d9b44a !important;
  --amber-soft: rgba(217, 180, 74, 0.14) !important;
  --green: #2bd46b;
  --green-soft: rgba(43, 212, 107, 0.16);
  --neutral-chip: #101512 !important;
  --panel: rgba(12, 15, 13, 0.72) !important;
  --grid-line: rgba(43, 212, 107, 0) !important;
  --glow-rgb: 43, 212, 107 !important;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
  --shadow-md: 0 6px 22px rgba(0, 0, 0, 0.55) !important;
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.65) !important;
  --kit-seal: #2bd46b !important;
  --kit-accent-grad: linear-gradient(135deg, #5fe08e 0%, #2bd46b 52%, #1a9c4c 100%) !important;
  --kit-word-grad: linear-gradient(180deg, #f2f5f3, #f2f5f3) !important;
  --kit-page-glow-a: rgba(10, 40, 22, 0.35) !important;
  --kit-page-glow-b: rgba(43, 212, 107, 0.04) !important;
  --kit-rim: rgba(43, 212, 107, 0.30) !important;
  --kit-rim-rgb: 43, 212, 107 !important;
  --kit-stripe: none !important;
}
html:root body { background-color: var(--bg); color: var(--text); }
html:root .is-active, html:root [aria-selected="true"], html:root [aria-current="page"] { --accent-soft: var(--green-soft); }
html:root .switch[aria-checked="true"], html:root .switch[aria-checked="true"]::before { background: var(--green) !important; }
html:root ::selection { background: rgba(43, 212, 107, 0.35); color: var(--text); }
html:root :focus-visible { outline-color: var(--green) !important; }
html:root input[type="checkbox"], html:root input[type="radio"], html:root input[type="range"], html:root progress { accent-color: var(--green); }
html:root textarea::placeholder, html:root input::placeholder { color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The theme choice is gone — the console is one palette. */
html:root .user-menu-section:has(#theme-switch) { display: none !important; }
/* The rain: behind everything, never takes a press. */
#matrix-rain { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: 0; transition: opacity 1.2s ease; }
#matrix-rain.is-on { opacity: .16; }
#matrix-rain.is-entry { opacity: .22; }
@media (prefers-reduced-motion: reduce) { #matrix-rain { display: none; } }
