Manages a stack of modal dialogs with z-ordering, backdrop interaction, and ESC-to-close behavior.
Get count of open modals
Check if any modal is open
Close all modals
Get the top modal without removing it
Pop and destroy the top modal. Returns the removed modal or null.
Push a modal onto the stack. It gets depth-sorted above existing modals.
Manages a stack of modal dialogs with z-ordering, backdrop interaction, and ESC-to-close behavior.