.account-page { max-width: 760px; padding-bottom: var(--s8); }
.account-workspace { grid-template-columns: minmax(0, 1fr); margin-block: var(--s6) var(--s5); }
.account-page .tool-page-intro h1 { margin: 0; }
.account-page button { font-size: 14px; }
.account-login { display: grid; justify-items: start; gap: var(--s3); }
.account-login p, .account-profile p, .membership-summary p { margin: 0; }
.account-note { color: var(--muted); font-size: 13px; }
.account-profile, .account-identity, .account-billing-header {
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.account-profile, .account-billing-header { justify-content: space-between; }
.account-identity { min-width: 0; }
.account-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
}
.account-avatar .tool-icon { width: 22px; height: 22px; }
.account-profile #account-profile-title { font-size: 13px; color: var(--muted); margin-bottom: var(--s1); }
#account-email { font-weight: 650; overflow-wrap: anywhere; }
#account-sign-out { flex-shrink: 0; }
.account-billing { display: grid; gap: var(--s4); align-items: center; }
.account-billing-header { grid-column: 1 / -1; flex-wrap: wrap; }
.account-billing-header h2 { font-size: 20px; }
.membership-summary {
  display: grid;
  gap: var(--s1);
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.membership-summary[data-state="pending"] {
  padding: var(--s3) var(--s4);
  border-radius: var(--r-control);
  background: var(--accent-soft);
  color: var(--accent);
}
#membership-plan { font-weight: 700; color: var(--ink); }
.account-billing .account-note { margin: 0; }
.account-billing-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.account-billing-actions .tool-cta { justify-content: center; gap: var(--s2); }
.account-status {
  padding: var(--s3) var(--s4);
  margin: var(--s4) 0 0;
  border-radius: var(--r-control);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 14px;
}
.account-status[data-error] { background: var(--accent-soft); color: #863c24; }
@media (min-width: 641px) {
  .account-billing { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s6); }
  .account-billing-actions { justify-content: flex-end; }
}
@media (max-width: 480px) {
  .account-profile { align-items: start; flex-direction: column; }
  .account-billing-actions > :is(a, button), .account-login .primary { width: 100%; }
}
.account-orders { display: grid; gap: var(--s3); }
.account-orders .account-billing-header { margin: 0; }
.order-list { list-style: none; margin: 0; padding: 0; }
.order-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s3) 0;
  border-top: 1px solid var(--line);
}
.order-item:first-child { border-top: 0; padding-top: 0; }
.order-main { display: grid; gap: 2px; min-width: 0; }
.order-no { font: 650 14px/1.4 var(--mono); overflow-wrap: anywhere; }
.order-meta { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.order-status {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.order-status[data-status="pending"] { background: var(--accent-soft); color: var(--accent); }
.order-status[data-status="past_due"],
.order-status[data-status="on_hold"],
.order-status[data-status="failed"] { background: var(--accent-soft); color: var(--accent); }
.order-status[data-status="cancelled"],
.order-status[data-status="expired"],
.order-status[data-status="paused"],
.order-status[data-status="replaced"] {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}
@media (max-width: 480px) {
  .order-item { flex-direction: column; gap: var(--s1); }
}
