/* 2026-06-19 customer premium visual pass. Loaded after legacy styles. */
.customer-commerce {
  --xm-ink: #17211f;
  --xm-text: #26322f;
  --xm-muted: #6e7b76;
  --xm-line: rgba(33, 43, 40, 0.12);
  --xm-panel: rgba(255, 255, 255, 0.92);
  --xm-soft: #f6f1e8;
  --xm-red: #b80f24;
  --xm-red-dark: #7d0b1b;
  --xm-teal: #08756f;
  --xm-gold: #b88935;
  --xm-green: #166d4f;
  --xm-shadow: 0 28px 80px rgba(28, 38, 35, 0.16);
  --xm-shadow-soft: 0 12px 34px rgba(28, 38, 35, 0.11);
  min-height: 100vh;
  color: var(--xm-text);
  background:
    linear-gradient(135deg, rgba(184, 15, 36, 0.08), transparent 28%),
    linear-gradient(315deg, rgba(8, 117, 111, 0.1), transparent 34%),
    #f7f3ea;
  letter-spacing: 0;
}

.customer-commerce *,
.customer-commerce *::before,
.customer-commerce *::after {
  box-sizing: border-box;
}

.customer-commerce .shell {
  width: min(1480px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 44px;
}

.customer-commerce .hidden {
  display: none !important;
}

.customer-commerce .auth-shell {
  min-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  align-items: stretch;
  gap: 24px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(23, 33, 31, 0.88), rgba(79, 16, 26, 0.84)),
    url("assets/login-hero-bg.png") center / cover;
  box-shadow: var(--xm-shadow);
  overflow: hidden;
}

.customer-commerce .auth-shell .brand {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: clamp(28px, 5vw, 70px);
  color: #fffaf0;
  overflow: hidden;
}

.customer-commerce .auth-shell .brand::before {
  content: "";
  position: absolute;
  inset: 22px auto 22px 22px;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(#f7d38a, #b80f24, #08756f);
}

.customer-commerce .brand-eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 250, 240, 0.82);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
}

.customer-commerce .brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 16px;
  color: inherit;
  letter-spacing: 0;
}

.customer-commerce .brand-logo-mark {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #fffaf0;
  color: var(--xm-red-dark);
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.customer-commerce .brand-logo-word {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.customer-commerce .brand-logo-word > span {
  font-size: clamp(34px, 5.2vw, 78px);
  font-weight: 900;
}

.customer-commerce .brand-logo-word > small {
  font-size: 16px;
  color: rgba(255, 250, 240, 0.72);
  font-weight: 700;
}

.customer-commerce .brand-copy {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 250, 240, 0.76);
  font-size: clamp(16px, 1.4vw, 21px);
  line-height: 1.8;
}

.customer-commerce .brand-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(620px, 100%);
  margin-top: 30px;
}

.customer-commerce .brand-metrics span {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.customer-commerce .brand-metrics strong {
  font-size: 24px;
  color: #fff;
}

.customer-commerce .brand-metrics small {
  color: rgba(255, 250, 240, 0.72);
}

.customer-commerce .commerce-visual {
  position: absolute;
  right: clamp(12px, 3vw, 50px);
  bottom: clamp(14px, 3vw, 46px);
  width: min(430px, 44%);
  aspect-ratio: 16 / 10;
  opacity: 0.92;
}

.customer-commerce .commerce-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  filter: saturate(1.12) contrast(1.05);
}

.customer-commerce .commerce-visual-card {
  position: absolute;
  min-width: 190px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.9);
  color: var(--xm-ink);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.customer-commerce .commerce-visual-card span {
  display: block;
  color: var(--xm-muted);
  font-size: 12px;
}

.customer-commerce .commerce-visual-card strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
}

.customer-commerce .commerce-visual-card-a {
  left: -28px;
  top: 24px;
}

.customer-commerce .commerce-visual-card-b {
  right: -18px;
  bottom: 20px;
}

.customer-commerce .auth-panel {
  align-self: center;
  width: 100%;
  max-width: 460px;
  justify-self: end;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(20px);
}

.customer-commerce .tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 5px;
  margin-bottom: 20px;
  border: 1px solid var(--xm-line);
  border-radius: 8px;
  background: #eee7dc;
}

.customer-commerce .tab,
.customer-commerce button {
  font: inherit;
}

.customer-commerce .tab {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--xm-muted);
  font-weight: 800;
}

.customer-commerce .tab.active {
  color: #fff;
  background: var(--xm-ink);
  box-shadow: 0 10px 20px rgba(23, 33, 31, 0.2);
}

.customer-commerce .field,
.customer-commerce .mobile-date-field {
  display: grid;
  gap: 8px;
}

.customer-commerce .field span,
.customer-commerce .mobile-date-field span {
  color: var(--xm-muted);
  font-size: 13px;
  font-weight: 800;
}

.customer-commerce input,
.customer-commerce select,
.customer-commerce textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(35, 49, 45, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--xm-text);
  padding: 0 13px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.customer-commerce textarea {
  min-height: 96px;
  padding: 12px 13px;
  resize: vertical;
}

.customer-commerce input:focus,
.customer-commerce select:focus,
.customer-commerce textarea:focus {
  border-color: rgba(8, 117, 111, 0.62);
  box-shadow: 0 0 0 4px rgba(8, 117, 111, 0.12);
}

.customer-commerce .password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.customer-commerce .remember-row,
.customer-commerce .check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--xm-muted);
  font-size: 13px;
}

.customer-commerce .remember-row input,
.customer-commerce .check-row input {
  width: 16px;
  min-height: 16px;
}

.customer-commerce .primary,
.customer-commerce .secondary,
.customer-commerce .ghost,
.customer-commerce .danger {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 850;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, border-color 150ms ease;
}

.customer-commerce .primary {
  color: #fff;
  background: linear-gradient(135deg, var(--xm-red), var(--xm-red-dark));
  box-shadow: 0 16px 30px rgba(184, 15, 36, 0.22);
}

.customer-commerce .secondary {
  color: var(--xm-ink);
  border-color: rgba(23, 33, 31, 0.12);
  background: #fffaf0;
}

.customer-commerce .ghost {
  color: var(--xm-ink);
  border-color: rgba(23, 33, 31, 0.12);
  background: rgba(255, 255, 255, 0.42);
}

.customer-commerce .danger {
  color: #fff;
  background: #9f1239;
}

.customer-commerce .primary:hover,
.customer-commerce .secondary:hover,
.customer-commerce .ghost:hover,
.customer-commerce .danger:hover {
  transform: translateY(-1px);
  box-shadow: var(--xm-shadow-soft);
}

.customer-commerce .full-width {
  width: 100%;
}

.customer-commerce #dashboardView > .topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.9);
  box-shadow: var(--xm-shadow-soft);
  backdrop-filter: blur(18px);
}

.customer-commerce #dashboardView > .topbar .brand-eyebrow {
  color: var(--xm-teal);
  border-color: rgba(8, 117, 111, 0.2);
  background: rgba(8, 117, 111, 0.08);
}

.customer-commerce #dashboardView > .topbar .brand-logo {
  margin: 8px 0 4px;
  color: var(--xm-ink);
}

.customer-commerce #dashboardView > .topbar .brand-logo-mark {
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--xm-ink);
  box-shadow: none;
}

.customer-commerce #dashboardView > .topbar .brand-logo-word > span {
  font-size: 28px;
}

.customer-commerce #dashboardView > .topbar .brand-logo-word > small,
.customer-commerce #customerMeta {
  color: var(--xm-muted);
}

.customer-commerce .customer-topbar-actions {
  display: grid;
  grid-template-columns: auto minmax(360px, 1fr) auto;
  gap: 12px;
  align-items: center;
  justify-content: end;
}

.customer-commerce .balance-pill {
  min-height: 52px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px 16px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--xm-ink), var(--xm-teal));
  box-shadow: 0 12px 28px rgba(8, 117, 111, 0.2);
}

.customer-commerce .balance-pill span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.customer-commerce .balance-pill strong {
  font-size: 20px;
}

.customer-commerce .customer-page-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border-radius: 8px;
  background: #e8e0d4;
}

.customer-commerce .customer-page-nav button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--xm-muted);
  font-weight: 850;
  white-space: nowrap;
}

.customer-commerce .customer-page-nav button.active {
  color: #fff;
  background: var(--xm-red);
  box-shadow: 0 10px 22px rgba(184, 15, 36, 0.2);
}

.customer-commerce .mobile-refresh-actions {
  display: none !important;
}

.customer-commerce .grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.customer-commerce .span-12 {
  grid-column: span 12;
}

.customer-commerce .customer-page-panel {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 8px;
  background: var(--xm-panel);
  box-shadow: var(--xm-shadow-soft);
}

.customer-commerce .customer-page-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--xm-red), var(--xm-gold), var(--xm-teal));
}

.customer-commerce .customer-page-panel > * {
  position: relative;
}

.customer-commerce .card .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.customer-commerce .card h2 {
  margin: 0;
  color: var(--xm-ink);
  font-size: 24px;
}

.customer-commerce .muted {
  color: var(--xm-muted);
}

.customer-commerce .toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) minmax(150px, 0.45fr) minmax(150px, 0.45fr) minmax(150px, 0.45fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--xm-line);
  border-radius: 8px;
  background: rgba(246, 241, 232, 0.72);
}

.customer-commerce .filter-result-count {
  margin: 12px 2px 0;
  font-weight: 800;
}

.customer-commerce .product-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.customer-commerce .product-item {
  min-height: 430px;
  display: grid;
  grid-template-rows: 190px minmax(118px, auto) auto;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 10px 28px rgba(23, 33, 31, 0.08);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.customer-commerce .product-item:hover,
.customer-commerce .product-item:focus {
  border-color: rgba(184, 15, 36, 0.32);
  box-shadow: 0 24px 58px rgba(23, 33, 31, 0.15);
  transform: translateY(-3px);
  outline: none;
}

.customer-commerce .product-item > .thumb {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 8px;
  background: #efe7dc;
}

.customer-commerce .product-card-main {
  display: grid;
  gap: 7px;
}

.customer-commerce .product-card-main strong {
  color: var(--xm-ink);
  font-size: 16px;
  line-height: 1.45;
}

.customer-commerce .product-card-main p {
  margin: 0;
  line-height: 1.45;
}

.customer-commerce .product-model-spec-line {
  min-height: 21px;
  color: var(--xm-teal);
  font-size: 13px;
  font-weight: 800;
}

.customer-commerce .product-card-buy {
  display: grid;
  gap: 10px;
  align-self: end;
}

.customer-commerce .customer-price-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.customer-commerce .customer-price-tiers div {
  min-height: 78px;
  display: grid !important;
  align-content: center;
  gap: 4px;
  padding: 10px 8px;
  border-radius: 8px;
  background: #f4eee4;
  border: 1px solid rgba(23, 33, 31, 0.08);
}

.customer-commerce .customer-price-tiers span,
.customer-commerce .customer-price-tiers small {
  display: block;
  color: var(--xm-muted);
  font-size: 11px;
  line-height: 1.25;
}

.customer-commerce .customer-price-tiers strong {
  display: block;
  color: var(--xm-red-dark);
  font-size: 16px;
  line-height: 1.2;
}

.customer-commerce .product-card-hint {
  min-height: 34px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 8px;
  color: #fff !important;
  background: var(--xm-ink) !important;
  font-size: 13px;
  font-weight: 850;
}

.customer-commerce .cart-list,
.customer-commerce .order-list,
.customer-commerce .log-list {
  display: grid;
  gap: 12px;
}

.customer-commerce .cart-item,
.customer-commerce .order-item,
.customer-commerce .log-item,
.customer-commerce .address-book-item {
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 10px 24px rgba(23, 33, 31, 0.06);
}

.customer-commerce .cart-item.cart-item-detailed {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.customer-commerce .cart-item-thumb-button {
  width: 108px;
  height: 108px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #efe7dc;
}

.customer-commerce .cart-item-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.customer-commerce .cart-item-main {
  display: grid;
  gap: 5px;
}

.customer-commerce .cart-item-main strong {
  color: var(--xm-ink);
}

.customer-commerce .cart-quantity-actions {
  display: grid;
  grid-template-columns: 42px 76px 42px;
  gap: 8px;
  align-items: center;
}

.customer-commerce .cart-delete-button,
.customer-commerce .cart-checkout-button {
  grid-column: span 3;
}

.customer-commerce .cart-quantity-input {
  text-align: center;
  padding: 0 4px;
}

.customer-commerce .selected-checkout-item {
  border-color: rgba(8, 117, 111, 0.42);
  box-shadow: 0 16px 36px rgba(8, 117, 111, 0.14);
}

.customer-commerce .customer-address-actions,
.customer-commerce .form-actions,
.customer-commerce .button-row,
.customer-commerce .customer-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.customer-commerce .address-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.customer-commerce .order-item,
.customer-commerce .log-item {
  padding: 16px;
}

.customer-commerce .positive {
  color: var(--xm-green);
}

.customer-commerce .negative {
  color: var(--xm-red-dark);
}

.customer-commerce .empty {
  min-height: 160px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px dashed rgba(23, 33, 31, 0.2);
  border-radius: 8px;
  color: var(--xm-muted);
  background: rgba(255, 250, 240, 0.66);
}

.customer-commerce .modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 25, 24, 0.58);
  backdrop-filter: blur(12px);
}

.customer-commerce .modal-panel,
.customer-commerce .product-image-viewer-panel {
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.32);
}

.customer-commerce .product-detail-panel {
  width: min(1100px, 100%);
}

.customer-commerce .product-detail-header,
.customer-commerce .product-image-viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--xm-line);
}

.customer-commerce .product-detail-body {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  padding: 18px;
}

.customer-commerce .product-detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.customer-commerce .product-detail-image-button {
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #efe7dc;
}

.customer-commerce .product-detail-image-button img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.customer-commerce .product-detail-table {
  display: grid;
  gap: 8px;
}

.customer-commerce .product-detail-table div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--xm-line);
  border-radius: 8px;
  background: #fffdf8;
}

.customer-commerce .product-detail-purchase {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: #f1e8dc;
}

.customer-commerce .detail-quantity-control {
  display: grid;
  grid-template-columns: 42px 90px 42px;
  gap: 8px;
  margin-top: 8px;
}

.customer-commerce .product-image-viewer-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 18px;
}

.customer-commerce .product-image-viewer-stage img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
  object-fit: contain;
  background: #efe7dc;
}

.customer-commerce .product-image-nav {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(23, 33, 31, 0.72);
  font-size: 32px;
}

.customer-commerce .product-image-prev {
  left: 24px;
}

.customer-commerce .product-image-next {
  right: 24px;
}

.customer-commerce .toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  transform: translateX(-50%);
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--xm-ink);
  box-shadow: var(--xm-shadow);
}

