.account-corner{position:fixed;right:24px;top:21px;z-index:61}.account-trigger{display:flex;align-items:center;justify-content:center;gap:9px;min-height:40px;max-width:180px;border:1px solid var(--line);border-radius:var(--radius-pill);padding:5px 14px;background:var(--paper);background:color-mix(in srgb,var(--paper) 82%,transparent);backdrop-filter:blur(14px);font-size:12px;color:var(--ink)}.account-trigger:hover{background:var(--white)}.account-avatar{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;flex:0 0 auto;border-radius:var(--radius-pill);background:#998462;color:#fff8e9;font:15px var(--serif);overflow:hidden}.account-avatar img{width:100%;height:100%;object-fit:cover}.account-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:105px}.account-menu{position:absolute;right:0;top:51px;width:265px;max-width:calc(100vw - 24px);padding:21px;background:var(--paper);border:1px solid var(--line);box-shadow:0 12px 40px #241b2126;border-radius:var(--radius-md)}.account-menu-person{display:flex;align-items:center;gap:12px}.large-avatar{width:42px;height:42px;font-size:21px}.account-menu-person strong{display:block;font:19px/1.5 var(--serif);overflow-wrap:anywhere}.account-menu-person small{display:block;font-size:9px;color:var(--muted)}.account-menu p{font-size:10px;line-height:2;color:var(--muted);border-bottom:1px solid var(--line);padding-bottom:15px}.account-menu>button{display:flex;justify-content:space-between;width:100%;padding:12px 0;font-size:12px}.account-menu>button:hover{color:var(--accent)}#account-dialog{width:min(510px,94vw);padding:24px 32px}.account-brand{text-align:center;margin:10px 0 25px}.account-brand>span{font:31px/1.5 var(--serif);letter-spacing:9px;color:var(--accent)}.account-brand h2{font:25px/1.5 var(--serif);margin:15px 0 8px}.account-brand p{font-size:11px;color:var(--muted);letter-spacing:1px}.auth-modes{display:flex;border-radius:var(--radius-pill);background:#a3906c15;padding:4px;gap:3px}.auth-modes button{flex:1;font-size:11px;border-radius:var(--radius-pill);padding:9px 7px;white-space:nowrap}.auth-modes button[aria-pressed=true]{background:var(--white);color:var(--ink);box-shadow:0 2px 7px #342f2812}.profile-preview label{display:block;font-size:10px;color:var(--accent);letter-spacing:1px}.profile-preview input{display:block;width:100%;background:none;border:0;border-bottom:1px solid var(--line);padding:10px 0;border-radius:0;font-size:13px;color:var(--ink);margin-bottom:14px}#local-profile-form{border-top:1px solid var(--line);padding-top:20px}.profile-preview{display:flex;align-items:center;gap:25px;margin:20px 0}.profile-preview>button{padding:0;flex-shrink:0}.edit-avatar{width:60px;height:60px;font-size:26px}.profile-preview small{display:block;margin-top:8px;color:var(--muted);font-size:9px}.profile-preview label{flex:1;min-width:0}.profile-preview input{margin:2px 0 0}#profile-save{width:100%;font-size:12px}#profile-error{color:#a65039;font-size:11px}body:has(#account-dialog[open]) .account-corner{visibility:hidden}
@media(max-width:1050px){.account-corner{right:12px;top:24px}.account-trigger{font-size:11px;height:34px;min-height:34px;padding:3px 11px}.account-avatar{width:25px;height:25px;font-size:13px}.account-name{max-width:86px}.account-menu{top:44px}}
@media(max-width:620px){.account-corner{top:calc(max(12px,env(safe-area-inset-top)) + 6px);right:12px}.account-trigger{font-size:10px;min-height:32px}.account-menu{top:40px}.account-menu .large-avatar{width:42px;height:42px}.account-menu-person strong{font-size:18px}#account-dialog{padding:18px 23px}.account-brand{margin-bottom:19px}.account-brand h2{font-size:23px}.profile-preview{gap:18px}.profile-preview .edit-avatar{width:54px;height:54px}#account-dialog .eyebrow{font-size:7px;letter-spacing:1px}}
@media(prefers-reduced-motion:no-preference){#account-dialog[open]{animation:account-in .24s var(--ease)}.account-menu:not([hidden]){animation:account-in .18s var(--ease)}@keyframes account-in{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}}

/* Keep the account control on the navigation center line at compact widths. */
.account-login-label{display:none}.account-trigger:has(.account-login-icon){width:40px;padding:5px}.account-login-icon{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
@media(max-width:760px){header.floating-nav{left:12px;right:60px;transform:none;max-width:none}.account-trigger{width:34px;height:34px;min-height:34px;padding:3px;gap:0}.account-trigger .account-name,.account-login-label{display:none}.account-login-icon{display:block}}
@media(max-width:620px){.floating-nav .nav-create{width:32px;min-width:32px;padding:0;font-size:0}.floating-nav .nav-create::after{content:'＋';font-size:18px}}

@media(max-width:1050px){.account-trigger:has(.account-login-icon){width:34px;padding:3px}}

.account-brand p{font-size:12px}.profile-preview label{font-size:12px}.profile-preview input{font-size:16px;min-height:44px}.profile-preview small{font-size:12px}#profile-save{font-size:14px;min-height:44px}#local-profile-form{border-top:0;padding-top:0}#profile-error{font-size:12px}.account-menu-person small,.account-menu p{font-size:12px}.account-menu>button{font-size:13px;min-height:44px}
#account-dialog .dialog-head .eyebrow{font-size:12px}.account-brand{margin-top:0;margin-bottom:20px}.account-brand h2{margin-top:12px}
@media(max-width:760px){.account-corner{right:12px}.account-trigger,.account-trigger:has(.account-login-icon){width:44px;height:44px;min-height:44px}}
@media(max-width:620px){#account-dialog .eyebrow{font-size:12px;letter-spacing:1px}.account-menu{top:50px}}

.auth-modes button{font-size:14px;min-height:44px}
.auth-fields{display:grid;gap:var(--space-3);margin-top:var(--space-4)}
.auth-fields label{display:block;font-size:13px;color:var(--ink)}
.auth-fields input{display:block;width:100%;min-height:44px;margin:var(--space-1) 0 var(--space-2);padding:var(--space-2);font-size:16px;color:var(--ink);background:var(--white);border:1px solid var(--line);border-radius:var(--radius-sm)}
#auth-submit{min-height:44px;font-size:14px}
#auth-error{margin:0;font-size:13px;color:var(--ink)}
#auth-error:empty{display:none}
.auth-code-row{display:flex;align-items:center;gap:var(--space-2)}
.auth-code-row input{flex:1;min-width:0}
#auth-send-code{flex:none;min-height:44px;border:1px solid var(--line);font-size:13px}
#auth-code-status{margin:0 0 var(--space-2);font-size:13px;color:var(--muted)}
#auth-code-status:empty{display:none}
