/* Native modal dialogs occupy the browser top layer, not the ordinary z-index stack. */
body .iota-toast-stack{z-index:2147483500;}
body dialog[open]>.iota-toast-stack{position:fixed!important;margin:0!important;overflow:visible!important;max-height:none;z-index:2147483500!important;}

/* Reserve the moodboard footer without affecting other pages or top-positioned notifications. */
body:has(.iota-moodboard.is-mood-immersive:not([hidden])) .iota-toast-stack[data-position^="bottom"]{bottom:calc(var(--iota-mood-toast-footer,0px) + var(--iota-mood-toast-gap,12px))!important;}

@media(max-width:767px){body:has(.iota-moodboard.is-mood-immersive:not([hidden])) .iota-toast-stack[data-position^="bottom"]{left:max(16px,env(safe-area-inset-left))!important;right:max(16px,env(safe-area-inset-right))!important;width:auto!important;max-width:none!important;}}