@media (min-width: 1540px) {
  .customer-commerce .product-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .customer-commerce .auth-shell {
    grid-template-columns: 1fr;
  }

  .customer-commerce .auth-panel {
    justify-self: start;
  }

  .customer-commerce .commerce-visual {
    width: min(360px, 42%);
  }

  .customer-commerce #dashboardView > .topbar,
  .customer-commerce .customer-topbar-actions {
    grid-template-columns: 1fr;
  }

  .customer-commerce .product-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .customer-commerce .shell {
    width: min(100vw - 20px, 760px);
    padding: 10px 0 24px;
  }

  .customer-commerce .auth-shell {
    padding: 14px;
  }

  .customer-commerce .auth-shell .brand {
    min-height: 460px;
    padding: 32px 28px;
  }

  .customer-commerce .commerce-visual {
    display: none;
  }

  .customer-commerce .product-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-commerce .toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .customer-commerce .toolbar > input {
    grid-column: span 2;
  }

  .customer-commerce .cart-item.cart-item-detailed {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .customer-commerce .cart-quantity-actions {
    grid-column: span 2;
    grid-template-columns: 42px 1fr 42px;
  }

  .customer-commerce .product-detail-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .customer-commerce {
    background: #f7f3ea;
  }

  .customer-commerce .shell {
    width: 100%;
    padding: 0 0 84px;
  }

  .customer-commerce .auth-shell {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    padding: 0;
    background:
      linear-gradient(180deg, rgba(23, 33, 31, 0.58), rgba(23, 33, 31, 0.88)),
      url("assets/login-hero-bg.png") center / cover;
  }

  .customer-commerce .auth-shell .brand {
    min-height: auto;
    padding: 30px 18px 18px;
  }

  .customer-commerce .auth-shell .brand::before,
  .customer-commerce .commerce-visual {
    display: none;
  }

  .customer-commerce .brand-logo-mark {
    width: 46px;
    height: 46px;
  }

  .customer-commerce .brand-logo-word > span {
    font-size: 36px;
  }

  .customer-commerce .brand-logo-word > small {
    font-size: 13px;
  }

  .customer-commerce .brand-copy {
    font-size: 15px;
    line-height: 1.65;
  }

  .customer-commerce .brand-metrics {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 18px;
  }

  .customer-commerce .brand-metrics span {
    min-height: 78px;
    padding: 12px 8px;
  }

  .customer-commerce .brand-metrics strong {
    font-size: 17px;
  }

  .customer-commerce .auth-panel {
    max-width: none;
    margin: 0 10px 10px;
    padding: 18px;
    border-radius: 8px;
  }

  .customer-commerce #dashboardView > .topbar {
    position: static;
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 14px 12px;
  }

  .customer-commerce #dashboardView > .topbar .brand-logo-word > span {
    font-size: 23px;
  }

  .customer-commerce .customer-topbar-actions {
    gap: 10px;
  }

  .customer-commerce .balance-pill {
    width: 100%;
  }

  .customer-commerce .mobile-refresh-actions {
    display: none !important;
  }

  .customer-commerce .customer-page-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 60;
    grid-template-columns: repeat(4, 1fr);
    box-shadow: 0 20px 50px rgba(23, 33, 31, 0.24);
  }

  .customer-commerce .customer-page-nav button {
    min-height: 48px;
    padding: 0 4px;
    font-size: 12px;
  }

  .customer-commerce .customer-page-panel {
    margin: 10px;
    padding: 14px;
  }

  .customer-commerce .card .topbar {
    align-items: flex-start;
  }

  .customer-commerce .card h2 {
    font-size: 20px;
  }

  .customer-commerce .toolbar {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .customer-commerce .toolbar > input,
  .customer-commerce .toolbar > select,
  .customer-commerce .toolbar > button,
  .customer-commerce .toolbar > .mobile-date-field {
    grid-column: auto;
  }

  .customer-commerce .product-list {
    grid-template-columns: 1fr;
  }

  .customer-commerce .product-item {
    min-height: auto;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
  }

  .customer-commerce .product-item > .thumb {
    width: 112px;
    height: 112px;
    grid-row: span 2;
  }

  .customer-commerce .product-card-main strong {
    font-size: 15px;
  }

  .customer-commerce .product-card-buy {
    grid-column: 2;
  }

  .customer-commerce .customer-price-tiers {
    grid-template-columns: 1fr;
  }

  .customer-commerce .customer-price-tiers div {
    min-height: 42px;
    grid-template-columns: 1fr auto auto;
    align-items: center;
  }

  .customer-commerce .product-card-hint {
    display: none;
  }

  .customer-commerce .cart-item.cart-item-detailed {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
  }

  .customer-commerce .cart-item-thumb-button {
    width: 82px;
    height: 82px;
  }

  .customer-commerce .cart-quantity-actions {
    grid-column: span 2;
    grid-template-columns: 42px 1fr 42px;
  }

  .customer-commerce .cart-delete-button,
  .customer-commerce .cart-checkout-button {
    grid-column: span 3;
  }

  .customer-commerce .address-grid {
    grid-template-columns: 1fr;
  }

  .customer-commerce .product-detail-body,
  .customer-commerce .product-detail-gallery {
    grid-template-columns: 1fr;
  }

  .customer-commerce .modal {
    padding: 10px;
  }

  .customer-commerce .modal-panel,
  .customer-commerce .product-image-viewer-panel {
    max-height: calc(100vh - 20px);
  }

  .customer-commerce .product-detail-purchase {
    display: grid;
  }

  .customer-commerce .product-detail-table div {
    grid-template-columns: 96px 1fr;
  }
}

@media (max-width: 390px) {
  .customer-commerce .product-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .customer-commerce .product-item > .thumb {
    width: 96px;
    height: 96px;
  }

  .customer-commerce .brand-logo-word > span {
    font-size: 31px;
  }
}

/* 2026-06-19 premium v2: quieter luxury, denser commerce, stronger product focus. */
.customer-commerce {
  --xm-ink: #121716;
  --xm-text: #202724;
  --xm-muted: #75807b;
  --xm-line: rgba(18, 23, 22, 0.1);
  --xm-panel: rgba(255, 255, 255, 0.96);
  --xm-soft: #f7f4ee;
  --xm-red: #bd1027;
  --xm-red-dark: #861123;
  --xm-teal: #0a746c;
  --xm-gold: #b7832e;
  --xm-shadow: 0 22px 54px rgba(31, 34, 30, 0.1);
  background:
    radial-gradient(circle at 6% 0%, rgba(189, 16, 39, 0.1), transparent 28%),
    radial-gradient(circle at 100% 8%, rgba(10, 116, 108, 0.09), transparent 30%),
    linear-gradient(180deg, #fbfaf7 0%, #f4f0e8 100%);
}

.customer-commerce .shell {
  width: min(1600px, calc(100vw - 36px));
}

.customer-commerce .auth-shell {
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.72fr);
  gap: 0;
  padding: 0;
  border: 0;
  background:
    linear-gradient(115deg, rgba(14, 18, 17, 0.94) 0%, rgba(18, 23, 22, 0.86) 45%, rgba(123, 12, 27, 0.76) 100%),
    url("assets/login-hero-bg.png") center / cover;
  box-shadow: 0 36px 110px rgba(18, 23, 22, 0.26);
}

.customer-commerce .auth-shell .brand {
  min-height: 680px;
  padding: clamp(42px, 6vw, 96px);
}

.customer-commerce .auth-shell .brand::before {
  inset: auto auto 72px clamp(42px, 6vw, 96px);
  width: min(560px, 52vw);
  height: 1px;
  background: linear-gradient(90deg, #f6d28a, rgba(255, 255, 255, 0.18), transparent);
}

.customer-commerce .auth-shell .brand-logo {
  width: fit-content;
  margin: 22px 0 22px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.customer-commerce .auth-shell .brand-logo-mark {
  width: 58px;
  height: 58px;
  background: linear-gradient(145deg, #fff8e8, #d9a541);
  color: #141414;
}

.customer-commerce .auth-shell .brand-logo-word > span {
  color: #fff;
  font-size: clamp(48px, 6vw, 88px);
  letter-spacing: 0;
}

.customer-commerce .auth-shell .brand-logo-word > small {
  color: #f3cf83;
}

.customer-commerce .brand-copy {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 20px;
  line-height: 1.9;
}

.customer-commerce .brand-metrics {
  width: min(680px, 100%);
  margin-top: 42px;
}

.customer-commerce .brand-metrics span {
  min-height: 112px;
  padding: 20px;
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.customer-commerce .brand-metrics strong {
  color: #ffe2a0;
  font-size: 30px;
}

.customer-commerce .commerce-visual {
  right: 7%;
  bottom: 72px;
  width: min(510px, 42%);
  opacity: 0.68;
}

.customer-commerce .commerce-visual img {
  border-color: rgba(255, 255, 255, 0.1);
  filter: saturate(0.95) contrast(1.08);
}

.customer-commerce .commerce-visual-card {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 252, 244, 0.78);
  backdrop-filter: blur(16px);
}

.customer-commerce .auth-panel {
  justify-self: stretch;
  align-self: stretch;
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 58px);
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0;
  background: rgba(255, 252, 247, 0.94);
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.18);
}

.customer-commerce .auth-panel form {
  display: grid;
  gap: 17px;
}

.customer-commerce .tabs {
  margin-bottom: 26px;
  background: #eeebe5;
}

.customer-commerce .tab.active {
  background: #121716;
}

.customer-commerce input,
.customer-commerce select,
.customer-commerce textarea {
  min-height: 48px;
  border-color: rgba(18, 23, 22, 0.12);
  background: #fff;
}

.customer-commerce .primary {
  background: linear-gradient(135deg, #0f6f62, #111716 72%);
  box-shadow: 0 18px 36px rgba(15, 111, 98, 0.22);
}

.customer-commerce #dashboardView > .topbar {
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 46px rgba(31, 34, 30, 0.1);
}

.customer-commerce #dashboardView > .topbar .brand-logo-mark {
  width: 44px;
  height: 44px;
  background: linear-gradient(145deg, #edc363, #a86f16);
  color: #111;
}

.customer-commerce #dashboardView > .topbar .brand-logo-word > span {
  font-size: 34px;
  letter-spacing: 0;
}

.customer-commerce .customer-topbar-actions {
  grid-template-columns: auto minmax(380px, 520px) auto;
}

.customer-commerce .balance-pill {
  min-width: 180px;
  border: 1px solid rgba(183, 131, 46, 0.28);
  color: #6a4510;
  background: linear-gradient(135deg, #fffdf8, #fff0ca);
  box-shadow: 0 18px 38px rgba(183, 131, 46, 0.13);
}

.customer-commerce .balance-pill span {
  color: #8b6a36;
}

.customer-commerce .customer-page-nav {
  background: rgba(18, 23, 22, 0.05);
  border: 1px solid rgba(18, 23, 22, 0.08);
}

.customer-commerce .customer-page-nav button.active {
  background: #fff;
  color: var(--xm-teal);
  box-shadow: inset 0 -2px 0 var(--xm-gold), 0 10px 22px rgba(31, 34, 30, 0.08);
}

.customer-commerce .customer-page-panel {
  padding: 26px 30px 30px;
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.92);
}

.customer-commerce .customer-page-panel::before {
  height: 0;
}

.customer-commerce .card .topbar {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(18, 23, 22, 0.1);
}

.customer-commerce .card h2 {
  font-size: 30px;
  letter-spacing: 0;
}

.customer-commerce .toolbar {
  padding: 10px;
  border-color: rgba(18, 23, 22, 0.08);
  background: #faf8f3;
}

.customer-commerce .filter-result-count {
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid rgba(10, 116, 108, 0.14);
  border-radius: 999px;
  color: #165d58;
  background: #eef6f4;
}

.customer-commerce .product-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.customer-commerce .product-item {
  min-height: 392px;
  grid-template-rows: 170px minmax(112px, auto) auto;
  padding: 12px;
  border-color: rgba(18, 23, 22, 0.09);
  background: #fffefb;
  box-shadow: 0 8px 24px rgba(31, 34, 30, 0.06);
}

.customer-commerce .product-item:hover,
.customer-commerce .product-item:focus {
  border-color: rgba(183, 131, 46, 0.42);
  box-shadow: 0 24px 60px rgba(31, 34, 30, 0.14);
}

