{# Light/dark toggle, plus the tooltip that labels it. The button reads and writes $store.theme, which owns both the `dark` class on and the localStorage write, so this is pure presentation and a second copy cannot fall out of sync with it. The tooltip is CSS-only -- `peer-hover:`/`peer-focus-visible:` on a sibling -- rather than shadcn's Radix version, which portals and tracks with Floating UI: neither is needed for a label pinned under a fixed-size icon button, and this costs no JS. `pointer-events-none` keeps it from eating the hover it depends on. Right-aligned, not centred: the toggle ends the header, and a centred label wider than the button overhung the viewport and scrolled every page sideways. #} {% from "admin/components/icons.html" import icon %} {% macro theme_toggle() %} {{ _("Dark mode") }} {% endmacro %}