/* Apply the saved light/dark choice before the page paints (no flash). */ try{var t=localStorage.getItem('theme');if(t==='light'||t==='dark')document.documentElement.dataset.theme=t}catch(e){}