.customer-commerce .product-item > .thumb {
  height: 170px;
  background: linear-gradient(135deg, #f2f5f3, #e9efec);
}

.customer-commerce .product-card-main strong {
  font-size: 15px;
  line-height: 1.5;
}

.customer-commerce .product-meta-line {
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  color: #0a746c !important;
  background: rgba(10, 116, 108, 0.08);
  border: 1px solid rgba(10, 116, 108, 0.14);
}

.customer-commerce .product-sku-line {
  color: #7b817e !important;
  font-size: 12px;
}

.customer-commerce .product-model-spec-line {
  color: #151b1a;
  font-size: 12px;
}

.customer-commerce .customer-price-tiers {
  gap: 6px;
}

.customer-commerce .customer-price-tiers div {
  min-height: 60px;
  padding: 8px;
  background: #fffaf1;
  border-color: rgba(183, 131, 46, 0.18);
}

.customer-commerce .customer-price-tiers span,
.customer-commerce .customer-price-tiers small {
  font-size: 10px;
}

.customer-commerce .customer-price-tiers strong {
  font-size: 16px;
  color: #83540f;
}

.customer-commerce .product-card-hint {
  min-height: 36px;
  background: linear-gradient(135deg, #141b19, #0a746c) !important;
}

.customer-commerce .cart-item,
.customer-commerce .order-item,
.customer-commerce .log-item,
.customer-commerce .address-book-item {
  background: #fffefb;
  box-shadow: 0 8px 26px rgba(31, 34, 30, 0.055);
}

@media (min-width: 1720px) {
  .customer-commerce .product-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1380px) {
  .customer-commerce .product-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  .customer-commerce .product-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .customer-commerce .auth-shell {
    grid-template-columns: 1fr;
  }

  .customer-commerce .auth-panel {
    border-left: 0;
    border-radius: 8px;
  }

  .customer-commerce .product-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .customer-commerce .shell {
    padding-bottom: 92px;
  }

  .customer-commerce .auth-shell {
    background:
      linear-gradient(180deg, rgba(14, 18, 17, 0.7), rgba(14, 18, 17, 0.92)),
      url("assets/login-hero-bg.png") center / cover;
  }

  .customer-commerce .auth-shell .brand {
    padding: 32px 24px 18px;
  }

  .customer-commerce .auth-shell .brand-logo-word > span {
    font-size: 38px;
  }

  .customer-commerce .brand-metrics span {
    min-height: 82px;
    background: rgba(255, 255, 255, 0.08);
  }

  .customer-commerce .auth-panel {
    margin: 0 10px 10px;
    border-radius: 8px;
  }

  .customer-commerce #dashboardView > .topbar {
    padding: 12px;
    background: rgba(255, 255, 255, 0.94);
  }

  .customer-commerce #dashboardView > .topbar .brand-logo-word > span {
    font-size: 24px;
  }

  .customer-commerce .customer-page-nav {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
  }

  .customer-commerce .customer-page-panel {
    padding: 20px 14px;
  }

  .customer-commerce .card .topbar {
    padding-bottom: 14px;
  }

  .customer-commerce .card h2 {
    font-size: 24px;
  }

  .customer-commerce .product-list {
    grid-template-columns: 1fr;
  }

  .customer-commerce .product-item {
    grid-template-columns: 108px minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-height: 0;
    padding: 12px;
  }

  .customer-commerce .product-item > .thumb {
    width: 108px;
    height: 136px;
    grid-row: span 2;
  }

  .customer-commerce .product-card-buy {
    grid-column: 2;
  }

  .customer-commerce .customer-price-tiers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .customer-commerce .customer-price-tiers div {
    min-height: 54px;
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .customer-commerce .customer-price-tiers strong {
    font-size: 15px;
  }

  .customer-commerce .product-card-hint {
    display: flex !important;
  }
}

@media (max-width: 420px) {
  .customer-commerce .product-item {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .customer-commerce .product-item > .thumb {
    width: 94px;
    height: 122px;
  }

  .customer-commerce .customer-price-tiers {
    gap: 5px;
  }

  .customer-commerce .customer-price-tiers div {
    padding: 7px 5px;
  }
}

/* 2026-06-19 login simplification: Taobao/JD style direct sign-in. */
.customer-commerce .auth-shell {
  min-height: calc(100vh - 48px);
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
  padding: clamp(28px, 5vw, 72px);
  border: 0;
  background:
    linear-gradient(90deg, rgba(255, 252, 247, 0.96) 0%, rgba(255, 252, 247, 0.9) 46%, rgba(247, 241, 231, 0.78) 100%),
    url("assets/login-hero-bg.png") center / cover;
  box-shadow: 0 26px 80px rgba(31, 34, 30, 0.13);
}

.customer-commerce .auth-shell .brand {
  min-height: auto;
  max-width: 720px;
  padding: 0;
  color: var(--xm-ink);
}

.customer-commerce .auth-shell .brand::before {
  display: none;
}

.customer-commerce .auth-shell .brand-eyebrow {
  color: var(--xm-teal);
  border-color: rgba(10, 116, 108, 0.16);
  background: rgba(10, 116, 108, 0.08);
}

.customer-commerce .auth-shell .brand-logo {
  margin: 20px 0 14px;
  padding: 0;
  background: transparent;
}

.customer-commerce .auth-shell .brand-logo-mark {
  width: 58px;
  height: 58px;
  color: #151515;
  background: linear-gradient(145deg, #f7d58b, #ad7419);
  box-shadow: 0 14px 30px rgba(173, 116, 25, 0.18);
}

.customer-commerce .auth-shell .brand-logo-word > span {
  color: #111827;
  font-size: clamp(42px, 5.4vw, 72px);
  letter-spacing: 0;
}

.customer-commerce .auth-shell .brand-logo-word > small {
  color: var(--xm-red);
  font-weight: 900;
}

.customer-commerce .brand-copy {
  max-width: 560px;
  color: #59635f;
  font-size: 18px;
  line-height: 1.8;
}

.customer-commerce .brand-metrics {
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 10px;
  width: auto;
  margin-top: 26px;
}

.customer-commerce .brand-metrics span {
  min-height: 72px;
  padding: 14px;
  border-color: rgba(18, 23, 22, 0.1);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(31, 34, 30, 0.06);
}

.customer-commerce .brand-metrics strong {
  color: var(--xm-ink);
  font-size: 20px;
}

.customer-commerce .brand-metrics small {
  color: var(--xm-muted);
}

.customer-commerce .commerce-visual,
.customer-commerce .commerce-visual-card {
  display: none;
}

.customer-commerce .auth-panel {
  justify-self: end;
  align-self: center;
  width: 100%;
  max-width: 420px;
  display: block;
  padding: 28px;
  border: 1px solid rgba(18, 23, 22, 0.08);
  border-top: 4px solid var(--xm-red);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(31, 34, 30, 0.14);
}

.customer-commerce .auth-panel form {
  display: grid;
  gap: 14px;
}

.customer-commerce .tabs {
  margin-bottom: 22px;
  padding: 4px;
  border-color: rgba(18, 23, 22, 0.08);
  background: #f3f5f7;
}

.customer-commerce .tab {
  min-height: 40px;
  color: #33413d;
}

.customer-commerce .tab.active {
  color: var(--xm-teal);
  background: #fff;
  box-shadow: inset 0 -2px 0 var(--xm-red), 0 8px 18px rgba(31, 34, 30, 0.07);
}

.customer-commerce .auth-panel .field span {
  color: #4b5652;
}

.customer-commerce .auth-panel input {
  min-height: 44px;
  background: #fff;
}

.customer-commerce .auth-panel .primary {
  min-height: 46px;
  margin-top: 4px;
  background: linear-gradient(135deg, #0b7a6e, #6a4a13);
}

.customer-commerce .auth-panel .ghost.full-width {
  min-height: 42px;
  background: #fff;
}

@media (max-width: 900px) {
  .customer-commerce .auth-shell {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }

  .customer-commerce .auth-panel {
    justify-self: stretch;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .customer-commerce .auth-shell {
    min-height: 100vh;
    padding: 18px 10px;
    background: #f7f3ea;
  }

  .customer-commerce .auth-shell .brand {
    padding: 8px 10px 0;
  }

  .customer-commerce .auth-shell .brand-eyebrow,
  .customer-commerce .brand-copy,
  .customer-commerce .brand-metrics {
    display: none !important;
  }

  .customer-commerce .auth-shell .brand-logo {
    margin: 6px 0 12px;
  }

  .customer-commerce .auth-shell .brand-logo-mark {
    width: 46px;
    height: 46px;
  }

  .customer-commerce .auth-shell .brand-logo-word > span {
    font-size: 34px;
  }

  .customer-commerce .auth-shell .brand-logo-word > small {
    font-size: 13px;
  }

  .customer-commerce .auth-panel {
    margin: 0;
    padding: 18px;
    box-shadow: 0 16px 42px rgba(31, 34, 30, 0.11);
  }
}

@media (max-width: 640px) {
  .customer-commerce #authView.auth-shell {
    display: grid;
    grid-template-rows: auto 1fr;
    align-content: start;
    gap: 10px;
  }

  .customer-commerce #authView .brand {
    min-height: 0 !important;
    display: block !important;
  }

  .customer-commerce #authView .brand-copy,
  .customer-commerce #authView .brand-metrics,
  .customer-commerce #authView .commerce-visual,
  .customer-commerce #authView .brand-eyebrow {
    display: none !important;
  }

  .customer-commerce #authView .brand-logo {
    margin: 6px 8px 10px !important;
  }
}

/* 2026-06-19 login color cleanup: one neutral system, one red accent. */
.customer-commerce #authView.auth-shell {
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: clamp(34px, 6vw, 92px);
  background:
    linear-gradient(90deg, rgba(250, 250, 249, 0.98), rgba(246, 246, 244, 0.96)),
    #f7f7f5;
}

.customer-commerce #authView .brand {
  color: #171717;
}

.customer-commerce #authView .brand-logo-mark {
  color: #fff;
  background: #151515;
  box-shadow: none;
}

.customer-commerce #authView .brand-logo-mark::after {
  background: var(--xm-red);
}

.customer-commerce #authView .brand-logo-word > span {
  color: #111827;
}

.customer-commerce #authView .brand-logo-word > small {
  color: var(--xm-red);
}

.customer-commerce #authView .brand-copy {
  color: #5f6461;
}

.customer-commerce #authView .brand-metrics span {
  border-color: rgba(17, 24, 39, 0.12);
  background: #fff;
  box-shadow: none;
}

.customer-commerce #authView .brand-metrics strong {
  color: #ffffff;
}

.customer-commerce #authView .brand-metrics small {
  color: rgba(255, 255, 255, 0.7);
}

.customer-commerce #authView .auth-panel {
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-top: 4px solid var(--xm-red);
  background: #fff;
  box-shadow: 0 22px 58px rgba(17, 24, 39, 0.12);
}

.customer-commerce #authView .tabs {
  background: #f3f4f6;
}

.customer-commerce #authView .tab {
  color: #374151;
}

.customer-commerce #authView .tab.active {
  color: var(--xm-red);
  background: #fff;
  border: 1px solid rgba(189, 16, 39, 0.45);
  box-shadow: none;
}

.customer-commerce #authView input {
  border-color: #d9dde2;
  background: #fff;
}

.customer-commerce #authView input:focus {
  border-color: var(--xm-red);
  box-shadow: 0 0 0 3px rgba(189, 16, 39, 0.1);
}

.customer-commerce #authView .primary {
  color: #fff;
  background: var(--xm-red) !important;
  box-shadow: 0 14px 26px rgba(189, 16, 39, 0.18);
}

.customer-commerce #authView .primary:hover {
  background: var(--xm-red-dark);
}

.customer-commerce #authView .ghost {
  background: #fff;
  color: #1f2937;
}

.customer-commerce #authView .auth-shell,
.customer-commerce #authView .commerce-visual,
.customer-commerce #authView .commerce-visual-card {
  background-image: none;
}

@media (min-width: 901px) {
  .customer-commerce #authView .brand {
    max-width: 640px;
  }

  .customer-commerce #authView .brand::after {
    content: "";
    display: block;
    width: min(520px, 100%);
    height: 1px;
    margin-top: 34px;
    background: linear-gradient(90deg, rgba(189, 16, 39, 0.28), transparent);
  }
}

@media (max-width: 640px) {
  .customer-commerce #authView.auth-shell {
    background: #f7f7f5;
  }

  .customer-commerce #authView .brand-logo-mark {
    background: #151515;
  }
}

/* 2026-06-19 login minimal v3: JD/Taobao-like calm login page. */
.customer-commerce #authView.auth-shell {
  min-height: calc(100vh - 48px);
  display: block;
  position: relative;
  padding: 1px;
  border: 0;
  border-radius: 8px;
  background: #f4f5f7;
  box-shadow: none;
  overflow: hidden;
}

.customer-commerce #authView .brand {
  position: absolute;
  left: clamp(44px, 9vw, 150px);
  top: 32px;
  min-height: 0 !important;
  width: auto !important;
  height: auto !important;
  max-width: none;
  padding: 0;
  display: inline-block !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #111827;
  overflow: visible !important;
}

.customer-commerce #authView .brand::before,
.customer-commerce #authView .brand::after,
.customer-commerce #authView .brand-eyebrow,
.customer-commerce #authView .brand-copy,
.customer-commerce #authView .brand-metrics,
.customer-commerce #authView .commerce-visual {
  display: none !important;
}

.customer-commerce #authView .brand-logo {
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.customer-commerce #authView .brand-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  color: #fff;
  background: var(--xm-red);
  box-shadow: none;
  font-size: 14px;
}

.customer-commerce #authView .brand-logo-mark::after {
  display: none;
}

.customer-commerce #authView .brand-logo-word > span {
  color: var(--xm-red);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.customer-commerce #authView .brand-logo-word > small {
  margin-top: 2px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.customer-commerce #authView .auth-panel {
  width: min(440px, calc(100vw - 40px));
  max-width: 440px;
  margin: 150px auto 0;
  padding: 34px 34px 32px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(17, 24, 39, 0.08);
}

.customer-commerce #authView .tabs {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 44px;
  padding: 0;
  margin: 0 0 30px;
  border: 0;
  background: transparent;
}

.customer-commerce #authView .tab {
  min-height: 34px;
  padding: 0 2px;
  border-radius: 0;
  color: #6b7280;
  background: transparent;
  font-size: 20px;
  font-weight: 800;
}

.customer-commerce #authView .tab.active {
  color: #111827;
  border: 0;
  border-bottom: 3px solid var(--xm-red);
  background: transparent;
  box-shadow: none;
}

.customer-commerce #authView .auth-panel form {
  gap: 16px;
}

.customer-commerce #authView .auth-panel .field span {
  display: none;
}

.customer-commerce #authView input {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  background: #f5f6f8;
  padding: 0 14px;
  box-shadow: none;
}

.customer-commerce #authView input:focus {
  background: #fff;
  box-shadow: 0 0 0 1px var(--xm-red), 0 0 0 4px rgba(189, 16, 39, 0.08);
}

.customer-commerce #authView .password-row {
  grid-template-columns: 1fr 58px;
}

.customer-commerce #authView .password-row .ghost {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  background: #f5f6f8;
  box-shadow: none;
}

.customer-commerce #authView .remember-row {
  margin-top: 2px;
  color: #6b7280;
}

body.customer-commerce #authView.auth-shell .primary {
  min-height: 50px;
  margin-top: 10px;
  border-radius: 6px;
  background: #111827 !important;
  box-shadow: none;
}

body.customer-commerce #authView.auth-shell .primary:hover {
  background: #000 !important;
  transform: none;
}

.customer-commerce #authView .ghost.full-width {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #6b7280;
  box-shadow: none;
}

.customer-commerce #authView .status {
  margin: 0;
  min-height: 18px;
  text-align: center;
}

@media (max-width: 640px) {
  .customer-commerce #authView.auth-shell {
    min-height: 100vh;
    border-radius: 0;
    padding: 0 12px;
    background: #f4f5f7;
  }

  .customer-commerce #authView .brand {
    position: static;
    padding: 22px 12px 18px;
  }

  .customer-commerce #authView .brand-logo-mark {
    width: 40px;
    height: 40px;
  }

  .customer-commerce #authView .brand-logo-word > span {
    font-size: 32px;
  }

  .customer-commerce #authView .auth-panel {
    width: 100%;
    margin: 0;
    padding: 24px 18px 28px;
    box-shadow: none;
  }

  .customer-commerce #authView .tabs {
    gap: 34px;
    margin-bottom: 24px;
  }

  .customer-commerce #authView .tab {
    font-size: 18px;
  }
}

/* Hard reset for the old decorative brand block on the minimal login page. */
body.customer-commerce #authView.auth-shell > .brand {
  display: none !important;
}

body.customer-commerce #authView.auth-shell {
  width: 100% !important;
  max-width: none !important;
  display: block !important;
}

body.customer-commerce #authView.auth-shell .auth-panel {
  margin-left: auto !important;
  margin-right: auto !important;
  border-top: 0 !important;
}

body.customer-commerce #authView.auth-shell .auth-panel::before,
body.customer-commerce #authView.auth-shell .auth-panel::after {
  display: none !important;
}

body.customer-commerce #authView.auth-shell::before {
  content: "XINMEI";
  position: absolute;
  left: clamp(44px, 9vw, 150px);
  top: 38px;
  color: #111827;
  font-size: 36px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

body.customer-commerce #authView.auth-shell::after {
  content: "企业采购";
  position: absolute;
  left: clamp(44px, 9vw, 150px);
  top: 78px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
}

@media (max-width: 640px) {
  body.customer-commerce #authView.auth-shell::before {
    left: 24px;
    top: 28px;
    font-size: 34px;
  }

  body.customer-commerce #authView.auth-shell::after {
    left: 24px;
    top: 66px;
  }

  .customer-commerce #authView .auth-panel {
    margin-top: 104px;
  }

  body.customer-commerce #authView.auth-shell .auth-panel {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Login neutral palette: no forced red primary color. */
body.customer-commerce #authView.auth-shell::before {
  color: #111827 !important;
}

body.customer-commerce #authView.auth-shell::after {
  content: "企业采购" !important;
}

body.customer-commerce #authView.auth-shell .tab.active {
  color: #111827 !important;
  border-color: #111827 !important;
  border-bottom-color: #111827 !important;
}

body.customer-commerce #authView.auth-shell input:focus {
  border-color: #111827 !important;
  box-shadow: 0 0 0 1px #111827, 0 0 0 4px rgba(17, 24, 39, 0.08) !important;
}

body.customer-commerce #authView.auth-shell .primary {
  background: #111827 !important;
  box-shadow: none !important;
}

body.customer-commerce #authView.auth-shell .primary:hover {
  background: #000 !important;
}

/* 2026-06-19 login Taobao-like v4: simple split card with Xinmei identity. */
body.customer-commerce {
  --xm-login-ink: #111827;
  --xm-login-muted: #667085;
  --xm-login-bg: #f1f2f5;
  --xm-login-panel: #ffffff;
  --xm-login-field: #f4f6f8;
  --xm-login-accent: #e45a1a;
  --xm-login-accent-dark: #c94711;
  --xm-login-line: #e8ebef;
}

body.customer-commerce .shell:has(#authView:not(.hidden)) {
  width: 100%;
  min-height: 100vh;
  padding: 0;
  background: var(--xm-login-bg);
}

