-- Live SPA flow driven from Lua: click button, wait for the post-pushState
-- selector, then take an element screenshot. Asserted from the Rust side.
--
-- The hook fires during the render's AfterLoad stage — the page is already
-- navigated and idle, so helpers see the initial DOM.