Heads up: this demo mounts the real AuthDefaultsEnforcer which mutates documentElement class / lang / dir / data-theme on mount. The page snapshots the pre-mount state and restores it on unmount, but navigating away mid-effect could still leak session state — refresh the tab if you see theme/dir oddities on other m3-maxi routes after visiting this page.

What it does

Strips dark class, forces lang="en" / dir="ltr" /data-theme="sapphire" on document.documentElement via a single mount-only useEffect. Zero rendered output.

documentElement live readout

className
lang
dir
data-theme

Reset count: 0 — each click bumps the key prop on the enforcer to force a re-mount; the component has no cleanup, so re-mount is the canonical re-apply pattern.