/* r21: centered dialogs keep their -50%/-50% centering through the entrance animation; fit iPhone widths */
@keyframes qm3-pop{from{opacity:0;transform:translate(-50%,-47%) scale(.985)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
[role="dialog"][class*="left-[50%]"],[role="alertdialog"][class*="left-[50%]"]{
  left:50% !important;top:50% !important;right:auto !important;bottom:auto !important;
  transform:translate(-50%,-50%) !important;
  animation:qm3-pop .28s cubic-bezier(.16,1,.3,1) both !important;
  width:calc(100vw - 32px) !important;max-width:min(28rem,calc(100vw - 32px)) !important;
  max-height:calc(100vh - 32px) !important;max-height:calc(100dvh - 32px) !important;
  overflow-y:auto !important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;
  box-sizing:border-box;margin:0 !important;
}
@media (prefers-reduced-motion:reduce){[role="dialog"][class*="left-[50%]"],[role="alertdialog"][class*="left-[50%]"]{animation:none !important}}
