/* On phones every popup is an iOS-style sheet: pinned to the bottom, edge to edge, rounded top corners only,
   sliding up over the dimmed page. Tall content scrolls inside the sheet, and the home-indicator area stays white.
   Desktop keeps the centered card. Load this file after the page's other stylesheets. */
@media (max-width:700px){
 html :is(.ais-modal,.kn-modal,.cx-modal,.cred-modal,.plus-mail,.scrop,.connect-miss,.az-modal):not([hidden]){place-items:end stretch;align-content:stretch;padding:0;padding-top:max(24px,env(safe-area-inset-top));overflow:hidden;animation:sheet-dim .25s ease-out}
 html .scrop-wrap{width:100%}
 html :is(.ais-connect-card,.ais-modal-card,.kn-card,.cx-card,.cred-card,.plus-mail-card,.scrop-card,.connect-miss-card,.az-modal-card){position:relative;width:100%;max-width:none;max-height:calc(100vh - 24px);max-height:calc(100dvh - max(24px,env(safe-area-inset-top)));margin:0;border-radius:20px 20px 0 0;border-bottom:env(safe-area-inset-bottom,0px) solid #fff;padding-top:max(30px,var(--sheet-top,0px));overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;animation:sheet-up .32s cubic-bezier(.32,.72,0,1)}
 /* The grab handle. */
 html :is(.ais-connect-card,.ais-modal-card,.kn-card,.cx-card,.cred-card,.plus-mail-card,.scrop-card,.connect-miss-card,.az-modal-card)::before{content:"";position:absolute;top:8px;left:50%;width:36px;height:5px;margin-left:-18px;border-radius:3px;background:rgba(0,0,0,.18);pointer-events:none}
 /* Cards that already start lower keep their own top padding. */
 html .kn-card{--sheet-top:44px}
}
@keyframes sheet-up{from{transform:translateY(100%)}to{transform:none}}
@keyframes sheet-dim{from{background-color:rgba(0,0,0,0)}}
@media (prefers-reduced-motion:reduce){
 html :is(.ais-modal,.kn-modal,.cx-modal,.cred-modal,.plus-mail,.scrop,.connect-miss,.az-modal),
 html :is(.ais-connect-card,.ais-modal-card,.kn-card,.cx-card,.cred-card,.plus-mail-card,.scrop-card,.connect-miss-card,.az-modal-card){animation:none}
}
