/* PWA safe areas — minimal; portal fold handles p2 */
@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
  html body.pr-body, html body.pr-body-live {
    padding: 0 !important;
  }
  html body.pr-body .pr-shell, html body.pr-body-live .pr-shell {
    padding-top: env(safe-area-inset-top, 0px) !important;
    padding-left: env(safe-area-inset-left, 0px) !important;
    padding-right: env(safe-area-inset-right, 0px) !important;
    box-sizing: border-box !important;
  }
  .jkb-pwa-install-wrap, #jkb-pwa-install, .jkb-pwa-install { display: none !important; }
  html body .pr-shell .pr-main-wrap {
    padding-bottom: calc(4.1rem + env(safe-area-inset-bottom, 0px)) !important;
  }
  html body .pr-shell .pr-bottom-nav {
    padding-bottom: calc(0.28rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}
@media (display-mode: standalone) and (min-width: 901px) {
  html body .pr-shell .pr-bottom-nav { display: none !important; }
  html body .pr-shell .pr-main-wrap {
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px)) !important;
  }
}
html body.jkb-pwa-standalone { padding: 0 !important; }
html body.jkb-pwa-standalone .pr-shell,
html body.jkb-pwa-standalone .p2-shell {
  padding-top: env(safe-area-inset-top, 0px) !important;
  box-sizing: border-box !important;
}
html body.jkb-pwa-standalone .jkb-pwa-install-wrap { display: none !important; }
