/* FEBRY.OPS V407 Invoice Studio — compact session gate, independent of editor theme. */
#app[hidden],#istudio-gate[hidden]{display:none!important}
.istudio-gate{min-height:100dvh;background:#090D0B;color:#F5F9F3;font:14px/1.5 system-ui,-apple-system,Segoe UI,sans-serif}
.istudio-gate-top{display:flex;justify-content:space-between;gap:14px;padding:20px clamp(18px,5vw,64px);border-bottom:1px solid #27312A;font-size:11px;letter-spacing:.1em}
.istudio-gate a{color:inherit;text-decoration:none}.istudio-gate a:hover{text-decoration:underline}
.istudio-gate-main{width:min(520px,calc(100% - 36px));margin:clamp(48px,12vh,126px) auto}
.istudio-kicker{font-size:11px;color:#B6FF40;letter-spacing:.14em;font-weight:750}
.istudio-gate h1{font-size:clamp(30px,5vw,50px);letter-spacing:-.05em;margin:14px 0 10px}
.istudio-gate p{color:#A7B6A9;margin:0 0 26px;max-width:42ch}
.istudio-login{display:inline-flex!important;border-radius:8px;padding:12px 18px;background:#B6FF40;color:#090D0B!important;font-weight:800}
.istudio-login[hidden]{display:none!important}
.istudio-back{display:inline-block;margin:12px 0 0 14px;font-size:12px;opacity:.8}
@media(max-width:390px){.istudio-gate-top{padding:16px 18px}.istudio-back{display:block;margin:16px 0 0}}

/* V415: keep uninitialized controls behind a real loading overlay until server-verified JS executes. */
.istudio-gate.istudio-gate-loading{position:fixed;inset:0;z-index:90;background:rgba(9,13,11,.93);min-height:100dvh;overscroll-behavior:contain}
.istudio-gate-loading .istudio-gate-main{margin:clamp(36px,11vh,100px) auto}
.istudio-gate-loading #istudio-gate-message::before{content:"";display:inline-block;width:12px;height:12px;margin-right:9px;vertical-align:-2px;border:2px solid rgba(182,255,64,.27);border-top-color:#B6FF40;border-radius:50%;animation:fo-spinv415 .8s linear infinite}
.istudio-retry{border:1px solid #B6FF40;background:#142017;color:#B6FF40;cursor:pointer;border-radius:8px;padding:11px 15px;font:700 12px system-ui}
.istudio-retry[hidden]{display:none!important}
@keyframes fo-spinv415{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.istudio-gate-loading #istudio-gate-message::before{animation:none}}
:root[data-theme="light"] .istudio-gate.istudio-gate-loading{background:rgba(245,249,243,.96);color:#142017}
:root[data-theme="light"] .istudio-gate.istudio-gate-loading p{color:#405441}

/* V422: light gate aligns with Snow Studio palette. */
:root[data-theme="light"] .istudio-gate,:root[data-theme="light"] .istudio-gate.istudio-gate-loading{background:#FFFFFF!important;color:#562F00!important;border-color:#E2E8F0!important}
:root[data-theme="light"] .istudio-gate-top{border-bottom-color:#E2E8F0!important}
:root[data-theme="light"] .istudio-kicker{color:#562F00!important}
:root[data-theme="light"] .istudio-gate p,:root[data-theme="light"] .istudio-gate.istudio-gate-loading p{color:#562F00!important;opacity:.82}
:root[data-theme="light"] .istudio-login,:root[data-theme="light"] .istudio-retry{background:#FFFAF0!important;color:#562F00!important;border-color:#E2E8F0!important}
