#account-nav {display:flex;align-items:center;justify-content:flex-end;gap:.5rem;flex-wrap:nowrap;flex-shrink:0}
#account-nav a,.account-card a {color:var(--ink);text-underline-offset:.2em}
#account-nav a:last-child {background:var(--brand);color:white;border-radius:999px;padding:.45rem .8rem;text-decoration:none;font-weight:700}
.account-name {max-width:11em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650}
.account-card {background:#fff;border:1px solid rgba(0,0,0,0.08);border-radius:22px;box-shadow:0 12px 36px rgba(15,23,42,0.08);max-width:30rem;margin:clamp(1.2rem,6vh,4rem) auto;padding:clamp(1.25rem,4vw,2rem)}
.account-card h1 {margin-bottom:1rem;letter-spacing:-0.02em}
.account-card label,.account-card legend {display:block;font-weight:650;margin:1rem 0 .35rem}
.account-card input,.account-card select {display:block;width:100%;min-height:44px;border-radius:12px}
.account-card fieldset {border:0;padding:0;margin:0}
.account-card .birth-select {display:grid;grid-template-columns:1fr 1fr 1.15fr;gap:.5rem}
.account-card .small {margin:.35rem 0 0}
#account-submit {width:100%;margin:1.2rem 0 .45rem;border-radius:999px}
#account-status:not(:empty) {border-inline-start:3px solid var(--bad);padding:.5rem .75rem;margin:.75rem 0}
.account-home {display:inline-block;margin-top:1rem}
.account-card [hidden] {display:none}
@media (max-width:650px) {.top:has(#account-nav){gap:.35rem;flex-wrap:nowrap}#account-nav{margin-left:auto;gap:6px}.account-name{max-width:7em}}

.account-card input,.account-card select {background:#fff;border:1px solid #d2d2d7}
.account-card #account-switch a,.account-card .account-home {color:#0071e3}
