* {box-sizing:border-box}
body {margin:0;background:var(--ms-bg);color:var(--ms-text);font:500 1rem/1.5 Onest,system-ui,sans-serif}
body :is(button,input) {font:inherit;color:inherit}
.account-top,.account {width:min(calc(100% - clamp(32px,8vw,112px)),66rem);margin-inline:auto}
.account-top {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:78px}
.account-top img {display:block;width:96px;height:46px;object-fit:contain}
.account a,.account-top a {color:inherit;text-decoration:none}
.account-home,.account-logout,.account-reset,.account-catalog {
  display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 14px;
  border:0;border-radius:99px;background:var(--ms-panel);font-weight:650;cursor:pointer
}
.account {margin-top:clamp(22px,5vw,66px);margin-bottom:max(36px,env(safe-area-inset-bottom))}
.account-mast {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 18px;margin-bottom:clamp(20px,3.4vw,38px)}
.account h1,.account h2,.account p {margin:0;overflow-wrap:anywhere}
.account h1 {font:780 clamp(2.15rem,5.7vw,4.65rem)/1.04 Onest,system-ui,sans-serif;letter-spacing:-.055em}
.account-logout {background:transparent;color:var(--ms-muted);text-decoration:underline;text-underline-offset:.25em}
.account-grid {display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);align-items:start;gap:clamp(16px,2.4vw,30px)}
.profile-card,.account-basket,.account-card {border-radius:var(--ms-card-radius)}
.profile-card {min-width:0;display:grid;gap:clamp(20px,2.4vw,30px);padding:clamp(18px,3vw,36px);background:var(--ms-panel)}
.profile-identity {display:flex;align-items:center;gap:clamp(14px,2.1vw,24px);min-width:0}
.profile-identity-copy {min-width:0}
.account .account-name {font:730 clamp(1.28rem,2.5vw,2.1rem)/1.16 Onest,system-ui,sans-serif;letter-spacing:-.035em}
.profile-identity-copy p,.account-card p {color:var(--ms-muted)}
.profile-identity-copy p {font-size:.93rem;margin-top:4px}
.avatar-control {position:relative;flex:none;display:grid;place-items:center;width:clamp(74px,7.5vw,94px);aspect-ratio:1;
  border-radius:50%;background:#d8e6dc;color:#274a37;cursor:pointer}
.avatar-control:focus-within {outline:3px solid var(--ms-focus);outline-offset:3px}
.avatar-initials {font:720 clamp(1.65rem,3vw,2.4rem)/1 Onest,system-ui,sans-serif;letter-spacing:-.05em}
.avatar-photo {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%}
.avatar-camera {position:absolute;right:-2px;bottom:0;display:grid;place-items:center;width:31px;height:31px;border:2px solid var(--ms-panel);
  border-radius:50%;background:var(--ms-gold);color:var(--ms-graphite);pointer-events:none}
.avatar-control input {position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.avatar-remove {display:inline-flex;align-items:center;min-height:36px;border:0;padding:2px 0;background:transparent;font-size:.88rem;color:var(--ms-muted);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.profile-fields {display:grid;gap:7px}
.profile-fields label {font-size:.95rem;font-weight:680}
.profile-fields label small {font-size:.8rem;color:var(--ms-muted);font-weight:500;margin-left:4px}
.profile-fields label:not(:first-child) {margin-top:10px}
.profile-fields input {display:block;width:100%;min-width:0;min-height:50px;padding:11px 14px;border:1px solid #dbe0db;border-radius:12px;background:var(--ms-bg);font-size:16px}
.profile-actions {display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.account-save,.account-action {display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:46px;padding:10px 20px;border:0;border-radius:99px;
  background:var(--ms-gold);color:var(--ms-graphite);font-weight:680;cursor:pointer}
.account-save:disabled {background:#e1e5df;color:#5b635d;cursor:default}
.account-reset {background:transparent}
.profile-side {display:grid;gap:10px}
.account-basket {position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(72px,40%);align-items:center;gap:8px;min-height:176px;
  overflow:hidden;padding:clamp(18px,2.7vw,30px);background:var(--ms-oat)}
.basket-copy {align-self:start;display:grid;gap:4px}
.basket-copy strong {font:730 clamp(1.4rem,3vw,2.15rem)/1.08 Onest,system-ui,sans-serif;letter-spacing:-.04em}
.basket-copy span {color:#535a52;font-size:.92rem}
.account-basket img {display:block;width:100%;max-width:154px;height:auto;justify-self:end}
.basket-arrow {position:absolute;left:clamp(18px,2.7vw,30px);bottom:clamp(16px,2vw,22px);width:38px;height:38px;
  border-radius:50%;display:grid;place-items:center;background:var(--ms-graphite);color:#fff;font-size:21px;line-height:1}
.account-catalog {width:fit-content;padding-inline:4px;background:transparent}
.account-guest {max-width:36rem}
.account-card {padding:clamp(22px,4vw,40px);background:var(--ms-panel)}
.account-card h1 {font-size:clamp(2.1rem,4.3vw,3.2rem)}
.account-card p {margin:14px 0}
.account-action {justify-content:space-between;width:100%;margin-top:8px;border-radius:14px;background:var(--ms-bg);text-align:start}
.account-action.accent {background:var(--ms-gold)}
.account p.account-status {margin:0;color:var(--ms-muted);line-height:1.42;font-size:.92rem}
.account-card p.account-status:not(:empty) {margin-top:12px}
.account [hidden],.account [role=status]:empty {display:none}
:focus-visible {outline:3px solid var(--ms-focus);outline-offset:3px}
@media (hover:hover) {
  .account-home:hover,.account-reset:hover,.account-action:hover,.account-catalog:hover {background:#e8ece7}
  .account-save:enabled:hover,.account-action.accent:hover {background:var(--ms-gold-hover)}
}
@media (prefers-reduced-motion:no-preference) and (hover:hover) {
  .account-basket img,.basket-arrow {transition:transform .2s ease-out}
  .account-basket:hover img {transform:translateY(-3px)}
  .account-basket:hover .basket-arrow {transform:translateX(3px)}
}
@media(max-width:700px){
  .account-grid {grid-template-columns:minmax(0,1fr)}
  .account-top {min-height:64px}
  .account-top img {width:82px;height:38px}
  .account-basket {min-height:140px;grid-template-columns:minmax(0,1fr) 105px}
  .account-logout {padding-inline:3px}
}
