.account-header { min-height: var(--m9-topbar-height); padding: var(--m9-space-3) max(var(--m9-page-gutter), calc((100% - var(--m9-content-max, 1720px)) / 2)); width: 100%; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: var(--m9-space-3); background: var(--m9-surface); border-bottom: var(--m9-border-default); }
.brand-link { display: flex; align-items: center; min-height: var(--m9-control-min-height); }
.brand-link img { display: block; width: 122px; height: auto; }
.back-home { flex-shrink: 0; }
.account-main { min-height: calc(100svh - var(--m9-topbar-height)); display: grid; align-items: center; justify-items: center; padding: var(--m9-space-8) var(--m9-page-gutter); max-width: var(--m9-content-max, 1720px); margin: 0 auto; width: 100%; box-sizing: border-box; }
.account-card { width: 100%; max-width: 480px; min-width: 0; overflow-wrap: anywhere; }
.forgot-link { justify-self: center; }
.profile-summary { display: flex; align-items: center; gap: var(--m9-space-4); margin-bottom: var(--m9-space-6); }
.profile-avatar { display: grid; place-items: center; flex: none; width: var(--m9-space-16); height: var(--m9-space-16); border-radius: var(--m9-radius-pill); color: var(--m9-brand-navy); background: var(--m9-surface-accent); font: var(--m9-type-kpi); }
.profile-names { min-width: 0; }
.profile-names .m9-helper { margin: var(--m9-space-1) 0 var(--m9-space-2); }
.profile-links { margin-bottom: var(--m9-space-6); }
.profile-links a { display: flex; gap: var(--m9-space-3); align-items: center; padding: var(--m9-space-3) 0; min-height: var(--m9-space-12); border-bottom: var(--m9-border-default); color: var(--m9-text); text-decoration: none; }
.profile-links a:hover { background: var(--m9-surface-soft); }
.profile-links a > span { flex: 1; }
.logout-actions { display: grid; gap: var(--m9-space-3); }
#recover-panel > .m9-helper, #password-view > .m9-helper { margin: var(--m9-space-2) 0 var(--m9-space-5); }
.recovery-heading { display: grid; justify-items: center; gap: var(--m9-space-3); }
.recovery-code { font: var(--m9-type-ui); font-family: var(--m9-font-mono); overflow-wrap: anywhere; padding: var(--m9-space-4); margin: var(--m9-space-4) 0; background: var(--m9-surface-soft); border: var(--m9-border-default); border-radius: var(--m9-radius-md); user-select: all; }
.m9-code-input { font-family: var(--m9-font-mono); }
#recovery-view .m9-button { width: 100%; }
#copy-status { min-height: var(--m9-space-6); margin: var(--m9-space-2) 0 var(--m9-space-4); }
@media (max-width: 820px) { .account-main { align-items: start; padding-top: var(--m9-space-6); } }
@media (max-width: 560px) { .brand-link img { width: 115px; } }

.account-header-actions { display:flex;align-items:center;gap:var(--m9-space-3);min-width:0; }.account-header-user { font:var(--m9-type-ui);max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }.account-cart { text-decoration:none;min-width:44px; }.account-cart b { font:var(--m9-type-label); }.account-header .header-avatar { display:inline-grid;place-items:center;min-width:32px;height:32px;background:var(--m9-surface-accent);border-radius:var(--m9-radius-pill);margin-right:var(--m9-space-2); }
@media(max-width:820px){.account-header-user{display:inline-flex;font-size:0;max-width:44px;min-width:32px;align-items:center}.account-header-user:empty{display:none}.account-header-user .header-avatar{font:var(--m9-type-ui);font-weight:700;margin-right:0}.account-header-actions{gap:var(--m9-space-2)}}
@media(max-width:560px){.account-header .back-home{font-size:0;min-width:44px}.account-header .back-home .m9-icon{width:24px;height:24px}}
