/* Login presentation only. Existing IDs, handlers and account storage stay intact. */
.app:has(.auth-screen){padding-bottom:28px}
.app:has(.auth-screen)>header{height:82px}
.app:has(.auth-screen)>header #status{display:none}
.auth-screen{position:relative;isolation:isolate;padding:8px 0 12px;max-width:440px;margin:auto}
.auth-ambient{position:absolute;z-index:-1;inset:-95px -20px auto;height:330px;overflow:hidden;pointer-events:none;background:radial-gradient(ellipse at 90% 8%,#d4ff5a0e,transparent 65%)}
.auth-ambient i{position:absolute;right:-56px;top:18px;width:205px;height:205px;border:1px solid #d4ff5a0d;border-radius:50%}
.auth-ambient i:nth-child(2){inset:42px -32px auto auto;width:157px;height:157px}
.auth-ambient i:nth-child(3){inset:67px -7px auto auto;width:107px;height:107px}
.auth-screen .login-welcome{position:relative;margin:8px 0 28px}
.auth-screen .login-welcome .eyebrow{display:flex;align-items:center;gap:8px;margin:0 0 18px;font-size:10px;font-weight:700;letter-spacing:.13em;color:var(--accent)}
.auth-live-dot{width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px #d4ff5a0c}
.auth-screen .login-welcome h1{font-size:clamp(34px,9.5vw,44px);line-height:1.09;letter-spacing:-.055em;font-weight:800;margin:0 0 16px}
.auth-screen .login-welcome>.muted{max-width:310px;font-size:14px;line-height:1.7;color:#a7b0ba}
.auth-features{display:flex;flex-wrap:wrap;gap:7px;margin-top:20px}
.auth-features span{font-size:10px;line-height:1.4;letter-spacing:.015em;color:#bac4cb;border:1px solid #30373d;background:#192027a6;border-radius:7px;padding:6px 10px}
.auth-features span:before{content:'';display:inline-block;width:4px;height:4px;margin:0 6px 2px 0;background:var(--accent);border-radius:50%;opacity:.8}
.auth-access{padding:18px;border:1px solid #343d43;border-radius:22px;background:linear-gradient(145deg,#202830 0%,#171d24 85%);box-shadow:0 14px 32px #00000014}
.auth-access-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px;color:#d7dde2;font-size:12px;font-weight:600}
.auth-access-lock{color:#8d99a4;font-size:17px;line-height:1}
.auth-screen .auth-google{min-height:54px;border:1px solid #ffffffbd;border-radius:13px;padding:13px 15px;background:#f4f6f7;color:#161d23;font-size:14px;font-weight:700;box-shadow:0 2px 0 #00000012}
.auth-screen .google-letter{display:grid;place-items:center;width:26px;height:26px;font-size:22px;font-weight:700}
.auth-screen .auth-google-arrow{font-size:19px;color:#65717d}
.auth-screen .auth-google:disabled{opacity:.5;cursor:not-allowed}
.auth-screen .auth-email{margin:16px 0 0;border-top:1px solid #343d45;padding:0}
.auth-screen .auth-email>summary{font-size:12px;min-height:48px;color:#b6c1cb;font-weight:500}
.auth-screen .auth-email>summary>span{font-size:17px;color:#96a2ae;transition:transform .2s}
.auth-screen .auth-email[open]>summary>span{transform:rotate(180deg)}
.auth-screen .auth-email .tabs{gap:5px;padding:4px;margin:4px 0 18px;background:#10161c;border:1px solid #303943;border-radius:12px}
.auth-screen .auth-email .tabs button{min-height:42px;border-radius:8px;font-size:12px;background:transparent;color:#9daab6;padding:10px}
.auth-screen .auth-email .tabs button.active{background:#303b28;color:var(--accent)}
.auth-screen #auth-form{display:grid;gap:14px}
.auth-screen #auth-form label{display:grid;gap:7px;margin:0;font-size:12px;color:#bfc8d0}
.auth-screen #auth-form input{margin:0;min-height:52px;border-radius:12px;border:1px solid #3a444d;background:#11171d;font-size:16px;padding:12px 14px;color:var(--ink);width:100%;min-width:0}
.auth-screen #auth-form input:focus{border-color:var(--accent);outline:2px solid #d4ff5a17;outline-offset:2px}
.auth-screen #auth-form>.primary{min-height:52px;font-size:14px;border-radius:12px;margin:2px 0 0}
.auth-screen #reset{min-height:44px;margin:5px 0 0;font-size:12px;color:#b6c2cc}
.auth-screen .auth-message:not(:empty){margin:12px 0 0;border:1px solid #655032;color:#f6d8a4!important;background:#30291e;font-size:12px}
.auth-screen .auth-message:empty{margin:0}
.auth-screen .auth-recovery{border:0;background:none;margin:0;padding:0}
.auth-screen .auth-recovery h2{font-size:16px;margin:4px 0 18px}
.auth-explore{margin-top:24px}
.auth-explore-label{display:flex;align-items:center;gap:12px;margin:0 0 13px;color:#85929e;font-size:11px;text-align:center}
.auth-explore-label:before,.auth-explore-label:after{content:'';flex:1;height:1px;background:#2a333c}
.auth-screen .auth-guest{display:flex;align-items:center;justify-content:center;width:100%;min-height:51px;background:#252e23;color:#d4ff5a;border:1px solid #425139;border-radius:13px;font-size:13px;font-weight:700;margin:0 0 8px}
.auth-screen .auth-demo{min-height:46px;padding:10px 14px;font-size:12px;border:0;background:transparent;color:#aab8c4;border-radius:12px}
.auth-screen .auth-demo>span{font-size:19px;color:#8c9b87}
.auth-screen .auth-device-note{font-size:10px;line-height:1.65;color:#7f8c98;margin:12px 16px 0}
.auth-screen .remembered-accounts{margin:0 0 20px}
.auth-screen .remembered-accounts .login-welcome{margin-bottom:24px}
.auth-screen .remembered-account{min-height:88px;padding:15px;gap:13px;border-radius:17px;background:#1b232b;border:1px solid #333e47}
.auth-screen .remembered-account.is-recent{background:linear-gradient(115deg,#283424,#1b2429 85%);border-color:#596d3a;box-shadow:inset 3px 0 var(--accent)}
.auth-screen .remembered-avatar{width:48px;height:48px;flex-basis:48px;border-radius:14px;font-size:18px;background:#303a31}
.auth-screen .remembered-avatar img{border-radius:inherit}
.auth-screen .remembered-copy>strong{font-size:15px;font-weight:700}
.auth-screen .remembered-recent{font-size:8px;letter-spacing:.1em;margin-bottom:4px}
.auth-screen .remembered-email{font-size:11px}
.auth-screen .remembered-continue{margin-top:6px;font-size:11px}
.auth-screen .remembered-continue>span{font-size:20px}
.auth-screen .remembered-manage{margin-top:8px;padding:0 3px}
.auth-screen .remembered-manage>summary{font-size:11px;min-height:42px}
.auth-screen button:focus-visible,.auth-screen summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
@media(min-width:700px){.app:has(.auth-screen){max-width:520px}.auth-screen{padding-top:24px}.auth-screen .login-welcome h1{font-size:46px}.auth-screen .login-welcome{margin-bottom:30px}.auth-access{padding:22px}}
@media(max-width:359px){.auth-access{padding:14px}.auth-screen .login-welcome{margin-bottom:22px}.auth-screen .auth-google{font-size:12px;gap:8px}.auth-screen .remembered-account{padding:12px;gap:10px}.auth-screen .remembered-copy>strong{font-size:14px}}
@media(prefers-reduced-motion:no-preference){.auth-screen .auth-google,.auth-screen .auth-guest,.auth-screen .auth-demo{transition:background .18s,border-color .18s,transform .18s}.auth-screen .auth-google:active,.auth-screen .auth-guest:active{transform:scale(.985)}}

.auth-file-help{margin:0 0 16px;border:1px solid var(--line);border-radius:12px;padding:0 12px;color:var(--muted);font-size:12px}.auth-file-help summary{min-height:44px;cursor:pointer;padding:12px 0}.auth-file-help p{font-size:12px;line-height:1.65}.auth-file-help code{display:block;overflow-wrap:anywhere;font-size:11px;color:var(--ink)}.auth-file-help a{color:var(--accent)}
