/*
 * Customer storefront refresh.
 * Structure follows the restrained product-first patterns used by the
 * MIT-licensed Vercel Commerce and Spree Storefront projects. No source
 * component or brand asset is copied; this layer adapts those patterns to
 * the existing FastAPI/Jinja application.
 */

@font-face {
  font-family: "Manrope";
  src: url("/static/fonts/Manrope-Variable.ef9404cbc22b.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans SC";
  src: url("/static/fonts/NotoSansSC-UI.949fdaba7ba8.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

.customer-body {
  background: #f7f7f5;
  color: #171717;
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

.customer-body .station-brand b,
.customer-body .commerce-hero .hero-copy h1,
.customer-body .redeem-main .section-title.compact h2,
.customer-body .tower-head h2,
.customer-body .account-orders .section-title h2 {
  font-family: "Manrope", "Noto Sans SC", sans-serif;
}

.customer-body .supply-station-mark {
  overflow: hidden;
}

.customer-body .supply-station-mark i:last-child {
  background: #2155d9;
}

/* Purchase storefront */
.customer-body .purchase-hero .hero-copy { max-width: 720px; }
.customer-body .store-catalog,
.customer-body .purchase-library { scroll-margin-top: 110px; }
.customer-body .store-catalog .supply-product { display:flex; min-height:360px; flex-direction:column; }
.customer-body .stock-line { display:flex; align-items:center; gap:8px; margin-top:auto; padding:16px 0; border-top:1px solid var(--station-line,#d8e1ea); color:#19344f; }
.customer-body .stock-line small { margin-left:auto; color:#60758b; }
.customer-body .stock-dot { width:8px; height:8px; border-radius:50%; background:#168866; box-shadow:0 0 0 4px rgba(22,136,102,.12); }
.customer-body .stock-dot.empty { background:#899aab; box-shadow:none; }
.customer-body .plan-card-action { border:0; cursor:pointer; font:inherit; }
.customer-body .plan-card-action:disabled { cursor:not-allowed; background:#e8edf2; color:#708398; box-shadow:none; }
.customer-body .store-notice { display:flex; align-items:center; gap:12px; margin-top:18px; padding:15px 18px; border-radius:12px; background:#eef4f9; color:#18344f; }
.customer-body .store-notice span { color:#5e7388; }
.customer-body .purchase-library { max-width:1480px; margin:28px auto 0; padding:34px 38px; border-radius:16px; background:#fff; }
.customer-body .purchase-list { display:grid; gap:14px; margin-top:24px; }
.customer-body .purchase-record { overflow:hidden; border:1px solid #d7e1ea; border-radius:14px; background:#fff; }
.customer-body .purchase-record > header { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; padding:20px 22px; background:#f6f8fa; }
.customer-body .purchase-record > header div { display:grid; gap:5px; }
.customer-body .purchase-record > header div:last-child { justify-items:end; }
.customer-body .purchase-record > header span { font-weight:750; color:#0d2946; }
.customer-body .purchase-record > header strong { font-size:12px; color:#64788d; font-variant-numeric:tabular-nums; }
.customer-body .purchase-record > header small { color:#667b90; }
.customer-body .purchase-status { display:inline-flex; padding:5px 9px; border-radius:999px; background:#e5f6ef; color:#11694e; font-size:13px; }
.customer-body .purchase-record.pending .purchase-status { background:#fff0d8; color:#8a5700; }
.customer-body .purchase-record.expired .purchase-status { background:#edf0f3; color:#596b7d; }
.customer-body .purchase-record-meta { display:flex; gap:24px; padding:14px 22px; color:#52697f; border-bottom:1px solid #e2e8ee; font-variant-numeric:tabular-nums; }
.customer-body .delivered-codes { display:grid; gap:10px; padding:18px 22px 22px; }
.customer-body .delivered-codes > div { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:14px; padding:13px 14px; border-radius:10px; background:#102946; color:#f7fbff; }
.customer-body .delivered-codes code { overflow-wrap:anywhere; font:700 15px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.02em; }
.customer-body .delivered-codes button { min-height:38px; padding:0 13px; border:1px solid rgba(255,255,255,.28); border-radius:8px; background:transparent; color:#fff; font-weight:700; cursor:pointer; }
.customer-body .code-actions { display:flex; align-items:center; gap:8px; }
.customer-body .code-actions a { display:inline-flex; min-height:38px; align-items:center; padding:0 13px; border-radius:8px; background:#fff; color:#102946; font-weight:750; text-decoration:none; white-space:nowrap; }
.customer-body .shop-hero { margin-bottom:0; }
.customer-body.shop-body .store-catalog { margin-top:28px; }
.customer-body .purchase-progress-note { margin:0; padding:18px 22px 22px; color:#5d7287; }
.customer-body .purchase-delivery-warning { color:#a33a3a; background:#fff5f5; border-top:1px solid #f2d7d7; }
.customer-body .purchase-dialog { width:min(520px,calc(100vw - 28px)); padding:0; border:0; border-radius:16px; color:#102b47; box-shadow:0 24px 70px rgba(15,35,58,.24); }
.customer-body .purchase-dialog::backdrop { background:rgba(10,28,48,.48); }
.customer-body .purchase-shell { display:grid; gap:20px; padding:26px; }
.customer-body .purchase-dialog-head { display:flex; justify-content:space-between; gap:18px; }
.customer-body .purchase-dialog-head h2 { margin:0; font-size:25px; letter-spacing:-.02em; }
.customer-body .purchase-dialog-head p { margin:6px 0 0; color:#60758a; }
.customer-body .purchase-product-summary { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:13px; padding:16px; border-radius:12px; background:#f1f5f8; }
.customer-body .purchase-product-summary > span { padding:7px 8px; border-radius:7px; background:#102b47; color:#fff; font-size:12px; font-weight:800; letter-spacing:.04em; }
.customer-body .purchase-product-summary > div { display:grid; gap:3px; }
.customer-body .purchase-product-summary small { color:#64798e; }
.customer-body .purchase-product-summary > b { font-size:18px; font-variant-numeric:tabular-nums; }
.customer-body .payment-methods { display:grid; grid-template-columns:1fr; gap:10px; margin:0; padding:0; border:0; }
.customer-body .payment-methods legend { grid-column:1/-1; margin-bottom:8px; font-weight:750; }
.customer-body .payment-methods label { position:relative; cursor:pointer; }
.customer-body .payment-methods input { position:absolute; opacity:0; }
.customer-body .payment-methods span { display:flex; min-height:52px; align-items:center; justify-content:flex-start; gap:9px; padding:0 14px; border:1px solid #cdd9e4; border-radius:10px; font-weight:750; }
.customer-body .payment-methods img { width:23px; height:23px; flex:0 0 23px; }
.customer-body .payment-methods b { font:inherit; }
.customer-body .payment-methods small { margin-left:auto; color:#7b8490; font-size:10px; font-weight:650; }
.customer-body .payment-methods input:checked + span { border-color:#1264d8; background:#edf5ff; color:#0758c3; box-shadow:inset 0 0 0 1px #1264d8; }
.customer-body .payment-methods input:focus-visible + span { outline:3px solid rgba(18,100,216,.24); outline-offset:2px; }
.customer-body .payment-methods label.is-disabled { cursor:not-allowed; }
.customer-body .payment-methods input:disabled + span { border-color:#dce1e7; background:#f1f3f5; color:#8b929c; box-shadow:none; }
.customer-body .payment-methods input:disabled + span img { filter:grayscale(1); opacity:.42; }
.customer-body .purchase-total { display:flex; align-items:end; justify-content:space-between; padding-top:18px; border-top:1px solid #dce4ec; }
.customer-body .purchase-total span { color:#5e7286; }
.customer-body .purchase-total strong { font-size:30px; letter-spacing:-.025em; font-variant-numeric:tabular-nums; }

@media (max-width: 760px) {
  .customer-body .purchase-library { padding:24px 18px; border-radius:12px; }
  .customer-body .store-notice { align-items:flex-start; flex-direction:column; }
  .customer-body .purchase-record > header { gap:12px; padding:17px; }
  .customer-body .purchase-record-meta { gap:14px; padding:13px 17px; font-size:13px; }
  .customer-body .delivered-codes { padding:15px 17px 18px; }
  .customer-body .delivered-codes > div { grid-template-columns:1fr; }
  .customer-body .code-actions { align-items:stretch; flex-direction:column; }
  .customer-body .code-actions :is(button,a) { justify-content:center; }
  .customer-body .purchase-shell { padding:21px; }
  .customer-body .purchase-product-summary { grid-template-columns:auto 1fr; }
  .customer-body .purchase-product-summary > b { grid-column:2; }
}

.customer-body ::selection {
  color: #ffffff;
  background: #005bd7;
}

.customer-body :is(#shop, #products, #purchases, #redeem, #accountOrders) {
  scroll-margin-top: 84px;
}

.store-skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 80;
  padding: 10px 14px;
  border-radius: 8px;
  color: #ffffff;
  background: #161a21;
  font-size: 12px;
  font-weight: 750;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.store-skip-link:focus {
  transform: translateY(0);
}

/* Header account entry: keep service health quiet and make the buyer action obvious. */
.customer-body .buyer-actions {
  gap: 14px;
}

.customer-body .service-signal {
  min-height: 36px;
  color: #737373;
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
}

.customer-body .service-signal i {
  width: 9px;
  height: 9px;
  box-shadow: 0 0 0 5px rgba(24, 167, 121, 0.1);
}

.customer-body .buyer-actions #loginLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  max-width: 220px;
  min-height: 42px;
  padding: 0 18px;
  overflow: hidden;
  border: 1px solid #161a21;
  border-radius: 8px;
  background: #161a21;
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(22, 26, 33, 0.16);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background-color 180ms ease, border-color 180ms ease,
    box-shadow 180ms ease, transform 180ms ease;
}

.customer-body .buyer-actions #loginLink:hover {
  border-color: #005bd7;
  background: #005bd7;
  box-shadow: 0 7px 17px rgba(0, 91, 215, 0.2);
  transform: translateY(-1px);
}

.customer-body .buyer-actions #loginLink:active {
  box-shadow: 0 3px 9px rgba(22, 26, 33, 0.14);
  transform: translateY(0);
}

.customer-body .buyer-actions #loginLink:focus-visible {
  outline: 3px solid rgba(0, 91, 215, 0.25);
  outline-offset: 3px;
}

.customer-body .buyer-actions #logoutButton {
  padding-inline: 2px;
  color: #737373;
  font-size: 11px;
}

.customer-body .station-footer .station-mark.footer-product-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

.customer-body .station-footer .footer-product-mark img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.customer-body .commerce-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
  min-height: 0;
  max-width: 1440px;
  margin: 0 auto;
  padding: 72px clamp(24px, 6vw, 88px) 64px;
  overflow: visible;
  color: #171717;
  background: transparent;
  border: 0;
}

.customer-body .commerce-hero::after {
  display: none;
}

.customer-body .commerce-hero .hero-copy {
  max-width: 760px;
}

.customer-body .commerce-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #d4d4d4;
  border-radius: 999px;
  color: #525252;
  background: #fff;
  font: 650 11px/1 system-ui, "Microsoft YaHei", sans-serif;
  letter-spacing: 0.08em;
}

.customer-body .commerce-hero .hero-copy h1 {
  max-width: none;
  margin: 22px 0 0;
  color: #171717;
  font: 720 clamp(44px, 5vw, 68px)/1.04 "Manrope", "Noto Sans SC", sans-serif;
  letter-spacing: -0.035em;
}

.customer-body .commerce-hero .hero-copy > p {
  max-width: 650px;
  margin: 22px 0 0;
  color: #5b5b5b;
  font-size: 17px;
  line-height: 1.72;
}

.customer-body .commerce-hero .hero-copy > p strong {
  color: #176545;
  font-weight: 700;
}

.customer-body .commerce-hero .hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.customer-body .commerce-hero .hero-actions .signal-button,
.customer-body .commerce-hero .hero-actions .line-button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
  box-shadow: none;
}

.customer-body .commerce-hero .hero-actions .signal-button {
  border: 1px solid #2155d9;
  color: #fff;
  background: #2155d9;
}

.customer-body .commerce-hero .hero-actions .signal-button:hover {
  border-color: #1846bd;
  background: #1846bd;
  transform: none;
}

.customer-body .commerce-hero .hero-actions .line-button {
  border: 1px solid #d1d1d1;
  color: #262626;
  background: #fff;
}

.customer-body .commerce-hero .hero-actions .line-button:hover {
  border-color: #8a8a8a;
  color: #171717;
  background: #fff;
}

.commerce-assurances {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dededb;
  border-radius: 14px;
  background: #fff;
}

.commerce-assurances > div {
  position: relative;
  padding: 19px 20px 18px 52px;
}

.commerce-assurances > div + div {
  border-top: 1px solid #e8e8e5;
}

.commerce-assurances > div::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #005bd7;
}

.commerce-assurances > div::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 27px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.customer-body .mobile-route-link { display:none; min-height:44px; align-items:center; color:#155dde; font-size:12px; font-weight:750; white-space:nowrap; }

@media (max-width:1100px) {
  .customer-body .mobile-route-link { display:inline-flex; }
}

.commerce-assurances dt {
  color: #1f1f1f;
  font-size: 13px;
  font-weight: 680;
}

.commerce-assurances dd {
  margin: 5px 0 0;
  color: #737373;
  font-size: 11px;
  line-height: 1.65;
}

.customer-body .supply-shop {
  max-width: 1440px;
  margin: 0 auto;
  padding: 46px clamp(24px, 6vw, 88px) 52px;
  border-top: 1px solid #e1e1de;
}

.customer-body .supply-shop .section-title {
  align-items: end;
  margin-bottom: 24px;
}

.customer-body .supply-shop .section-title h2 {
  color: #171717;
  font: 700 clamp(28px, 3vw, 38px)/1.15 system-ui, "Microsoft YaHei", sans-serif;
  letter-spacing: -0.025em;
}

.customer-body .supply-shop .section-title > p {
  max-width: 470px;
  color: #666;
  font-size: 12px;
  line-height: 1.75;
}

.customer-body .supply-shop .product-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid #dededb;
  border-radius: 16px;
  background: #fff;
}

.customer-body .supply-shop .supply-product,
.customer-body .supply-shop .supply-product.featured {
  min-width: 0;
  min-height: 222px;
  padding: 25px 26px 22px;
  border: 0;
  border-right: 1px solid #e5e5e2;
  border-radius: 0;
  color: #171717;
  background: #fff;
  box-shadow: none;
  transition: background-color 180ms ease;
}

.customer-body .supply-shop .supply-product:last-child {
  border-right: 0;
}

.customer-body .supply-shop .supply-product:hover,
.customer-body .supply-shop .supply-product.featured:hover {
  background: #fafafa;
}

.customer-body .supply-shop .supply-product.selected,
.customer-body .supply-shop .supply-product.selected:hover {
  position: relative;
  z-index: 1;
  background: #f3f7ff;
  box-shadow: inset 0 3px 0 #005bd7;
}

.plan-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.plan-card-head > span {
  color: #666;
  font-size: 10px;
  font-weight: 650;
}

.plan-card-head > strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 7px;
  color: #005bd7;
  background: #edf5ff;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.customer-body .supply-shop .plan-card-copy h3 {
  margin: 23px 0 7px;
  color: #171717;
  font: 700 clamp(30px, 2.5vw, 38px)/1.1 system-ui, "Microsoft YaHei", sans-serif;
  letter-spacing: -0.03em;
}

.customer-body .supply-shop .plan-card-copy p {
  margin: 0;
  color: #737373;
  font-size: 11px;
  line-height: 1.7;
}

.plan-card-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 19px;
  border-top: 1px solid #e8e8e5;
}

.customer-body .supply-shop .product-price {
  min-height: 36px;
  margin: 0;
}

.customer-body .supply-shop .product-price strong {
  color: #171717;
  font-size: 25px;
}

.redemption-only {
  color: #737373;
  font-size: 11px;
}

.plan-card-action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid #d5d5d2;
  border-radius: 8px;
  color: #005bd7;
  background: #fff;
  font-size: 11px;
  font-weight: 680;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.plan-card-action:hover {
  border-color: #005bd7;
  background: #f3f7ff;
}

.supply-product.selected .plan-card-action {
  border-color: #005bd7;
  color: #ffffff;
  background: #005bd7;
}

.customer-body :is(.plan-card-action, .signal-button, .line-button, .text-action, .order-empty-primary, .order-empty-secondary):focus-visible {
  outline: 3px solid rgba(0, 91, 215, 0.24);
  outline-offset: 3px;
}

/* One-page recharge checkout */
.customer-body .redeem-station {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.43fr);
  gap: 16px;
  align-items: start;
  max-width: 1440px;
  margin: 52px auto 76px;
  padding: 0 clamp(24px, 6vw, 88px);
}

.customer-body .redeem-main {
  padding: 0 30px 8px;
  border: 1px solid #dededb;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}

.customer-body .redeem-main .section-title.compact {
  display: flex;
  min-height: 98px;
  align-items: center;
  margin: 0;
  padding: 24px 0;
  border-bottom: 1px solid #e5e5e2;
  box-shadow: none;
}

.customer-body .redeem-main .section-title.compact h2 {
  color: #171717;
  font: 700 clamp(25px, 2.4vw, 32px)/1.12 system-ui, "Microsoft YaHei", sans-serif;
  letter-spacing: -0.025em;
}

.customer-body .redeem-main .section-title.compact p {
  margin: 7px 0 0;
  color: #737373;
  font-size: 11px;
  line-height: 1.6;
}

.customer-body .redeem-main .section-title.compact > strong {
  flex: none;
  min-width: 72px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #005bd7;
  background: #edf5ff;
  font-size: 10px;
  text-align: center;
}

.checkout-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 18px 0 2px;
  list-style: none;
}

.checkout-path li {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 2px 0;
  border-top: 2px solid #dededb;
  color: #737373;
  transition: border-color 180ms ease, color 180ms ease;
}

.checkout-path li span {
  color: inherit;
  font-size: 11px;
  font-weight: 750;
}

.checkout-path li small {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-path li.done {
  border-color: #171717;
  color: #3f4650;
}

.checkout-path li.current {
  border-color: #005bd7;
  color: #005bd7;
}

.customer-body .manifest-segment {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid #e8e8e5;
  opacity: 1;
}

.customer-body .manifest-segment[hidden] {
  display: none;
}

.customer-body .manifest-segment.active:not([hidden]) {
  animation: manifest-reveal 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.customer-body .manifest-segment:not(.active) .segment-code {
  border-style: dashed;
}

.customer-body .manifest-segment:not(.active) .segment-body > :not(h3) {
  color: #7b7b7b;
}

.customer-body .manifest-segment:last-child {
  border-bottom: 0;
}

.customer-body .segment-code {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #d7d7d3;
  border-radius: 50%;
  color: #737373;
  background: #fff;
  font: 700 11px/1 system-ui, sans-serif;
}

.customer-body .manifest-segment.active .segment-code {
  border-color: #171717;
  color: #fff;
  background: #171717;
}

.customer-body .segment-body h3 {
  margin: 4px 0 4px;
  color: #202020;
  font-size: 16px;
  line-height: 1.35;
}

.customer-body .segment-body > p {
  max-width: 68ch;
  margin: 0;
  color: #737373;
  font-size: 11px;
  line-height: 1.7;
}

.customer-body .redeem-main .field {
  gap: 7px;
  margin-top: 16px;
}

.customer-body .redeem-main input,
.customer-body .redeem-main textarea {
  border-color: #d4d4d0;
  border-radius: 8px;
  background: #fff;
}

.customer-body .redeem-main input {
  min-height: 48px;
}

.customer-body .redeem-main textarea {
  min-height: 138px;
  max-height: 240px;
}

.customer-body .redeem-main input:focus,
.customer-body .redeem-main textarea:focus {
  border-color: #005bd7;
  box-shadow: 0 0 0 3px rgba(0, 91, 215, 0.1);
}

.customer-body .redeem-main :is(input, textarea)::placeholder,
.customer-auth-dialog input::placeholder {
  color: #737373;
  opacity: 1;
}

.customer-body .redeem-main .detected-supply {
  position: relative;
  grid-template-columns:auto minmax(0,1fr) 28px;
  margin-top: 12px;
  padding: 12px 13px;
  border-radius: 8px;
  background: #f3f4f4;
}

.customer-body .redeem-main .detected-supply::after {
  content: "";
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  justify-self: end;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border-radius: 50%;
}

.customer-body .redeem-main .detected-supply.pending::after {
  border: 2px solid #c5d5f5;
  border-top-color: #2155d9;
  animation: detected-plan-spin .75s linear infinite;
}

.customer-body .redeem-main .detected-supply.confirmed::after {
  content: "✓";
  display: grid;
  place-items: center;
  background: #19825f;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

@keyframes detected-plan-spin { to { transform:rotate(360deg); } }

.customer-body .redeem-main .detected-supply > span,
.customer-body .redeem-main .inline-state.muted {
  color: #526477;
}

.customer-body .redeem-main .inline-actions {
  gap: 8px;
  margin-top: 12px;
}

.customer-body .redeem-main .signal-button,
.customer-body .redeem-main .line-button {
  min-height: 44px;
  border-radius: 8px;
  box-shadow: none;
}

.customer-body .redeem-main .signal-button {
  color: #fff;
  background: #2155d9;
}

.customer-body .redeem-main .signal-button:hover {
  background: #1846bd;
  transform: none;
  box-shadow: none;
}

.customer-body .redeem-main .signal-button:disabled {
  color: #787878;
  background: #e5e5e2;
  opacity: 1;
}

.customer-body .redeem-main .line-button {
  border-color: #d4d4d0;
  color: #262626;
  background: #fff;
}

.customer-body .redeem-main .line-button:hover {
  border-color: #8b8b87;
  color: #171717;
  transform: none;
}

.customer-body .redeem-main .signal-button.wide {
  min-height: 48px;
  margin-top: 0;
}

.customer-body .session-ownership-note {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid #d8e3f2;
  border-radius: 9px;
  color: #2f4a69;
  background: #f3f7fc;
}

.customer-body .session-ownership-note strong,
.customer-body .configuration-block strong {
  font-size: 12px;
}

.customer-body .session-ownership-note span,
.customer-body .configuration-block span {
  font-size: 12px;
  line-height: 1.65;
}

.customer-body .session-guide {
  counter-reset: session-step;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.customer-body .session-guide li {
  counter-increment: session-step;
  display: grid;
  grid-template-columns: 24px minmax(260px, 360px) max-content minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #ecece8;
  color: #252a31;
  font-size: 12px;
}

.customer-body .session-guide li::before {
  content: counter(session-step) ".";
  align-self: start;
  color: #252a31;
  font-weight: 700;
  line-height: 1.5;
}

.customer-body .session-guide li:last-child {
  border-bottom: 0;
}

.customer-body .session-guide span {
  font-weight: 700;
}

.customer-body .session-guide-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.customer-body .session-guide-action {
  flex: 0 0 auto;
  min-height: 38px;
  justify-self: start;
  padding: 8px 12px;
  color: #252a31;
  font-size: 11px;
  font-weight: 700;
}

.customer-body .session-guide small {
  display: block;
  margin: 0;
  color: #676d76;
  font-size: 12px;
  line-height: 1.6;
}

.customer-body .session-guide code,
.customer-body .session-example code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.customer-body .configuration-block {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid #e0d3b8;
  border-radius: 9px;
  color: #704c12;
  background: #fff9ed;
}

.customer-body .step-navigation {
  align-items: stretch;
}

.customer-body .submission-actions {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr);
}

.customer-body .session-example {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 8px;
  color: #5d646d;
  background: #f3f4f4;
  font-size: 11px;
}

.customer-body .session-example code {
  overflow-wrap: anywhere;
  color: #303640;
  font-size: 12px;
}

.customer-body .session-state {
  width: 100%;
  margin-top: 10px;
  font-size: 12px;
}

@keyframes manifest-reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.customer-body .order-tower {
  position: sticky;
  top: 84px;
  display: flex;
  min-height: 510px;
  flex-direction: column;
  padding: 25px;
  border-radius: 16px;
  color: #fff;
  background: #171b22;
  box-shadow: none;
}

.customer-body .tower-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid #343a45;
}

.customer-body .tower-head h2 {
  color: #fff;
  font: 700 22px/1.2 system-ui, "Microsoft YaHei", sans-serif;
  letter-spacing: -0.02em;
}

.customer-body .tower-head i {
  position: static;
  padding: 5px 8px;
  border: 1px solid #4d668a;
  border-radius: 7px;
  color: #9ec1ff;
  background: transparent;
}

.customer-body .tower-empty {
  display: flex;
  min-height: 320px;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 38px 0 28px;
  text-align: center;
}

.customer-body .circular-scanner {
  width: 124px;
  height: 124px;
  border-color: #58759a;
  box-shadow: 0 0 0 23px rgba(95, 125, 163, 0.055), 0 0 0 46px rgba(95, 125, 163, 0.025);
}

.customer-body .circular-scanner span {
  border-color: #70a8ff;
  background: #171b22;
  box-shadow: 0 0 0 6px rgba(70, 136, 255, 0.12);
}

.customer-body .tower-empty b {
  margin-top: 70px;
  color: #fff;
  font-size: 14px;
}

.customer-body .tower-empty > p {
  max-width: 34ch;
  margin: 8px auto 0;
  color: #a6b0bf;
  font-size: 10px;
  line-height: 1.7;
}

.customer-body .tower-help {
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid #343a45;
}

.customer-body .tower-help b {
  color: #fff;
  font-size: 11px;
}

.customer-body .tower-help p {
  margin: 5px 0 0;
  color: #a6b0bf;
  font-size: 12px;
  line-height: 1.7;
}

.customer-body .footer-support-copy {
  display: grid;
  min-width: 210px;
  min-height: 48px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1px 14px;
  padding: 8px 12px;
  border: 1px solid #5d6674;
  border-radius: 10px;
  color: #ffffff;
  background: transparent;
  text-align: left;
}

.customer-body .footer-support-copy > span,
.customer-body .footer-support-copy > strong {
  grid-column: 1;
}

.customer-body .footer-support-copy > span,
.customer-body .footer-support-copy > small {
  color: #9da3ad;
  font-size: 10px;
}

.customer-body .footer-support-copy > small {
  grid-column: 2;
  grid-row: 1 / 3;
}

.customer-body .footer-support-copy:is(:hover, :focus-visible),
.customer-body .footer-support-copy.copied {
  border-color: #7aa7ff;
  background: rgba(255, 255, 255, 0.08);
}

.customer-body .station-footer .station-brand small {
  color: #9299a4;
}

.customer-body .timeline li.current span {
  background: #4b8cff;
  box-shadow: 0 0 0 4px rgba(75, 140, 255, 0.14);
}

.customer-body .result-box strong,
.customer-body .result-box span {
  display: block;
}

.customer-body .result-box span {
  margin-top: 5px;
  line-height: 1.65;
}

.customer-body .result-box button {
  min-height: 40px;
  margin-top: 12px;
  padding: 0 13px;
  border: 1px solid currentColor;
  border-radius: 7px;
  color: inherit;
  background: transparent;
  font-weight: 700;
}

.customer-body .result-box.support {
  border: 1px solid var(--amber);
  background: #233957;
  color: #c3d0df;
}

.customer-body .support-wechat-copy {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 14px;
  text-align: left;
}

.customer-body .support-wechat-copy > span {
  grid-column: 1;
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  opacity: 0.78;
}

.customer-body .support-wechat-copy > b {
  grid-column: 1;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.customer-body .support-wechat-copy > small {
  grid-column: 2;
  grid-row: 1 / 3;
  color: inherit;
  font-size: 10px;
}

.customer-body .support-wechat-copy:is(:hover, :focus-visible),
.customer-body .support-wechat-copy.copied {
  background: rgba(255, 255, 255, 0.08);
}

.customer-body .order-support-copy {
  display: grid;
  grid-column: 1 / -1;
  min-height: 48px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1px 14px;
  padding: 8px 12px;
  border: 1px solid var(--amber);
  border-radius: 10px;
  color: #8c3c16;
  background: #fff4ed;
  text-align: left;
}

.customer-body .order-support-copy > span,
.customer-body .order-support-copy > strong {
  grid-column: 1;
}

.customer-body .order-support-copy > span,
.customer-body .order-support-copy > small {
  font-size: 10px;
}

.customer-body .order-support-copy > small {
  grid-column: 2;
  grid-row: 1 / 3;
}

.customer-body .order-support-copy:is(:hover, :focus-visible),
.customer-body .order-support-copy.copied {
  border-color: var(--orange-2);
  background: #fff0d8;
}

@media (max-width: 960px) {
  .customer-body .commerce-hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 54px;
  }

  .commerce-assurances {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .commerce-assurances > div {
    padding: 50px 18px 18px;
  }

  .commerce-assurances > div + div {
    border-top: 0;
    border-left: 1px solid #e8e8e5;
  }

  .commerce-assurances > div::before {
    top: 18px;
    left: 18px;
  }

  .customer-body .redeem-station {
    grid-template-columns: 1fr;
  }

  .customer-body .order-tower {
    position: static;
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .customer-body .footer-support-copy {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .customer-body .commerce-hero {
    gap: 28px;
    padding: 36px 18px 38px;
  }

  .customer-body .commerce-hero .hero-copy h1 {
    margin-top: 18px;
    font-size: 42px;
    letter-spacing: -0.04em;
  }

  .customer-body .commerce-hero .hero-copy > p {
    margin-top: 17px;
    font-size: 15px;
    line-height: 1.7;
  }

  .customer-body .commerce-hero .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 22px;
  }

  .customer-body .commerce-hero .hero-actions .signal-button,
  .customer-body .commerce-hero .hero-actions .line-button {
    justify-content: center;
    padding-inline: 12px;
    font-size: 12px;
  }

  .commerce-assurances {
    display: block;
  }

  .commerce-assurances > div {
    padding: 17px 16px 16px 48px;
  }

  .commerce-assurances > div + div {
    border-top: 1px solid #e8e8e5;
    border-left: 0;
  }

  .commerce-assurances > div::before {
    top: 18px;
    left: 16px;
  }

  .customer-body .supply-shop {
    padding: 36px 18px 40px;
  }

  .customer-body .supply-shop .section-title {
    display: block;
    margin-bottom: 20px;
  }

  .customer-body .supply-shop .section-title > p {
    margin-top: 10px;
  }

  .customer-body .supply-shop .product-rail {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .customer-body .supply-shop .supply-product,
  .customer-body .supply-shop .supply-product.featured {
    min-height: 174px;
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid #e5e5e2;
  }

  .customer-body .supply-shop .plan-card-copy h3 {
    margin-top: 16px;
    font-size: 29px;
  }

  .customer-body .supply-shop .plan-card-footer {
    padding-top: 14px;
  }

  .customer-body .supply-shop .supply-product:last-child {
    border-bottom: 0;
  }

  .customer-body .redeem-station {
    gap: 12px;
    margin: 34px auto 58px;
    padding: 0 18px;
  }

  .customer-body .redeem-main {
    padding: 0 18px 6px;
  }

  .customer-body .redeem-main .section-title.compact {
    min-height: 0;
    align-items: flex-start;
    padding: 21px 0;
  }

  .customer-body .redeem-main .section-title.compact h2 {
    font-size: 23px;
  }

  .customer-body .redeem-main .section-title.compact > strong {
    min-width: 64px;
  }

  .checkout-path {
    gap: 6px;
    padding-top: 15px;
  }

  .checkout-path li {
    padding-top: 8px;
  }

  .checkout-path li small {
    display: none;
  }

  .customer-body .manifest-segment {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 11px;
    padding: 21px 0;
  }

  .customer-body .redeem-main textarea {
    min-height: 132px;
  }

  .customer-body .order-tower {
    min-height: 340px;
    padding: 21px;
  }

  .customer-body .tower-empty {
    min-height: 190px;
  }

  .customer-body .circular-scanner {
    width: 82px;
    height: 82px;
    box-shadow: 0 0 0 14px rgba(95, 125, 163, 0.055), 0 0 0 28px rgba(95, 125, 163, 0.025);
  }

  .customer-body .tower-empty b {
    margin-top: 46px;
  }

  .customer-body .submission-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-skip-link,
  .checkout-path li,
  .customer-body .supply-shop .supply-product,
  .customer-body .supply-shop .supply-product.featured {
    transition: none;
  }

  .customer-body .manifest-segment.active:not([hidden]),
  .customer-body .loading-pulse {
    animation: none;
  }
}

/* Account order history */
.customer-body .account-orders {
  padding: 42px clamp(24px, 7vw, 120px) 70px;
}

.customer-body .account-orders .section-title {
  align-items: end;
  margin-bottom: 20px;
}

.customer-body .account-orders .section-title h2 {
  font-size: clamp(30px, 2.7vw, 42px);
}

.customer-body .account-orders .section-title > p {
  max-width: 430px;
  margin: 0 0 3px;
  color: #656b74;
  font-size: 12px;
}

.customer-body .order-empty {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 126px;
  padding: 22px 4px;
  border-top: 1px solid #c9c6bf;
  border-bottom: 1px solid #c9c6bf;
}

.customer-body .order-empty-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid #d7d4cd;
  border-radius: 12px;
  background: #ffffff;
  color: #155dde;
}

.customer-body .order-empty-mark svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.customer-body .order-empty-copy strong,
.customer-body .order-empty-copy p {
  display: block;
}

.customer-body .order-empty-copy strong {
  color: #161a21;
  font-size: 15px;
}

.customer-body .order-empty-copy p {
  margin: 5px 0 0;
  color: #656b74;
  font-size: 11px;
}

.customer-body .order-empty-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.customer-body .order-empty-primary,
.customer-body .order-empty-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 15px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 760;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.customer-body .order-empty-primary {
  border: 0;
  background: #2155d9;
  color: #ffffff;
}

.customer-body .order-empty-primary:hover {
  background: #1846bd;
}

.customer-body .order-empty-secondary {
  padding-inline: 3px;
  color: #155dde;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.customer-body .order-empty-secondary:hover {
  text-decoration-color: currentColor;
}

.customer-body .order-loading .order-empty-mark,
.customer-body .order-error .order-empty-mark {
  font-size: 18px;
  font-weight: 800;
}

.customer-body .order-error .order-empty-mark {
  border-color: #efc8cb;
  color: #a72e35;
  background: #fff7f7;
}

.customer-body .loading-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2155d9;
  animation: loading-pulse 1.2s ease-in-out infinite;
}

@keyframes loading-pulse {
  50% { opacity: 0.35; transform: scale(0.72); }
}

@media (max-width: 760px) {
  .customer-body .account-orders {
    padding: 30px 18px 54px;
  }

  .customer-body .account-orders .section-title {
    display: block;
    margin-bottom: 17px;
  }

  .customer-body .account-orders .section-title h2 {
    font-size: 28px;
  }

  .customer-body .account-orders .section-title > p {
    margin-top: 8px;
  }

  .customer-body .order-empty {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 0;
  }

  .customer-body .order-empty-mark {
    width: 46px;
    height: 46px;
    border-radius: 10px;
  }

  .customer-body .order-empty-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 60px;
  }
}

/* Customer account dialog */
.customer-auth-dialog {
  width: min(480px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #ffffff;
  color: #161a21;
  box-shadow: 0 28px 80px rgba(16, 24, 40, 0.24);
}

.customer-auth-dialog::backdrop {
  background: rgba(17, 21, 28, 0.62);
  backdrop-filter: blur(5px);
}

.customer-auth-dialog[open] {
  animation: customer-dialog-in 180ms ease-out;
}

.customer-auth-shell {
  padding: 28px;
}

.customer-auth-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.customer-auth-head h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.customer-auth-head p {
  margin: 7px 0 0;
  color: #68707c;
  font-size: 13px;
}

.auth-dialog-close {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #dedede;
  border-radius: 9px;
  background: #ffffff;
  color: #343942;
}

.auth-dialog-close:hover {
  background: #f2f3f5;
}

.auth-dialog-close svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.customer-auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin: 24px 0 20px;
  padding: 4px;
  border-radius: 10px;
  background: #f0f1f3;
}

.customer-auth-tabs button {
  min-height: 40px;
  border-radius: 7px;
  background: transparent;
  color: #6b7280;
  font-size: 13px;
  font-weight: 750;
}

.customer-auth-tabs button.active {
  background: #ffffff;
  color: #161a21;
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.12);
}

#customerAuthForm {
  display: grid;
  gap: 15px;
}

.admin-auth-step {
  display: grid;
  gap: 15px;
}

.secondary-code-copy {
  padding: 14px 0 2px;
  border-top: 1px solid #dedede;
}

.secondary-code-copy b,
.secondary-code-copy p {
  display: block;
}

.secondary-code-copy b {
  color: #087253;
  font-size: 13px;
}

.secondary-code-copy p {
  margin: 5px 0 0;
  color: #68707c;
  font-size: 12px;
  line-height: 1.6;
}

.customer-auth-dialog .secondary-code-input {
  font-size: 23px;
  font-weight: 750;
  letter-spacing: 0.32em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.admin-auth-back {
  justify-self: start;
  padding: 2px 0;
  background: transparent;
  color: #155dde;
  font-size: 11px;
}

.admin-auth-back:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.customer-auth-dialog .field {
  display: grid;
  gap: 7px;
}

.customer-auth-dialog .field > span,
.customer-auth-dialog .field > .password-field-label,
.auth-captcha-label > span {
  color: #343942;
  font-size: 12px;
  font-weight: 750;
}

#customerAuthForm > .field input,
#authSecondaryStep .field input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #d6d8dc;
  border-radius: 8px;
  background: #ffffff;
  color: #161a21;
  font-size: 14px;
  outline: none;
}

#customerAuthForm > .field input:focus,
#authSecondaryStep .field input:focus {
  border-color: #155dde;
  box-shadow: 0 0 0 3px rgba(21, 93, 222, 0.12);
}

.auth-captcha {
  display: grid;
  gap: 8px;
}

.auth-captcha-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.auth-captcha-label small {
  color: #7a818b;
  font-size: 11px;
}

.auth-captcha altcha-widget {
  width: 100%;
  --altcha-max-width: 100%;
  --altcha-border-color: #d6d8dc;
  --altcha-border-radius: 8px;
  --altcha-color-base: #ffffff;
  --altcha-color-base-content: #343942;
  --altcha-color-primary: #155dde;
  --altcha-color-success: #087253;
  --altcha-color-error: #b4232d;
  --altcha-checkbox-border-radius: 5px;
  --altcha-shadow: none;
}

.customer-auth-submit {
  min-height: 49px;
  margin-top: 2px;
  border-radius: 8px;
  background: #161a21;
  color: #ffffff;
  font-size: 14px;
  font-weight: 780;
}

.customer-auth-submit:hover:not(:disabled) {
  background: #155dde;
}

.customer-auth-submit:disabled {
  cursor: wait;
  opacity: 0.55;
}

.customer-auth-state {
  min-height: 18px;
  color: #6b7280;
  font-size: 11px;
  text-align: center;
}

.customer-auth-state.good { color: #087253; }
.customer-auth-state.bad { color: #b4232d; }

.auth-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

@keyframes customer-dialog-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 520px) {
  .customer-body .buyer-actions {
    gap: 8px;
  }

  .customer-body .buyer-actions #loginLink {
    min-width: 108px;
    min-height: 44px;
    max-width: 150px;
    padding-inline: 14px;
    font-size: 13px;
  }

  .customer-body .station-header .station-brand,
  .customer-body .mobile-route-link,
  .customer-body .buyer-actions #logoutButton,
  .customer-body .result-box button {
    min-height: 44px;
  }

  .customer-auth-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    border-radius: 13px;
  }

  .customer-auth-shell { padding: 22px 18px; }
  .customer-auth-head h2 { font-size: 24px; }
  #customerAuthForm > .field input,
  #authSecondaryStep .field input { font-size: 16px; }
  .auth-captcha-label { align-items: flex-start; }
  .auth-captcha-label small { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  .customer-auth-dialog[open],
  .customer-body .manifest-segment.active:not([hidden]),
  .customer-body .loading-pulse,
  .customer-body .redeem-main .detected-supply.pending::after { animation: none; }
}

/* Order progress: every stage carries a clear state ring after its label. */
.customer-body .order-context {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 0 0 16px;
  border-bottom: 1px solid #343a45;
}

.customer-body .order-context > span {
  color: #91a3ba;
  font-size: 9px;
  font-weight: 700;
}

.customer-body .order-context > strong {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.45;
}

.customer-body .order-context > small {
  overflow-wrap: anywhere;
  color: #aeb9c8;
  font-size: 10px;
  line-height: 1.55;
}

.customer-body .order-context + .order-id {
  margin-top: 15px;
}

.customer-body .timeline li {
  grid-template-columns: 19px minmax(0, 1fr);
  min-height: 42px;
}

.customer-body .timeline li > .timeline-node {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 50%;
  background: #536071;
}

.customer-body .timeline li > .timeline-node::after {
  display: block;
}

.customer-body .timeline li b {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  line-height: 1.45;
}

.customer-body .timeline li b > span {
  position: static;
  width: auto;
  height: auto;
  min-width: 0;
  margin: 0;
  border-radius: 0;
  background: transparent;
}

.customer-body .timeline li b > span::after {
  display: none;
}

.customer-body .timeline li:is(.done, .current) b > span {
  background: transparent;
  box-shadow: none;
}

.customer-body .step-indicator {
  position: relative;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  margin-top: 1px;
  border: 1.5px solid #596779;
  border-radius: 50%;
  box-sizing: border-box;
}

.customer-body .timeline li.current .step-indicator {
  border-color: rgba(112, 168, 255, 0.34);
  border-top-color: #70a8ff;
  animation: timeline-step-spin 760ms linear infinite;
}

.customer-body .timeline li.done .step-indicator {
  border-color: #20a27b;
  background: #20a27b;
}

.customer-body .timeline li.done .step-indicator::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 3px;
  width: 4px;
  height: 2px;
  border-bottom: 1.5px solid #ffffff;
  border-left: 1.5px solid #ffffff;
  transform: rotate(-45deg);
}

.customer-body .timeline li.halted .step-indicator {
  border-color: #e47d86;
}

.customer-body .timeline li.halted .step-indicator::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 2px;
  width: 5px;
  height: 1.5px;
  border-radius: 1px;
  background: #e47d86;
}

@keyframes timeline-step-spin {
  to { transform: rotate(1turn); }
}

/* Buyer order ledger: project and identities stay scannable without hiding IDs. */
.customer-body .account-order-list {
  gap: 0;
  border-top: 1px solid #c9c6bf;
}

.customer-body .account-order-list .account-order-record {
  display: block;
  padding: 22px 0 18px;
  border-bottom: 1px solid #c9c6bf;
  border-radius: 0;
  background: transparent;
}

.customer-body .order-record-main {
  display: grid;
  grid-template-columns: minmax(190px, 0.9fr) minmax(420px, 1.7fr) auto;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.customer-body .order-record-product,
.customer-body .order-record-facts > div {
  display: grid;
  gap: 5px;
}

.customer-body .order-record-product > span,
.customer-body .order-record-facts dt,
.customer-body .order-record-id > span {
  color: #696f78;
  font-size: 10px;
}

.customer-body .order-record-product > strong {
  color: #161a21;
  font-size: 15px;
  line-height: 1.45;
}

.customer-body .order-record-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
}

.customer-body .order-record-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #262b33;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
}

.customer-body .account-order-list .order-state {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  justify-self: end;
  padding: 5px 9px;
  border-radius: 6px;
  color: #285886;
  background: #e8f1fb;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}

.customer-body .account-order-list .order-state.verified {
  color: #0b6d52;
  background: #e1f4ec;
}

.customer-body .account-order-list .order-state:is(.failed, .payment_failed, .verification_failed, .session_expired, .cancelled) {
  color: #9b343b;
  background: #f9e7e8;
}

.customer-body .order-record-id {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid #e3e1dc;
}

.customer-body .order-record-id code {
  color: #505761;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .customer-body .order-record-main {
    grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.6fr) auto;
    gap: 24px;
  }

  .customer-body .order-record-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .customer-body .session-guide li {
    grid-template-columns: 22px minmax(0, 1fr);
    row-gap: 9px;
  }

  .customer-body .session-guide-action {
    grid-column: 2;
  }

  .customer-body .order-record-main {
    grid-template-columns: 1fr auto;
    gap: 18px;
  }

  .customer-body .order-record-facts {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .customer-body .account-order-list .order-state {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 480px) {
  .customer-body .order-record-facts {
    grid-template-columns: 1fr;
  }

  .customer-body .order-record-id {
    display: grid;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-body .timeline li.current .step-indicator {
    border-color: #70a8ff;
    animation: none;
  }
}
