.account-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.account-controls [hidden] { display: none; }
.account-controls a, .account-controls button { border: 0; border-radius: 9px; padding: 8px 12px; font: inherit; text-decoration: none; cursor: pointer; }
.account-controls a { color: #315fe8; background: #edf3ff; }
.account-controls button { color: #52627b; background: #edf3ff; }
.account-controls a:hover, .account-controls button:hover { background: #dce8ff; }
.account-name { color: #344967; overflow-wrap: anywhere; }
.account-dialog { width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 1px solid #e6ecf5; border-radius: 18px; color: #17243b; box-shadow: 0 24px 60px rgba(37, 65, 110, .2); }
.account-dialog::backdrop { background: rgba(23, 36, 59, .5); }
.account-panel { padding: 24px; }
.account-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.account-heading h2 { margin: 0; font-size: 22px; }
.account-close { border: 0; background: transparent; padding: 4px 8px; color: #52627b; font-size: 24px; cursor: pointer; }
.account-hint { margin: 12px 0 20px; color: #718098; font-size: 13px; line-height: 1.7; }
.account-field { display: block; margin-top: 16px; color: #344967; font-size: 14px; }
.account-field[hidden], .account-password-help[hidden] { display: none; }
.account-field input { display: block; width: 100%; margin-top: 8px; padding: 11px 12px; border: 1px solid #dce7fa; border-radius: 10px; font: inherit; color: #17243b; }
.account-field input:focus { outline: 2px solid #a9c2ff; border-color: #315fe8; }
.account-password-help { margin: 8px 0 0; color: #718098; font-size: 13px; line-height: 1.5; }
.account-submit { width: 100%; margin-top: 20px; padding: 12px; border: 0; border-radius: 10px; color: white; background: #315fe8; font: inherit; font-weight: 700; cursor: pointer; }
.account-submit:disabled { opacity: .6; cursor: wait; }
.account-message { min-height: 1.5em; margin: 12px 0 0; color: #b4432f; font-size: 13px; line-height: 1.5; }
.account-switch { border: 0; background: transparent; color: #315fe8; font: inherit; cursor: pointer; }
@media (max-width: 900px) { .nav { flex-wrap: wrap; padding: 12px 0; } }
