/* * Theme init + toggle. * * Loaded in WITHOUT defer so the first block runs before paint and sets * the theme attribute, avoiding a flash of the wrong theme. The choice lives in * localStorage (no cookie, no server round-trip) and applies site-wide. * * CSP note: this is an external /static file, so it is allowed under * script-src 'self'. We only toggle an attribute / class — never inject inline *