/* Freeze the document while a blocking overlay is open; its own scrollers stay native. */
html.modal-scroll-locked,
html.modal-scroll-locked body {
    overflow:hidden !important;
    overscroll-behavior:none;
}
html.modal-scroll-locked { padding-right:var(--modal-scrollbar-width, 0px); }
.modal-overlay,
.modal-overlay .modal,
.modal-overlay .upd-body,
.modal-overlay .forum-media-preview,
.modal-overlay .version-notes,
.ai-chat-overlay,
.ai-chat-messages,
.cur-overlay,
.cur-box,
.image-lightbox {
    overscroll-behavior:contain;
}
