/* 5.26.76: consistent iOS viewport and product manager scroll ownership. */
@supports (-webkit-touch-callout:none) {
  html { -webkit-text-size-adjust:100%; }
}
.kaiProductModalBackdrop { box-sizing:border-box; overflow:hidden; overscroll-behavior:contain; }
.kaiProductModal { box-sizing:border-box; min-height:0; overflow-y:auto!important; overflow-x:hidden; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; touch-action:pan-y; }
@media(max-width:720px) {
  .kaiProductModalBackdrop { top:0!important; bottom:calc(var(--lumetra-quick-height,72px) + env(safe-area-inset-bottom,0px))!important; height:auto!important; display:flex!important; align-items:stretch!important; padding:0!important; z-index:100000!important; }
  .kaiProductModal { flex:1 1 auto; min-height:0!important; height:100%!important; max-height:100%!important; width:100%!important; max-width:100%!important; border-radius:0!important; padding-bottom:env(safe-area-inset-bottom,0px); }
  .kaiProductModalFoot { position:sticky; bottom:0; background:#08111c; z-index:5; }
  html body .mobileQuickNav { z-index:2147483000!important; pointer-events:auto!important; }
  .characterPackGrid.creationArchiveGrid { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
  .characterPackThumb { height:230px!important; }
}
@media(min-width:721px) {
  .characterPackGrid.creationArchiveGrid { grid-template-columns:repeat(3,minmax(0,1fr))!important; }
  .characterPackThumb { height:255px!important; }
}
@media(max-width:390px) { .characterPackGrid.creationArchiveGrid { grid-template-columns:1fr!important; } }

/* Older iOS Safari: fallback when dynamic viewport units are unavailable. */
@supports not (height:100dvh) {
  @media(max-width:720px) {
    html body #creatorApp:not(.authLocked) {height:100vh!important;}
    html body #creatorApp:not(.authLocked) > .page {height:calc(100vh - var(--lumetra-quick-height,72px) - env(safe-area-inset-bottom,0px))!important;}
    .kaiProductModal {height:100%!important;max-height:100%!important;}
  }
}
