/* Fail closed while Firebase initializes. The authentication screen stays usable. */
html:not(.admin-authorized) body:not([data-admin-access="allowed"]) > :not(#auth-gate-overlay):not(#loading-cover):not(script):not(style):not(link):not(noscript) { display:none!important; }
body:not([data-admin-access="allowed"]) #auth-gate-overlay { display:flex!important; visibility:visible!important; opacity:1!important; pointer-events:auto!important; overflow:auto; padding:20px; }
html.admin-authorized #auth-gate-overlay,
body[data-admin-access="allowed"] #auth-gate-overlay { display:none!important; }
body:not([data-admin-access="allowed"]) { overflow:auto!important; min-height:100dvh; }
#auth-gate-overlay .auth-gate-box { max-height:calc(100dvh - 40px); overflow:auto; }
@media(max-width:480px) { #auth-gate-overlay .auth-gate-box { width:100%; padding:28px 18px; } }
