// Applies the saved theme (light/dark/system) to before the first // paint, so an explicit override never flashes the wrong theme for a frame // while React/lib/theme.ts loads. "system" needs no attribute at all — // index.css's prefers-color-scheme media query already handles that case // with zero JS. // // Lives in public/ as its own file rather than inline in index.html so the // Content-Security-Policy in frontend/nginx.conf can forbid inline scripts // outright — an inline block would need either 'unsafe-inline' (which gives // up most of what CSP buys) or a hash that has to be regenerated by hand on // every edit to these lines. Loaded as a plain synchronous