html.y2-auth-locked #app,html.y2-auth-locked #drawer-root,html.y2-auth-locked #modal-root,html.y2-auth-locked #context-root,html.y2-auth-locked #toast-root,html.y2-auth-locked #particle-layer{display:none!important}
html:not(.y2-auth-locked) #y2-auth-gate{display:none!important}
.y2-auth-gate{--y2-bg:#101112;--y2-panel:#17191b;--y2-text:#f4f5f3;--y2-muted:#a4aaa8;--y2-border:#34383a;--y2-field:#101213;--y2-accent:#9ee7c1;--y2-accent-ink:#122219;position:fixed;inset:0;z-index:999999;overflow:auto;background:var(--y2-bg);color:var(--y2-text);font-family:'Segoe UI Variable',Inter,'Segoe UI',system-ui,sans-serif;display:flex;align-items:center;justify-content:center;padding:24px 15px;color-scheme:dark}
.y2-auth-shell{width:min(420px,100%);border:1px solid var(--y2-border);background:var(--y2-panel);border-radius:14px;padding:26px 28px 18px;box-shadow:0 18px 48px #0005}
.y2-auth-brand{display:flex;align-items:center;justify-content:space-between;margin-bottom:38px}.y2-auth-brand strong{font-weight:780;letter-spacing:-1px;font-size:25px}.y2-auth-brand sup{font-size:14px;position:relative;top:-.4em;color:var(--y2-accent)}.y2-auth-brand span{color:var(--y2-accent)}.y2-auth-brand button{font:inherit;border:1px solid #394043;color:#a9b2af;background:#202427;border-radius:7px;padding:6px 10px;cursor:pointer;font-size:12px}
.y2-auth-content{min-height:200px}.y2-auth-content h1{font-size:22px;letter-spacing:-.5px;margin:0 0 10px;font-weight:720}.y2-auth-content p{margin:0 0 20px;color:var(--y2-muted);line-height:1.65;font-size:13px}.y2-auth-content form{display:flex;flex-direction:column;gap:14px}.y2-auth-content label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#b2bcb8}.y2-auth-content input{width:100%;background:var(--y2-field);border:1px solid var(--y2-border);padding:12px;border-radius:8px;color:var(--y2-text);outline:none;font:inherit;font-size:14px;box-sizing:border-box}.y2-auth-content input:focus{border-color:var(--y2-accent)}.y2-auth-content input::placeholder{color:#687471}.y2-auth-content button{font:inherit;cursor:pointer;background:#282d2e;border:1px solid #3d4544;color:#e2e7e4;border-radius:8px;padding:10px 13px;font-size:13px}.y2-auth-content button:disabled{opacity:.5;cursor:wait}.y2-auth-content button.primary{background:#9ee7c1;border-color:var(--y2-accent);color:#122219;font-weight:700}.y2-auth-content .y2-auth-inline{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.y2-auth-content .y2-auth-inline button{font-size:12px;border:0;background:transparent;padding:7px 4px;color:#addeb8}.y2-auth-content .y2-auth-actions{display:flex;gap:8px;flex-wrap:wrap}.y2-auth-content .y2-auth-actions button{flex:1}.y2-auth-spinner{width:24px;height:24px;border:2px solid #36433f;border-top-color:var(--y2-accent);border-radius:50%;animation:y2spin 1s linear infinite;margin:6px 0 25px}@keyframes y2spin{to{transform:rotate(360deg)}}
.y2-auth-content .y2-auth-error{margin-top:12px;padding:10px 12px;background:#3b2424;color:#ffd4d1;border:1px solid #673a3a;border-radius:7px;overflow-wrap:anywhere;font-size:12px}.y2-auth-content .y2-auth-ok{color:#a8dfc0;font-size:12px;line-height:1.6}.y2-auth-shell footer{font-size:10px;letter-spacing:.25px;margin-top:30px;padding-top:13px;border-top:1px solid #303537;color:#73817c}
.y2-cloud-sync{display:inline-flex;align-items:center;font-size:11px;color:var(--muted);gap:6px}.y2-cloud-sync[data-state=error]{color:var(--danger)}
@media(max-width:480px){.y2-auth-gate{padding:10px;background:var(--y2-bg)}.y2-auth-shell{border:0;background:transparent;box-shadow:none;padding:22px 12px 12px}.y2-auth-brand{margin-bottom:60px}}@media(prefers-reduced-motion:reduce){.y2-auth-spinner{animation:none}}
