.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0}
.auth-entry{display:flex;align-items:center;flex:none}
.auth-sign-in{border:1px solid var(--line);border-radius:8px;background:var(--paper);padding:9px 14px;min-height:42px;line-height:1.5;font-size:14px;font-weight:600;white-space:nowrap}
.auth-sign-in:hover{border-color:var(--accent);color:var(--accent);background:var(--soft)}
.auth-account{width:42px;height:42px;border:1px solid #dfbac3;background:var(--soft);color:var(--accent);border-radius:50%;font-weight:700;font-size:16px;display:grid;place-items:center}
.account-dialog{width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:28px;border:1px solid var(--line);border-radius:16px;background:var(--paper);color:var(--ink);box-shadow:0 24px 80px #29262b35;overflow:auto}
.account-dialog::backdrop{background:#261a2370;backdrop-filter:blur(4px)}
body.account-open{overflow:hidden}
.account-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.account-dialog-header h2{font-family:var(--font);font-size:22px;font-weight:600;line-height:1.35;letter-spacing:-.4px;margin:0}
.account-dialog-header .icon-button{flex:none;width:40px;height:40px;padding:8px;border:0;border-radius:8px;background:var(--soft);display:grid;place-items:center}
.account-dialog p{font-size:15px;line-height:1.65;color:var(--muted);margin-bottom:18px}
#google-sign-in{display:flex;justify-content:center;min-height:44px;margin-block:24px}
#google-sign-in svg{stroke:none}
.account-dialog .auth-privacy{font-size:14px;margin:20px 0 0}
.auth-privacy a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.account-dialog .auth-profile{background:var(--soft);border-radius:10px;padding:16px;margin-bottom:22px;overflow-wrap:anywhere}
.auth-profile strong{display:block;font-size:16px;line-height:1.5}
.account-dialog .auth-profile p{margin:5px 0 0;font-size:14px}
.auth-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.auth-actions .button{font-size:14px}
.account-dialog .auth-error{color:#942338;background:#fbeef1;padding:12px;border-radius:8px;font-size:14px;margin:14px 0}
.account-dialog .auth-progress{margin:18px 0;font-size:14px}
.auth-retry{border:1px solid var(--line);border-radius:8px;padding:10px 16px;background:var(--paper);font-size:14px;min-height:44px}
.privacy-page{max-width:820px;padding-block:40px 72px;overflow-wrap:anywhere}
.privacy-page h1{font-size:clamp(36px,5vw,52px);margin-bottom:24px}
.privacy-page h2{font-family:var(--font);font-weight:600;font-size:21px;margin:30px 0 12px;line-height:1.45}
.privacy-page p{font-size:16px;line-height:1.8;color:var(--muted)}
.privacy-page a{text-decoration:underline;text-underline-offset:3px;color:var(--accent)}
@media(max-width:640px){
 .site-header,body[data-page=library] .site-header{grid-template-columns:minmax(0,1fr) auto;gap:10px}
 .header-actions{gap:8px;flex-wrap:nowrap;max-width:none}
 .header-actions .header-create{font-size:13px;padding-inline:10px}
 .auth-sign-in{font-size:14px;padding-inline:10px}
 .site-header>.brand{font-size:20px;letter-spacing:-.6px;gap:7px}
 .site-header .brand-wordmark{max-width:150px}
 .account-dialog{padding:20px}
 .account-dialog-header h2{font-size:20px}
}
@media(max-width:420px){
 .header-actions .header-create .icon{display:none}
 .header-actions{gap:7px}
 .site-header .brand>.icon{width:22px;height:22px}
 .site-header>.brand{font-size:18px}
}
@media(max-width:360px){.site-header>.brand{font-size:17px}.site-header .brand>.icon{display:none}}