body.customer-commerce #authView.auth-shell {
  min-height: 100vh;
  border-radius: 0 !important;
  padding: 1px 0 0 !important;
  background: var(--xm-login-bg) !important;
  box-shadow: none !important;
  overflow: hidden;
}

body.customer-commerce #authView.auth-shell::before,
body.customer-commerce #authView.auth-shell::after {
  display: none !important;
}

body.customer-commerce #authView.auth-shell > .brand {
  display: block !important;
  position: absolute;
  left: clamp(42px, 8vw, 150px);
  top: 24px;
  min-height: 0 !important;
  padding: 0 !important;
  color: var(--xm-login-ink);
  background: transparent !important;
  overflow: visible;
  z-index: 3;
}

body.customer-commerce #authView.auth-shell > .brand::before,
body.customer-commerce #authView.auth-shell .brand-eyebrow,
body.customer-commerce #authView.auth-shell .brand-copy,
body.customer-commerce #authView.auth-shell .brand-metrics,
body.customer-commerce #authView.auth-shell .commerce-visual {
  display: none !important;
}

body.customer-commerce #authView.auth-shell .brand-logo {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--xm-login-ink);
}

body.customer-commerce #authView.auth-shell .brand-logo-mark {
  width: 54px;
  height: 54px;
  border: 2px solid var(--xm-login-accent);
  border-radius: 10px;
  background: #fffaf5 !important;
  color: var(--xm-login-accent);
  font-size: 21px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
  position: relative;
}

body.customer-commerce #authView.auth-shell .brand-logo-mark::after {
  content: "";
  display: block !important;
  position: absolute;
  right: -16px;
  bottom: 12px;
  width: 22px;
  height: 4px;
  border-radius: 999px;
  background: var(--xm-login-accent);
}

body.customer-commerce #authView.auth-shell .brand-logo-word {
  gap: 4px;
}

body.customer-commerce #authView.auth-shell .brand-logo-word > span {
  color: var(--xm-login-ink) !important;
  font-size: 44px !important;
  font-weight: 900;
  line-height: 0.9;
}

body.customer-commerce #authView.auth-shell .brand-logo-word > small {
  color: var(--xm-login-accent) !important;
  font-size: 15px !important;
  font-weight: 900;
  line-height: 1;
}

body.customer-commerce #authView.auth-shell .auth-panel {
  position: relative;
  display: block;
  width: min(920px, calc(100vw - 64px)) !important;
  max-width: 920px !important;
  min-height: 540px;
  margin: 138px auto 0 !important;
  padding: 74px 70px 60px 500px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: var(--xm-login-panel) !important;
  box-shadow: none !important;
}

body.customer-commerce #authView.auth-shell .auth-panel::before {
  content: "\624B\673A\626B\7801\5B89\5168\767B\5F55\A\A\A\A\A\6253\5F00  XINMEI  \5BA2\6237\7AEF\626B\4E00\626B\A\A\600E\4E48\626B\7801\767B\5F55\FF1F";
  white-space: pre-line;
  display: block !important;
  position: absolute;
  left: 74px;
  top: 74px;
  bottom: 60px;
  width: 300px;
  padding-top: 0;
  border-right: 1px solid var(--xm-login-line);
  color: var(--xm-login-ink);
  text-align: center;
  font-size: 14px;
  line-height: 1.75;
  font-weight: 500;
}

body.customer-commerce #authView.auth-shell .auth-panel::after {
  content: "XM";
  display: grid !important;
  place-items: center;
  position: absolute;
  left: 116px;
  top: 154px;
  width: 216px;
  height: 216px;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  color: var(--xm-login-accent);
  font-size: 24px;
  font-weight: 900;
  background:
    linear-gradient(90deg, #111827 10px, transparent 10px 18px, #111827 18px 26px, transparent 26px 34px, #111827 34px 42px, transparent 42px 50px, #111827 50px 58px, transparent 58px),
    linear-gradient(#111827 10px, transparent 10px 18px, #111827 18px 26px, transparent 26px 34px, #111827 34px 42px, transparent 42px 50px, #111827 50px 58px, transparent 58px),
    #fff;
  background-size: 64px 64px;
  box-shadow: inset 0 0 0 14px #fff;
}

body.customer-commerce #authView.auth-shell .tabs,
body.customer-commerce #authView.auth-shell .auth-panel form {
  width: 370px;
  margin-left: auto;
  margin-right: 0;
}

body.customer-commerce #authView.auth-shell .tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 0;
  margin-bottom: 36px;
  border: 0;
  background: transparent;
}

body.customer-commerce #authView.auth-shell .tab {
  width: auto;
  min-height: 36px;
  padding: 0 4px 4px;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  color: var(--xm-login-ink);
  font-size: 22px;
  font-weight: 800;
}

body.customer-commerce #authView.auth-shell .tab + .tab {
  position: relative;
  margin-left: 14px;
}

body.customer-commerce #authView.auth-shell .tab + .tab::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 7px;
  width: 1px;
  height: 20px;
  background: var(--xm-login-line);
}

body.customer-commerce #authView.auth-shell .tab.active {
  color: var(--xm-login-accent) !important;
  border-bottom: 3px solid var(--xm-login-accent) !important;
}

body.customer-commerce #authView.auth-shell .auth-panel form {
  display: grid;
  gap: 20px;
}

body.customer-commerce #authView.auth-shell .auth-panel .field span {
  display: none;
}

body.customer-commerce #authView.auth-shell input {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--xm-login-field);
  color: var(--xm-login-ink);
  font-size: 15px;
}

body.customer-commerce #authView.auth-shell input:focus {
  border-color: transparent !important;
  box-shadow: 0 0 0 2px rgba(228, 90, 26, 0.18) !important;
}

body.customer-commerce #authView.auth-shell .password-row {
  grid-template-columns: 1fr 74px;
  gap: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--xm-login-field);
}

body.customer-commerce #authView.auth-shell .password-row input {
  border-radius: 8px 0 0 8px;
}

body.customer-commerce #authView.auth-shell .password-row .ghost {
  min-height: 48px;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: var(--xm-login-field);
  color: var(--xm-login-muted);
  box-shadow: none;
}

body.customer-commerce #authView.auth-shell .remember-row {
  margin-top: 0;
  color: var(--xm-login-muted);
  font-size: 13px;
}

body.customer-commerce #authView.auth-shell .primary {
  min-height: 50px;
  margin-top: 10px;
  border-radius: 8px;
  background: var(--xm-login-accent) !important;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: none !important;
}

body.customer-commerce #authView.auth-shell .primary:hover {
  background: var(--xm-login-accent-dark) !important;
}

body.customer-commerce #authView.auth-shell .ghost.full-width {
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--xm-login-muted);
  box-shadow: none;
}

body.customer-commerce #authView.auth-shell .status {
  min-height: 18px;
  margin: 0;
  text-align: center;
}

@media (max-width: 780px) {
  body.customer-commerce #authView.auth-shell > .brand {
    left: 22px;
    top: 18px;
  }

  body.customer-commerce #authView.auth-shell .brand-logo-mark {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  body.customer-commerce #authView.auth-shell .brand-logo-word > span {
    font-size: 34px !important;
  }

  body.customer-commerce #authView.auth-shell .brand-logo-word > small {
    font-size: 13px !important;
  }

  body.customer-commerce #authView.auth-shell .auth-panel {
    width: calc(100vw - 24px) !important;
    min-height: 0;
    margin-top: 106px !important;
    padding: 28px 18px 30px !important;
    border-radius: 12px !important;
  }

  body.customer-commerce #authView.auth-shell .auth-panel::before,
  body.customer-commerce #authView.auth-shell .auth-panel::after {
    display: none !important;
  }

  body.customer-commerce #authView.auth-shell .tabs,
  body.customer-commerce #authView.auth-shell .auth-panel form {
    width: 100%;
  }

  body.customer-commerce #authView.auth-shell .tabs {
    gap: 24px;
    margin-bottom: 26px;
  }

  body.customer-commerce #authView.auth-shell .tab {
    font-size: 20px;
  }
}

/* 2026-06-19 login v4 polish: remove old segmented tab residue. */
body.customer-commerce #authView.auth-shell .auth-panel {
  height: 540px !important;
  min-height: 540px !important;
  padding-top: 60px !important;
  padding-bottom: 42px !important;
}

body.customer-commerce #authView.auth-shell .auth-panel::before {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.customer-commerce #authView.auth-shell .tabs {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  margin-bottom: 28px !important;
}

body.customer-commerce #authView.auth-shell .tab {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.customer-commerce #authView.auth-shell .tab.active {
  box-shadow: none !important;
}

body.customer-commerce #authView.auth-shell .auth-panel form {
  gap: 14px !important;
}

body.customer-commerce #authView.auth-shell .remember-row {
  margin: 2px 0 8px !important;
}

@media (max-width: 780px) {
  body.customer-commerce #authView.auth-shell .auth-panel {
    height: auto !important;
    min-height: 0 !important;
    padding-top: 28px !important;
    padding-bottom: 30px !important;
  }
}

/* 2026-06-19 login v4 final placement. */
body.customer-commerce .shell:has(> #authView.auth-shell:not(.hidden)) {
  padding: 0 !important;
}

body.customer-commerce #authView.auth-shell > div.brand {
  position: absolute !important;
  width: auto !important;
  height: auto !important;
  max-width: calc(100vw - 44px);
  top: 34px !important;
  transform: none !important;
}

body.customer-commerce #authView.auth-shell .auth-panel {
  position: absolute !important;
  left: 50% !important;
  top: 154px !important;
  height: 570px !important;
  min-height: 570px !important;
  margin: 0 !important;
  transform: translateX(-50%) !important;
}

@media (max-width: 780px) {
  body.customer-commerce #authView.auth-shell > div.brand {
    top: 18px !important;
  }

  body.customer-commerce #authView.auth-shell .auth-panel {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin-top: 110px !important;
    transform: none !important;
  }
}

/* 2026-06-19 login v5: remove QR concept and give register its own height. */
body.customer-commerce #authView.auth-shell .auth-panel::before {
  content: "\4F01\4E1A\91C7\8D2D\8D26\53F7\A\A\4EF7\683C\3001\8BA2\5355\3001\8D27\6B3E\7EDF\4E00\7BA1\7406\A\A SKU\20\20\20\9636\68AF\4EF7\20\20\20\8BA2\5355\6D41";
  white-space: pre-line;
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 76px;
  top: 76px;
  bottom: 76px;
  width: 300px;
  border-right: 1px solid var(--xm-login-line);
  color: var(--xm-login-ink);
  text-align: center;
  font-size: 17px;
  line-height: 2;
  font-weight: 800;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.customer-commerce #authView.auth-shell .auth-panel::after {
  display: none !important;
  content: none !important;
}

body.customer-commerce #authView.auth-shell[data-mode="login"] .auth-panel {
  height: 570px !important;
  min-height: 570px !important;
  top: 154px !important;
  padding-top: 58px !important;
  padding-bottom: 40px !important;
}

body.customer-commerce #authView.auth-shell[data-mode="register"] .auth-panel {
  height: 700px !important;
  min-height: 700px !important;
  top: 118px !important;
  padding-top: 44px !important;
  padding-bottom: 44px !important;
}

body.customer-commerce #authView.auth-shell[data-mode="register"] .tabs {
  margin-bottom: 22px !important;
}

body.customer-commerce #authView.auth-shell[data-mode="register"] .auth-panel form {
  gap: 10px !important;
}

body.customer-commerce #authView.auth-shell[data-mode="register"] input {
  min-height: 46px;
}

body.customer-commerce #authView.auth-shell[data-mode="register"] .password-row .ghost {
  min-height: 46px;
}

body.customer-commerce #authView.auth-shell[data-mode="register"] .field small {
  margin-top: 2px;
  color: var(--xm-login-muted);
  font-size: 12px;
  line-height: 1.35;
}

body.customer-commerce #authView.auth-shell[data-mode="register"] .remember-row {
  margin: 0 0 4px !important;
}

body.customer-commerce #authView.auth-shell[data-mode="register"] .primary {
  margin-top: 8px;
}

@media (max-width: 780px) {
  body.customer-commerce #authView.auth-shell .auth-panel::before,
  body.customer-commerce #authView.auth-shell .auth-panel::after {
    display: none !important;
    content: none !important;
  }

  body.customer-commerce #authView.auth-shell[data-mode="login"] .auth-panel,
  body.customer-commerce #authView.auth-shell[data-mode="register"] .auth-panel {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin-top: 110px !important;
    padding: 28px 18px 30px !important;
    transform: none !important;
  }

  body.customer-commerce #authView.auth-shell[data-mode="register"] .auth-panel form {
    gap: 12px !important;
  }
}

/* 2026-06-19 login v6: Taobao-inspired blue hero with right-side card. */
body.customer-commerce {
  --xm-login-hero: #15176b;
  --xm-login-hero-deep: #101052;
  --xm-login-hero-glow: #4057d6;
  --xm-login-card: #ffffff;
  --xm-login-orange: #ff4f13;
  --xm-login-orange-dark: #e2400d;
}

body.customer-commerce .shell:has(> #authView.auth-shell:not(.hidden)) {
  width: 100% !important;
  min-height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
}

body.customer-commerce #authView.auth-shell {
  min-height: 100vh;
  position: relative;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: hidden;
}

body.customer-commerce #authView.auth-shell::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  left: 0;
  right: 0;
  top: 80px;
  height: 650px;
  background:
    radial-gradient(circle at 48% 44%, rgba(91, 114, 255, 0.56), transparent 13%),
    radial-gradient(circle at 37% 34%, rgba(255, 255, 255, 0.28), transparent 2%),
    radial-gradient(circle at 56% 65%, rgba(255, 255, 255, 0.22), transparent 2%),
    linear-gradient(135deg, transparent 0 34%, rgba(255, 255, 255, 0.08) 34.2%, transparent 34.6%),
    linear-gradient(135deg, transparent 0 49%, rgba(255, 255, 255, 0.07) 49.2%, transparent 49.5%),
    linear-gradient(135deg, transparent 0 64%, rgba(255, 255, 255, 0.06) 64.2%, transparent 64.6%),
    linear-gradient(90deg, var(--xm-login-hero-deep), var(--xm-login-hero), var(--xm-login-hero-deep));
}

body.customer-commerce #authView.auth-shell::after {
  content: "企业采购\A 随时随地，想采就采\A 集中管理商品、阶梯价和订单";
  white-space: pre-line;
  display: block !important;
  position: absolute;
  left: max(88px, calc((100vw - 1180px) / 2 + 20px));
  top: 330px;
  width: 360px;
  color: #fff;
  font-size: 30px;
  line-height: 1.48;
  font-weight: 800;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  z-index: 1;
}

body.customer-commerce #authView.auth-shell > div.brand {
  display: block !important;
  position: absolute !important;
  left: max(88px, calc((100vw - 1180px) / 2 + 20px)) !important;
  top: 15px !important;
  width: auto !important;
  height: auto !important;
  max-width: calc(100vw - 44px);
  padding: 0 !important;
  color: var(--xm-login-ink);
  background: transparent !important;
  transform: none !important;
  overflow: visible;
  z-index: 4;
}

body.customer-commerce #authView.auth-shell > div.brand::before {
  content: "" !important;
  display: block !important;
  position: fixed;
  left: max(520px, calc((100vw - 1180px) / 2 + 500px));
  top: 215px;
  width: 160px;
  height: 286px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 90%, transparent 0 13px, rgba(255, 255, 255, 0.8) 14px 16px, transparent 17px),
    linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 30px 80px rgba(20, 34, 160, 0.65);
  opacity: 0.88;
  z-index: 1;
}

