{{-- Source-of-truth for the dark-mode class on . localStorage is the only authority; the class is mirrored from it. Exposes window.dashTheme so the toggle button can apply changes synchronously inside the click handler (no waiting for Alpine $watch), and broadcasts `dash-theme-changed` so any Alpine scope holding a `dark` flag (icons, logo swap) can stay in sync. Runs: 1. Synchronously inside on every full page load so the `dark` class lands before Tailwind paints — no flash of light theme. 2. After `livewire:navigated` so wire:navigate doesn't reset the class. --}}