/* V22: fix actual Safari viewport overflow. App remains a fixed modal; device is fitted inside the available content region. */
@media (min-width:1001px) {
  .z15-overlay { overflow:hidden!important; }
  .z15-main { min-height:0!important; overflow:hidden!important; }
  .z15-phone-wrap {
    height:100%!important; min-height:0!important; max-height:none!important;
    transform:none!important; align-self:center!important; justify-self:center!important;
    display:flex!important; align-items:center!important; justify-content:center!important;
    overflow:visible!important;
  }
  .z15-phone {
    height:min(83dvh, calc(100dvh - 155px))!important;
    max-height:calc(100dvh - 155px)!important;
    width:auto!important; max-width:100%!important;
    flex-shrink:0!important;
    transform:none!important;
  }
}
@media (min-width:1001px) and (max-height:700px) {
  .z15-phone { height:min(79dvh,calc(100dvh - 130px))!important;max-height:calc(100dvh - 130px)!important; }
}
@media (max-width:1000px) {
  .z15-main { overflow:auto!important;overscroll-behavior:contain; }
  .z15-phone-wrap { transform:none!important; }
}
