/* NMRON.PL APEX 13.8.3.2 — FIRST VISIT / PRIVATE MODE BOOT FIX */
html,body{min-height:100%;}
html.nm13832-ready body{overflow-x:hidden;}

/* Stary splash aplikacji nie może przykrywać pierwszego widoku. */
.app-splash[aria-hidden="true"],#splash.app-splash[aria-hidden="true"]{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;}

/* Modale promocyjne Androida są domyślnie zamknięte. Otwiera je tylko kliknięcie użytkownika. */
#betaPopup[aria-hidden="true"],#testerModal[aria-hidden="true"]{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;}

/* Jeżeli starszy skrypt ustawi klasę zanim użytkownik kliknie, JS 13.8.3.2 ją cofnie. */
#betaPopup.nm13832-force-closed,#testerModal.nm13832-force-closed{
  display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;
}

/* Zgody / cookies / push nie mogą spychać serwisu o kilka ekranów w dół ani blokować scrolla. */
.nm13832-consent-wrap{
  position:fixed!important;
  left:12px!important;right:12px!important;bottom:12px!important;top:auto!important;
  width:auto!important;height:auto!important;min-height:0!important;max-height:min(52vh,430px)!important;
  margin:0 auto!important;padding:0!important;
  background:transparent!important;backdrop-filter:none!important;
  overflow:visible!important;pointer-events:none!important;
  z-index:2147483000!important;
}
.nm13832-consent-surface{
  position:relative!important;inset:auto!important;
  width:min(720px,100%)!important;max-width:720px!important;max-height:min(52vh,430px)!important;
  margin:0 auto!important;overflow:auto!important;overscroll-behavior:contain!important;
  pointer-events:auto!important;
  border-radius:18px!important;
  box-shadow:0 22px 80px rgba(0,0,0,.52)!important;
}

/* Pierwszy ekran zawsze ma realną wysokość i nigdy nie może zostać "wyzerowany". */
#screen-home{min-height:100vh;min-height:100dvh;}
#screen-home.active{visibility:visible!important;opacity:1!important;}

@media(max-width:760px){
  .nm13832-consent-wrap{left:8px!important;right:8px!important;bottom:8px!important;max-height:58vh!important}
  .nm13832-consent-surface{max-height:58vh!important;border-radius:15px!important}
}

/* Tymczasowa osłona pierwszego renderu. Jest zdejmowana po inicjalizacji aplikacji. */
html.nm13832-booting body,html.nm13832-firstpaint body{opacity:1!important;visibility:visible!important;overflow-y:auto!important;min-height:100vh!important}
html.nm13832-booting .app-shell,html.nm13832-firstpaint .app-shell,
html.nm13832-booting .main-area,html.nm13832-firstpaint .main-area,
html.nm13832-booting .main-area>main,html.nm13832-firstpaint .main-area>main{opacity:1!important;visibility:visible!important;transform:none!important}
html.nm13832-booting #screen-home,html.nm13832-firstpaint #screen-home,#screen-home.nm13832-home-rescue{display:block!important;opacity:1!important;visibility:visible!important;transform:none!important;min-height:100vh!important;min-height:100dvh!important}
html.nm13832-booting .app-splash,html.nm13832-firstpaint .app-splash{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}
html.nm13832-booting #betaPopup,html.nm13832-booting #testerModal,html.nm13832-firstpaint #betaPopup,html.nm13832-firstpaint #testerModal{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}

/* 13.8.3.2b — dodatkowe zabezpieczenie starych overlayów i pierwszego renderu. */
#apexTransition[aria-hidden="true"],
.command-palette[aria-hidden="true"],
.mobile-menu-drawer[aria-hidden="true"]{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}
html.nm13832-booting #screen-home .reveal,
html.nm13832-firstpaint #screen-home .reveal{opacity:1!important;visibility:visible!important;transform:none!important}
