Release / build-and-push (push) Successful in 2m24s
Clicks on reader chrome already dismissed the selection popover via the host-document outside-click handler, but clicks inside the book happen in content iframes whose events never bubble to the host document — the host handler never sees them. The only iframe-side dismissal ran through the selection tracker's collapsed check, which hides the popover solely in create mode: once the popover was open in EDIT mode (clicked a highlight, writing a note), clicking anywhere in the book did nothing and Esc was the only way out. Each content iframe now gets a pointerdown listener that dismisses the popover in any mode. Clicking a painted highlight still opens the edit popover: this hides first, then foliate's show-annotation re-opens it.