body.customer-commerce #authView.auth-shell .brand-logo {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.customer-commerce #authView.auth-shell .brand-logo-mark {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 79, 19, 0.88);
  border-radius: 8px;
  background: #fffaf5 !important;
  color: var(--xm-login-orange);
  font-size: 17px;
  font-weight: 900;
  box-shadow: none;
}

body.customer-commerce #authView.auth-shell .brand-logo-mark::after {
  right: -13px;
  bottom: 9px;
  width: 18px;
  height: 4px;
  background: var(--xm-login-orange) !important;
}

body.customer-commerce #authView.auth-shell .brand-logo-word > span {
  color: #111827 !important;
  font-size: 34px !important;
}

body.customer-commerce #authView.auth-shell .brand-logo-word > small {
  color: var(--xm-login-orange) !important;
  font-size: 12px !important;
}

body.customer-commerce #authView.auth-shell .auth-panel {
  position: absolute !important;
  left: auto !important;
  right: max(88px, calc((100vw - 1180px) / 2 + 20px)) !important;
  top: 182px !important;
  width: 354px !important;
  max-width: 354px !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 28px 28px 26px !important;
  border: 1px solid rgba(17, 24, 39, 0.12) !important;
  border-radius: 0 !important;
  background: var(--xm-login-card) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24) !important;
  transform: none !important;
  z-index: 3;
}

body.customer-commerce #authView.auth-shell .auth-panel::before,
body.customer-commerce #authView.auth-shell .auth-panel::after {
  display: none !important;
  content: none !important;
}

body.customer-commerce #authView.auth-shell .tabs,
body.customer-commerce #authView.auth-shell .auth-panel form {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

body.customer-commerce #authView.auth-shell .tabs {
  justify-content: flex-start;
  gap: 14px;
  margin: 0 0 22px !important;
}

body.customer-commerce #authView.auth-shell .tab {
  min-height: 30px;
  padding: 0 0 4px;
  color: #111827;
  font-size: 17px;
  font-weight: 800;
}

body.customer-commerce #authView.auth-shell .tab + .tab {
  margin-left: 8px;
}

body.customer-commerce #authView.auth-shell .tab + .tab::before {
  left: -12px;
  top: 4px;
  height: 18px;
}

body.customer-commerce #authView.auth-shell .tab.active {
  color: #111827 !important;
  border-bottom: 2px solid var(--xm-login-orange) !important;
}

body.customer-commerce #authView.auth-shell .auth-panel form {
  gap: 14px !important;
}

body.customer-commerce #authView.auth-shell input {
  min-height: 42px;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  background: #fff;
  font-size: 14px;
}

body.customer-commerce #authView.auth-shell input:focus {
  border-color: rgba(255, 79, 19, 0.55) !important;
  box-shadow: 0 0 0 2px rgba(255, 79, 19, 0.12) !important;
}

body.customer-commerce #authView.auth-shell .password-row {
  grid-template-columns: 1fr 62px;
  border-radius: 0;
  background: transparent;
}

body.customer-commerce #authView.auth-shell .password-row input,
body.customer-commerce #authView.auth-shell .password-row .ghost {
  min-height: 42px;
  border-radius: 0;
}

body.customer-commerce #authView.auth-shell .password-row .ghost {
  border: 1px solid #e5e7eb;
  border-left: 0;
  background: #fff;
  color: #111827;
}

body.customer-commerce #authView.auth-shell .remember-row {
  margin: 0 !important;
  font-size: 13px;
}

body.customer-commerce #authView.auth-shell .primary {
  min-height: 42px;
  margin-top: 6px;
  border-radius: 3px;
  background: var(--xm-login-orange) !important;
  font-size: 15px;
}

body.customer-commerce #authView.auth-shell .primary:hover {
  background: var(--xm-login-orange-dark) !important;
}

body.customer-commerce #authView.auth-shell .ghost.full-width {
  min-height: 24px;
  color: #666;
  font-size: 12px;
}

body.customer-commerce #authView.auth-shell[data-mode="login"] .auth-panel,
body.customer-commerce #authView.auth-shell[data-mode="register"] .auth-panel {
  height: auto !important;
  min-height: 0 !important;
}

body.customer-commerce #authView.auth-shell[data-mode="register"] .auth-panel {
  top: 136px !important;
}

body.customer-commerce #authView.auth-shell[data-mode="register"] .auth-panel form {
  gap: 10px !important;
}

body.customer-commerce #authView.auth-shell[data-mode="register"] input,
body.customer-commerce #authView.auth-shell[data-mode="register"] .password-row .ghost {
  min-height: 40px;
}

body.customer-commerce #authView.auth-shell[data-mode="register"] .field small {
  font-size: 12px;
  line-height: 1.3;
}

@media (max-width: 780px) {
  body.customer-commerce #authView.auth-shell::before {
    top: 76px;
    height: 768px;
  }

  body.customer-commerce #authView.auth-shell::after,
  body.customer-commerce #authView.auth-shell > div.brand::before {
    display: none !important;
  }

  body.customer-commerce #authView.auth-shell > div.brand {
    left: 22px !important;
    top: 14px !important;
  }

  body.customer-commerce #authView.auth-shell .brand-logo-mark {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  body.customer-commerce #authView.auth-shell .brand-logo-word > span {
    font-size: 32px !important;
  }

  body.customer-commerce #authView.auth-shell .brand-logo-word > small {
    font-size: 12px !important;
  }

  body.customer-commerce #authView.auth-shell .auth-panel,
  body.customer-commerce #authView.auth-shell[data-mode="login"] .auth-panel,
  body.customer-commerce #authView.auth-shell[data-mode="register"] .auth-panel {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    width: calc(100vw - 32px) !important;
    max-width: none !important;
    margin: 120px auto 0 !important;
    padding: 24px 18px 24px !important;
    transform: none !important;
  }
}

/* 2026-06-19 login v6 final hard overrides. */
html body.customer-commerce #authView.auth-shell::after {
  content: "企业采购\A 随时随地，想采就采\A 集中管理商品、阶梯价和订单" !important;
  white-space: pre-line !important;
  display: block !important;
  width: 430px !important;
  height: auto !important;
  font-size: 28px !important;
  line-height: 1.5 !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo {
  height: 50px !important;
  gap: 10px !important;
  line-height: 1 !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-mark {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  font-size: 17px !important;
  line-height: 1 !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-word > span {
  font-size: 34px !important;
  line-height: 0.92 !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-word > small {
  font-size: 12px !important;
  line-height: 1 !important;
}

@media (max-width: 780px) {
  html body.customer-commerce #authView.auth-shell::after {
    display: none !important;
  }
}

/* 2026-06-19 login v7: Taobao-style gray icon blocks inside fields. */
html body.customer-commerce #authView.auth-shell .auth-panel .field {
  position: relative;
}

html body.customer-commerce #authView.auth-shell .auth-panel .field::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border: 1px solid #d8dadd;
  border-right: 0;
  background-color: #d3d3d3;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  z-index: 2;
  pointer-events: none;
}

html body.customer-commerce #authView.auth-shell .auth-panel .field:has(#phoneInput)::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='white'%3E%3Ccircle%20cx='12'%20cy='8'%20r='4'/%3E%3Cpath%20d='M4%2021c1.3-4.5%204.4-7%208-7s6.7%202.5%208%207z'/%3E%3C/svg%3E");
}

html body.customer-commerce #authView.auth-shell .auth-panel .field:has(#companyCodeInput)::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='white'%3E%3Cpath%20d='M4%2021V6.5L12%203l8%203.5V21h-5v-6H9v6H4zm6-10h4V8h-4v3z'/%3E%3C/svg%3E");
}

html body.customer-commerce #authView.auth-shell .auth-panel .field:has(#registerCodeInput)::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='white'%3E%3Cpath%20d='M8.5%2014a5.5%205.5%200%201%201%204.9-3H22v3h-3v3h-3v3h-3.2A5.5%205.5%200%200%201%208.5%2014zm0-3a2%202%200%201%200%200%204%202%202%200%200%200%200-4z'/%3E%3C/svg%3E");
}

html body.customer-commerce #authView.auth-shell .auth-panel .field:has(#passwordInput)::before,
html body.customer-commerce #authView.auth-shell .auth-panel .field:has(#confirmPasswordInput)::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='white'%3E%3Cpath%20d='M7%2010V8a5%205%200%200%201%2010%200v2h1.2c.4%200%20.8.4.8.8v9.4c0%20.4-.4.8-.8.8H5.8a.8.8%200%200%201-.8-.8v-9.4c0-.4.4-.8.8-.8H7zm2%200h6V8a3%203%200%200%200-6%200v2z'/%3E%3C/svg%3E");
}

html body.customer-commerce #authView.auth-shell .auth-panel .field > input {
  padding-left: 56px !important;
}

html body.customer-commerce #authView.auth-shell .auth-panel .password-row input {
  padding-left: 56px !important;
}

html body.customer-commerce #authView.auth-shell .auth-panel .password-row .ghost {
  border-left: 1px solid #e5e7eb;
}

html body.customer-commerce #authView.auth-shell .auth-panel .field:has(.password-row)::before {
  border-right: 0;
}

html body.customer-commerce #authView.auth-shell[data-mode="register"] .auth-panel .field::before,
html body.customer-commerce #authView.auth-shell[data-mode="register"] .auth-panel .field:has(.password-row)::before {
  height: 40px;
}

/* 2026-06-19 login v7 corner fix: field and icon block use one square system. */
html body.customer-commerce #authView.auth-shell .auth-panel .field::before {
  border-radius: 0 !important;
}

html body.customer-commerce #authView.auth-shell .auth-panel .field > input,
html body.customer-commerce #authView.auth-shell .auth-panel .password-row,
html body.customer-commerce #authView.auth-shell .auth-panel .password-row input,
html body.customer-commerce #authView.auth-shell .auth-panel .password-row .ghost {
  border-radius: 0 !important;
}

html body.customer-commerce #authView.auth-shell .auth-panel .field > input,
html body.customer-commerce #authView.auth-shell .auth-panel .password-row input {
  border-left-color: transparent !important;
}

html body.customer-commerce #authView.auth-shell .auth-panel .field > input:focus,
html body.customer-commerce #authView.auth-shell .auth-panel .password-row input:focus {
  border-left-color: transparent !important;
}

/* 2026-06-19 login v7 alignment fix: password row matches normal fields exactly. */
html body.customer-commerce #authView.auth-shell .auth-panel .field,
html body.customer-commerce #authView.auth-shell .auth-panel .field > input,
html body.customer-commerce #authView.auth-shell .auth-panel .password-row {
  width: 100% !important;
}

html body.customer-commerce #authView.auth-shell .auth-panel .field > input,
html body.customer-commerce #authView.auth-shell .auth-panel .password-row,
html body.customer-commerce #authView.auth-shell .auth-panel .password-row input,
html body.customer-commerce #authView.auth-shell .auth-panel .password-row .ghost {
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
}

html body.customer-commerce #authView.auth-shell .auth-panel .password-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 62px !important;
  gap: 0 !important;
  align-items: stretch !important;
}

html body.customer-commerce #authView.auth-shell .auth-panel .password-row .ghost {
  align-self: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #e5e7eb !important;
  border-left: 0 !important;
  line-height: 42px !important;
}

html body.customer-commerce #authView.auth-shell .auth-panel .field::before {
  height: 42px !important;
}

/* 2026-06-19 login v7 edge fix: icon block covers the input border completely. */
html body.customer-commerce #authView.auth-shell .auth-panel .field::before,
html body.customer-commerce #authView.auth-shell[data-mode="register"] .auth-panel .field::before,
html body.customer-commerce #authView.auth-shell[data-mode="register"] .auth-panel .field:has(.password-row)::before {
  width: 44px !important;
  height: 44px !important;
  box-sizing: border-box !important;
  border: 0 !important;
  background-color: #d3d3d3 !important;
}

html body.customer-commerce #authView.auth-shell .auth-panel .field > input,
html body.customer-commerce #authView.auth-shell .auth-panel .password-row input {
  padding-left: 58px !important;
}

/* 2026-06-19 login v8: logo behaves like a brand mark, not editable text. */
html body.customer-commerce #authView.auth-shell > div.brand,
html body.customer-commerce #authView.auth-shell .brand-logo,
html body.customer-commerce #authView.auth-shell .brand-logo * {
  cursor: default !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo {
  pointer-events: none !important;
}

/* 2026-06-19 login v8: tabs are controls, not selectable text. */
html body.customer-commerce #authView.auth-shell .tabs,
html body.customer-commerce #authView.auth-shell .tab,
html body.customer-commerce #authView.auth-shell .tab * {
  user-select: none !important;
  -webkit-user-select: none !important;
}

html body.customer-commerce #authView.auth-shell .tab {
  cursor: pointer !important;
}

/* 2026-06-19 login v8: center the divider between login and register tabs. */
html body.customer-commerce #authView.auth-shell .tabs {
  display: flex !important;
  justify-content: start !important;
  align-items: start !important;
  gap: 24px !important;
}

html body.customer-commerce #authView.auth-shell .tab {
  margin: 0 !important;
}

html body.customer-commerce #authView.auth-shell .tab + .tab {
  margin-left: 0 !important;
}

html body.customer-commerce #authView.auth-shell .tab + .tab::before {
  left: -12.5px !important;
  top: 4px !important;
  width: 1px !important;
  height: 18px !important;
}

/* 2026-06-19 login v9: remove hero text/artwork and center the auth card. */
html body.customer-commerce #authView.auth-shell::after,
html body.customer-commerce #authView.auth-shell > div.brand::before {
  display: none !important;
  content: none !important;
}

html body.customer-commerce #authView.auth-shell .auth-panel,
html body.customer-commerce #authView.auth-shell[data-mode="login"] .auth-panel,
html body.customer-commerce #authView.auth-shell[data-mode="register"] .auth-panel {
  left: 50% !important;
  right: auto !important;
  top: 154px !important;
  transform: translateX(-50%) !important;
}

html body.customer-commerce #authView.auth-shell[data-mode="register"] .auth-panel {
  top: 118px !important;
}

@media (max-width: 780px) {
  html body.customer-commerce #authView.auth-shell .auth-panel,
  html body.customer-commerce #authView.auth-shell[data-mode="login"] .auth-panel,
  html body.customer-commerce #authView.auth-shell[data-mode="register"] .auth-panel {
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
  }
}

/* 2026-06-19 login v10: make the blue hero area tall enough for the centered card. */
html body.customer-commerce #authView.auth-shell::before {
  height: min(820px, calc(100vh - 24px)) !important;
}

@media (max-width: 780px) {
  html body.customer-commerce #authView.auth-shell::before {
    height: min(900px, calc(100vh - 8px)) !important;
  }
}

/* 2026-06-19 login v11: refined Xinmei brand lockup. */
html body.customer-commerce #authView.auth-shell > div.brand {
  top: 20px !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo {
  height: 50px !important;
  gap: 11px !important;
  align-items: center !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-mark {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border: 1px solid #f0d49d !important;
  border-radius: 10px !important;
  background: linear-gradient(145deg, #fffefb 0%, #fff2db 100%) !important;
  color: #111827 !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 20px rgba(17, 24, 39, 0.08) !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-mark::after {
  right: -11px !important;
  bottom: 8px !important;
  width: 17px !important;
  height: 4px !important;
  border-radius: 999px !important;
  background: #ff4f13 !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-word {
  display: grid !important;
  gap: 4px !important;
  align-content: center !important;
  transform: translateY(-1px) !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-word > span {
  color: #111827 !important;
  font-size: 36px !important;
  line-height: 0.82 !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-word > small {
  color: #ff4f13 !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  margin-left: 1px !important;
}

@media (max-width: 780px) {
  html body.customer-commerce #authView.auth-shell .brand-logo {
    height: 44px !important;
    gap: 10px !important;
  }

  html body.customer-commerce #authView.auth-shell .brand-logo-mark {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    font-size: 15px !important;
  }

  html body.customer-commerce #authView.auth-shell .brand-logo-word > span {
    font-size: 31px !important;
  }

  html body.customer-commerce #authView.auth-shell .brand-logo-word > small {
    font-size: 11px !important;
  }
}

