:where([data-stable-modal=compact]){--stable-modal-height:26rem}:where([data-stable-modal=form]){--stable-modal-height:40rem}:where([data-stable-modal=wide]){--stable-modal-height:48rem}[data-stable-modal]:not(dialog):not([data-stable-modal=fixed]):not([data-stable-modal=fit]){box-sizing:border-box;height:min(var(--stable-modal-height,40rem),calc(100dvh - 3rem));scrollbar-gutter:stable;overscroll-behavior:contain;max-height:calc(100dvh - 3rem);overflow-y:auto}dialog[data-stable-modal]:not([data-stable-modal=fixed]):not([data-stable-modal=fit]):modal{box-sizing:border-box;height:min(var(--stable-modal-height,40rem),calc(100dvh - 3rem));scrollbar-gutter:stable;overscroll-behavior:contain;max-height:calc(100dvh - 3rem);overflow-y:auto}dialog[data-stable-modal=fit]:modal{box-sizing:border-box;overscroll-behavior:contain;height:fit-content;max-height:calc(100dvh - 3rem);margin-block:min(12vh,120px) auto;overflow-y:auto}
