UserProfilePanel was rendered inside the header's stacking context (z-index: 50), which capped its effective z-index and allowed dashboard content to paint on top of it. Wrap the overlay in createPortal to document.body so its z-index: 100 resolves at the root level.