/* 2026-06-19 login v12: flatter, cleaner Xinmei brand mark. */
html body.customer-commerce #authView.auth-shell > div.brand {
  top: 18px !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo {
  height: 52px !important;
  gap: 12px !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-mark {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  border: 2px solid #f04b2f !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #f04b2f !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-mark::after {
  right: -12px !important;
  bottom: 9px !important;
  width: 18px !important;
  height: 4px !important;
  border-radius: 4px !important;
  background: #ff4b1f !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-word {
  gap: 3px !important;
  transform: translateY(0) !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-word > span {
  color: #111827 !important;
  font-family: "Arial Black", "Segoe UI Black", "Microsoft YaHei UI", sans-serif !important;
  font-size: 37px !important;
  line-height: 0.84 !important;
  font-weight: 900 !important;
  transform: scaleX(0.92) !important;
  transform-origin: left center !important;
  display: inline-block !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-word > small {
  color: #f04b2f !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  margin-left: 0 !important;
  transform: scaleX(0.96) !important;
  transform-origin: left center !important;
  display: inline-block !important;
}

@media (max-width: 780px) {
  html body.customer-commerce #authView.auth-shell .brand-logo {
    height: 46px !important;
    gap: 10px !important;
  }

  html body.customer-commerce #authView.auth-shell .brand-logo-mark {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    font-size: 15px !important;
  }

  html body.customer-commerce #authView.auth-shell .brand-logo-word > span {
    font-size: 31px !important;
  }

  html body.customer-commerce #authView.auth-shell .brand-logo-word > small {
    font-size: 11px !important;
  }
}

/* 2026-06-19 login v13: refine the XM badge itself. */
html body.customer-commerce #authView.auth-shell .brand-logo-mark {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  position: relative !important;
  isolation: isolate !important;
  display: inline-grid !important;
  place-items: center !important;
  border: 2px solid #ff4a2a !important;
  border-radius: 10px !important;
  background:
    linear-gradient(145deg, #ffffff 0%, #fff7f3 56%, #fff0e9 100%) !important;
  color: #ef3f25 !important;
  font-family: "Arial Black", "Segoe UI Black", "Microsoft YaHei UI", sans-serif !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 6px 16px rgba(239, 63, 37, 0.08) !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-mark::before {
  content: "" !important;
  position: absolute !important;
  inset: 4px !important;
  z-index: -1 !important;
  border: 1px solid rgba(255, 74, 42, 0.1) !important;
  border-radius: 7px !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 236, 226, 0.26)) !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-mark::after {
  right: -14px !important;
  bottom: 10px !important;
  width: 21px !important;
  height: 5px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #ff4a2a 0%, #ff5f26 100%) !important;
  box-shadow: 0 2px 4px rgba(255, 74, 42, 0.18) !important;
}

@media (max-width: 780px) {
  html body.customer-commerce #authView.auth-shell .brand-logo-mark {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 9px !important;
    font-size: 15px !important;
  }

  html body.customer-commerce #authView.auth-shell .brand-logo-mark::after {
    right: -12px !important;
    bottom: 8px !important;
    width: 18px !important;
    height: 4px !important;
  }
}

/* 2026-06-19 login v19-final: generated one-piece XM badge asset must win. */
html body.customer-commerce #authView.auth-shell .brand-logo {
  height: 56px !important;
  gap: 10px !important;
}

html body.customer-commerce #authView.auth-shell > div.brand {
  display: flex !important;
  align-items: flex-start !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-mark {
  width: 64px !important;
  height: 56px !important;
  min-width: 64px !important;
  min-height: 56px !important;
  position: relative !important;
  display: block !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: url("assets/xm-badge-mark.png") center / contain no-repeat !important;
  box-shadow: none !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-shadow: none !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-mark::before {
  content: "XM" !important;
  display: grid !important;
  place-items: center !important;
  position: absolute !important;
  left: 3px !important;
  top: 2px !important;
  z-index: 1 !important;
  width: 50px !important;
  height: 50px !important;
  inset: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: none !important;
  color: #172033 !important;
  font-family: "Arial Black", "Segoe UI Black", "Microsoft YaHei UI", sans-serif !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-mark::after {
  display: none !important;
  content: none !important;
}

@media (max-width: 780px) {
  html body.customer-commerce #authView.auth-shell .brand-logo {
    height: 48px !important;
    gap: 9px !important;
  }

  html body.customer-commerce #authView.auth-shell .brand-logo-mark {
    width: 56px !important;
    height: 49px !important;
    min-width: 56px !important;
    min-height: 49px !important;
  }

  html body.customer-commerce #authView.auth-shell .brand-logo-mark::before {
    left: 3px !important;
    top: 2px !important;
    width: 43px !important;
    height: 43px !important;
    font-size: 13px !important;
  }
}

/* 2026-06-19 login v20: make generated badge visible and center XM in the real badge area. */
html body.customer-commerce #authView.auth-shell > div.brand {
  top: 12px !important;
  display: flex !important;
  align-items: flex-start !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo {
  height: 74px !important;
  gap: 12px !important;
  align-items: flex-start !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-mark {
  width: 84px !important;
  height: 74px !important;
  min-width: 84px !important;
  min-height: 74px !important;
  position: relative !important;
  display: block !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: url("assets/xm-badge-mark.png") center / contain no-repeat !important;
  box-shadow: none !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-shadow: none !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-mark::before {
  content: "XM" !important;
  display: grid !important;
  place-items: center !important;
  position: absolute !important;
  left: 4px !important;
  top: 4px !important;
  z-index: 1 !important;
  width: 62px !important;
  height: 62px !important;
  inset: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: none !important;
  color: #172033 !important;
  font-family: "Arial Black", "Segoe UI Black", "Microsoft YaHei UI", sans-serif !important;
  font-size: 19px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.76) !important;
  transform: translate(5px, 6px) !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-mark::after {
  display: none !important;
  content: none !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-word {
  padding-top: 3px !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-word > span {
  font-size: 47px !important;
  line-height: 0.84 !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-word > small {
  font-size: 14px !important;
  line-height: 1 !important;
}

html body.customer-commerce #authView.auth-shell::before {
  top: 88px !important;
}

@media (max-width: 780px) {
  html body.customer-commerce #authView.auth-shell > div.brand {
    top: 12px !important;
  }

  html body.customer-commerce #authView.auth-shell .brand-logo {
    height: 56px !important;
    gap: 9px !important;
  }

  html body.customer-commerce #authView.auth-shell .brand-logo-mark {
    width: 64px !important;
    height: 56px !important;
    min-width: 64px !important;
    min-height: 56px !important;
  }

  html body.customer-commerce #authView.auth-shell .brand-logo-mark::before {
    left: 3px !important;
    top: 3px !important;
    width: 47px !important;
    height: 47px !important;
    font-size: 14px !important;
    transform: translate(4px, 5px) !important;
  }

  html body.customer-commerce #authView.auth-shell .brand-logo-word {
    padding-top: 2px !important;
  }

  html body.customer-commerce #authView.auth-shell .brand-logo-word > span {
    font-size: 35px !important;
  }

  html body.customer-commerce #authView.auth-shell .brand-logo-word > small {
    font-size: 11px !important;
  }

  html body.customer-commerce #authView.auth-shell::before {
    top: 76px !important;
  }
}

/* 2026-06-19 login v21: separate the white 3D badge from the pale header. */
html body.customer-commerce #authView.auth-shell {
  background:
    linear-gradient(180deg, #f7f8fb 0 88px, #ffffff 88px 100%) !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-mark {
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.82))
    drop-shadow(0 8px 14px rgba(17, 24, 39, 0.18))
    drop-shadow(0 0 1px rgba(17, 24, 39, 0.22)) !important;
}

@media (max-width: 780px) {
  html body.customer-commerce #authView.auth-shell {
    background:
      linear-gradient(180deg, #f7f8fb 0 76px, #ffffff 76px 100%) !important;
  }
}

/* 2026-06-19 login v22: make the full login backdrop blue from the top. */
html body.customer-commerce #authView.auth-shell {
  background: #15166b !important;
}

html body.customer-commerce #authView.auth-shell::before {
  top: 0 !important;
  height: min(900px, 100vh) !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-word > span {
  color: #111827 !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-word > small {
  color: #ff4f20 !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.24) !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-mark {
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.7))
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28))
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.28)) !important;
}

@media (max-width: 780px) {
  html body.customer-commerce #authView.auth-shell {
    background: #15166b !important;
  }

  html body.customer-commerce #authView.auth-shell::before {
    top: 0 !important;
    height: min(900px, 100vh) !important;
  }
}

/* 2026-06-19 login v23: JD-like pale gray page with orange badge and white XM. */
html body.customer-commerce #authView.auth-shell {
  background: #f3f5f9 !important;
}

html body.customer-commerce #authView.auth-shell::before {
  display: none !important;
  content: none !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-mark {
  background: url("assets/xm-badge-mark-orange-full.png") center / contain no-repeat !important;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.55))
    drop-shadow(0 9px 18px rgba(17, 24, 39, 0.18))
    drop-shadow(0 0 1px rgba(17, 24, 39, 0.18)) !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-mark::before {
  color: #ffffff !important;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18),
    0 2px 7px rgba(132, 50, 0, 0.24) !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-word > span {
  color: #f26a21 !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-word > small {
  color: #f26a21 !important;
  text-shadow: none !important;
}

@media (max-width: 780px) {
  html body.customer-commerce #authView.auth-shell {
    background: #f3f5f9 !important;
  }

  html body.customer-commerce #authView.auth-shell::before {
    display: none !important;
    content: none !important;
  }
}

/* 2026-06-19 login v24: quieter JD-like brand balance. */
html body.customer-commerce #authView.auth-shell {
  background: #f3f5f9 !important;
}

html body.customer-commerce #authView.auth-shell > div.brand {
  top: 22px !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo {
  height: 58px !important;
  gap: 10px !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-mark {
  width: 66px !important;
  height: 58px !important;
  min-width: 66px !important;
  min-height: 58px !important;
  background: url("assets/xm-badge-mark-orange-full.png") center / contain no-repeat !important;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.56))
    drop-shadow(0 8px 16px rgba(17, 24, 39, 0.14))
    drop-shadow(0 0 1px rgba(17, 24, 39, 0.14)) !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-mark::before {
  left: 3px !important;
  top: 3px !important;
  width: 49px !important;
  height: 49px !important;
  color: #ffffff !important;
  font-size: 15px !important;
  transform: translate(4px, 5px) !important;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14),
    0 2px 6px rgba(111, 42, 0, 0.22) !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-word {
  padding-top: 2px !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-word > span {
  color: #111827 !important;
  font-size: 39px !important;
  line-height: 0.86 !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-word > small {
  color: #f26a21 !important;
  font-size: 12px !important;
  line-height: 1 !important;
  text-shadow: none !important;
}

html body.customer-commerce #authView.auth-shell .auth-panel {
  box-shadow:
    0 1px 2px rgba(17, 24, 39, 0.05),
    0 10px 28px rgba(17, 24, 39, 0.12) !important;
}

@media (max-width: 780px) {
  html body.customer-commerce #authView.auth-shell > div.brand {
    top: 14px !important;
  }

  html body.customer-commerce #authView.auth-shell .brand-logo {
    height: 50px !important;
    gap: 8px !important;
  }

  html body.customer-commerce #authView.auth-shell .brand-logo-mark {
    width: 56px !important;
    height: 50px !important;
    min-width: 56px !important;
    min-height: 50px !important;
  }

  html body.customer-commerce #authView.auth-shell .brand-logo-mark::before {
    width: 42px !important;
    height: 42px !important;
    font-size: 13px !important;
    transform: translate(3px, 4px) !important;
  }

  html body.customer-commerce #authView.auth-shell .brand-logo-word > span {
    font-size: 32px !important;
  }

  html body.customer-commerce #authView.auth-shell .brand-logo-word > small {
    font-size: 11px !important;
  }
}

/* 2026-06-19 login v25: flat logo mark for the simplified page direction. */
html body.customer-commerce #authView.auth-shell .brand-logo {
  height: 54px !important;
  gap: 11px !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-mark {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  min-height: 54px !important;
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #ff5a1f !important;
  box-shadow: none !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  filter: none !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-mark::before {
  content: "XM" !important;
  display: grid !important;
  place-items: center !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  inset: auto !important;
  transform: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-family: "Arial Black", "Segoe UI Black", "Microsoft YaHei UI", sans-serif !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-shadow: none !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-mark::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  right: -11px !important;
  bottom: 13px !important;
  width: 18px !important;
  height: 5px !important;
  border-radius: 999px !important;
  background: #ff5a1f !important;
  box-shadow: none !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-word {
  padding-top: 1px !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-word > span {
  color: #111827 !important;
  font-size: 38px !important;
  line-height: 0.86 !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-word > small {
  color: #ff5a1f !important;
  font-size: 12px !important;
  text-shadow: none !important;
}

@media (max-width: 780px) {
  html body.customer-commerce #authView.auth-shell .brand-logo {
    height: 46px !important;
    gap: 9px !important;
  }

  html body.customer-commerce #authView.auth-shell .brand-logo-mark {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    border-radius: 9px !important;
  }

  html body.customer-commerce #authView.auth-shell .brand-logo-mark::before {
    font-size: 14px !important;
  }

  html body.customer-commerce #authView.auth-shell .brand-logo-mark::after {
    right: -9px !important;
    bottom: 10px !important;
    width: 15px !important;
    height: 4px !important;
  }

  html body.customer-commerce #authView.auth-shell .brand-logo-word > span {
    font-size: 31px !important;
  }
}

/* 2026-06-19 login v26: preview black XM on the flat orange mark. */
html body.customer-commerce #authView.auth-shell .brand-logo-mark::before {
  color: #111827 !important;
}

/* 2026-06-19 login v27: lighter flat badge body, keep connector line saturated. */
html body.customer-commerce #authView.auth-shell .brand-logo-mark {
  background: #ff8a55 !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-mark::after {
  background: #ff5a1f !important;
}

/* 2026-06-19 login v28: lighter badge, subtle depth, true centered XM. */
html body.customer-commerce #authView.auth-shell .brand-logo-mark {
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.26) 0 18%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg, #ffb18d 0%, #ff9969 54%, #f17b43 100%) !important;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.54),
    inset -5px -6px 10px rgba(171, 61, 18, 0.24),
    0 4px 0 rgba(191, 72, 25, 0.4),
    0 13px 24px rgba(17, 24, 39, 0.15),
    0 22px 36px rgba(255, 90, 31, 0.13) !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-mark::before {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(calc(-50% + 2px), calc(-50% + 2px)) !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  color: #111827 !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-mark::after {
  background: #ff5a1f !important;
}

@media (max-width: 780px) {
  html body.customer-commerce #authView.auth-shell .brand-logo-mark::before {
    transform: translate(calc(-50% + 1px), calc(-50% + 1px)) !important;
  }
}

