#account-dialog .profile-fields{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.85rem 1.25rem;padding:1rem;margin:0 0 1.25rem;border:1px solid #dce0e6;border-radius:16px}
#account-dialog .profile-fields dt{font-weight:600}
#account-dialog .profile-fields dd{margin:0;overflow-wrap:anywhere}
#account-dialog .account-logout + .account-logout{margin-top:.5rem}
#account-dialog .account-delete{display:block;min-height:44px;margin:1rem auto 0;padding:.5rem .9rem;border:0;border-radius:12px;background:transparent;color:#b42318;font:inherit;cursor:pointer}
#account-dialog .account-delete:hover{background:#b423180c}
body:not(.kroma) > header nav button.account-trigger{width:auto;flex:0 1 auto;padding-inline:.6rem;max-width:12rem;font-size:.875rem;display:block;overflow:hidden;text-overflow:ellipsis}
body:not(.kroma) > header nav button.account-trigger:not(.is-signed-in)::before{content:none}

#account-dialog .account-close{display:grid;place-items:center;padding:0;margin:0;line-height:1}
#account-dialog .account-close svg{display:block}
#account-dialog.profile-panel{--profile-inset:clamp(20px,5vw,28px);box-sizing:border-box;padding:var(--profile-inset)}
#account-dialog.profile-panel .account-close{position:absolute;top:var(--profile-inset);right:var(--profile-inset);width:44px;height:44px;box-sizing:border-box}
#account-dialog.profile-panel .account-head{display:flex;align-items:center;min-height:44px;margin:0 0 16px;padding:0 52px 0 0}
#account-dialog.profile-panel .account-head h2{margin:0;line-height:1.12;font-size:clamp(22px,5vw,28px);letter-spacing:-.025em}
#account-dialog.profile-panel .profile-fields{margin:0 0 16px;gap:10px 16px}
#account-dialog.profile-panel :is(form,.profile-description){margin:0}
#account-dialog.profile-panel form{display:grid;gap:12px}
#account-dialog.profile-panel form label{display:grid;gap:6px;margin:0}
#account-dialog.profile-panel form input{margin:0}
#account-dialog.profile-panel .account-message:empty{display:none}
#account-dialog.profile-panel .account-message{margin:0}
#account-dialog.profile-panel .account-language-row{margin-top:12px}
#account-dialog.profile-panel .profile-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:4px}
#account-dialog.profile-panel .profile-description + .profile-actions{margin-top:16px}
#account-dialog.profile-panel .profile-actions button{width:auto;min-height:44px;margin:0;padding:0 14px;line-height:1.2}

@media (prefers-reduced-motion:no-preference){
 :where(button,.btn,[role="button"],header a,.chip){
  transition:scale 150ms cubic-bezier(.2,.7,.2,1),background-color 160ms ease,color 160ms ease,border-color 160ms ease,box-shadow 160ms ease
 }
 :where(button,.btn,[role="button"],header a,.chip):active:not(:disabled){scale:.97}
 dialog:not(:open){opacity:0;scale:.98;translate:0 4px}
 dialog{
  transition:opacity 180ms ease,scale 200ms cubic-bezier(.2,.7,.2,1),translate 200ms cubic-bezier(.2,.7,.2,1),display 200ms allow-discrete,overlay 200ms allow-discrete
 }
 dialog::backdrop{transition:opacity 180ms ease,display 200ms allow-discrete,overlay 200ms allow-discrete;opacity:0}
 dialog[open]{opacity:1;scale:1;translate:0 0}
 dialog[open]::backdrop{opacity:1}
 @starting-style{
  dialog[open]{opacity:0;scale:.98;translate:0 4px}
  dialog[open]::backdrop{opacity:0}
 }
}

#account-dialog.auth-panel{
 --auth-inset:clamp(20px,5vw,28px);box-sizing:border-box;padding:var(--auth-inset)
}
#account-dialog.auth-panel .account-close{
 position:absolute;top:var(--auth-inset);right:var(--auth-inset);left:auto;
 width:44px;height:44px;box-sizing:border-box
}
#account-dialog.auth-panel .account-head{
 display:flex;align-items:center;min-height:44px;margin:0 0 16px;padding:0 52px 0 0
}
#account-dialog.auth-panel .account-head h2{
 margin:0;line-height:1.12;font-size:clamp(22px,5vw,28px);letter-spacing:-.025em
}
#account-dialog.auth-panel .account-tabs{margin:0 0 16px}
#account-dialog.auth-panel form{display:grid;gap:14px;margin:0}
#account-dialog.auth-panel form label{display:grid;gap:6px;margin:0}
#account-dialog.auth-panel form :is(input,.account-submit,.account-message){margin:0}
#account-dialog.auth-panel .account-message:empty{display:none}
#account-dialog.auth-panel .account-language-row{margin:16px 0 0}
