.auth-mode .site-header,.auth-mode .mobile-nav,.auth-mode .skip-link{display:none}
.auth-shell{max-width:480px;margin:auto;min-height:100svh;padding:28px max(24px,env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left))}
.auth-brand{display:flex;align-items:center;gap:9px;width:fit-content;min-height:44px}
.auth-brand>svg{width:26px;height:26px;color:var(--accent)}
.auth-brand>span{font-size:25px;font-weight:650}
.auth-brand>small{font-size:9px;letter-spacing:.2em;margin-inline-start:3px;color:var(--muted-2)}
.auth-art{height:124px;width:100%;position:relative;display:grid;place-items:center;overflow:hidden;margin:12px 0 8px;isolation:isolate}
.orbit-ring{position:absolute;width:240px;height:70px;border:1px solid var(--line);border-radius:50%;transform:rotate(-24deg)}
.orbit-ring-two{width:184px;height:90px;transform:rotate(35deg)}
.orbit-moon{width:74px;height:74px;background:var(--accent);color:var(--accent-ink);border-radius:23px;display:grid;place-items:center;transform:rotate(-10deg);box-shadow:0 8px 30px #3656cc20}
.orbit-moon svg{width:40px;height:40px;fill:currentColor;stroke:none}
.orbit-point{position:absolute;top:34px;left:calc(50% - 110px);width:9px;height:9px;border-radius:50%;background:var(--accent)}
.orbit-point-two{top:86px;left:calc(50% + 76px);width:5px;height:5px;background:var(--muted-2)}
.auth-heading{margin-bottom:25px}
.auth-kicker{font-size:11px;color:var(--accent);margin-bottom:7px}
.auth-heading h1{font-size:29px;font-weight:650;line-height:1.55;margin:0 0 9px}
.auth-heading>p:last-child{font-size:13px;line-height:1.95;color:var(--muted)}
.auth-form,.account-form{display:grid;gap:18px}
.auth-form .form-field>span,.account-form .form-field>span{font-size:12px;font-weight:550}
.auth-form input,.account-form input{min-height:52px;background:var(--surface);border-color:var(--line);border-radius:12px}
.auth-form .primary-button{justify-content:space-between;font-size:14px;border-radius:12px;min-height:52px}
.password-wrap{position:relative}
.password-wrap>input{padding-inline-end:52px}
.password-wrap>button{position:absolute;inset-inline-end:4px;top:4px;min-height:44px;color:var(--muted-2)}
.password-wrap svg{width:20px;height:20px}
.account-status:empty{display:none}
.account-status{font-size:12px;line-height:1.9;padding:12px 14px;border-radius:10px;color:var(--accent);background:var(--accent-soft);margin:12px 0;overflow-wrap:anywhere}
.account-status.is-error{color:#a92c44;background:#f9e4e9}
:root[data-appearance=night] .account-status.is-error,:root[data-appearance=oled] .account-status.is-error{color:#fac5d0;background:#432436}
.invite-explainer{display:flex;gap:12px;align-items:flex-start;padding-top:24px;margin-top:24px;border-top:1px solid var(--line)}
.invite-explainer>span{display:grid;place-items:center;background:var(--accent-soft);width:38px;height:38px;border-radius:11px;color:var(--accent);flex:none}
.invite-explainer svg{width:18px;height:18px}
.invite-explainer p{font-size:12px;line-height:1.9}
.invite-explainer strong{display:block;color:var(--text);font-size:13px;font-weight:550}
.auth-footer{font-size:10px;text-align:center;color:var(--muted-2);padding:24px 0 0}
.auth-back{font-size:12px;min-height:44px;display:flex;justify-content:center;align-items:center;margin-top:12px;color:var(--accent)}
.field-hint{font-size:11px;color:var(--muted-2);margin-top:-10px}
.account-identity{display:flex;align-items:center;gap:13px;padding:10px 0 24px;margin-bottom:20px;border-bottom:1px solid var(--line)}
.account-avatar{width:54px;height:54px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);border-radius:18px;flex:none}
.account-avatar svg{width:26px;height:26px}
.account-identity>div{min-width:0;flex:1}
.account-identity strong{font-size:18px;font-weight:650;display:block;overflow-wrap:anywhere}
.account-identity small{font-size:11px;color:var(--muted-2);display:block;text-align:start}
.account-role{font-size:10px;border:1px solid var(--line);padding:3px 8px;border-radius:6px;color:var(--muted)}
.appearance-picker{border:0;padding:0;margin:0;display:flex;gap:10px}
.appearance-picker legend{font-size:12px;margin-bottom:10px;font-weight:550}
.appearance-picker label{flex:1;position:relative;min-width:0;display:flex;align-items:center;gap:7px;padding:10px 8px;border:1px solid var(--line);border-radius:10px;font-size:11px;min-height:48px;cursor:pointer}
.appearance-picker input{min-height:0;width:14px;height:14px;accent-color:var(--accent);margin:0}
.appearance-swatch{width:14px;height:14px;border-radius:50%;border:1px solid #7d8ca444;flex:none}
.swatch-washi{background:#f3f5fa}.swatch-nocturne{background:#101727}.swatch-eclipse{background:#080b11}
.appearance-picker label:has(input:checked){background:var(--accent-soft);border-color:var(--accent)}
.account-section-action{margin-top:20px}
.account-security{border-block:1px solid var(--line);margin-top:24px;padding-block:10px}
.account-security summary{font-size:13px;color:var(--text)}
.account-security form{display:grid;gap:16px;padding:16px 0}
.account-signout{display:flex;width:100%;color:var(--muted);margin-top:18px;min-height:48px}
.device-list>div,.invite-list>div,.member-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);font-size:12px}
.device-list strong,.invite-list strong,.member-list strong{font-size:12px;display:block;font-weight:550;overflow-wrap:anywhere}
.device-list small,.invite-list small,.member-list small{display:block;font-size:10px;color:var(--muted-2);margin-top:4px}
.device-list>div>span,.invite-list>div>span,.member-list>div>span{min-width:0}
.member-list>div>span:last-child{font-size:10px;flex:none;color:var(--muted-2)}
.invite-list,.member-list,.device-accounts{margin-top:26px}
.invite-list h3,.member-list h3,.device-accounts h3{font-size:16px;font-weight:650;margin-bottom:8px}
.account-intro{font-size:13px;line-height:2;margin-bottom:22px}
.invite-ready{margin-top:24px;border:1px solid var(--line);border-radius:16px;background:var(--accent-soft);padding:18px;display:grid;gap:10px}
.invite-ready>span{color:var(--accent)}
.invite-ready p{font-size:12px}
.invite-ready input{font-size:12px;background:var(--surface)}
.invite-ready .secondary-button{background:var(--surface)}
.device-accounts>button{margin-top:8px}
@media(max-width:340px){.auth-shell{padding-inline:20px}.auth-heading h1{font-size:26px}.auth-art{height:100px}.appearance-picker{gap:6px}.appearance-picker label{padding-inline:6px;gap:5px}.appearance-swatch{display:none}}
