.account-main {
  min-height: 69vh;
  padding: clamp(40px, 5vw, 76px) 0 clamp(64px, 8vw, 104px);
  background: #f6f8f9;
}
.account-content { width: min(920px, calc(100% - 64px)); margin-inline: auto; }
.account-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 26px; }
.account-heading > div { min-width: 0; }
.account-heading h1 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.2; letter-spacing: -.045em; font-weight: 650; }
#account-email { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; margin-top: 6px; }
.account-signout { flex-shrink: 0; padding: 8px 14px; border-radius: 8px; border: 1px solid #d8dfe4; background: #fff; font-size: 14px; }
.account-signout:hover { border-color: #adb9c0; }
.account-loading { color: var(--muted); }
.account-loading button { margin-top: 12px; }
#account-summary, .account-panel { border: 1px solid var(--line); border-radius: 16px; background: #fff; }
#account-summary { display: grid; grid-template-columns: 1fr 1fr; padding: 25px 0; }
.balance-tile { min-width: 0; padding-inline: clamp(20px, 3vw, 32px); }
.balance-tile + .balance-tile { border-inline-start: 1px solid var(--line); }
.balance-tile h2 { font-size: 14px; font-weight: 550; color: var(--muted); letter-spacing: 0; }
.balance-tile strong { display: block; margin-top: 10px; font-size: clamp(23px, 3.4vw, 34px); line-height: 1.28; font-weight: 620; letter-spacing: -.035em; overflow-wrap: anywhere; }
.balance-tile p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.balance-link { display: inline-block; margin-top: 12px; color: var(--accent); font-size: 14px; font-weight: 600; }
.balance-link:hover { text-decoration: underline; text-underline-offset: 3px; }
#points-total { color: #137775; font-variant-numeric: tabular-nums; }
.account-panel { padding: 24px clamp(20px, 3vw, 32px); margin-top: 18px; }
.account-panel h2 { margin-bottom: 16px; font-size: 19px; font-weight: 650; letter-spacing: -.02em; }
.redeem-entry { display: flex; gap: 10px; max-width: 540px; }
.redeem-entry input { min-width: 0; flex: 1; padding: 10px 13px; border: 1px solid #cdd7dc; border-radius: 8px; color: var(--ink); background: #fff; font-size: 16px; }
.redeem-entry input::placeholder { color: #7b8693; }
.redeem-entry button { flex-shrink: 0; min-height: 44px; color: #fff; background: #08777a; border-radius: 8px; padding: 9px 21px; font-weight: 600; }
.redeem-entry button:hover:enabled { background: #076669; }
#redeem-status:not(:empty) { margin-top: 12px; color: #16716e; font-size: 14px; }
#redeem-status[data-error="true"] { color: #a43830; }
.order-receipt { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 0 0 15px; padding: 12px 14px; border-radius: 8px; background: #edf6f5; color: #175b58; font-size: 14px; }
.order-receipt button { min-height: 34px; padding: 5px 10px; font-size: 13px; }
.order-state a { color: var(--accent); }
#history { color: var(--muted); font-size: 14px; }
.history-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 8px 18px; padding-block: 14px; border-top: 1px solid var(--line); }
.history-row:first-child { padding-top: 0; border: 0; }
.history-row:last-child { padding-bottom: 0; }
.history-row strong, .history-row span { overflow-wrap: anywhere; }
.history-row strong { color: var(--ink); }
.order-state { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.order-state button { min-height: 34px; padding: 5px 10px; font-size: 13px; }
@media (max-width: 600px) {
  .account-content { width: calc(100% - 32px); }
  .account-heading { gap: 12px; }
  .account-signout { padding-inline: 10px; }
  #account-summary { padding-block: 20px; }
  .balance-tile { padding-inline: 17px; }
  .history-row { grid-template-columns: minmax(0, 1fr) auto; }
  .order-state { max-width: 145px; }
  .redeem-entry button { padding-inline: 15px; }
}
