The popover was always positioned below its trigger, so on cards near the bottom of the viewport it ran off-screen. Measure the panel's real height and open it upward (clamped to the viewport) when there isn't room below; also clamp the horizontal position.