:root,body{--studio-surface:var(--zen-surface);--studio-surface-elevated:var(--zen-surface);--studio-surface-subtle:var(--zen-surface-alt);--studio-border:var(--zen-line);--studio-border-soft:var(--zen-line);--studio-text:var(--zen-ink);--studio-text-muted:var(--zen-muted);--studio-text-faint:var(--zen-faint);--studio-accent:var(--zen-blue);--studio-accent-strong:var(--zen-blue-dark);--studio-accent-soft:var(--zen-blue-soft);--studio-accent-ring:rgba(46, 110, 232, 0.18);--studio-shadow-soft:0 1px 2px rgba(15, 23, 42, 0.08),0 1px 1px rgba(15, 23, 42, 0.04)}:root:has(body.dark){--studio-accent-ring:rgba(96, 165, 250, 0.28)}body.auth-page{display:flex;align-items:center;justify-content:center;padding:clamp(1rem,4vw,2.5rem);background:linear-gradient(180deg,#f7f9fb 0,#eef1f4 100%)}body.auth-page.dark{background:#0f0f0f}.auth-shell{width:min(100%,25rem);align-self:center}.auth-window{border:1px solid var(--studio-border-soft);border-radius:12px;overflow:hidden;height:auto!important;max-height:calc(100dvh - 2rem);overflow-y:auto}.auth-window-bar{display:flex;align-items:center;height:2.5rem;padding:0 .95rem;background:var(--zen-chrome-lo);background-image:linear-gradient(to bottom,var(--zen-chrome-hi),var(--zen-chrome-lo));border-bottom:1px solid var(--studio-border)}body.dark .auth-window-bar{background:linear-gradient(to bottom,var(--zen-chrome-hi),var(--zen-chrome-lo));border-bottom-color:var(--zen-line)}.auth-window-title{display:inline-flex;align-items:center;gap:.45rem;font-size:.875rem;font-weight:600;color:var(--studio-text-muted);text-decoration:none}.auth-window-title:hover{color:var(--studio-text)}.auth-window-title:focus-visible{outline:2px solid var(--studio-accent);outline-offset:3px;border-radius:.2rem}.auth-title-mark{font-style:normal;font-size:.95rem;color:var(--studio-accent-strong)}.auth-exit{margin:.9rem 0 0;font-size:.8125rem;line-height:1.5;color:var(--studio-text-muted)}.auth-exit a{color:var(--studio-accent-strong);font-weight:600}.auth-body{padding:1.85rem 1.6rem 1.75rem}.auth-heading{margin:0 0 .35rem;font-size:1.5rem;font-weight:600;letter-spacing:-.015em;color:var(--studio-text)}.auth-subheading{margin:0 0 1.35rem;font-size:.875rem;line-height:1.5;color:var(--studio-text-muted)}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:.25rem;padding:.2rem;margin-bottom:1.35rem;background:var(--studio-surface-subtle);border:1px solid var(--studio-border-soft);border-radius:9px}.auth-tab{padding:.45rem .5rem;border:0;border-radius:7px;background:0 0;color:var(--studio-text-muted);font:inherit;font-size:.8125rem;font-weight:600;cursor:pointer;transition:background-color .15s ease,color .15s ease}.auth-tab:hover{color:var(--studio-text)}.auth-tab.is-active{background:var(--studio-surface-elevated);color:var(--studio-text);box-shadow:var(--studio-shadow-soft)}body.dark .auth-tab.is-active{background:#333}.auth-field{margin-bottom:1.05rem}.auth-field label{display:block;margin-bottom:.4rem;font-size:.8125rem;font-weight:600;color:var(--studio-text)}.auth-field input{width:100%;min-height:2.75rem;padding:.6rem .8rem;border:1px solid var(--studio-border);border-radius:8px;background:var(--studio-surface-elevated);color:var(--studio-text);font:inherit;font-size:.9375rem;transition:border-color .15s ease,box-shadow .15s ease}.auth-field input::placeholder{color:var(--studio-text-muted)}.auth-field input:focus{outline:0;border-color:var(--studio-accent);box-shadow:0 0 0 4px var(--studio-accent-ring)}.auth-field input:disabled{opacity:.6}.auth-hint{margin:.35rem 0 0;font-size:.75rem;color:var(--studio-text-muted)}.auth-password-row{position:relative}.auth-password-row input{padding-right:4.25rem}.auth-reveal{position:absolute;top:50%;right:.4rem;transform:translateY(-50%);min-width:3.4rem;padding:.35rem .45rem;border:0;border-radius:6px;background:0 0;color:var(--studio-accent-strong);font:inherit;font-size:.75rem;font-weight:600;cursor:pointer;transition:background-color .15s ease}.auth-reveal:hover{background:var(--studio-accent-soft)}.auth-reveal:focus-visible{outline:2px solid var(--studio-accent);outline-offset:1px}.auth-message{margin:0 0 1rem;padding:.6rem .75rem;border-radius:8px;font-size:.8125rem;line-height:1.45}.auth-message--error{background:rgba(255,59,48,.08);border:1px solid rgba(255,59,48,.28);color:#b3261e}body.dark .auth-message--error{color:#ff8a80}.auth-message--notice{background:var(--studio-accent-soft);border:1px solid var(--studio-accent-ring);color:var(--studio-accent-strong)}body.dark .auth-message--notice{color:#93c5fd}.auth-submit{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:2.9rem;padding:.6rem 1rem;border:1px solid var(--studio-accent-strong);border-radius:8px;background:var(--studio-accent);color:#fff;font:inherit;font-size:.9375rem;font-weight:600;text-decoration:none;cursor:pointer;transition:background-color .15s ease}.auth-submit:hover{background:var(--studio-accent-strong)}.auth-submit:focus-visible{outline:2px solid var(--studio-accent-strong);outline-offset:2px}.auth-submit.is-busy,.auth-submit:disabled{opacity:.7;cursor:default}.auth-actions{display:grid;gap:.6rem;margin-top:.4rem}.auth-secondary{width:100%;min-height:2.75rem;padding:.6rem 1rem;border:1px solid var(--studio-border);border-radius:8px;background:var(--studio-surface-elevated);color:var(--studio-text);font:inherit;font-size:.9375rem;font-weight:600;cursor:pointer;transition:background-color .15s ease,border-color .15s ease}.auth-secondary:hover{background:var(--studio-surface-subtle);border-color:var(--studio-text-muted)}.auth-secondary:focus-visible{outline:2px solid var(--studio-accent);outline-offset:2px}.auth-details{margin:0 0 1.35rem;border:1px solid var(--studio-border-soft);border-radius:9px;overflow:hidden}.auth-detail-row{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;padding:.7rem .85rem;font-size:.875rem}.auth-detail-row+.auth-detail-row{border-top:1px solid var(--studio-border-soft)}.auth-detail-row dt{color:var(--studio-text-muted)}.auth-detail-row dd{margin:0;font-weight:600;color:var(--studio-text);text-align:right;overflow-wrap:anywhere}.auth-divider{display:flex;align-items:center;gap:.75rem;margin:1.35rem 0 1rem;color:var(--studio-text-muted);font-size:.75rem;text-transform:uppercase;letter-spacing:.08em}.auth-divider::after,.auth-divider::before{content:"";flex:1;height:1px;background:var(--studio-border-soft)}.auth-provider{display:flex;align-items:center;justify-content:center;gap:.6rem;width:100%;min-height:2.9rem;padding:.6rem 1rem;border:1px solid var(--studio-border);border-radius:8px;background:var(--studio-surface-elevated);color:var(--studio-text);font:inherit;font-size:.9375rem;font-weight:600;cursor:pointer;transition:background-color .15s ease,border-color .15s ease}.auth-provider:hover{background:var(--studio-surface-subtle);border-color:var(--studio-text-muted)}.auth-provider:focus-visible{outline:2px solid var(--studio-accent);outline-offset:2px}.auth-provider:disabled{opacity:.7;cursor:default}.auth-provider+.auth-provider{margin-top:.6rem}.auth-provider--apple{background:#000;border-color:#000;color:#fff}.auth-provider--apple:hover{background:#1d1d1f;border-color:#1d1d1f}body.dark .auth-provider--apple{background:#fff;border-color:#fff;color:#000}body.dark .auth-provider--apple:hover{background:#f2f2f2;border-color:#f2f2f2}.auth-provider-mark{width:1.1rem;height:1.1rem;flex-shrink:0}.auth-provider-note{margin:.7rem 0 0;font-size:.75rem;line-height:1.45;color:var(--studio-text-muted);text-align:center}.auth-footnote{margin:1.15rem 0 0;font-size:.8125rem;line-height:1.55;color:var(--studio-text-muted)}.auth-link{padding:0;border:0;background:0 0;color:var(--studio-accent-strong);font:inherit;font-size:inherit;font-weight:600;text-decoration:underline;text-underline-offset:2px;cursor:pointer}.auth-link:hover{color:var(--studio-accent)}.auth-link:focus-visible{outline:2px solid var(--studio-accent);outline-offset:2px;border-radius:3px}.auth-noscript{margin:1.5rem auto;max-width:25rem;text-align:center;font-size:.875rem;color:#6b7280}@media (max-width:767px){.auth-window{width:100%!important;max-width:100%!important;border:1px solid var(--studio-border-soft)!important;border-radius:12px!important;box-shadow:var(--studio-shadow-soft)!important}body.auth-page{padding:1.25rem!important;padding-top:max(1.25rem,env(safe-area-inset-top))!important;padding-bottom:max(1.25rem,env(safe-area-inset-bottom))!important}}@media (max-width:420px){.auth-body{padding:1.5rem 1.15rem 1.4rem}.auth-heading{font-size:1.3rem}}@media (prefers-reduced-motion:reduce){.auth-field input,.auth-reveal,.auth-secondary,.auth-submit,.auth-tab{transition:none}}