/* KSK Designer 1.1.62 — reliable first opening of mobile Gotowe grafiki.
   The category grid is initially empty while AJAX loads. A max-height-only
   sheet shrank to the loading message; the portal had already fixed its top.
   Reserve a useful height from the first frame, with ONE internal scroller. */
@media (max-width:850px) {
  .kskd-mobile-sheet.kskd-ready-sheet:not([hidden]) {
    height:min(68svh,540px,var(--kskd-ready-available-height,calc(100dvh - 110px)))!important;
    max-height:min(68svh,540px,var(--kskd-ready-available-height,calc(100dvh - 110px)))!important;
    min-height:0!important;
  }
  .kskd-mobile-sheet.kskd-ready-sheet:not([hidden]) > .kskd-mobile-sheet-content {
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    overflow-y:auto!important;
    overscroll-behavior-y:contain!important;
    -webkit-overflow-scrolling:touch;
  }
  .kskd-mobile-sheet.kskd-ready-sheet.kskd-keyboard-open:not([hidden]) {
    height:auto!important;
    max-height:min(29svh,220px)!important;
  }
}
