/* Contain long admin dialogs within the visible viewport. No business logic. */
#modalRoot{min-height:0;overflow-y:auto;overscroll-behavior-y:contain}
#modalRoot>.modal{min-height:0;max-height:calc(100vh - 44px);max-height:calc(100dvh - 44px);overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
@media(max-width:720px){
 #modalRoot{padding:14px;align-items:center}
 #modalRoot>.modal{max-height:calc(100vh - 28px);max-height:calc(100dvh - 28px);padding:18px;scroll-padding-bottom:84px}
 #modalRoot .modal-generate .tier-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 #modalRoot .modal-generate .tier-choice-card{padding:12px;min-width:0}
 #modalRoot .modal-generate .tier-choice-card strong{font-size:17px}
 #modalRoot .modal-generate .tier-choice-card span{font-size:12px;overflow-wrap:anywhere}
 #modalRoot .field input,#modalRoot .field select,#modalRoot .field textarea{font-size:16px}
 #modalRoot .modal-actions{position:sticky;bottom:0;z-index:2;display:flex;flex-direction:row;gap:10px;padding:12px 0 0;background:#fff;box-shadow:0 -8px 12px #ffffffee}
 #modalRoot .modal-actions .btn{flex:1;min-height:44px;width:auto}
}
@media(max-width:340px){#modalRoot .modal-generate .tier-grid{grid-template-columns:1fr}}
