.account-nav{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap;margin:18px 0}.account-nav span{color:#efcf88;font-weight:700}
.account-screen{max-width:1100px;margin:20px auto}.account-forms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.account-form{display:flex;flex-direction:column;gap:10px;border:1px solid #796543;border-radius:12px;padding:20px;background:#102131}.account-form input{width:100%;box-sizing:border-box}.account-form button{margin-top:12px}.account-note{padding:14px;border-left:3px solid #dab86d;background:#183042;line-height:1.6}#accountContent>button{margin:10px 10px 10px 0}#accountMessage,#rankingMessage{white-space:pre-line;color:#f3d28e;line-height:1.5}#profileMode{display:block;margin:10px 0 20px;min-width:220px}#accountContent .stats-section{overflow-x:auto}#accountContent .stats-table th{max-width:360px}#rankingContent .stats-table th{overflow-wrap:anywhere}
@media(max-width:700px){.account-forms{grid-template-columns:1fr}.account-screen{padding:12px}.account-form{padding:14px}.account-nav button{flex:1 1 130px}}

.account-invitation{margin:18px 0}.account-invitation summary{cursor:pointer;color:#efcf88;padding:10px}.account-invitation .account-form{margin-top:10px}

/* Clearly visible account errors; informational messages keep their usual style. */
#account #accountMessage[data-kind="error"]:not(:empty){color:#ffaaa6;background:#501a20;border:1px solid #f46b68;border-left:4px solid #ff7770;border-radius:8px;padding:12px 14px;font-weight:700;line-height:1.5;box-shadow:0 0 16px #e3424226;overflow-wrap:anywhere}

#account .auth-login-error:empty{display:none}
#account .auth-login-error:not(:empty){margin:10px 0 14px;padding:12px 14px;color:#ffaaa6;background:#501a20;border:1px solid #f46b68;border-left:4px solid #ff7770;border-radius:8px;font-weight:700;line-height:1.5;box-shadow:0 0 16px #e3424226;overflow-wrap:anywhere}

/* Password reveal is a field control, never a form submission. */
#account .account-password{position:relative;width:100%;min-width:0}
#account .account-password input{width:100%;padding-right:54px;min-height:48px;box-sizing:border-box}
#account .account-password .password-toggle{position:absolute;right:3px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;min-width:44px;height:42px;min-height:42px;margin:0;padding:9px;border:0;border-radius:7px;background:transparent;box-shadow:none;color:#dbc792;cursor:pointer}
#account .password-toggle svg{width:23px;height:23px;pointer-events:none}
#account .account-password .password-toggle:hover,#account .account-password .password-toggle[aria-pressed="true"]{background:#d7bc7d19;color:#ffe5a6}
#account .account-password .password-toggle:focus-visible{outline:2px solid #edc97e;outline-offset:-2px}

/* Keep the eye centered independently of the form submit-button spacing. */
.royal-menu #account .account-form .account-password{position:relative;display:block}
.royal-menu #account .account-form .account-password input{display:block;margin:0;padding-right:54px}
.royal-menu #account .account-form .account-password .password-toggle{position:absolute;top:0;bottom:0;right:3px;left:auto;box-sizing:border-box;width:44px;min-width:44px;height:44px;min-height:44px;max-height:44px;margin:auto 0;padding:10px;transform:none;display:grid;place-items:center;line-height:1}
.royal-menu #account .account-form .account-password .password-toggle svg{display:block;width:23px;height:23px;margin:0}
