/* Override Popover UA margins/insets, including WeCom WebView defaults. */
#toast{margin:0;border:0;inset:auto;left:50%;bottom:calc(25px + env(safe-area-inset-bottom));z-index:2147483646;overflow:visible;max-height:none;overflow-wrap:anywhere;line-height:1.6}
#toast.is-over-modal{top:calc(12px + env(safe-area-inset-top));bottom:auto}
#toast::backdrop,.xy-alert-hub::backdrop{background:transparent;pointer-events:none}
/* Older WebViews have no Popover API. Only the outer dialog stops clipping;
   the existing form remains the scroll container with its sticky heading. */
#modal.has-message-layer-fallback{overflow:visible!important}
.xy-alert-hub.message-layer-fallback{z-index:2147483000}
#toast.message-layer-fallback.is-over-modal{top:var(--message-fallback-top,12px)}