/* 2026-06-20 workspace final override: appended at EOF to beat legacy dashboard rules. */
html body.customer-commerce #dashboardView > .topbar {
  grid-template-columns: minmax(360px, 1fr) auto !important;
  align-items: center !important;
  gap: 28px !important;
  padding: 26px 30px !important;
}

html body.customer-commerce #dashboardView > .topbar .brand-logo {
  margin: 6px 0 8px !important;
  height: 44px !important;
  gap: 10px !important;
}

html body.customer-commerce #dashboardView > .topbar .brand-logo-mark {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  position: relative !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 9px !important;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.38) 0 18%, rgba(255, 255, 255, 0) 43%),
    linear-gradient(145deg, #f5d06f 0%, #d4a23b 48%, #9d6a18 100%) !important;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.58),
    inset -4px -5px 8px rgba(101, 63, 10, 0.26),
    0 3px 0 rgba(126, 83, 20, 0.34),
    0 9px 18px rgba(17, 24, 39, 0.13) !important;
  color: transparent !important;
  font-size: 0 !important;
  filter: none !important;
}

html body.customer-commerce #dashboardView > .topbar .brand-logo-mark::before {
  content: "XM" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  transform: translate(calc(-50% + 1px), calc(-50% + 1px)) !important;
  color: #111827 !important;
  font: 900 14px / 1 "Arial Black", "Segoe UI Black", "Microsoft YaHei UI", sans-serif !important;
  white-space: nowrap !important;
}

html body.customer-commerce #dashboardView > .topbar .brand-logo-mark::after {
  content: "" !important;
  position: absolute !important;
  right: -9px !important;
  bottom: 8px !important;
  width: 15px !important;
  height: 4px !important;
  border-radius: 999px !important;
  background: #ff5a1f !important;
}

html body.customer-commerce #dashboardView > .topbar .brand-logo-word > span {
  color: #111827 !important;
  font-size: 31px !important;
  line-height: 0.9 !important;
}

html body.customer-commerce #dashboardView > .topbar .brand-logo-word > small {
  color: #ff5a1f !important;
  font-size: 11px !important;
  line-height: 1 !important;
}

html body.customer-commerce .customer-topbar-actions {
  grid-template-columns: minmax(128px, auto) minmax(360px, 420px) auto !important;
  justify-content: end !important;
  align-items: end !important;
  gap: 12px !important;
}

html body.customer-commerce .balance-pill {
  min-width: 142px !important;
  min-height: 58px !important;
  border-color: rgba(199, 151, 67, 0.26) !important;
  background: linear-gradient(145deg, #fffaf0, #fff6df) !important;
  box-shadow: none !important;
}

html body.customer-commerce .balance-pill span {
  color: #8a806d !important;
}

html body.customer-commerce .balance-pill strong {
  color: #8a6327 !important;
}

html body.customer-commerce .customer-page-nav {
  padding: 4px !important;
  gap: 2px !important;
  border: 1px solid #e6e1db !important;
  border-radius: 7px !important;
  background: #f4f1ec !important;
  box-shadow: none !important;
}

html body.customer-commerce .customer-page-nav button {
  min-height: 40px !important;
  border-radius: 5px !important;
  color: #4b5563 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body.customer-commerce .customer-page-nav button.active {
  color: #08756f !important;
  background: #fffdf8 !important;
  box-shadow:
    inset 0 0 0 1px rgba(8, 117, 111, 0.2),
    0 2px 5px rgba(17, 24, 39, 0.08) !important;
}

/* 2026-06-20 workspace header compact: reduce the hero-like topbar height. */
html body.customer-commerce #dashboardView > .topbar {
  grid-template-columns: minmax(320px, 0.8fr) minmax(620px, auto) !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 14px 22px !important;
  min-height: 108px !important;
}

html body.customer-commerce #dashboardView > .topbar > div:first-child {
  display: grid !important;
  grid-template-columns: auto minmax(0, auto) !important;
  grid-template-areas:
    "logo badge"
    "logo meta" !important;
  align-items: center !important;
  align-content: center !important;
  justify-content: start !important;
  column-gap: 16px !important;
  row-gap: 4px !important;
  min-width: 0 !important;
}

html body.customer-commerce #dashboardView > .topbar .brand-eyebrow {
  grid-area: badge !important;
  width: fit-content !important;
  margin: 0 !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
  line-height: 1 !important;
}

html body.customer-commerce #dashboardView > .topbar .brand-logo {
  grid-area: logo !important;
  margin: 0 !important;
  height: 44px !important;
  align-self: center !important;
}

html body.customer-commerce #customerMeta {
  grid-area: meta !important;
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
}

html body.customer-commerce .customer-topbar-actions {
  grid-template-columns: auto auto auto !important;
  grid-template-areas: "balance nav logout" !important;
  align-items: center !important;
  justify-content: end !important;
  gap: 10px !important;
}

html body.customer-commerce .customer-topbar-actions .mobile-refresh-actions {
  display: none !important;
}

html body.customer-commerce .balance-pill {
  grid-area: balance !important;
  min-width: 112px !important;
  min-height: 44px !important;
  padding: 6px 16px !important;
}

html body.customer-commerce .balance-pill span {
  font-size: 11px !important;
  line-height: 1 !important;
}

html body.customer-commerce .balance-pill strong {
  font-size: 22px !important;
  line-height: 1 !important;
}

html body.customer-commerce .customer-page-nav {
  grid-area: nav !important;
  padding: 3px !important;
}

html body.customer-commerce .customer-page-nav button {
  min-height: 36px !important;
  padding: 0 16px !important;
  font-size: 13px !important;
}

html body.customer-commerce #logoutButton {
  grid-area: logout !important;
  min-height: 44px !important;
  padding: 0 18px !important;
}

html body.customer-commerce [data-customer-page-panel="products"] > .topbar .muted {
  display: none !important;
}

html body.customer-commerce .product-list {
  gap: 18px !important;
}

html body.customer-commerce .product-item {
  grid-template-rows: 206px minmax(210px, auto) auto !important;
  min-height: 600px !important;
  border-color: #ebe4db !important;
  background: #fffdf9 !important;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05) !important;
}

html body.customer-commerce .product-item > .thumb {
  height: 206px !important;
  padding: 16px !important;
  object-fit: contain !important;
  background: #eef8f8 !important;
}

html body.customer-commerce .product-card-buy {
  display: grid !important;
  grid-template-rows: auto auto !important;
  align-self: end !important;
  gap: 12px !important;
  height: auto !important;
  min-height: 150px !important;
  padding: 8px 16px 12px !important;
}

html body.customer-commerce .customer-price-tiers {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-auto-rows: minmax(34px, auto) !important;
  grid-template-rows: none !important;
  gap: 6px !important;
  height: auto !important;
  min-height: 114px !important;
}

html body.customer-commerce .customer-price-tiers div {
  min-height: 34px !important;
  height: auto !important;
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) auto !important;
  align-items: center !important;
  justify-items: stretch !important;
  column-gap: 8px !important;
  padding: 7px 10px !important;
  overflow: hidden !important;
  border-color: #efe3cf !important;
  border-radius: 6px !important;
  background: #fffdf8 !important;
}

html body.customer-commerce .customer-price-tiers span,
html body.customer-commerce .customer-price-tiers small {
  display: block !important;
  max-width: 100% !important;
  color: #7b756c !important;
  font-size: 10px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

html body.customer-commerce .customer-price-tiers span {
  justify-self: start !important;
}

html body.customer-commerce .customer-price-tiers strong {
  display: block !important;
  justify-self: end !important;
  width: auto !important;
  max-width: none !important;
  overflow: visible !important;
  color: #8a6327 !important;
  font-size: 15px !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: 0 !important;
}

html body.customer-commerce .customer-price-tiers small {
  justify-self: end !important;
  min-width: 24px !important;
  text-align: right !important;
}

html body.customer-commerce .product-card-hint {
  min-height: 40px !important;
  border-radius: 7px !important;
  background: linear-gradient(90deg, #0e2a24, #08756f) !important;
  font-size: 13px !important;
}

@media (max-width: 1280px) {
  html body.customer-commerce #dashboardView > .topbar,
  html body.customer-commerce .customer-topbar-actions {
    grid-template-columns: 1fr !important;
  }

  html body.customer-commerce .customer-topbar-actions {
    justify-content: stretch !important;
  }
}

@media (max-width: 640px) {
  html body.customer-commerce .product-item {
    min-height: 0 !important;
    grid-template-rows: auto !important;
  }

  html body.customer-commerce .product-card-buy {
    min-height: 0 !important;
  }
}

/* 2026-06-20 workspace logo final: keep dashboard mark gold after all overrides. */
html body.customer-commerce #dashboardView > .topbar .brand-logo-mark {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.38) 0 18%, rgba(255, 255, 255, 0) 43%),
    linear-gradient(145deg, #f5d06f 0%, #d4a23b 48%, #9d6a18 100%) !important;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.58),
    inset -4px -5px 8px rgba(101, 63, 10, 0.26),
    0 3px 0 rgba(126, 83, 20, 0.34),
    0 9px 18px rgba(17, 24, 39, 0.13) !important;
}

html body.customer-commerce #dashboardView > .topbar .brand-logo-mark::after {
  background: #ff5a1f !important;
}

/* 2026-06-20 workspace logo final: keep dashboard mark gold after all overrides. */
html body.customer-commerce #dashboardView > .topbar .brand-logo-mark {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.38) 0 18%, rgba(255, 255, 255, 0) 43%),
    linear-gradient(145deg, #f5d06f 0%, #d4a23b 48%, #9d6a18 100%) !important;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.58),
    inset -4px -5px 8px rgba(101, 63, 10, 0.26),
    0 3px 0 rgba(126, 83, 20, 0.34),
    0 9px 18px rgba(17, 24, 39, 0.13) !important;
}

html body.customer-commerce #dashboardView > .topbar .brand-logo-mark::after {
  background: #ff5a1f !important;
}

/* 2026-06-20 workspace logo restore: dashboard mark stays gold. */
html body.customer-commerce #dashboardView > .topbar .brand-logo-mark {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.38) 0 18%, rgba(255, 255, 255, 0) 43%),
    linear-gradient(145deg, #f5d06f 0%, #d4a23b 48%, #9d6a18 100%) !important;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.58),
    inset -4px -5px 8px rgba(101, 63, 10, 0.26),
    0 3px 0 rgba(126, 83, 20, 0.34),
    0 9px 18px rgba(17, 24, 39, 0.13) !important;
}

html body.customer-commerce #dashboardView > .topbar .brand-logo-mark::after {
  background: #ff5a1f !important;
}

/* 2026-06-20 workspace polish final: keep card price tiers readable after all legacy overrides. */
html body.customer-commerce #dashboardView > .topbar {
  grid-template-columns: minmax(360px, 1fr) auto !important;
  align-items: center !important;
  gap: 28px !important;
  padding: 26px 30px !important;
}

html body.customer-commerce #dashboardView > .topbar .brand-logo {
  margin: 6px 0 8px !important;
  height: 44px !important;
  gap: 10px !important;
}

html body.customer-commerce #dashboardView > .topbar .brand-logo-mark {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  position: relative !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 9px !important;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.25) 0 17%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg, #ffb18d 0%, #ff9969 54%, #f17b43 100%) !important;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.48),
    inset -4px -5px 8px rgba(171, 61, 18, 0.22),
    0 3px 0 rgba(191, 72, 25, 0.34),
    0 9px 18px rgba(17, 24, 39, 0.13) !important;
  color: transparent !important;
  font-size: 0 !important;
  filter: none !important;
}

html body.customer-commerce #dashboardView > .topbar .brand-logo-mark::before {
  content: "XM" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  transform: translate(calc(-50% + 1px), calc(-50% + 1px)) !important;
  color: #111827 !important;
  font: 900 14px / 1 "Arial Black", "Segoe UI Black", "Microsoft YaHei UI", sans-serif !important;
  white-space: nowrap !important;
}

html body.customer-commerce #dashboardView > .topbar .brand-logo-mark::after {
  content: "" !important;
  position: absolute !important;
  right: -9px !important;
  bottom: 8px !important;
  width: 15px !important;
  height: 4px !important;
  border-radius: 999px !important;
  background: #ff5a1f !important;
}

html body.customer-commerce #dashboardView > .topbar .brand-logo-word > span {
  color: #111827 !important;
  font-size: 31px !important;
  line-height: 0.9 !important;
}

html body.customer-commerce #dashboardView > .topbar .brand-logo-word > small {
  color: #ff5a1f !important;
  font-size: 11px !important;
  line-height: 1 !important;
}

html body.customer-commerce .customer-topbar-actions {
  grid-template-columns: minmax(128px, auto) minmax(360px, 420px) auto !important;
  justify-content: end !important;
  align-items: end !important;
  gap: 12px !important;
}

html body.customer-commerce .balance-pill {
  min-width: 142px !important;
  min-height: 58px !important;
  border-color: rgba(199, 151, 67, 0.26) !important;
  background: linear-gradient(145deg, #fffaf0, #fff6df) !important;
  box-shadow: none !important;
}

html body.customer-commerce .balance-pill span {
  color: #8a806d !important;
}

html body.customer-commerce .balance-pill strong {
  color: #8a6327 !important;
}

html body.customer-commerce .customer-page-nav {
  padding: 4px !important;
  gap: 2px !important;
  border: 1px solid #e6e1db !important;
  border-radius: 7px !important;
  background: #f4f1ec !important;
  box-shadow: none !important;
}

html body.customer-commerce .customer-page-nav button {
  min-height: 40px !important;
  border-radius: 5px !important;
  color: #4b5563 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body.customer-commerce .customer-page-nav button.active {
  color: #08756f !important;
  background: #fffdf8 !important;
  box-shadow:
    inset 0 0 0 1px rgba(8, 117, 111, 0.2),
    0 2px 5px rgba(17, 24, 39, 0.08) !important;
}

html body.customer-commerce .product-list {
  gap: 18px !important;
}

html body.customer-commerce .product-item {
  grid-template-rows: 206px minmax(210px, auto) auto !important;
  min-height: 560px !important;
  border-color: #ebe4db !important;
  background: #fffdf9 !important;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05) !important;
}

html body.customer-commerce .product-item > .thumb {
  height: 206px !important;
  padding: 16px !important;
  object-fit: contain !important;
  background: #eef8f8 !important;
}

html body.customer-commerce .product-card-buy {
  display: grid !important;
  grid-template-rows: auto auto !important;
  align-self: end !important;
  gap: 12px !important;
  height: auto !important;
  min-height: 118px !important;
  padding: 8px 16px 12px !important;
}

html body.customer-commerce .customer-price-tiers {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: auto !important;
  gap: 8px !important;
  height: auto !important;
  min-height: 64px !important;
}

html body.customer-commerce .customer-price-tiers div {
  min-height: 64px !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 8px 4px !important;
  overflow: hidden !important;
  border-color: #efe3cf !important;
  background: #fffdf8 !important;
}

html body.customer-commerce .customer-price-tiers span,
html body.customer-commerce .customer-price-tiers small {
  display: block !important;
  max-width: 100% !important;
  color: #7b756c !important;
  font-size: 10px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

html body.customer-commerce .customer-price-tiers strong {
  display: block !important;
  max-width: 100% !important;
  color: #8a6327 !important;
  font-size: clamp(13px, 0.9vw, 16px) !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: 0 !important;
}

html body.customer-commerce .product-card-hint {
  min-height: 40px !important;
  border-radius: 7px !important;
  background: linear-gradient(90deg, #0e2a24, #08756f) !important;
  font-size: 13px !important;
}

@media (max-width: 1280px) {
  html body.customer-commerce #dashboardView > .topbar,
  html body.customer-commerce .customer-topbar-actions {
    grid-template-columns: 1fr !important;
  }

  html body.customer-commerce .customer-topbar-actions {
    justify-content: stretch !important;
  }
}

@media (max-width: 640px) {
  html body.customer-commerce .product-item {
    min-height: 0 !important;
    grid-template-rows: auto !important;
  }

  html body.customer-commerce .customer-price-tiers {
    grid-template-columns: 1fr !important;
  }
}

/* 2026-06-20 workspace polish final v2: use price rows so numbers never clip. */
html body.customer-commerce .product-item {
  grid-template-rows: 206px minmax(210px, auto) auto !important;
  min-height: 600px !important;
}

html body.customer-commerce .product-card-buy {
  min-height: 150px !important;
}

html body.customer-commerce .customer-price-tiers {
  grid-template-columns: 1fr !important;
  grid-auto-rows: minmax(34px, auto) !important;
  gap: 6px !important;
  min-height: 114px !important;
}

html body.customer-commerce .customer-price-tiers div {
  min-height: 34px !important;
  height: auto !important;
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) auto !important;
  align-items: center !important;
  justify-items: stretch !important;
  column-gap: 8px !important;
  padding: 7px 10px !important;
  border-radius: 6px !important;
}

html body.customer-commerce .customer-price-tiers span {
  justify-self: start !important;
  width: auto !important;
}

html body.customer-commerce .customer-price-tiers strong {
  justify-self: end !important;
  width: auto !important;
  max-width: none !important;
  overflow: visible !important;
  font-size: 15px !important;
}

html body.customer-commerce .customer-price-tiers small {
  justify-self: end !important;
  min-width: 24px !important;
  text-align: right !important;
}

@media (max-width: 640px) {
  html body.customer-commerce .product-item {
    min-height: 0 !important;
  }

  html body.customer-commerce .product-card-buy {
    min-height: 0 !important;
  }
}

/* 2026-06-20 session state: premium auth layout must not override .hidden after login. */
html body.customer-commerce #authView.auth-shell.hidden,
html body.customer-commerce #dashboardView.hidden {
  display: none !important;
  visibility: hidden !important;
  min-height: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* 2026-06-20 workspace polish: calmer topbar, cleaner prices, unified mark. */
html body.customer-commerce #dashboardView > .topbar {
  grid-template-columns: minmax(360px, 1fr) auto !important;
  align-items: center !important;
  gap: 28px !important;
  padding: 26px 30px !important;
}

html body.customer-commerce #dashboardView > .topbar .brand-logo {
  margin: 6px 0 8px !important;
  height: 44px !important;
  gap: 10px !important;
}

