/* Shared else. identity */
:root,:root[data-theme=light]{--bg:#fff;--text:#111;--ink:#111;--muted:#737373;--accent:#111;--line:rgba(0,0,0,.1);--paper:#fff;--soft:rgba(0,0,0,.035);--shadow:none}
:root[data-theme=dark],html.dark,body.dark{--bg:#000;--text:#f5f5f5;--ink:#f5f5f5;--muted:#999;--accent:#f5f5f5;--line:rgba(255,255,255,.14);--paper:#000;--soft:rgba(255,255,255,.05);--shadow:none}
body{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.brand,.signedOutBrand{gap:10px}
.idle-name,.signedOutBrand>span,.brand .navlabel{font-family:inherit!important;font-size:28px!important;font-weight:600!important;letter-spacing:-1.4px!important;text-shadow:none!important}
.idle-mark,.brandicon,.signedOutBrand>svg{display:none!important}
.brand:hover .idle-name{transform:none;text-shadow:none}
.else-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 20px;padding:24px 0;margin:40px 0 0;border-top:1px solid var(--line);font:11px/1.6 Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--muted);letter-spacing:.02em}
.else-footer b{font-weight:500;color:var(--ink,var(--text))}
.signedOutFoot{font-size:11px!important;letter-spacing:.02em!important}
button:focus-visible,a:focus-visible{outline:2px solid currentColor;outline-offset:4px}

@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#000;--text:#f5f5f5;--ink:#f5f5f5;--muted:#999;--accent:#f5f5f5;--line:rgba(255,255,255,.14);--paper:#000;--soft:rgba(255,255,255,.05)}}

.signedOutMessage h1 span{color:var(--muted)!important}.signedOutCreate span{color:inherit!important}

.else-auth-foot{color:var(--muted);font-size:10px;text-align:center;margin:22px 0 0}.modal-brand .idle-name{display:block}

/* Minimal dark authentication */
#modal-bg{background:#080808!important;backdrop-filter:none!important;overflow:auto}
#auth-form{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;width:min(380px,100%);padding:32px 24px!important;color:#eee}
#auth-form .modal-brand{margin:0 0 8px!important;text-align:center}
#auth-form .idle-name,.auth-wordmark{font:600 36px/1.2 Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;letter-spacing:-1.8px!important}
#auth-form .modal-sub{text-align:center;font-size:12px;color:#aaa;margin:0 0 40px!important}
#auth-form .auth-providers{gap:12px;margin:0}
#auth-form .provider-button,.landing-providers button{border:0!important;box-shadow:none!important;background:transparent!important;color:#ddd!important;padding:13px 8px!important;border-radius:0!important;font-size:14px;font-weight:400;min-height:44px;cursor:pointer}
#auth-form .provider-button:hover,.landing-providers button:hover{color:#fff!important;background:#ffffff06!important}
#auth-form .provider-button svg{display:none}
#auth-form.auth-choose #modal-title,#auth-form.auth-choose>.field,#auth-form.auth-choose>.modal-submit,#auth-form.auth-choose>.modal-foot,#auth-form.auth-choose>.auth-links,#auth-form.auth-choose>#auth-back{display:none!important}
#auth-form:not(.auth-choose) #auth-providers{display:none!important}
.auth-back{background:none;border:0;color:#999;padding:10px 0;font-size:12px}
#auth-form .else-auth-foot{margin-top:42px;color:#777}
#auth-form #auth-status:empty{display:none}
body.authRequired #signedOutLanding{background:#080808!important;padding:32px!important;align-items:center;justify-content:center}
body.authRequired #signedOutLanding>.signedOutBrand{display:none!important}
body.authRequired #signedOutLanding .signedOutMessage{width:min(380px,100%);padding:24px!important;margin:0!important;text-align:center;align-self:center}
body.authRequired #signedOutLanding h1{font:600 36px/1.2 Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;letter-spacing:-1.8px!important;margin:0 0 8px!important}
body.authRequired #signedOutLanding p{font-size:12px!important;color:#aaa!important;margin:0 0 40px!important}
.landing-providers{display:grid;gap:12px}
body.authRequired #signedOutLanding .signedOutFoot{position:static;margin-top:42px;color:#777;font-size:10px!important;text-align:center}
#authDialog,#phoneAuthDialog{background:#080808!important;color:#eee!important;border:0!important;box-shadow:none!important;border-radius:0!important;width:min(400px,calc(100vw - 32px));padding:32px 24px!important}
#authDialog::backdrop,#phoneAuthDialog::backdrop{background:#080808!important;backdrop-filter:none!important}
#authDialog .oauth,#authDialog>.authswitch:first-of-type,#authDialog .modalmark{display:none!important}
#authDialog #authTitle{font-size:16px!important;margin-top:24px}
#authDialog #authSub{font-size:12px}
.auth-wordmark{text-align:center;margin-bottom:16px}
#authDialog input,#phoneAuthDialog input{background:#111!important;color:#eee!important;border:1px solid #333!important}
#authDialog .primary,#phoneAuthDialog .primary{background:#eee!important;color:#111!important}
#landingAuthStatus:empty{display:none}

#auth-form .modal-brand{display:flex;justify-content:center!important}.login-backdrop{display:none!important}

/* Glass provider controls and inline email sign-in */
#auth-form .provider-button,#authDialog .oauth button{display:flex!important;align-items:center;justify-content:center;gap:12px;min-height:48px;padding:12px 16px!important;border:1px solid rgba(255,255,255,.2)!important;border-radius:14px!important;background:linear-gradient(135deg,rgba(255,255,255,.075),rgba(255,255,255,.025))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.06)!important;backdrop-filter:blur(16px);color:#eee!important;font-size:13px;font-weight:500;width:100%}
#auth-form .provider-button:hover,#authDialog .oauth button:hover{border-color:rgba(255,255,255,.4)!important;background:rgba(255,255,255,.1)!important}
#auth-form .provider-button svg,#authDialog .oauth button svg{display:block!important;width:18px;height:18px;flex:none}
#auth-form #auth-use-email{display:none!important}
#auth-form #auth-back{display:none!important}
#auth-form[data-auth-mode=signin] #modal-title{display:none!important}
#auth-form:not(.auth-choose) #auth-providers:not([hidden]){display:grid!important}
#auth-form .modal-sub{margin-bottom:28px!important}
#auth-form .field input,#authDialog input{border-radius:12px!important;background:rgba(255,255,255,.035)!important;border:1px solid rgba(255,255,255,.16)!important;color:#eee!important;box-shadow:inset 0 1px 0 #ffffff05}
#auth-form .modal-brand{justify-content:center!important}
body.authRequired #signedOutLanding{display:none!important}
#authDialog .oauth:not([hidden]){display:grid!important;gap:10px;margin:26px 0 20px}
#authDialog>.authswitch:first-of-type:not([hidden]){display:block!important;color:#999;text-align:center;font-size:11px}
#authDialog #authTitle{display:none}
#authDialog:has(#signupProfileFields:not([hidden])) #authTitle{display:block}
#authDialog #authSub{text-align:center;color:#aaa;margin:8px 0 24px;font-size:12px}
#authDialog .auth-wordmark{margin:0}
#authDialog,#phoneAuthDialog{max-height:calc(100dvh - 32px);overflow:auto}
body.authRequired #authDialog>.close{display:none}
#authDialog .else-auth-foot{text-align:center;font-size:10px;color:#777;margin-top:28px}
#auth-form{max-height:calc(100dvh - 32px);overflow:auto;backdrop-filter:none}
#auth-form .auth-divider{margin:16px 0 4px}
@media(max-height:780px){#auth-form,#authDialog{padding:20px 24px!important}#auth-form .modal-sub{margin-bottom:20px!important}#auth-form .else-auth-foot{margin-top:22px}}

#auth-form .modal-brand{width:100%;height:auto;border-radius:0}
