html.auth-locked body { zoom:1!important; overflow:auto!important; }
html.auth-locked body > :not(#auth-shell) { display:none!important; }
#auth-shell { min-height:100dvh; padding:clamp(20px,6vw,64px) 20px; display:grid; place-items:center; background:var(--bg,#edf3f0); color:var(--ink,#263e37); font:16px/1.75 system-ui,"Microsoft YaHei",sans-serif; }
#auth-shell[hidden] { display:none!important; }
.auth-card { width:min(100%,430px); background:var(--surface,#fff); border:1px solid var(--line,#d7e3dc); border-radius:28px; padding:clamp(24px,6vw,40px); box-shadow:0 20px 80px #274f3f0c; overflow-wrap:anywhere; }
.auth-mark { width:54px; height:54px; display:grid; place-items:center; border:1px solid var(--line,#d7e3dc); border-radius:18px; color:var(--accent,#427664); font:28px serif; margin-bottom:28px; }
.auth-kicker { font-size:11px; letter-spacing:.2em; color:var(--muted,#6b8177); }
.auth-card h1 { font:500 28px/1.5 serif; margin:8px 0 12px; }
.auth-card p { margin:0 0 22px; color:var(--muted,#6b8177); font-size:14px; }
.auth-card form { display:grid; gap:18px; }
.auth-field { display:grid; gap:7px; min-width:0; font-size:14px; }
.auth-card input,.auth-field input { width:100%; min-width:0; min-height:46px; border:1px solid var(--line,#cbdcd2); border-radius:12px; padding:10px 13px; font:inherit; color:inherit; background:transparent; box-sizing:border-box; }
.auth-card button { min-height:46px; border:1px solid transparent; border-radius:12px; padding:10px 16px; font:inherit; cursor:pointer; background:var(--accent,#427664); color:var(--on-accent,#fff); }
.auth-card button:disabled { opacity:.6; cursor:wait; }
.auth-card input:focus-visible,.auth-card button:focus-visible { outline:2px solid var(--accent,#427664); outline-offset:3px; }
.auth-error { color:var(--danger,#a84158); font-size:13px; min-height:1.75em; white-space:pre-wrap; }
.auth-note { border-top:1px solid var(--line,#d7e3dc); padding-top:20px; margin-top:26px!important; margin-bottom:0!important; font-size:12px!important; }
#auth-settings { margin-block:16px; padding:18px; border:1px solid var(--line); border-radius:16px; }
#auth-settings .wf-actions { margin-top:12px; flex-wrap:wrap; }
.auth-account-row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding-block:14px; border-bottom:1px solid var(--line); flex-wrap:wrap; }
.auth-account-row > span { min-width:0; overflow-wrap:anywhere; }
.auth-manage-error { color:var(--danger,#a84158); font-size:.85em; white-space:pre-wrap; }
@media(max-width:360px) { #auth-shell { padding:16px 12px; }.auth-card { padding:24px 20px; border-radius:22px; } }
@media print { #auth-shell,#auth-settings { display:none!important; }html.auth-locked body > * { display:none!important; } }
