package templates // ThemeFlashGuard applies the browser's saved theme to before first // paint. Public pages (landing, login, register, setup) render without a // user, so they cannot SSR the theme class; without this guard they paint // the :root default (Tokyo Night) and then flash when main.js applies the // saved theme. The class lands on , where the same --bg-*/--text-* // variables cascade; body-level classes keep precedence for the subtree. templ ThemeFlashGuard() { }