/* Hide the entire operational shell until Supabase has authenticated and authorized it. */
html:not(.between-authenticated) body > aside,
html:not(.between-authenticated) body > main,
html:not(.between-authenticated) body > .modal-back {display:none!important}
html:not(.between-authenticated) body{background:#1e1e1d}
#betweenAuthGate[hidden]{display:none!important}
#betweenAuthGate{position:fixed;inset:0;z-index:99999;background:#f8f7f3;color:#1e1e1d;overflow-y:auto;font-family:'Poppins',sans-serif}
.gate-page{min-height:100%;display:flex;flex-direction:column}
.gate-brand{background:#1e1e1d;color:#fff;display:flex;flex-direction:column;align-items:center;gap:5px;padding:26px 16px 23px}
.gate-brand img{width:172px;max-width:65vw;height:auto}
.gate-brand span{font-size:9px;letter-spacing:2.8px;color:#c5c5c0;font-weight:600}
.gate-main{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 18px 26px}
.gate-card{width:100%;max-width:440px;background:#fff;border:1px solid #e7e4dc;border-radius:20px;padding:34px;box-shadow:0 18px 60px #1715110c}
.gate-kicker{color:#ee5537;letter-spacing:2px;font-size:10px;font-weight:800;margin-bottom:12px}
.gate-card h2{font-size:26px;font-weight:700;letter-spacing:-1px;margin:0 0 8px}
.gate-card p{font-size:12px;color:#77736d;line-height:1.7;margin:0 0 23px}
.gate-card label{display:block;font-size:12px;font-weight:600;margin:15px 0 0}
.gate-card input{width:100%;display:block;margin-top:7px;background:#fff;border:1px solid #dcd9d2;border-radius:10px;padding:13px;font-size:14px;color:#1e1e1d;outline-offset:3px}
.gate-submit,.gate-google{width:100%;border-radius:10px;min-height:46px;font-weight:700;font-size:13px}
.gate-submit{background:#ef5335;color:#fff;border:1px solid #ef5335;margin-top:21px}
.gate-google{background:#fff;color:#242424;border:1px solid #d8d6d0;display:flex;align-items:center;justify-content:center;gap:12px}
.gate-google-icon{font-size:17px;font-weight:800;color:#4285f4}
.gate-separator{display:flex;align-items:center;gap:12px;color:#98958d;font-size:11px;margin:23px 0 12px}
.gate-separator:before,.gate-separator:after{content:'';flex:1;height:1px;background:#e4e1da}
.gate-link{background:none;border:0;color:#d84b31;font-size:12px;padding:16px 0 0;text-decoration:underline;font-weight:600}
.gate-error,.gate-alert{padding:12px 14px;border-radius:9px;font-size:12px;margin-top:15px;background:#fff0eb;color:#9e3b25;line-height:1.6}
.gate-footnote{text-align:center;font-size:11px;color:#89857d;margin-top:19px}
.gate-card button:disabled{opacity:.6;cursor:wait}
@media(max-width:520px){.gate-brand{padding:24px 12px}.gate-main{justify-content:flex-start;padding:35px 16px}.gate-card{padding:26px 21px;border-radius:16px}.gate-card h2{font-size:23px}}

/* Login is a full-viewport overlay, never offset by the app sidebar. */
#betweenAuthGate .gate-main{margin-left:0;max-width:none;width:100%;box-sizing:border-box}
#betweenAuthGate .gate-card{margin-inline:auto}
