[hidden]{display:none!important}
.auth-page{display:flex;flex-direction:column;min-height:100vh;margin:0;background:var(--bg);color:var(--text)}
.auth-brand{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:28px 36px;width:100%;box-sizing:border-box}
.auth-brand>span{display:flex;align-items:center;gap:12px;font-size:22px;font-weight:600}
.auth-brand .quiet{font-size:14px;padding:10px}
.auth-card{flex:none;min-height:0;width:min(460px,calc(100% - 32px));margin:40px auto 60px;padding:32px;box-sizing:border-box;background:var(--panel);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);}
.auth-card h1,.auth-lock h2{font-size:29px;line-height:1.25;letter-spacing:-.6px;margin:10px 0 14px;font-weight:600}
.auth-intro{font-size:15px;line-height:1.65;color:var(--muted);margin:0 0 24px}
.auth-kicker{font-size:12px;font-weight:600;letter-spacing:.08em;color:var(--accent)}
.auth-form{display:grid;gap:18px;margin:22px 0 0}
.auth-field{display:grid;gap:8px;font-size:15px;font-weight:500}
.auth-field input{font:inherit;font-weight:400;background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:12px 14px;min-height:46px;width:100%;box-sizing:border-box}
.auth-field input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.auth-hint{font-size:13px;font-weight:400;color:var(--muted);line-height:1.6;margin:0}
.auth-options{display:grid;gap:12px}
.auth-check{display:flex;align-items:flex-start;gap:10px;cursor:pointer;font-size:14px;line-height:1.5}
.auth-check input{margin:3px 0 0;accent-color:var(--accent);flex:none;width:17px;height:17px}
.auth-check small{display:block;color:var(--muted);font-size:12px;line-height:1.6}
.auth-form .solid-button{justify-content:center;min-height:46px;font-size:15px;line-height:1.4;white-space:normal;text-align:center;padding:12px 16px;border-radius:8px}
.auth-message{font-size:14px;line-height:1.6;margin:0;overflow-wrap:anywhere}
.auth-message:empty{display:none}
.auth-error{color:var(--amber,#edbd80)}
[data-theme="light"] .auth-error{color:#9c390d}
.auth-footnote{font-size:13px;line-height:1.65;color:var(--muted);border-top:1px solid var(--border);padding-top:20px;margin:24px 0 0}
.auth-recovery{margin-top:20px;font-size:13px;line-height:1.65;color:var(--muted)}
.auth-recovery summary{cursor:pointer;color:var(--text);font-size:14px}
.auth-recovery p{margin:12px 0}
.auth-recovery code{display:block;padding:12px;border:1px solid var(--border);background:var(--bg);border-radius:6px;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--text)}
.account-button{display:inline-flex;gap:7px;align-items:center;justify-content:center;border:1px solid var(--border);background:var(--panel);color:var(--text);border-radius:7px;padding:9px 12px;font:inherit;font-size:13px;cursor:pointer;min-height:36px}
.account-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.account-dialog,.auth-lock{width:min(460px,calc(100% - 24px));padding:28px;box-sizing:border-box;max-height:calc(100dvh - 32px);overflow:auto;color:var(--text);background:var(--panel);border:1px solid var(--border);border-radius:14px}
.account-dialog .reader-top{gap:20px;position:static;background:none}
.account-dialog h2{font-size:24px;margin:0}
.account-dialog p{font-size:14px;line-height:1.65}
.account-dialog .form-actions{flex-wrap:wrap;margin-top:20px}
.account-dialog .form-actions button{font-size:14px;min-height:42px}
.account-dialog .auth-form{padding-top:22px;border-top:1px solid var(--border)}
.account-dialog [data-account-scope]{overflow-wrap:anywhere}
.auth-lock::backdrop{background:var(--bg);opacity:1}
html[data-session-locked] .sidebar,html[data-session-locked] .workspace,html[data-session-locked] body>dialog:not(.auth-lock),html[data-session-locked] #toast{visibility:hidden!important}
.auth-lock .auth-kicker{margin-top:0}
@media(max-width:740px){.account-button{padding:8px;width:36px;flex:none}.account-button span{display:none}.topbar-actions{min-width:0;flex:1}.topbar .search-trigger{flex:1;min-width:0;width:auto}}
@media(max-width:500px){.auth-brand{padding:20px 16px;gap:12px}.auth-brand>span{font-size:18px;gap:8px}.auth-brand img{width:32px;height:32px}.auth-brand .quiet{font-size:12px;padding:8px 0}.auth-card{margin:22px auto 36px;padding:24px}.auth-card h1,.auth-lock h2{font-size:26px}.account-dialog,.auth-lock{padding:24px}}