html body.customer-commerce #dashboardView > .topbar .brand-logo-mark {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  position: relative !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 9px !important;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.25) 0 17%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg, #ffb18d 0%, #ff9969 54%, #f17b43 100%) !important;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.48),
    inset -4px -5px 8px rgba(171, 61, 18, 0.22),
    0 3px 0 rgba(191, 72, 25, 0.34),
    0 9px 18px rgba(17, 24, 39, 0.13) !important;
  color: transparent !important;
  font-size: 0 !important;
  filter: none !important;
}

html body.customer-commerce #dashboardView > .topbar .brand-logo-mark::before {
  content: "XM" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  transform: translate(calc(-50% + 1px), calc(-50% + 1px)) !important;
  color: #111827 !important;
  font: 900 14px / 1 "Arial Black", "Segoe UI Black", "Microsoft YaHei UI", sans-serif !important;
  white-space: nowrap !important;
}

html body.customer-commerce #dashboardView > .topbar .brand-logo-mark::after {
  content: "" !important;
  position: absolute !important;
  right: -9px !important;
  bottom: 8px !important;
  width: 15px !important;
  height: 4px !important;
  border-radius: 999px !important;
  background: #ff5a1f !important;
}

html body.customer-commerce #dashboardView > .topbar .brand-logo-word > span {
  color: #111827 !important;
  font-size: 31px !important;
  line-height: 0.9 !important;
}

html body.customer-commerce #dashboardView > .topbar .brand-logo-word > small {
  color: #ff5a1f !important;
  font-size: 11px !important;
  line-height: 1 !important;
}

html body.customer-commerce .customer-topbar-actions {
  grid-template-columns: minmax(128px, auto) minmax(360px, 420px) auto !important;
  justify-content: end !important;
  align-items: end !important;
  gap: 12px !important;
}

html body.customer-commerce .balance-pill {
  min-width: 142px !important;
  min-height: 58px !important;
  border-color: rgba(199, 151, 67, 0.26) !important;
  background: linear-gradient(145deg, #fffaf0, #fff6df) !important;
  box-shadow: none !important;
}

html body.customer-commerce .balance-pill span {
  color: #8a806d !important;
}

html body.customer-commerce .balance-pill strong {
  color: #8a6327 !important;
}

html body.customer-commerce .customer-page-nav {
  padding: 4px !important;
  gap: 2px !important;
  border: 1px solid #e6e1db !important;
  border-radius: 7px !important;
  background: #f4f1ec !important;
  box-shadow: none !important;
}

html body.customer-commerce .customer-page-nav button {
  min-height: 40px !important;
  border-radius: 5px !important;
  color: #4b5563 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body.customer-commerce .customer-page-nav button.active {
  color: #08756f !important;
  background: #fffdf8 !important;
  box-shadow:
    inset 0 0 0 1px rgba(8, 117, 111, 0.2),
    0 2px 5px rgba(17, 24, 39, 0.08) !important;
}

html body.customer-commerce .product-list {
  gap: 18px !important;
}

html body.customer-commerce .product-item {
  grid-template-rows: 206px minmax(210px, auto) auto !important;
  min-height: 560px !important;
  border-color: #ebe4db !important;
  background: #fffdf9 !important;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05) !important;
}

html body.customer-commerce .product-item > .thumb {
  height: 206px !important;
  padding: 16px !important;
  object-fit: contain !important;
  background: #eef8f8 !important;
}

html body.customer-commerce .product-card-main {
  padding-bottom: 4px !important;
}

html body.customer-commerce .product-card-buy {
  gap: 12px !important;
}

html body.customer-commerce .customer-price-tiers {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

html body.customer-commerce .customer-price-tiers div {
  min-height: 64px !important;
  display: grid !important;
  grid-template-rows: auto 1fr auto !important;
  justify-items: center !important;
  align-content: center !important;
  gap: 3px !important;
  padding: 8px 4px !important;
  overflow: hidden !important;
  border-color: #efe3cf !important;
  background: #fffdf8 !important;
}

html body.customer-commerce .customer-price-tiers span,
html body.customer-commerce .customer-price-tiers small {
  max-width: 100% !important;
  color: #7b756c !important;
  font-size: 10px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

html body.customer-commerce .customer-price-tiers strong {
  max-width: 100% !important;
  color: #8a6327 !important;
  font-size: clamp(13px, 0.9vw, 16px) !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: 0 !important;
}

html body.customer-commerce .product-card-hint {
  min-height: 40px !important;
  border-radius: 7px !important;
  background: linear-gradient(90deg, #0e2a24, #08756f) !important;
  font-size: 13px !important;
}

@media (max-width: 1280px) {
  html body.customer-commerce #dashboardView > .topbar,
  html body.customer-commerce .customer-topbar-actions {
    grid-template-columns: 1fr !important;
  }

  html body.customer-commerce .customer-topbar-actions {
    justify-content: stretch !important;
  }
}

@media (max-width: 640px) {
  html body.customer-commerce .product-item {
    min-height: 0 !important;
    grid-template-rows: auto !important;
  }

  html body.customer-commerce .customer-price-tiers {
    grid-template-columns: 1fr !important;
  }
}

/* 2026-06-19 login v29: true-center XM inside the whole square, never wrap. */
html body.customer-commerce #authView.auth-shell .brand-logo-mark::before {
  content: "XM" !important;
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: none !important;
  white-space: nowrap !important;
  text-align: center !important;
  line-height: 1 !important;
  color: #111827 !important;
}

@media (max-width: 780px) {
  html body.customer-commerce #authView.auth-shell .brand-logo-mark::before {
    inset: 0 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    white-space: nowrap !important;
  }
}

/* 2026-06-19 login v30: lock XM to the badge center point, independent of the connector line. */
html body.customer-commerce #authView.auth-shell .brand-logo-mark {
  padding: 0 !important;
  text-indent: 0 !important;
}

html body.customer-commerce #authView.auth-shell .brand-logo-mark::before {
  inset: auto !important;
  left: 50% !important;
  top: 50% !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  display: block !important;
  transform: translate(-50%, -50%) !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  text-align: center !important;
}

@media (max-width: 780px) {
  html body.customer-commerce #authView.auth-shell .brand-logo-mark::before {
    inset: auto !important;
    left: 50% !important;
    top: 50% !important;
    width: auto !important;
    height: auto !important;
    transform: translate(-50%, -50%) !important;
  }
}

/* 2026-06-19 login v31: optical centering for the XM glyphs inside the orange badge. */
html body.customer-commerce #authView.auth-shell .brand-logo-mark::before {
  transform: translate(calc(-50% + 2px), calc(-50% + 1px)) !important;
}

@media (max-width: 780px) {
  html body.customer-commerce #authView.auth-shell .brand-logo-mark::before {
    transform: translate(calc(-50% + 1px), calc(-50% + 1px)) !important;
  }
}

/* 2026-06-20 workspace EOF override: final dashboard card rules. */
html body.customer-commerce #dashboardView > .topbar {
  grid-template-columns: minmax(360px, 1fr) auto !important;
  align-items: center !important;
  gap: 28px !important;
  padding: 26px 30px !important;
}

html body.customer-commerce #dashboardView > .topbar .brand-logo {
  margin: 6px 0 8px !important;
  height: 44px !important;
  gap: 10px !important;
}

html body.customer-commerce #dashboardView > .topbar .brand-logo-mark {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  position: relative !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 9px !important;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.38) 0 18%, rgba(255, 255, 255, 0) 43%),
    linear-gradient(145deg, #f5d06f 0%, #d4a23b 48%, #9d6a18 100%) !important;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.58),
    inset -4px -5px 8px rgba(101, 63, 10, 0.26),
    0 3px 0 rgba(126, 83, 20, 0.34),
    0 9px 18px rgba(17, 24, 39, 0.13) !important;
  color: transparent !important;
  font-size: 0 !important;
  filter: none !important;
}

html body.customer-commerce #dashboardView > .topbar .brand-logo-mark::before {
  content: "XM" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  transform: translate(calc(-50% + 1px), calc(-50% + 1px)) !important;
  color: #111827 !important;
  font: 900 14px / 1 "Arial Black", "Segoe UI Black", "Microsoft YaHei UI", sans-serif !important;
  white-space: nowrap !important;
}

html body.customer-commerce #dashboardView > .topbar .brand-logo-mark::after {
  content: "" !important;
  position: absolute !important;
  right: -9px !important;
  bottom: 8px !important;
  width: 15px !important;
  height: 4px !important;
  border-radius: 999px !important;
  background: #ff5a1f !important;
}

html body.customer-commerce #dashboardView > .topbar .brand-logo-word > span {
  color: #111827 !important;
  font-size: 31px !important;
  line-height: 0.9 !important;
}

html body.customer-commerce #dashboardView > .topbar .brand-logo-word > small {
  color: #ff5a1f !important;
  font-size: 11px !important;
  line-height: 1 !important;
}

html body.customer-commerce .customer-topbar-actions {
  grid-template-columns: minmax(128px, auto) minmax(360px, 420px) auto !important;
  justify-content: end !important;
  align-items: end !important;
  gap: 12px !important;
}

html body.customer-commerce .balance-pill {
  min-width: 142px !important;
  min-height: 58px !important;
  border-color: rgba(199, 151, 67, 0.26) !important;
  background: linear-gradient(145deg, #fffaf0, #fff6df) !important;
  box-shadow: none !important;
}

html body.customer-commerce .balance-pill span {
  color: #8a806d !important;
}

html body.customer-commerce .balance-pill strong {
  color: #8a6327 !important;
}

html body.customer-commerce .customer-page-nav {
  padding: 4px !important;
  gap: 2px !important;
  border: 1px solid #e6e1db !important;
  border-radius: 7px !important;
  background: #f4f1ec !important;
  box-shadow: none !important;
}

html body.customer-commerce .customer-page-nav button {
  min-height: 40px !important;
  border-radius: 5px !important;
  color: #4b5563 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body.customer-commerce .customer-page-nav button.active {
  color: #08756f !important;
  background: #fffdf8 !important;
  box-shadow:
    inset 0 0 0 1px rgba(8, 117, 111, 0.2),
    0 2px 5px rgba(17, 24, 39, 0.08) !important;
}

html body.customer-commerce .product-list {
  gap: 18px !important;
}

html body.customer-commerce .product-item {
  grid-template-rows: 206px minmax(210px, auto) auto !important;
  min-height: 600px !important;
  border-color: #ebe4db !important;
  background: #fffdf9 !important;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05) !important;
}

html body.customer-commerce .product-item > .thumb {
  height: 206px !important;
  padding: 16px !important;
  object-fit: contain !important;
  background: #eef8f8 !important;
}

html body.customer-commerce .product-card-buy {
  display: grid !important;
  grid-template-rows: auto auto !important;
  align-self: end !important;
  gap: 12px !important;
  height: auto !important;
  min-height: 150px !important;
  padding: 8px 16px 12px !important;
}

html body.customer-commerce .customer-price-tiers {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-auto-rows: minmax(34px, auto) !important;
  grid-template-rows: none !important;
  gap: 6px !important;
  height: auto !important;
  min-height: 114px !important;
}

html body.customer-commerce .customer-price-tiers div {
  min-height: 34px !important;
  height: auto !important;
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) auto !important;
  align-items: center !important;
  justify-items: stretch !important;
  column-gap: 8px !important;
  padding: 7px 10px !important;
  overflow: hidden !important;
  border-color: #efe3cf !important;
  border-radius: 6px !important;
  background: #fffdf8 !important;
}

html body.customer-commerce .customer-price-tiers span,
html body.customer-commerce .customer-price-tiers small {
  display: block !important;
  max-width: 100% !important;
  color: #7b756c !important;
  font-size: 10px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

html body.customer-commerce .customer-price-tiers span {
  justify-self: start !important;
}

html body.customer-commerce .customer-price-tiers strong {
  display: block !important;
  justify-self: end !important;
  width: auto !important;
  max-width: none !important;
  overflow: visible !important;
  color: #8a6327 !important;
  font-size: 15px !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: 0 !important;
}

html body.customer-commerce .customer-price-tiers small {
  justify-self: end !important;
  min-width: 24px !important;
  text-align: right !important;
}

html body.customer-commerce .product-card-hint {
  min-height: 40px !important;
  border-radius: 7px !important;
  background: linear-gradient(90deg, #0e2a24, #08756f) !important;
  font-size: 13px !important;
}

@media (max-width: 1280px) {
  html body.customer-commerce #dashboardView > .topbar,
  html body.customer-commerce .customer-topbar-actions {
    grid-template-columns: 1fr !important;
  }

  html body.customer-commerce .customer-topbar-actions {
    justify-content: stretch !important;
  }
}

@media (max-width: 640px) {
  html body.customer-commerce .product-item {
    min-height: 0 !important;
    grid-template-rows: auto !important;
  }

  html body.customer-commerce .product-card-buy {
    min-height: 0 !important;
  }
}
