.account-page {
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 0%, #253721 0, var(--page) 29rem);
}
.account-header {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.account-header nav { gap: clamp(1rem, 4vw, 3rem); }
.account-main {
  width: min(1060px, calc(100% - 64px));
  padding-block: clamp(1.75rem, 6vw, 4rem) 4rem;
}
.account-signin { max-width: 480px; margin-inline: auto; }
.account-signin .account-panel { box-shadow: 0 14px 50px #0005; }
.account-glyph {
  display: grid;
  place-items: center;
  color: var(--accent);
  width: 52px;
  height: 52px;
  background: #283719;
  border: 1px solid #4b6738;
  border-radius: 13px;
  margin-bottom: 1.2rem;
}
.account-glyph .icon { width: 28px; height: 28px; }
.account-main h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  margin: 0;
}
.account-main h2 { font-size: 1.3rem; letter-spacing: -.025em; margin: 0; }
.account-main p { color: var(--muted); line-height: 1.45; margin: .6rem 0 0; }
.account-main .account-meta { font-size: .875rem; }
.account-panel {
  padding: clamp(1.1rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.account-signin .account-button { margin-top: 1.5rem; width: 100%; }
.account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .65rem .9rem;
  border: 1px solid #556b38;
  border-radius: 8px;
  background: #25301b;
  color: #e0f8b9;
  font-size: .9375rem;
  font-weight: 700;
  text-align: center;
}
.account-button:hover { background: #3b5028; }
.account-button.is-primary { background: var(--accent); border-color: var(--accent); color: #101608; }
.account-button.is-primary:hover { background: var(--accent-hover); }
.customer-layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1rem, 4vw, 2rem);
}
.customer-sidebar {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: .75rem;
}
.customer-identity { padding: .5rem .65rem .9rem; }
.customer-identity strong, .customer-identity span { display: block; overflow-wrap: anywhere; }
.customer-identity span { font-size: .875rem; color: var(--muted); margin-top: .3rem; }
.customer-nav { flex-direction: column; align-items: stretch; gap: .25rem; }
.customer-nav a, .customer-nav button {
  display: flex;
  align-items: center;
  font-size: .9375rem;
  font-weight: 700;
  text-align: left;
  padding: .5rem .65rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  min-height: 44px;
}
.customer-nav button { color: var(--muted); }
.customer-nav [aria-current="page"], .customer-nav a:hover, .customer-nav button:hover {
  background: #283719;
  color: var(--accent-hover);
}
.account-view { display: grid; gap: .9rem; }
.account-heading { padding-bottom: .35rem; }
.account-back {
  justify-self: start;
  color: var(--accent-hover);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: .25rem;
}
.account-back:hover { text-decoration: underline; }
.account-panel > .account-button { margin-top: .9rem; }
.account-orders, .account-items, .account-timeline { list-style: none; padding: 0; margin: 0; }
.account-orders { display: grid; gap: .7rem; }
.account-order-card { display: grid; gap: .35rem; padding: 1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--raised); }
#recent-order { margin-top: .8rem; }
.account-card-head, .account-card-actions, .account-item { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; }
.account-card-head h3 { font-size: 1.05rem; margin: 0; }
.account-card-actions { justify-content: flex-start; padding-top: .45rem; }
.account-status { display: inline-flex; align-items: center; gap: .4rem; max-width: 100%; color: #ddf5c6; font-size: .875rem; font-weight: 650; overflow-wrap: anywhere; }
.account-status::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--accent); flex: none; }
.account-card-meta, .account-item-meta { font-size: .875rem; }
.account-items { margin-top: .55rem; }
.account-item {
  flex-wrap: nowrap;
  padding-block: .75rem;
  border-bottom: 1px solid var(--line);
}
.account-item :first-child { min-width: 0; overflow-wrap: anywhere; }
.account-item span { flex: none; font-variant-numeric: tabular-nums; }
.account-facts { display: grid; gap: .65rem; margin: .95rem 0 0; }
.account-facts div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .2rem .8rem; }
.account-facts dt { color: var(--muted); font-size: .875rem; }
.account-facts dd { font-weight: 700; margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.order-totals div:last-child { border-top: 1px solid var(--line); padding-top: .7rem; }
.order-totals div:last-child dd { color: var(--accent-hover); }
.account-timeline { margin-top: .95rem; }
.account-event { position: relative; padding: 0 0 .9rem 1.25rem; margin-left: .35rem; border-left: 1px solid var(--line); }
.account-event:last-child { border-color: transparent; padding-bottom: 0; }
.account-event::before { content: ""; position: absolute; inset: .2rem auto auto -.365rem; width: .65rem; height: .65rem; border-radius: 50%; background: #6c8063; border: 1px solid var(--panel); }
.account-event:first-child::before { background: var(--accent); }
.account-event time { display: block; color: var(--muted); font-size: .875rem; margin-top: .2rem; }
.account-event p { margin-top: .2rem; }
@media (max-width: 700px) {
  .account-main { width: calc(100% - 32px); }
  .account-header { min-height: 64px; }
  .account-header nav { display: none; }
  .customer-layout { grid-template-columns: minmax(0, 1fr); }
  .customer-identity { display: none; }
  .customer-nav { flex-direction: row; flex-wrap: wrap; }
  .customer-nav a, .customer-nav button { justify-content: center; flex: 1 0 auto; }
}
