// Apply ?__theme=light|dark (set by Hugging Face) before the stylesheet paints, so the page does not flash. (() => { const t = new URLSearchParams(location.search).get("__theme"); if (t === "dark" || t === "light") document.documentElement.dataset.theme = t; })();