.account-page { display: block; width: 100%; max-width: none; margin: 0; justify-self: stretch; }
.account-heading { margin-bottom: 22px; }
.account-heading p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.profile-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.avatar { display: grid; place-items: center; width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; background: #a65336; color: #fff8ee; font-size: 20px; font-weight: 700; }
.profile-copy { flex: 1; min-width: 180px; }
.profile-copy h2 { margin: 0; font-size: 18px; }
.profile-copy p { margin: 4px 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.member-label { color: #94651d; font-size: 12px; }
.edit-profile { min-height: 40px; padding: 8px 14px; border: 1px solid #a65336; border-radius: 11px; background: transparent; color: #a65336; font: inherit; font-size: 13px; }
.account-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 26px; }
.stat-card { display: grid; justify-items: center; gap: 4px; padding: 14px 6px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); text-align: center; }
.stat-value { color: #94651d; font-size: 22px; font-weight: 700; }
.stat-label { color: var(--muted); font-size: 11px; line-height: 1.3; }
.account-section { margin-top: 24px; }
.account-section > h2 { margin: 0 0 12px; font-size: 18px; }
.account-details { margin: 0; padding: 0 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.account-details > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.account-details > div:last-child { border-bottom: 0; }
.account-details dt { color: var(--muted); }
.account-details dd { margin: 0; color: var(--text); text-align: right; }
.account-action { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 16px; min-height: 62px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); color: var(--text); text-align: left; font: inherit; }
.account-action + .account-action { margin-top: 9px; }
.account-action strong, .account-action small { display: block; }
.account-action strong { font-size: 14px; font-weight: 600; }
.account-action small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.account-action > span:last-child { color: #94651d; font-size: 20px; }
.logout-action > span:last-child { color: #a65336; }
.account-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
@media (min-width: 700px) {
 .profile-card { flex-wrap: nowrap; padding: 24px; }
 .account-stats { gap: 16px; margin-block: 22px 32px; }
 .stat-card { padding: 18px; }
 .stat-label { font-size: 13px; }
 .account-details { padding-inline: 20px; }
}
.account-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.account-stats .stat-card { width: 100%; min-width: 0; aspect-ratio: 1; height: auto; padding: 6px 4px; align-content: center; justify-self: stretch; }
.stat-card .stat-value { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-card .stat-value.stat-text { font-size: clamp(9px, 2.5vw, 13px); }
.stat-card .stat-label { max-width: 100%; font-size: clamp(8px, 2vw, 11px); line-height: 1.2; }
.auth-panel { max-width: 520px; padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.auth-panel[hidden], #account-content[hidden] { display: none; }
.auth-panel h2 { margin: 0; font-size: 21px; }
.auth-panel > p { margin: 7px 0 20px; color: var(--muted); font-size: 14px; }
.auth-form { display: grid; gap: 8px; }
.auth-form label { margin-top: 6px; color: var(--text); font-size: 14px; font-weight: 600; }
.auth-form input { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--background); color: var(--text); font: inherit; }
.auth-form > div[hidden] { display: none; }
.auth-message { margin: 4px 0; color: #a65336; font-size: 13px; }
.auth-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.auth-actions .create-button { min-height: 44px; padding: 8px 18px; border: 0; border-radius: 11px; font-size: 15px; }
.auth-mode-toggle { min-height: 44px; padding: 8px 4px; border: 0; background: transparent; color: var(--gold); font: inherit; }