@props(['brandLocked' => false]) {{-- Applies the saved theme, font, sidebar state and Day/Night mode before first paint so a stored preference never flashes the wrong look. Sign-in pages pass brand-locked: they keep the portal's own theme and font, and follow only the mode. Mode: a signed-in page carries the account's preference for this portal in data-mode-pref (rendered by the server) and copies it to this device's per-portal key; a guest page reads that key, so the sign-in screen matches the last mode used in that portal. --}}