:root {
  color-scheme: light;
  --ink: #10131f;
  --muted: #667085;
  --line: #dde3ea;
  --surface: #ffffff;
  --surface-soft: #f6f8fb;
  --surface-strong: #eef4f7;
  --cyan: #00bbf9;
  --blue: #4361ee;
  --violet: #9b5de5;
  --pink: #f72585;
  --coral: #fb7756;
  --yellow: #fee440;
  --green: #4ade80;
  --teal: #2dd4bf;
  --radius: 8px;
  --shadow: 0 18px 40px rgba(16, 19, 31, 0.12);
  --shadow-soft: 0 10px 30px rgba(16, 19, 31, 0.06);
  --header-h: 74px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Route-independent safety for the customer command dialogs. Their complete
   presentation loads only inside the customer portal, but the authored dialog
   nodes are present in the shared document and must never enter public/admin
   layout while that route stylesheet is intentionally deferred. */
.spark-showroom-modal {
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
/* Customer catalog quick-buy V2 */
.compact-customer-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 72px;
}

.compact-customer-brand,
.compact-customer-store,
.compact-customer-actions {
  min-width: 0;
}

.compact-customer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--v2-text);
  font-size: 18px;
  font-weight: 950;
  text-decoration: none;
}

.compact-customer-store strong {
  overflow: hidden;
  max-width: 38vw;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-customer-store span {
  display: inline-flex;
  width: fit-content;
  margin-top: 2px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #047857;
  font-size: 12px;
  font-weight: 900;
}

.icon-action {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: 1px solid var(--v2-line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--v2-text);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

.action-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--v2-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 950;
}

.v2-customer-catalog {
  display: grid;
  gap: 18px;
  padding-bottom: 26px;
}

.v2-customer-catalog .catalog-app-head {
  align-items: center;
  margin-bottom: 0;
}

.v2-customer-catalog .catalog-app-head h1 {
  margin: 0 0 6px;
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: 0;
}

.catalog-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog-sort-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--v2-line);
  border-radius: 14px;
  background: #ffffff;
  color: #344054;
  font-weight: 900;
}

.catalog-sort-control select {
  min-height: 36px;
  border: 0;
  background: transparent;
  color: #111827;
  font: inherit;
}

.catalog-search-bar {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--v2-line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}

.catalog-search-bar input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--v2-text);
  font-size: 16px;
  font-weight: 750;
}


.brand-breadcrumb {
  margin-bottom: -2px;
}

.brand-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  min-width: 0;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .88)),
    radial-gradient(circle at 6% 12%, color-mix(in srgb, var(--brand-a, #f72585) 18%, transparent), transparent 36%),
    radial-gradient(circle at 96% 86%, color-mix(in srgb, var(--brand-b, #4361ee) 14%, transparent), transparent 42%);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .06);
}

.brand-detail-hero h1,
.line-placeholder-card h1 {
  margin: 4px 0 8px;
  color: var(--v2-text);
  font-size: clamp(34px, 5vw, 56px);
  line-height: .98;
  letter-spacing: 0;
}

.brand-detail-hero p,
.line-placeholder-card p {
  max-width: 680px;
  margin: 0;
  color: #667085;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
}

.brand-detail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: min(420px, 100%);
}

.brand-detail-stats span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(219, 226, 235, .85);
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  color: #667085;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.brand-detail-stats strong {
  color: var(--v2-text);
  font-size: 20px;
  line-height: 1;
}

.brand-scoped-search {
  min-height: 56px;
  border-radius: 18px;
}


.line-detail-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.brand-search-results {
  min-width: 0;
}

.line-placeholder-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 18px;
  align-items: stretch;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--v2-line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .06);
}

.placeholder-next-step {
  display: grid;
  gap: 10px;
  align-content: center;
  min-width: 0;
  padding: 18px;
  border: 1px solid #e6edf5;
  border-radius: 18px;
  background: #f8fbff;
  color: #475467;
}

.placeholder-next-step svg {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(67, 97, 238, .12), rgba(247, 37, 133, .12));
  color: var(--v2-primary);
}

.placeholder-next-step strong {
  color: var(--v2-text);
  font-size: 18px;
  line-height: 1.25;
}

.placeholder-next-step span {
  color: #667085;
  font-weight: 780;
  line-height: 1.45;
}


.flavor-list-hero {
  align-items: center;
}

.flavor-family-row {
  display: flex;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1px 18px 6px;
  scroll-padding-inline: 18px;
  mask-image: linear-gradient(to right, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.flavor-family-row::-webkit-scrollbar {
  display: none;
}

.flavor-family-row .chip {
  flex: 0 0 auto;
  white-space: nowrap;
}


.five-pack-row {
  display: grid;
  grid-template-columns: minmax(74px, auto) auto minmax(124px, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 52px;
  padding: 11px 13px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #f8fbff;
  color: var(--v2-text);
}

.five-pack-row span {
  color: #475467;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.five-pack-row strong {
  white-space: nowrap;
  font-size: 18px;
  font-weight: 950;
}

.five-pack-row small {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #047857;
  font-weight: 900;
}

.five-pack-row.unavailable,
.five-pack-row.locked {
  border-color: #e5e7eb;
  background: #f8fafc;
}

.five-pack-row.unavailable small,
.five-pack-row.locked small {
  color: #667085;
}

.five-pack-stepper {
  display: inline-grid;
  grid-template-columns: 44px minmax(58px, 74px) 44px;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--v2-line);
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}

.five-pack-stepper button,
.five-pack-stepper input {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--v2-text);
  font-size: 16px;
  font-weight: 950;
  text-align: center;
}

.five-pack-stepper button {
  cursor: pointer;
}

.five-pack-stepper button:hover,
.five-pack-stepper button:focus-visible {
  background: #f8fafc;
}

.five-pack-stepper input {
  width: 100%;
  border-inline: 1px solid var(--v2-line);
}

.five-pack-control-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: #475467;
  font-size: 12px;
  font-weight: 950;
}


.guided-catalog-results {
  width: min(100%, 1220px);
  margin: 0 auto;
}

.catalog-route-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  color: #667085;
  font-size: 13px;
  font-weight: 900;
}

.catalog-route-bar a,
.catalog-route-bar span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-route-bar a {
  color: var(--v2-primary);
  text-decoration: none;
}

.catalog-route-bar span::before {
  content: "/";
  margin-right: 8px;
  color: #98a2b3;
}

.catalog-results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.compact-clear {
  min-height: 44px;
  white-space: nowrap;
}

.empty-state.compact {
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: 118px;
  padding: 20px;
  border: 1px solid var(--v2-line);
  border-radius: 18px;
  background: #ffffff;
  color: #667085;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .045);
}

.empty-state.compact strong {
  color: var(--v2-text);
  font-size: 18px;
}

.catalog-availability-row,
.catalog-applied-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-availability-row .chip {
  min-height: 38px;
  border-radius: 999px;
}

.filter-token {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
}

.desktop-catalog-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--v2-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
}

.desktop-catalog-filters .btn {
  min-height: 48px;
}

.v2-customer-catalog .catalog-top {
  margin-bottom: 0;
  color: #667085;
}

.v2-customer-catalog .catalog-top strong {
  color: var(--v2-text);
  font-size: 16px;
}

.quick-buy-grid.product-grid,
.catalog-app-grid.quick-buy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.quick-buy-card.product-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, .07);
}

.quick-buy-media {
  position: relative;
  display: grid;
  place-items: center;
  height: 148px;
  padding: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, .88), transparent 30%),
    linear-gradient(135deg, color-mix(in srgb, var(--product-color, #5b5ff4) 18%, #f8fafc), #ffffff 48%, color-mix(in srgb, var(--product-color, #f72585) 12%, #f8fafc));
}

.quick-buy-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, #5b5ff4, #f72585, #fb7756);
  opacity: .7;
}

.quick-buy-media .product-image {
  width: auto;
  max-width: 86%;
  max-height: 126px;
  object-fit: contain;
}

.quick-buy-body {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto auto;
  gap: 10px;
  padding: 14px;
}

.quick-buy-title-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.quick-buy-title-row h3 {
  min-width: 0;
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--v2-text);
  font-size: 16px;
  line-height: 1.2;
}

.quick-buy-meta,
.quick-buy-sku {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.quick-buy-sku {
  color: #344054;
}

.availability-badge {
  width: fit-content;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #dcfce7;
  color: #047857;
  font-size: 12px;
  font-weight: 950;
}

.availability-badge.low-stock {
  background: #fff7ed;
  color: #c2410c;
}

.availability-badge.out-of-stock,
.availability-badge.unavailable {
  background: #fee2e2;
  color: #991b1b;
}

.availability-badge.restocking-soon,
.availability-badge.coming-soon {
  background: #eef2ff;
  color: #4338ca;
}

.quick-package-list {
  display: grid;
  gap: 7px;
}

.quick-package-row {
  display: grid;
  grid-template-columns: minmax(68px, 1fr) auto minmax(74px, auto);
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #e6edf5;
  border-radius: 12px;
  background: #f9fbfd;
  color: #111827;
  font-size: 13px;
}

.quick-package-row span,
.quick-package-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-package-row strong {
  white-space: nowrap;
}

.quick-package-row small {
  justify-self: end;
  color: #047857;
  font-weight: 900;
}

.quick-package-row.unavailable {
  color: #667085;
  background: #f8fafc;
}

.quick-package-row.unavailable small,
.quick-package-row.locked small {
  color: #98a2b3;
}

.quick-buy-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 8px;
}

.quick-buy-controls label {
  display: grid;
  gap: 5px;
  color: #475467;
  font-size: 12px;
  font-weight: 900;
}

.quick-buy-controls select,
.quick-buy-controls input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--v2-line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--v2-text);
  font-size: 16px;
  font-weight: 800;
}

.quick-buy-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 8px;
}

.quick-buy-actions .btn {
  min-height: 44px;
  justify-content: center;
  white-space: nowrap;
}

.btn.disabled-gray,
.btn.disabled-gray:disabled {
  border-color: #e5e7eb;
  background: #f1f5f9;
  color: #667085;
  box-shadow: none;
  cursor: not-allowed;
}

.catalog-filter-sheet {
  display: none;
}

body.catalog-filter-open {
  overflow: hidden;
}

@media (min-width: 1280px) {
  .quick-buy-grid.product-grid,
  .catalog-app-grid.quick-buy-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1680px) {
  .quick-buy-grid.product-grid,
  .catalog-app-grid.quick-buy-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) and (min-width: 720px) {
  .quick-buy-grid.product-grid,
  .catalog-app-grid.quick-buy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 719px) {
  .compact-customer-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 70px;
    gap: 10px;
  }

  .compact-customer-brand span:not(.logo-badge) {
    display: none;
  }

  .compact-customer-store strong {
    max-width: 44vw;
    font-size: 15px;
  }

  .compact-customer-store span {
    font-size: 11px;
  }

  .account-menu-action {
    width: 44px;
    min-width: 44px;
    padding: 0;
    font-size: 0;
  }

  .account-menu-action::before {
    content: "☰";
    font-size: 20px;
  }

  .v2-customer-catalog {
    gap: 14px;
    padding-bottom: 94px;
  }

  .v2-customer-catalog .catalog-app-head {
    align-items: stretch;
  }

  .catalog-top-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .catalog-sort-control,
  .spark-filter-button {
    width: 100%;
    justify-content: center;
  }

  .desktop-catalog-filters {
    display: none;
  }

  .catalog-availability-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .catalog-availability-row::-webkit-scrollbar {
    display: none;
  }

  .catalog-availability-row .chip {
    flex: 0 0 auto;
  }

  .quick-buy-grid.product-grid,
  .catalog-app-grid.quick-buy-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .quick-buy-card.product-card {
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: auto;
    border-radius: 14px;
  }

  .quick-buy-media {
    height: 100%;
    min-height: 150px;
    padding: 10px;
  }

  .quick-buy-media .product-image {
    max-width: 88px;
    max-height: 126px;
  }

  .quick-buy-body {
    padding: 12px;
    gap: 8px;
  }

  .quick-buy-title-row h3 {
    font-size: 15px;
  }

  .availability-badge {
    min-height: 24px;
    font-size: 11px;
  }

  .quick-package-row {
    grid-template-columns: minmax(58px, 1fr) auto minmax(66px, auto);
    gap: 6px;
    padding: 7px 8px;
    font-size: 12px;
  }

  .quick-buy-controls {
    grid-template-columns: minmax(0, 1fr) 74px;
  }

  .quick-buy-actions {
    grid-template-columns: 1fr;
  }

  .catalog-filter-sheet {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: block;
    pointer-events: none;
  }

  .catalog-filter-sheet[aria-hidden="false"] {
    pointer-events: auto;
  }

  .sheet-scrim {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, .28);
    opacity: 0;
    transition: opacity .2s ease;
  }

  .catalog-filter-sheet[aria-hidden="false"] .sheet-scrim {
    opacity: 1;
  }

  .sheet-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    gap: 16px;
    max-height: min(82vh, 680px);
    padding: 18px 16px max(18px, env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    background: #ffffff;
    box-shadow: 0 -24px 80px rgba(15, 23, 42, .22);
    transform: translateY(105%);
    transition: transform .24s ease;
    overflow-y: auto;
  }

  .catalog-filter-sheet[aria-hidden="false"] .sheet-panel {
    transform: translateY(0);
  }

  .sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .sheet-head h2 {
    margin: 0;
    font-size: 24px;
  }

  .sheet-filter-grid {
    display: grid;
    gap: 12px;
  }

  .sheet-actions {
    position: sticky;
    bottom: calc(env(safe-area-inset-bottom) * -1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 4px;
    background: #ffffff;
  }
}

@media (max-width: 359px) {
  .quick-buy-card.product-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .quick-buy-media .product-image {
    max-width: 74px;
  }

  .quick-package-row {
    grid-template-columns: minmax(48px, 1fr) auto;
  }

  .quick-package-row small {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* 2026-06-18 mockup direction: public site, customer app, and admin refinements */
.catalog-app-page {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 56px;
}


.catalog-app-head h1 {
  color: #0b1020;
  font-size: clamp(2.1rem, 4.2vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: 0;
  margin: 6px 0 14px;
}

.catalog-app-head p {
  max-width: 520px;
  color: #536079;
  font-weight: 650;
  line-height: 1.6;
}


.link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #2563eb;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.catalog-app-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}


.mock-brand-card {
  overflow: hidden;
  min-height: 210px;
  display: grid;
  grid-template-rows: minmax(145px, 1fr) auto;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background: #fff;
  color: #101827;
  text-decoration: none;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.mock-brand-card.compact {
  min-height: 190px;
}

.mock-brand-image {
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.28)),
    linear-gradient(135deg, var(--brand-a), var(--brand-b));
}

.mock-brand-image img {
  width: 100%;
  height: 100%;
  min-height: 145px;
  object-fit: cover;
}

.mock-brand-caption {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), #ffffff);
}

.mock-brand-caption strong {
  text-transform: uppercase;
  font-size: 0.86rem;
}

.mock-brand-caption small {
  color: #667085;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}


.contact-form-status {
  min-height: 22px;
  margin: 0;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-form-status[data-state="success"] {
  color: #059669;
}

.contact-form-status[data-state="error"] {
  color: #b91c1c;
}


.catalog-app-page {
  display: grid;
  gap: 18px;
}

.catalog-search-bar,
.spark-wide-search {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.catalog-search-bar {
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  background: #fff;
}

.catalog-search-bar input {
  min-height: 48px;
  border: 0;
  outline: 0;
  font-size: 1rem;
}

.catalog-chip-row,
.catalog-select-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.catalog-select-row .field {
  min-width: 150px;
  margin: 0;
}

.catalog-select-row .field label {
  font-size: 0.72rem;
}

.catalog-app-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}


.address-suggestions {
  z-index: 8;
  overflow: hidden;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

.address-suggestion {
  min-height: 54px;
}

.customer-dashboard-app {
  display: grid;
  gap: 18px;
}

.customer-hello,
.customer-license-card,
.customer-section {
  border-radius: 12px;
}

.customer-hello {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.customer-hello h2 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin: 0;
}

.customer-license-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px;
}

.customer-license-card .btn {
  grid-column: 1 / -1;
}

.customer-section {
  display: grid;
  gap: 14px;
}

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

.customer-action-card {
  min-height: 118px;
  display: grid;
  gap: 8px;
  align-content: center;
  justify-items: start;
  padding: 16px;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  text-align: left;
  font: inherit;
}

.customer-action-card .spark-icon {
  color: #315df6;
}

.customer-action-card small {
  color: #667085;
  font-weight: 650;
}

.customer-order-list {
  display: grid;
}

.customer-order-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #edf1f7;
}

.customer-order-list > div:first-child {
  border-top: 0;
}


.cart-line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

.cart-line img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: #f1f5f9;
}

.cart-line-main {
  min-width: 0;
}

.cart-line-main strong,
.cart-line-main p {
  overflow-wrap: anywhere;
}

.cart-line-main p,
.cart-line-main small {
  color: #64748b;
  font-weight: 700;
}

.cart-line-controls {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.spark-mobile-detail-tabs {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 0;
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(14px);
}

.spark-mobile-detail-tabs button {
  min-height: 42px;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  background: #fff;
  color: #536079;
  font-weight: 900;
}

.spark-mobile-detail-tabs button.active {
  color: #fff;
  border-color: transparent;
  background: #0b1020;
}

@media (min-width: 900px) and (max-width: 1180px) {
  .spark-command-app {
    grid-template-columns: 240px minmax(0, 1fr);
    padding-bottom: 0;
  }

  .spark-command-sidebar {
    display: flex;
  }

  .spark-mobile-admin-nav {
    display: none;
  }

  .spark-command-content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .spark-filter-tabs {
    flex-wrap: wrap;
    overflow: visible;
  }

  .spark-filter-tabs button {
    flex: 1 1 136px;
    justify-content: space-between;
  }

  .spark-product-head,
  .spark-product-row {
    grid-template-columns: 24px minmax(150px, 1fr) 70px 96px 88px 32px;
    gap: 8px;
    padding: 12px;
  }

  .spark-orders-head,
  .spark-order-row {
    grid-template-columns: 24px minmax(110px, 1fr) minmax(118px, 1fr) 86px 90px 92px 32px;
    gap: 8px;
    padding: 12px;
  }

  .spark-order-toolbar {
    grid-template-columns: 1fr;
  }

  .spark-order-toolbar select,
  .spark-order-toolbar button {
    display: none;
  }

  .spark-row-menu-button {
    width: 28px;
  }

  .spark-action-row,
  .approved-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 980px) {






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

@media (max-width: 760px) {
  .site-header {
    min-height: 84px;
    height: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px 18px;
  }

  .logo-badge,
  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .catalog-app-page {
    width: min(100% - 24px, 560px);
    margin-top: 16px;
  }





  .catalog-app-head h1 {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }













  .mock-brand-card {
    min-height: 170px;
  }

  .mock-brand-card .mock-brand-image img {
    min-height: 112px;
  }

  .catalog-app-head {
    align-items: stretch;
    flex-direction: column;
  }



  .catalog-select-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .btn.small {
    min-height: 44px;
  }

  .catalog-select-row .field {
    min-width: 0;
  }

  .catalog-top {
    display: grid;
  }

  .catalog-top .tabs {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .catalog-app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .catalog-app-grid .product-card {
    border-radius: 12px;
  }

  .catalog-app-grid .product-art {
    height: 154px;
  }

  .catalog-app-grid .product-body {
    padding: 12px;
  }

  .catalog-app-grid .product-body h3 {
    font-size: 0.95rem;
  }

  .catalog-app-grid .product-meta span:nth-child(n+3),
  .catalog-app-grid .unit-badge-row,
  .catalog-app-grid .flavor-row,
  .catalog-app-grid .unit-price-list {
    display: none;
  }

  .catalog-app-grid .product-footer {
    padding: 0 12px 12px;
  }

  .catalog-app-grid .unit-order-grid {
    grid-template-columns: 1fr;
  }

  .catalog-app-grid .product-actions {
    grid-template-columns: 1fr;
  }







  .portal-band {
    padding-bottom: 100px;
  }

  .portal-header,
  .portal-sidebar {
    display: none;
  }

  .portal-container {
    width: min(100% - 24px, 560px);
  }

  .portal-main {
    padding: 0;
  }

  .customer-dashboard-app {
    padding-top: 8px;
  }

  .customer-desktop-extras {
    display: none;
  }

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

  .customer-order-list > div {
    grid-template-columns: 1fr auto;
  }

  .customer-order-list em {
    justify-self: end;
  }











  .cart-drawer {
    left: 0;
    width: 100%;
    max-width: none;
    border-radius: 0;
  }
}

@media (max-width: 430px) {
  .catalog-app-grid {
    gap: 10px;
  }

  .mock-brand-caption {
    padding: 10px;
  }

  .catalog-app-grid .product-art {
    height: 132px;
  }

  .catalog-app-grid .product-image {
    max-width: 96%;
    max-height: 128px;
  }

  .catalog-select-row {
    grid-template-columns: 1fr;
  }




}

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

body.admin-mode .site-header,
body.admin-mode .mobile-dropdown {
  display: none;
}

body.admin-mode {
  background: #f8fafc;
}

body.admin-mode > main {
  padding: 0;
}

.spark-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spark-command-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  background: #f8fafc;
  color: #0f172a;
}

.spark-command-sidebar {
  min-height: 100vh;
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
  padding: 22px 16px;
  border-right: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.96);
}

.spark-command-brand,
.spark-command-mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 950;
  text-decoration: none;
}

.spark-command-logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #20c4ff, #ff2b86 58%, #ffd15f);
  color: #ffffff;
  font-weight: 950;
}

.spark-command-nav {
  display: grid;
  gap: 8px;
  align-content: start;
  padding-top: 14px;
}

.spark-command-nav-item {
  min-height: 46px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.spark-command-nav-item.active {
  background: #fff0f6;
  color: #f72585;
}

.spark-command-nav-item em,
.spark-mobile-admin-nav em {
  min-width: 25px;
  min-height: 25px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ff2b86;
  color: #ffffff;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 950;
}

.spark-plan-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
}

.spark-plan-card strong,
.spark-plan-card small {
  display: block;
}

.spark-plan-icon {
  color: #ff9500;
  font-weight: 950;
}

.spark-plan-meter {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 850;
}

.spark-plan-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.spark-plan-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff2b86, #ff6b5f);
}

.spark-command-main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.spark-command-topbar {
  min-height: 72px;
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px) minmax(0, 1fr);
  align-items: center;
  justify-content: stretch;
  gap: 20px;
  padding: 14px 28px;
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.96);
}

.spark-command-mobile-brand {
  display: none;
}

.spark-command-search {
  min-height: 44px;
  grid-column: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
}

.spark-command-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}

.spark-command-search kbd {
  padding: 4px 7px;
  border-radius: 6px;
  background: #eef2f7;
  color: #475569;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 900;
}

.spark-command-user {
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.spark-bell,
.spark-chevron {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #334155;
  cursor: pointer;
}

.spark-bell span {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ff2b86;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 950;
}

.spark-avatar,
.spark-avatar-tile {
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 950;
}

.spark-avatar {
  width: 42px;
  height: 42px;
  border: 0;
}

.spark-user-copy strong,
.spark-user-copy small {
  display: block;
}

.spark-user-copy small {
  color: #64748b;
  font-weight: 800;
}

.spark-command-content {
  min-width: 0;
  padding: 34px 42px 48px;
}

.spark-page-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.spark-page-title h1 {
  margin: 0 0 8px;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  line-height: 1.05;
}

.spark-page-title p {
  margin: 0;
  color: #475569;
  font-weight: 760;
}

.spark-date-button,
.spark-filter-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 900;
}

.spark-filter-button.active {
  border-color: #ff2b86;
  background: #fff5fb;
  color: #ff2b86;
}

.spark-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.spark-metric-card,
.spark-card,
.spark-info-card,
.spark-setting-card,
.spark-product-editor,
.spark-order-detail {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.04);
}

.spark-metric-card {
  min-height: 154px;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 24px;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
}

.spark-soft-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}

.tone-pink .spark-soft-icon { background: #ffeaf2; color: #ff2b86; }
.tone-purple .spark-soft-icon { background: #f1ecff; color: #7c3aed; }
.tone-orange .spark-soft-icon { background: #fff0e8; color: #f97316; }
.tone-green .spark-soft-icon { background: #e8fbf3; color: #10b981; }
.tone-blue .spark-soft-icon { background: #eaf3ff; color: #1a73e8; }

.spark-metric-copy strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.spark-metric-copy small,
.spark-metric-copy em {
  display: block;
  color: #475569;
  font-size: 0.96rem;
  font-style: normal;
  font-weight: 800;
}

.spark-metric-copy em {
  margin-top: 18px;
  font-size: 0.84rem;
}

.spark-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  gap: 20px;
}

.spark-card {
  min-width: 0;
  padding: 20px;
}

.spark-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.spark-card-head h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.spark-card-head h2 span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  margin-left: 7px;
  border-radius: 999px;
  background: #eef2f7;
  font-size: 0.82rem;
}

.spark-card-head p {
  margin: 0;
  color: #475569;
  font-weight: 760;
}

.spark-priority-list,
.spark-inbox-list,
.spark-activity-list,
.spark-document-mini-list {
  display: grid;
}

.spark-inbox-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
}

.spark-inbox-row.selected {
  border: 1px solid #ff9bc1;
  border-radius: 8px;
  background: #fff7fb;
}

.spark-avatar-tile {
  width: 52px;
  height: 52px;
  background: #edf5ff;
  color: #1a73e8;
}

.spark-avatar-tile.tone-green { background: #dcfce7; color: #10b981; }
.spark-avatar-tile.tone-orange { background: #fff7dc; color: #f59e0b; }
.spark-avatar-tile.tone-purple { background: #f1ecff; color: #7c3aed; }
.spark-avatar-tile.tone-blue { background: #edf5ff; color: #1a73e8; }
.spark-avatar-tile.tone-pink { background: #ffeaf2; color: #ff2b86; }

.spark-row-copy strong,
.spark-row-copy small,
.spark-row-copy em {
  display: block;
}

.spark-row-copy small,
.spark-row-copy em {
  margin-top: 5px;
  color: #475569;
  font-style: normal;
  font-weight: 760;
}

.spark-row-copy em {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
}

.spark-row-copy .spark-icon {
  width: 14px;
  height: 14px;
}

.spark-row-copy > span {
  display: block;
  max-width: 54ch;
  margin-top: 8px;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.45;
}

.spark-support-section {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff7fb, #ffffff 58%, #f8fbff);
}

.spark-support-section-head,
.spark-support-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.spark-support-section-head strong {
  color: #0f172a;
  font-size: 1rem;
}

.spark-support-section-head span,
.spark-support-meta small {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 850;
}

.spark-support-list {
  display: grid;
  gap: 10px;
}

.spark-support-row,
.spark-mobile-support-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
}

.spark-support-meta {
  flex-direction: column;
  align-items: flex-end;
}

.spark-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  background: #e8f7ef;
  color: #059669;
  font-size: 0.78rem;
  font-weight: 950;
  white-space: nowrap;
}

.spark-status.pending-review,
.spark-status.pending,
.spark-status.low-stock,
.spark-status.needs-more-info {
  background: #fff1df;
  color: #ea580c;
}

.spark-status.rejected,
.spark-status.out-of-stock,
.spark-status.canceled {
  background: #ffe8ef;
  color: #e11d48;
}

.spark-status.info-needed,
.spark-status.sent,
.spark-status.email-sent,
.spark-status.hidden {
  background: #eaf3ff;
  color: #1a73e8;
}

.spark-status.email-queued {
  background: #fff1df;
  color: #ea580c;
}

.spark-status.needs-check {
  background: #ffe8ef;
  color: #e11d48;
}

.spark-status.coming-soon,
.spark-status.upcoming {
  background: #eef2ff;
  color: #4f46e5;
}

.spark-status.ready {
  background: #dcfce7;
  color: #047857;
}

.spark-status.needs-price,
.spark-status.needs-metadata,
.spark-status.needs-image,
.spark-status.needs-stock {
  background: #fff7ed;
  color: #c2410c;
}

.spark-status.inactive {
  background: #f1f5f9;
  color: #475569;
}

.spark-health-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.spark-health-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.spark-health-card strong,
.spark-health-card b,
.spark-health-card em {
  display: block;
}

.spark-health-card b {
  margin: 4px 0;
  font-size: 1.45rem;
}

.spark-health-card b small,
.spark-health-card em {
  color: #475569;
  font-size: 0.86rem;
  font-style: normal;
}

.spark-activity-list > div,
.spark-status-line {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) minmax(130px, 0.7fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #eef2f7;
}

.spark-activity-list > div:last-child {
  border-bottom: 0;
}

.spark-system-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 20px;
}

.spark-status-line {
  grid-template-columns: 26px minmax(0, 1fr) auto;
  color: #475569;
}

.spark-status-line .spark-icon {
  color: #10b981;
}

.spark-status-visual {
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff2b86, #ff7a5f);
  color: #ffffff;
  box-shadow: 0 20px 44px rgba(247, 37, 133, 0.28);
}

.spark-status-visual .spark-icon {
  width: 64px;
  height: 64px;
  stroke-width: 2.4;
}

.spark-inbox-page,
.spark-catalog-layout,
.spark-orders-layout {
  display: grid;
  gap: 24px;
}

.spark-inbox-page {
  grid-template-columns: minmax(430px, 0.72fr) minmax(0, 1.18fr);
}

.spark-inbox-list-panel,
.spark-detail-panel,
.spark-catalog-main,
.spark-orders-main,
.spark-editor-drawer,
.spark-order-drawer {
  min-width: 0;
}

.spark-filter-tabs {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  overflow-x: auto;
}

.spark-filter-tabs button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 900;
  white-space: nowrap;
}

.spark-filter-tabs button.active {
  border-color: #ff2b86;
  background: #fff0f6;
  color: #ff2b86;
}

.spark-filter-tabs span {
  min-width: 24px;
  min-height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
}

.spark-application-detail {
  display: grid;
  gap: 18px;
}

.spark-back-button {
  justify-self: start;
  border: 0;
  background: transparent;
  color: #0f172a;
  font-weight: 950;
}

.spark-application-hero {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
}

.spark-application-hero .spark-avatar-tile {
  width: 72px;
  height: 72px;
  font-size: 1.25rem;
}

.spark-application-hero h2 {
  margin: 0 0 7px;
  font-size: 1.45rem;
}

.spark-application-hero p,
.spark-application-hero small,
.spark-assigned {
  color: #475569;
  font-weight: 780;
}

.spark-action-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.spark-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.spark-info-card {
  min-width: 0;
  padding: 20px;
}

.spark-info-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 1.05rem;
}

.spark-info-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.72fr) minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #eef2f7;
}

.spark-info-row:last-child {
  border-bottom: 0;
}

.spark-info-row span {
  color: #475569;
  font-weight: 760;
}

.spark-document-mini-list button,
.spark-document-row,
.spark-customer-row {
  width: 100%;
  display: grid;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  background: transparent;
  color: #0f172a;
  text-align: left;
}

.spark-document-mini-list button {
  grid-template-columns: 28px minmax(180px, 1fr) minmax(122px, max-content) minmax(88px, max-content);
}

.spark-document-mini-list strong,
.spark-document-mini-list small,
.spark-document-mini-list em {
  min-width: 0;
}

.spark-document-mini-list strong {
  overflow-wrap: anywhere;
}

.spark-document-mini-list small,
.spark-document-mini-list em {
  justify-self: end;
  color: #475569;
  font-weight: 760;
  white-space: nowrap;
}

.spark-document-mini-list em {
  color: #0f172a;
  font-style: normal;
  font-weight: 850;
}

.spark-notes-card p {
  color: #475569;
  font-weight: 760;
}

.spark-catalog-layout {
  grid-template-columns: minmax(0, 1fr) 420px;
}

.spark-orders-layout {
  grid-template-columns: minmax(0, 1fr) 355px;
}

.spark-wide-search,
.spark-order-toolbar label {
  min-height: 48px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #ffffff;
  color: #64748b;
}

.spark-wide-search {
  margin-bottom: 16px;
}

.spark-wide-search input,
.spark-order-toolbar input,
.spark-order-toolbar select {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}

.spark-catalog-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.spark-catalog-summary .spark-metric-card {
  min-height: 108px;
  grid-template-columns: 56px minmax(0, 1fr);
}

.spark-catalog-summary .spark-metric-card > .spark-icon {
  display: none;
}

.spark-catalog-filter-panel {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin: 12px 0 16px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.spark-catalog-filter-panel label {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 900;
}

.spark-catalog-filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-weight: 760;
}

.spark-product-table,
.spark-orders-table,
.spark-document-table {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
}

.spark-product-head,
.spark-product-row,
.spark-orders-head,
.spark-order-row,
.spark-customer-row,
.spark-document-row {
  display: grid;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid #eef2f7;
}

.spark-product-head,
.spark-orders-head {
  color: #475569;
  font-size: 0.78rem;
  font-weight: 950;
}

.spark-product-head,
.spark-product-row {
  grid-template-columns: 28px minmax(220px, 1fr) 120px 120px 130px 36px;
}

.spark-product-row,
.spark-order-row {
  position: relative;
  width: 100%;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
}

.spark-product-row.selected,
.spark-order-row.selected {
  background: #fff5fb;
  box-shadow: inset 3px 0 0 #ff2b86;
}

.spark-checkbox {
  width: 18px;
  height: 18px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
}

.spark-checkbox.checked {
  background: #ff2b86;
  border-color: #ff2b86;
}

.spark-product-cell {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
}

.spark-product-cell img,
.spark-editor-head img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: #eef2f7;
}

.spark-product-cell strong,
.spark-product-cell small {
  grid-column: 2;
  display: block;
}

.spark-product-cell img {
  grid-row: 1 / span 2;
}

.spark-product-cell small,
.spark-product-row small,
.spark-order-row small {
  color: #475569;
  font-weight: 760;
}

.spark-visible {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-weight: 850;
}

.spark-row-actions {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.spark-row-menu-button {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 950;
  cursor: pointer;
}

.spark-row-menu-button:hover,
.spark-row-menu-button:focus-visible {
  background: #f1f5f9;
  outline: 0;
}

.spark-row-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: min(210px, 70vw);
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16);
}

.spark-row-menu button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.spark-row-menu button:hover,
.spark-row-menu button:focus-visible {
  background: #fff5fb;
  color: #ff2b86;
  outline: 0;
}

.spark-visible .spark-icon {
  width: 16px;
  height: 16px;
}

.spark-product-editor,
.spark-order-detail {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
  padding: 22px;
  container-type: inline-size;
}

.spark-editor-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.spark-editor-head > div {
  min-width: 0;
}

.spark-editor-head img {
  width: 72px;
  height: 72px;
}

.spark-editor-head h2,
.spark-order-detail h2 {
  margin: 0 0 5px;
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}

.spark-editor-head p {
  overflow-wrap: anywhere;
}

.spark-product-editor section,
.spark-order-detail section {
  min-width: 0;
  padding-top: 16px;
  border-top: 1px solid #eef2f7;
}

.spark-product-editor h3,
.spark-order-detail h3 {
  margin: 0 0 12px;
  font-size: 0.96rem;
}

.spark-form-grid {
  display: grid;
  gap: 12px;
}

.spark-form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.spark-form-grid label,
.spark-product-editor label {
  display: grid;
  gap: 7px;
  color: #475569;
  font-weight: 850;
}

.spark-form-grid input,
.spark-form-grid select,
.spark-upload-control input,
.spark-unit-row input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  padding: 0 10px;
  background: #ffffff;
  font: inherit;
}

.spark-choice {
  min-width: 0;
  padding: 14px;
  border: 1px solid #ff9bc1;
  border-radius: 8px;
  background: #fff5fb;
  color: #0f172a;
}

.spark-choice small {
  color: #475569;
}

.spark-choice input {
  align-self: flex-start;
}

.spark-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.spark-catalog-choice-grid {
  align-items: stretch;
}

.spark-preview-card {
  display: grid;
  gap: 8px;
  border-color: #dbe3ec;
  background: #ffffff;
}

.spark-preview-card small {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  overflow-wrap: anywhere;
}

.spark-preview-card b {
  color: #64748b;
}

.spark-derived-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.spark-derived-status-grid span,
.spark-unit-calculated span {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.spark-derived-status-grid small,
.spark-unit-calculated span {
  color: #475569;
  font-weight: 800;
}

.spark-derived-status-grid strong,
.spark-unit-calculated strong {
  color: #0f172a;
  font-weight: 950;
}

.spark-field-help {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.45;
}

.spark-setup-suggestions {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e8eef7;
  border-radius: 12px;
  background: #fbfdff;
}

.spark-setup-suggestions > span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.spark-setup-suggestions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spark-setup-suggestions button {
  min-height: 38px;
  border: 1px solid #dbe3ec;
  border-radius: 999px;
  padding: 8px 12px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
  cursor: pointer;
}

.spark-setup-suggestions button:hover,
.spark-setup-suggestions button:focus-visible {
  border-color: #ff2b86;
  background: #fff5fb;
  color: #ff2b86;
  outline: 0;
}

.spark-upload-control {
  display: grid;
  gap: 8px;
}

.spark-unit-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) repeat(6, minmax(0, 70px));
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.spark-simple-unit-list {
  display: grid;
  gap: 12px;
}

.spark-simple-unit {
  grid-template-columns: 1fr;
  align-items: stretch;
  margin-bottom: 0;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.spark-simple-unit-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.spark-simple-unit-head small {
  color: #64748b;
  font-weight: 850;
}

.spark-unit-calculated {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.spark-status-cell {
  min-width: 0;
  display: grid;
  gap: 5px;
  align-content: center;
}

.spark-status-cell small {
  color: #64748b;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.spark-internal-unit-details {
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
}

.spark-internal-unit-details summary {
  cursor: pointer;
  color: #334155;
  font-weight: 950;
}

.spark-setup-summary-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff, #fff7fb);
}

.spark-setup-summary-card strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 1.05rem;
}

.spark-setup-summary-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spark-setup-summary-card li {
  border-radius: 999px;
  padding: 7px 10px;
  background: #eef2ff;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 900;
}

.spark-image-strip {
  display: flex;
  gap: 10px;
}

.spark-image-strip img,
.spark-image-strip span {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  object-fit: contain;
  background: #f8fafc;
}

@container (max-width: 560px) {
  .spark-product-editor .spark-form-grid.two,
  .spark-product-editor .spark-choice-grid,
  .spark-product-editor .spark-derived-status-grid,
  .spark-product-editor .spark-unit-calculated {
    grid-template-columns: 1fr;
  }

  .spark-product-editor {
    padding: 18px;
  }

  .spark-preview-card small {
    display: grid;
    gap: 3px;
  }
}

.spark-order-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px 210px 48px;
  gap: 12px;
  margin-bottom: 16px;
}

.spark-order-insights {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 16px;
  margin-top: 16px;
}

.spark-empty-order-card {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.spark-order-toolbar > button,
.spark-order-toolbar select {
  min-height: 48px;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 850;
}

.spark-orders-head,
.spark-order-row {
  grid-template-columns: 28px minmax(120px, 1fr) minmax(160px, 1fr) 120px 120px 130px 32px;
}

.spark-drawer-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.spark-drawer-title button {
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 1.5rem;
}

.spark-customer-block {
  display: flex;
  gap: 12px;
  align-items: center;
}

.spark-order-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f7;
}

.spark-order-item span {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #eef2f7;
}

.spark-order-item em {
  color: #475569;
  font-style: normal;
  font-weight: 850;
}

.spark-simple-page,
.spark-settings-page {
  display: grid;
  gap: 20px;
}

.customer-table .spark-product-head,
.customer-table .spark-customer-row,
.spark-document-table .spark-product-head,
.spark-document-row {
  grid-template-columns: minmax(220px, 1.2fr) minmax(170px, 1fr) minmax(150px, 0.8fr) minmax(110px, 0.6fr) minmax(100px, 0.5fr);
}

.spark-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.spark-setting-card {
  min-height: 230px;
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 26px;
}

.spark-setting-card h2 {
  margin: 0;
  font-size: 1.15rem;
}

.spark-setting-card p {
  margin: 0;
  color: #475569;
  line-height: 1.5;
  font-weight: 760;
}

.spark-security-card {
  grid-column: span 2;
}

.spark-security-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.spark-security-grid > div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-right: 1px solid #eef2f7;
}

.spark-security-grid > div:last-child {
  border-right: 0;
}

.spark-security-grid .spark-icon {
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 1px solid #10b981;
  border-radius: 999px;
  color: #10b981;
}

.spark-security-grid strong,
.spark-security-grid small {
  display: block;
}

.spark-security-grid small {
  color: #475569;
  font-weight: 760;
}

.spark-mobile-admin-nav {
  display: none;
}

@media (max-width: 1180px) {
  .spark-command-app {
    grid-template-columns: 1fr;
    padding-bottom: 92px;
  }

  .spark-command-sidebar {
    display: none;
  }

  .spark-command-topbar {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .spark-command-mobile-brand {
    grid-column: auto;
    display: inline-flex;
  }

  .spark-command-search {
    display: none;
  }

  .spark-command-user {
    grid-column: auto;
  }

  .spark-dashboard-grid,
  .spark-inbox-page,
  .spark-catalog-layout,
  .spark-orders-layout {
    grid-template-columns: 1fr;
  }

  .spark-editor-drawer,
  .spark-order-drawer,
  .spark-product-editor,
  .spark-order-detail {
    position: static;
  }

  .spark-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spark-mobile-admin-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    min-height: 82px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 8px 10px max(8px, env(safe-area-inset-bottom));
    border-top: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
  }

  .spark-mobile-admin-nav button {
    position: relative;
    display: grid;
    place-items: center;
    gap: 4px;
    border: 0;
    background: transparent;
    color: #475569;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 850;
  }

  .spark-mobile-admin-nav button.active {
    color: #ff2b86;
  }

  .spark-mobile-admin-nav .spark-icon {
    width: 26px;
    height: 26px;
  }

  .spark-mobile-admin-nav em {
    position: absolute;
    top: 2px;
    right: 18px;
  }

  .spark-mobile-more-sheet {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    z-index: 70;
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  }

  .spark-mobile-more-sheet button {
    min-height: 52px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 8px;
    background: #f8fafc;
    color: #0f172a;
    font-weight: 900;
    text-align: left;
  }
}

@media (max-width: 820px) {
  .spark-command-app {
    min-height: 100vh;
  }

  .spark-command-topbar {
    min-height: 96px;
    padding: 18px 20px;
  }

  .spark-user-copy,
  .spark-chevron {
    display: none;
  }

  .spark-command-content {
    padding: 24px 16px 28px;
  }

  .spark-page-title {
    align-items: center;
  }

  .spark-page-title h1 {
    font-size: 2rem;
  }

  .spark-page-title p,
  .spark-date-button {
    display: none;
  }

  .spark-metric-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .spark-metric-card {
    min-height: 112px;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    padding: 20px 22px;
  }

  .spark-metric-copy em {
    display: none;
  }

  .spark-dashboard-grid,
  .spark-health-grid,
  .spark-detail-grid,
  .spark-catalog-summary,
  .spark-order-insights,
  .spark-settings-grid,
  .spark-security-grid {
    grid-template-columns: 1fr;
  }

  .spark-system-card,
  .spark-application-hero {
    grid-template-columns: 1fr;
  }

  .spark-status-visual,
  .spark-assigned {
    display: none;
  }

  .spark-action-row {
    position: sticky;
    bottom: 82px;
    z-index: 35;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 12px 0;
    background: rgba(248, 250, 252, 0.95);
  }

  .spark-action-row.approved-actions {
    grid-template-columns: 1fr;
  }

  .spark-action-row .btn {
    min-height: 48px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .spark-approved-note {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #ecfdf5;
    color: #047857;
    font-weight: 950;
  }

  .spark-product-head,
  .spark-orders-head {
    display: none;
  }

  .spark-document-mini-list button {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .spark-document-mini-list small,
  .spark-document-mini-list em {
    grid-column: 2;
    justify-self: start;
    white-space: normal;
  }

  .spark-product-row,
  .spark-order-row,
  .spark-customer-row,
  .spark-document-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .spark-checkbox,
  .spark-product-row > span:last-child,
  .spark-order-row > span:last-child {
    display: none;
  }

  .spark-product-cell {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .spark-product-cell img {
    width: 96px;
    height: 96px;
    border-radius: 14px;
  }

  .spark-form-grid.two,
  .spark-choice-grid,
  .spark-derived-status-grid,
  .spark-unit-calculated,
  .spark-order-toolbar,
  .spark-unit-row,
  .customer-table .spark-customer-row,
  .spark-document-row {
    grid-template-columns: 1fr;
  }

  .spark-order-toolbar select,
  .spark-order-toolbar button {
    display: none;
  }

  .spark-catalog-filter-panel {
    grid-template-columns: 1fr;
  }

  .spark-filter-tabs {
    display: none;
  }

  .spark-filter-tabs.mobile-filter-tabs {
    display: flex;
    gap: 8px;
    margin: 12px 0 16px;
    padding-bottom: 3px;
    overflow-x: auto;
  }

  .spark-filter-tabs.mobile-filter-tabs button {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.85rem;
  }

  .spark-mobile-orders-screen .spark-filter-tabs.order-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0 16px;
    overflow: visible;
  }

  .spark-mobile-orders-screen .spark-filter-tabs.order-tabs button {
    width: 100%;
    justify-content: space-between;
    padding: 0 10px;
    white-space: normal;
  }

  .spark-product-editor {
    padding-bottom: 100px;
  }

  .spark-product-editor-mobile {
    position: static;
    padding: 0 0 108px;
  }

  .spark-product-editor-mobile .spark-editor-head {
    grid-template-columns: 82px minmax(0, 1fr);
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
  }

  .spark-product-editor-mobile .spark-editor-head img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    border-radius: 10px;
    background: #eef2f7;
  }

  .spark-product-editor > .btn.primary {
    position: fixed;
    left: 20px;
    right: 20px;
    width: auto;
    bottom: 94px;
    z-index: 45;
    min-height: 64px;
    border-radius: 10px;
    font-size: 1.15rem;
  }

  .spark-security-card {
    grid-column: auto;
  }

  .spark-security-grid > div {
    border-right: 0;
  }

  .spark-mobile-summary-chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0;
  }

  .spark-mobile-summary-chips button {
    min-height: 76px;
    display: grid;
    place-items: center;
    gap: 4px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 900;
  }

  .spark-mobile-summary-chips strong {
    font-size: 1.35rem;
  }

  .spark-mobile-summary-chips span {
    color: #475569;
    font-size: 0.78rem;
  }

  .spark-mobile-product-list,
  .spark-mobile-application-list,
  .spark-mobile-order-list,
  .spark-mobile-customer-list,
  .spark-mobile-document-list,
  .spark-mobile-settings-list,
  .spark-mobile-support-list,
  .spark-mobile-detail-stack,
  .spark-mobile-unit-list {
    display: grid;
    gap: 12px;
  }

  .spark-mobile-product-card,
  .spark-mobile-application-card,
  .spark-mobile-order-card,
  .spark-mobile-customer-card,
  .spark-mobile-document-list button,
  .spark-mobile-settings-list button {
    width: 100%;
    min-height: 72px;
    position: relative;
    display: grid;
    align-items: center;
    gap: 8px 12px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    text-align: left;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.04);
  }

  .spark-mobile-support-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .spark-mobile-support-card .spark-support-meta {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
  }

  .spark-mobile-product-card {
    grid-template-columns: 74px minmax(0, 1fr) 24px;
  }

  .spark-mobile-product-card > img {
    width: 74px;
    height: 74px;
    grid-row: 1 / span 2;
    object-fit: contain;
    border-radius: 10px;
    background: #eef2f7;
  }

  .spark-mobile-product-copy,
  .spark-mobile-product-pills,
  .spark-mobile-card-head {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
  }

  .spark-mobile-product-copy {
    display: grid;
    gap: 4px;
  }

  .spark-mobile-product-copy strong,
  .spark-mobile-card-head strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .spark-mobile-product-copy small,
  .spark-mobile-product-copy em,
  .spark-mobile-application-card small,
  .spark-mobile-order-card small,
  .spark-mobile-customer-card small,
  .spark-mobile-document-list small,
  .spark-mobile-document-list em,
  .spark-mobile-settings-list small {
    color: #475569;
    font-style: normal;
    font-weight: 760;
  }

  .spark-mobile-product-pills {
    grid-column: 2 / 4;
  }

  .spark-mobile-application-card,
  .spark-mobile-order-card,
  .spark-mobile-customer-card {
    grid-template-columns: minmax(0, 1fr) 24px;
  }

  .spark-mobile-application-card > :not(.spark-icon),
  .spark-mobile-order-card > :not(.spark-icon),
  .spark-mobile-customer-card > :not(.spark-icon) {
    grid-column: 1;
  }

  .spark-mobile-application-card > .spark-icon,
  .spark-mobile-order-card > .spark-icon,
  .spark-mobile-customer-card > .spark-icon {
    grid-column: 2;
    grid-row: 1 / span 3;
    justify-self: end;
  }

  .spark-mobile-detail-topbar {
    min-height: 52px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
  }

  .spark-mobile-detail-topbar strong {
    justify-self: center;
    font-size: 1.05rem;
  }

  .spark-mobile-detail-topbar .spark-back-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .spark-mobile-detail-topbar .spark-back-button .spark-icon {
    transform: rotate(180deg);
  }

  .spark-icon-button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
  }

  .spark-mobile-product-summary,
  .spark-mobile-application-summary {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
  }

  .spark-mobile-product-summary img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    border-radius: 10px;
    background: #eef2f7;
  }

  .spark-mobile-product-summary h2,
  .spark-mobile-application-summary h2 {
    margin: 0 0 5px;
    font-size: 1.18rem;
    line-height: 1.15;
  }

  .spark-mobile-product-summary p,
  .spark-mobile-application-summary p {
    margin: 4px 0;
    color: #475569;
    font-weight: 760;
  }

  .spark-mobile-summary-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #eef2f7;
  }

  .spark-mobile-summary-grid span {
    display: grid;
    gap: 3px;
  }

  .spark-mobile-summary-grid small {
    color: #475569;
    font-weight: 760;
  }

  .spark-mobile-accordion {
    margin-bottom: 10px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
  }

  .spark-mobile-accordion summary {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    font-weight: 950;
    cursor: pointer;
  }

  .spark-mobile-accordion summary span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #6d5dfc, #b23cff);
    color: #ffffff;
  }

  .spark-mobile-accordion > :not(summary) {
    margin: 0 14px 14px;
  }

  .spark-mobile-unit-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
  }

  .spark-mobile-save-button {
    position: sticky;
    bottom: 96px;
    z-index: 45;
    min-height: 58px;
    margin-top: 14px;
  }

  .spark-mobile-document-list button {
    grid-template-columns: 30px minmax(0, 1fr) auto;
  }

  .spark-mobile-document-list button > strong,
  .spark-mobile-document-list button > small,
  .spark-mobile-document-list button > em {
    grid-column: 2;
  }

  .spark-mobile-document-list button > .spark-status {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: start;
  }

  .spark-mobile-settings-list button {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }

  .spark-mobile-settings-list .spark-soft-icon {
    width: 46px;
    height: 46px;
  }

  .spark-mobile-settings-list strong,
  .spark-mobile-settings-list small {
    display: block;
  }

  .spark-mobile-settings-list em {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #0f172a;
    font-style: normal;
    font-weight: 900;
  }

  .spark-mobile-security-card {
    margin-top: 14px;
  }

  .spark-mobile-empty-orders {
    min-height: 210px;
    display: grid;
    place-items: center;
    text-align: center;
  }

  .spark-mobile-empty-orders p {
    margin: 0;
    color: #475569;
    font-weight: 760;
  }

}

@media (max-width: 380px) {
  .spark-page-title h1 {
    font-size: 1.65rem;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: #fbfcfe;
  color: var(--ink);
  min-width: 320px;
  overflow-x: clip;
}

body.modal-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

body.user-logged-in [data-auth="register"] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(221, 227, 234, 0.86);
  backdrop-filter: blur(18px);
  overflow: visible;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
  min-width: 0;
  justify-self: start;
}

.logo span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logo-badge,
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(0, 187, 249, 0.96), rgba(247, 37, 133, 0.92) 54%, rgba(254, 228, 64, 0.96));
  box-shadow: 0 10px 22px rgba(67, 97, 238, 0.24);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 1.35vw, 20px);
  color: #313746;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.main-nav a {
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a.active,
.main-nav a:hover {
  border-color: var(--pink);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.menu-button {
  display: none;
}

.mobile-dropdown {
  display: none;
}

body.mobile-menu-open main {
  margin-top: 0;
}

body.mobile-menu-open {
  overflow: hidden;
}

body.mobile-menu-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 15;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(8px);
}

.btn,
.icon-btn,
.tab,
.chip,
.step-pill {
  border: 0;
  border-radius: var(--radius);
  min-height: 40px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #4361ee, #f72585 62%, #fb7756);
  box-shadow: 0 12px 26px rgba(247, 37, 133, 0.22);
}

.btn.secondary {
  color: #111827;
  background: linear-gradient(135deg, #fee440, #4ade80);
}

.btn.ghost {
  color: #202633;
  background: #ffffff;
  border: 1px solid var(--line);
}

.btn.small {
  min-height: 36px;
  padding: 0 13px;
  font-size: 0.88rem;
}

.btn.full {
  width: 100%;
}

.btn:hover,
.icon-btn:hover,
.chip:hover {
  transform: translateY(-1px);
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
}

.site-header .menu-button {
  display: none;
}

.cart-button {
  position: relative;
}

.cart-count {
  position: absolute;
  right: 2px;
  top: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--pink);
  font-size: 0.72rem;
  font-weight: 900;
}

.cart-count[hidden],
.action-count[hidden] {
  display: none !important;
}

.mobile-cart-button {
  position: relative;
}

.mobile-cart-button .cart-count {
  right: 14px;
  top: 10px;
}

.mobile-dropdown {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 25;
  width: min(430px, 88vw);
  height: 100dvh;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: calc(22px + env(safe-area-inset-top)) 18px 22px;
  border-left: 1px solid rgba(221, 227, 234, 0.92);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: -22px 0 56px rgba(16, 19, 31, 0.18);
  backdrop-filter: blur(20px);
  overflow: auto;
  transform: translateX(105%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.24s ease, opacity 0.2s ease, visibility 0.2s ease;
}

body.mobile-menu-open .mobile-dropdown {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav {
  display: grid;
  gap: 2px;
}

.mobile-nav a,
.mobile-action {
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #202633;
  background: transparent;
  text-decoration: none;
  font-weight: 850;
}

.mobile-nav a:hover,
.mobile-nav a.active,
.mobile-action:hover,
.mobile-action:focus-visible {
  background: #f4f7fb;
  outline: 0;
}

.mobile-nav a::after {
  content: none;
}

.mobile-menu-actions,
.mobile-auth-actions {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.mobile-action {
  width: 100%;
  border: 0;
  font-size: 0.95rem;
  justify-content: flex-start;
}

.mobile-action span:first-child {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--pink));
}

.mobile-action span:last-child {
  flex: 1;
  text-align: left;
}

.mobile-logout {
  display: none;
}

body.user-logged-in .mobile-logout {
  display: inline-flex;
}

.view {
  display: none;
}

.active-view {
  display: block;
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}


h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}


.section-actions,
.form-actions,
.product-actions,
.filter-actions,
.gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}


.metric {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  padding: 16px;
  border-radius: var(--radius);
}

.metric strong {
  display: block;
  font-size: 1.5rem;
}

.metric span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.band {
  padding: clamp(42px, 8vw, 88px) 0;
}

.band.home-intro {
  padding-top: 18px;
}

.band.tint {
  background:
    linear-gradient(180deg, #fbfcfe, #f2f7f8);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.section-head > * {
  min-width: 0;
}

.section-head h2,
.drawer-header h2,
.modal-panel h2 {
  font-size: clamp(1.65rem, 3.4vw, 3rem);
}

.section-head p {
  max-width: 710px;
  color: var(--muted);
  line-height: 1.65;
  margin: 10px 0 0;
}

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--radius);
  background: #fff7d6;
  border-left: 6px solid #e3b341;
  color: #5f4a10;
  line-height: 1.55;
}

.notice strong {
  color: #3f3106;
}

.warning-notice {
  background: #fff1f2;
  border-left-color: #fb7185;
  color: #881337;
}

.warning-notice strong {
  color: #7f1d1d;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(16, 19, 31, 0.06);
}

.feature-card,
.brand-card,
.stat-card,
.dashboard-card,
.application-card,
.flavor-card,
.info-card {
  padding: 20px;
}

.feature-card h3,
.brand-card h3,
.stat-card h3,
.dashboard-card h3,
.flavor-card h3,
.info-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-card p,
.brand-card p,
.dashboard-card p,
.info-card p {
  color: var(--muted);
  line-height: 1.58;
  margin: 0;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: var(--radius);
  color: #10131f;
  background: linear-gradient(135deg, #fee440, #4ade80);
  font-weight: 950;
}

.info-card {
  min-height: 150px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.category-card {
  min-height: 320px;
  padding: 0;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--yellow));
}

.category-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.category-card p {
  color: var(--muted);
  line-height: 1.58;
  margin: 0;
}

.category-art {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cat-a), var(--cat-b), var(--cat-c));
}

.category-art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.category-code {
  position: absolute;
  left: 14px;
  top: 14px;
  min-width: 38px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius);
  color: #10131f;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 22px rgba(16, 19, 31, 0.14);
  font-size: 0.75rem;
  font-weight: 950;
}

.category-copy {
  padding: 18px 18px 22px;
}

.ranked-brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.rank-brand-card {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  position: relative;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.rank-brand-card:hover,
.rank-brand-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(67, 97, 238, 0.34);
  box-shadow: 0 18px 44px rgba(16, 19, 31, 0.14);
}

.rank-brand-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b), var(--yellow));
}

.rank-brand-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.62), transparent 28%),
    linear-gradient(135deg, var(--brand-a), var(--brand-b));
}

.rank-brand-media::before,
.rank-brand-media::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.rank-brand-media::before {
  inset: 14% 10% auto auto;
  width: 44%;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.2);
  animation: brandFloat 7s ease-in-out infinite;
}

.rank-brand-media::after {
  left: -24%;
  top: -48%;
  width: 42%;
  height: 170%;
  transform: rotate(22deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  animation: brandShine 5.5s ease-in-out infinite;
}

.rank-brand-media img {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: contain;
  filter: saturate(1.04) contrast(1.02);
  z-index: 1;
}

.rank-number,
.rank-status {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.88);
  color: #10131f;
  box-shadow: 0 10px 22px rgba(16, 19, 31, 0.14);
  font-weight: 950;
}

.rank-number {
  left: 12px;
  top: 12px;
  min-width: 44px;
  min-height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  font-size: 0.82rem;
}

.rank-status {
  right: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 8px 10px;
  border-radius: var(--radius);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.rank-brand-copy {
  display: grid;
  gap: 12px;
  padding: 18px 18px 22px;
}

.rank-brand-copy h3 {
  font-size: 1.05rem;
}

.rank-brand-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.rank-brand-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rank-brand-meta span {
  padding: 7px 9px;
  border: 1px solid #dbe3ec;
  border-radius: var(--radius);
  color: #334155;
  background: #f8fafc;
  font-size: 0.76rem;
  font-weight: 900;
}

@keyframes productLift {
  0%, 100% {
    transform: translateY(0) scale(1.02);
  }
  50% {
    transform: translateY(-8px) scale(1.045);
  }
}

@keyframes brandFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-14px, 12px, 0) scale(1.08);
  }
}

@keyframes brandShine {
  0%, 35% {
    transform: translateX(-20%) rotate(22deg);
  }
  75%, 100% {
    transform: translateX(360%) rotate(22deg);
  }
}

.cta-panel {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(221, 227, 234, 0.9);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(16, 19, 31, 0.96), rgba(67, 97, 238, 0.84)),
    radial-gradient(circle at 84% 18%, rgba(254, 228, 64, 0.56), transparent 34%);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.cta-panel .eyebrow {
  color: #c8f7ff;
}

.cta-panel h2 {
  max-width: 780px;
  font-size: clamp(1.7rem, 3.8vw, 3.25rem);
}

.cta-panel p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
  margin: 10px 0 0;
}

.cta-panel .btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

.catalog-lock {
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.compact-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.route-card,
.contact-panel {
  margin-top: 20px;
  padding: 20px;
}

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

.route-grid span {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: #202633;
  background: #f8fbff;
  font-weight: 850;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 20px;
  margin-top: 20px;
}

.admin-container {
  display: grid;
  gap: 20px;
}

.admin-container > * {
  min-width: 0;
}

.admin-gate,
.admin-loading {
  max-width: 760px;
  padding: clamp(22px, 4vw, 34px);
}

.admin-gate h2,
.admin-loading h2 {
  font-size: clamp(1.85rem, 4vw, 3.4rem);
  line-height: 1;
}

.admin-gate p,
.admin-loading p {
  color: var(--muted);
  line-height: 1.65;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-stat {
  min-height: 126px;
  padding: 16px;
  border: 1px solid rgba(221, 227, 234, 0.9);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 251, 0.98)),
    radial-gradient(circle at 88% 8%, rgba(0, 187, 249, 0.16), transparent 34%);
  box-shadow: var(--shadow-soft);
}

.admin-stat span,
.admin-stat small {
  display: block;
  color: var(--muted);
}

.admin-stat span {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-stat strong {
  display: block;
  margin: 8px 0;
  font-size: 2rem;
  line-height: 1;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 16px;
}

.admin-tabs {
  justify-content: end;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #111827;
  background: #eef2f7;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-badge.pending,
.status-badge.pending-review {
  color: #7c4a03;
  background: #fff3cd;
}

.status-badge.needs-more-info {
  color: #6b21a8;
  background: #f3e8ff;
}

.status-badge.approved {
  color: #065f46;
  background: #d1fae5;
}

.status-badge.rejected {
  color: #991b1b;
  background: #fee2e2;
}

.status-badge.suspended,
.status-badge.license-expired {
  color: #374151;
  background: #e5e7eb;
}

.admin-detail {
  padding: clamp(18px, 3vw, 28px);
}

.admin-detail-header,
.admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-detail-header h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.admin-detail-header p {
  color: var(--muted);
}

.admin-detail-status {
  display: grid;
  justify-items: end;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-section-grid,
.admin-work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.application-detail-grid {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
}

.application-detail-grid .detail-section:first-child {
  grid-column: 1 / -1;
}

.admin-work-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.admin-section {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.admin-section h3 {
  margin-bottom: 12px;
}

.detail-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f7;
}

.detail-row:last-child {
  border-bottom: 0;
}

.detail-row span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.detail-row strong {
  min-width: 0;
}

.payment-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.payment-method {
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}

.payment-method.selected {
  border-color: #4361ee;
  background: #eef4ff;
  box-shadow: inset 0 0 0 1px rgba(67, 97, 238, 0.18);
}

.payment-method span,
.payment-method strong {
  display: block;
}

.payment-method span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.payment-method strong {
  margin-top: 8px;
}

.doc-review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.doc-review-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
  display: grid;
  gap: 12px;
}

.doc-review-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.doc-review-head h4 {
  margin: 0;
  overflow-wrap: anywhere;
}

.doc-review-head span {
  color: var(--muted);
  font-size: 0.83rem;
}

.private-file {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: var(--radius);
  background: #f1f5f9;
}

.private-file span {
  min-width: 0;
  color: #475467;
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-input-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.admin-doc-preview {
  display: grid;
  gap: 16px;
}

.admin-doc-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-right: 48px;
}

.admin-doc-preview-head > div {
  min-width: 0;
}

.admin-doc-preview-head h2 {
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.admin-doc-preview-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.admin-doc-frame {
  min-height: min(62vh, 620px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}

.admin-doc-frame img,
.admin-doc-frame iframe {
  width: 100%;
  height: min(62vh, 620px);
  border: 0;
  object-fit: contain;
  background: #ffffff;
}

.generated-doc-preview {
  width: min(560px, 100%);
  display: grid;
  gap: 14px;
  padding: clamp(18px, 4vw, 30px);
  border: 1px solid #dbe3ec;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 187, 249, 0.14), transparent 34%),
    linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: var(--shadow-soft);
}

.generated-doc-preview dl,
.doc-preview-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.generated-doc-preview dl {
  margin: 0;
}

.generated-doc-preview div,
.doc-preview-meta div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  background: #ffffff;
}

.generated-doc-preview dt,
.doc-preview-meta span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.generated-doc-preview dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 850;
}

.admin-section textarea {
  width: 100%;
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  resize: vertical;
}

.admin-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.danger-outline {
  color: #991b1b;
  border-color: #fecaca;
  background: #fffafa;
}

.destructive-admin-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  border-color: #fecaca;
  background: #fffafa;
}

.destructive-admin-section p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: #7f1d1d;
  font-weight: 750;
  line-height: 1.55;
}

.history-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.history-list > div {
  padding: 12px;
  border: 1px solid #eef2f7;
  border-radius: var(--radius);
  background: #f8fbff;
}

.history-list strong,
.history-list span {
  display: block;
}

.history-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.compact-history {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-email {
  margin-bottom: 0;
}

.admin-product-unit-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.admin-product-unit-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
}

.admin-product-unit-head {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-product-unit-head span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-unit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.admin-product-unit {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  background: #ffffff;
}

.admin-product-unit .checkbox-label {
  margin-bottom: 0;
}

.admin-unit-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf2f7;
}

.admin-unit-title-row small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-align: right;
}

.admin-unit-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 10px;
  align-items: end;
}

.admin-unit-fields .field,
.admin-product-meta-grid .field,
.admin-add-product-grid .field,
.compact-deal-form .field {
  margin-bottom: 0;
}

.currency-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 42px;
  border: 1px solid #ccd6df;
  border-radius: var(--radius);
  background: #ffffff;
}

.currency-input span {
  padding-left: 12px;
  color: var(--muted);
  font-weight: 950;
}

.field .currency-input input {
  min-height: 40px;
  border: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding-left: 7px;
  box-shadow: none;
}

.field .currency-input input:focus {
  box-shadow: none;
}

.field .currency-input:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.12);
}

.backlog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.backlog-card {
  min-width: 0;
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid #dbe3ec;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.backlog-card.visible {
  border-color: rgba(34, 197, 94, 0.52);
  background: linear-gradient(180deg, #ffffff, #ecfdf5);
}

.backlog-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.backlog-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.52;
}

.switch-control {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 950;
}

.switch-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-control span {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #cbd5e1;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.1);
  transition: background 0.2s ease;
}

.switch-control span::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.22);
  transition: transform 0.2s ease;
}

.switch-control input:checked + span {
  background: linear-gradient(135deg, #22c55e, #4cc9f0);
}

.switch-control input:checked + span::after {
  transform: translateX(22px);
}

.promotion-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.promo-console .admin-detail-header {
  align-items: end;
}

.promo-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  gap: 8px;
  min-width: min(380px, 100%);
}

.promo-summary-strip div,
.promo-rule-notes div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  background: #ffffff;
}

.promo-summary-strip span,
.promo-rule-notes span,
.panel-copy {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.promo-summary-strip strong {
  font-size: 1.45rem;
}

.promotion-customer-card,
.promotion-panel,
.deal-result {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
}

.promotion-panel *,
.promotion-customer-card *,
.deal-result * {
  min-width: 0;
}

.promotion-customer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.promotion-customer-head span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.promotion-setting-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.promotion-toggle {
  min-height: 40px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  background: white;
}

.admin-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 14px;
  margin: 16px 0;
  align-items: start;
}

.promotion-code-list,
.promotion-panel {
  display: grid;
  gap: 10px;
}

.promo-code-layout {
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
}

.promotion-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.compact-code-form {
  margin-top: 4px;
}

.discount-code-form,
.deal-simulator-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.promo-calculator-panel {
  margin-top: 16px;
  background:
    radial-gradient(circle at 10% 0%, rgba(76, 201, 240, 0.12), transparent 34%),
    radial-gradient(circle at 95% 10%, rgba(247, 37, 133, 0.1), transparent 30%),
    #fbfcfe;
}

.compact-deal-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.compact-deal-form .deal-picker,
.compact-deal-form .btn.full {
  grid-column: 1 / -1;
}

.calculator-empty-state {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.calculator-empty-state span {
  color: var(--muted);
  font-weight: 800;
}

.promotion-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  background: white;
}

.promotion-code-row.paused {
  background: #f8fafc;
  opacity: 0.82;
}

.promotion-code-main {
  display: grid;
  gap: 4px;
}

.promotion-code-main em {
  color: #334155;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
}

.promotion-code-row span,
.promotion-code-row small {
  color: var(--muted);
  font-weight: 800;
}

.promotion-code-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-switch {
  min-height: 38px;
  grid-template-columns: auto auto;
  padding: 0 8px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  background: #ffffff;
}

.mini-switch input[type="checkbox"] {
  width: 1px;
  max-width: 1px;
  min-height: 1px;
  padding: 0;
}

.mini-switch span {
  width: 42px;
  height: 24px;
}

.mini-switch span::after {
  width: 16px;
  height: 16px;
}

.mini-switch input:checked + span::after {
  transform: translateX(18px);
}

.promo-status-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.promo-status-toggle {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  background: #ffffff;
}

.promo-status-toggle:has(input:checked) {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #4361ee, #f72585);
  box-shadow: 0 12px 24px rgba(67, 97, 238, 0.14);
}

.promo-rule-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.deal-picker {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 187, 249, 0.12), transparent 32%),
    linear-gradient(180deg, #ffffff, #f8fbff);
}

.deal-picker-head,
.deal-selected-unit {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.deal-picker-head h4 {
  margin: 2px 0 0;
}

.deal-picker-head span,
.deal-selected-unit span,
.deal-selected-unit small,
.deal-product-card span {
  color: var(--muted);
  font-weight: 850;
}

.deal-search-field {
  margin-bottom: 0;
}

.deal-selected-unit {
  padding: 12px;
  border: 1px solid rgba(67, 97, 238, 0.22);
  border-radius: var(--radius);
  background: #eef4ff;
}

.deal-selected-unit strong,
.deal-selected-unit small {
  display: block;
}

.deal-product-picker {
  display: grid;
  gap: 10px;
  max-height: 460px;
  overflow: auto;
  padding-right: 2px;
}

.deal-product-picker.compact {
  max-height: 360px;
}

.deal-product-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  background: #ffffff;
}

.compact-deal-picker .deal-product-card {
  grid-template-columns: minmax(0, 0.9fr) minmax(220px, 1.1fr);
  align-items: start;
}

.deal-product-card.selected {
  border-color: rgba(67, 97, 238, 0.42);
  box-shadow: inset 3px 0 0 #4361ee;
}

.deal-product-card h4 {
  margin: 2px 0 4px;
}

.deal-unit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.deal-unit-chip {
  min-width: min(180px, 100%);
  min-height: 54px;
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid #dbe3ec;
  border-radius: var(--radius);
  background: #f8fbff;
  color: #202633;
  text-align: left;
}

.deal-unit-chip.active {
  color: #ffffff;
  border-color: #10131f;
  background: linear-gradient(135deg, #4361ee, #f72585);
  box-shadow: 0 12px 24px rgba(67, 97, 238, 0.18);
}

.deal-unit-chip span,
.deal-unit-chip em {
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.deal-unit-chip.active span,
.deal-unit-chip.active em {
  color: rgba(255, 255, 255, 0.86);
}

.deal-result {
  display: grid;
  gap: 16px;
  margin: 16px 0;
  border-left: 6px solid #22c55e;
}

.deal-result.acceptable {
  border-left-color: #84cc16;
}

.deal-result.low {
  border-left-color: #f59e0b;
}

.deal-result.dangerous,
.deal-result.losing {
  border-left-color: #ef4444;
}

.deal-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.deal-metric-grid div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid #e2e8f0;
}

.deal-metric-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.calculator-note {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #dbe3ec;
  border-radius: var(--radius);
  background: #ffffff;
}

.calculator-note span {
  color: var(--muted);
  font-weight: 800;
}

.admin-console-band {
  padding: clamp(20px, 3vw, 38px) 0 64px;
  background:
    linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f5f9fb 100%);
}

.admin-console-band .admin-container {
  gap: 16px;
  max-width: 1540px;
}

.admin-commandbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(211, 219, 230, 0.9);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.96)),
    radial-gradient(circle at 18% 0%, rgba(0, 187, 249, 0.16), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(247, 37, 133, 0.13), transparent 32%);
  box-shadow: var(--shadow-soft);
}

.admin-commandbar-copy {
  min-width: 0;
}

.admin-commandbar h1 {
  margin: 4px 0 8px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.admin-commandbar p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.7vw, 1.18rem);
  line-height: 1.55;
}

.admin-commandbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-user-chip {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #dbe3ec;
  border-radius: var(--radius);
  background: #ffffff;
  color: #202633;
  font-weight: 900;
  white-space: nowrap;
}

.admin-console-band .admin-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-console-band .admin-stat {
  min-height: 112px;
  background:
    linear-gradient(180deg, #ffffff, #f8fbff),
    radial-gradient(circle at 88% 8%, rgba(67, 97, 238, 0.12), transparent 34%);
}

.admin-workspace {
  display: grid;
  grid-template-columns: 316px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.admin-side {
  position: sticky;
  top: calc(var(--header-h) + 14px);
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(214, 224, 236, 0.95);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96)),
    radial-gradient(circle at 0% 0%, rgba(0, 187, 249, 0.12), transparent 32%),
    radial-gradient(circle at 100% 8%, rgba(247, 37, 133, 0.1), transparent 28%);
  box-shadow: 0 22px 55px rgba(16, 19, 31, 0.09);
}

.admin-side-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(16, 19, 31, 0.08);
  border-radius: 18px;
  background: #10131f;
  color: #ffffff;
}

.admin-side-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #19c6ff, #f72585 58%, #ffd166);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 950;
}

.admin-side-header strong,
.admin-side-header small {
  display: block;
}

.admin-side-header strong {
  font-size: 0.95rem;
}

.admin-side-header small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  font-weight: 850;
}

.admin-nav-button {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(218, 226, 236, 0.96);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: #202633;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(16, 19, 31, 0.03);
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.admin-nav-button:hover {
  border-color: rgba(67, 97, 238, 0.24);
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(16, 19, 31, 0.06);
}

.admin-nav-button.active {
  border-color: rgba(16, 19, 31, 0.9);
  background: #10131f;
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(16, 19, 31, 0.18);
}

.admin-nav-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 252, 0.94)),
    radial-gradient(circle at 18% 14%, rgba(0, 187, 249, 0.3), transparent 34%);
  color: #10131f;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(16, 19, 31, 0.08);
}

.tone-pink .admin-nav-icon {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 244, 250, 0.94)),
    radial-gradient(circle at 18% 14%, rgba(247, 37, 133, 0.32), transparent 34%);
}

.tone-orange .admin-nav-icon {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 242, 0.94)),
    radial-gradient(circle at 18% 14%, rgba(255, 107, 95, 0.34), transparent 34%);
}

.tone-green .admin-nav-icon {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 255, 241, 0.94)),
    radial-gradient(circle at 18% 14%, rgba(124, 220, 68, 0.34), transparent 34%);
}

.admin-nav-button.active .admin-nav-icon {
  background: linear-gradient(135deg, #19c6ff, #f72585 58%, #ffd166);
  color: #ffffff;
  box-shadow: none;
}

.admin-nav-copy,
.admin-nav-meta {
  min-width: 0;
}

.admin-nav-copy strong,
.admin-nav-copy small,
.admin-nav-meta em,
.admin-nav-meta i {
  display: block;
}

.admin-nav-copy strong {
  font-size: 0.94rem;
  line-height: 1.05;
}

.admin-nav-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
}

.admin-nav-button.active .admin-nav-copy small {
  color: rgba(255, 255, 255, 0.66);
}

.admin-nav-meta {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.admin-nav-meta em {
  max-width: 88px;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: #10131f;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  overflow-wrap: anywhere;
}

.admin-nav-meta i {
  color: var(--muted);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.1;
  text-align: right;
}

.admin-nav-button.active .admin-nav-meta em {
  background: #ffffff;
  color: #10131f;
}

.admin-nav-button.active .admin-nav-meta i {
  color: rgba(255, 255, 255, 0.68);
}

.admin-main-panel {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.admin-panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid #e7edf4;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
}

.admin-panel-heading h2 {
  margin: 2px 0 0;
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  line-height: 1;
}

.admin-panel-heading span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #dbe3ec;
  border-radius: 999px;
  background: #f8fbff;
  color: #202633;
  font-weight: 900;
  white-space: nowrap;
}

.admin-applications-panel {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.45fr);
  gap: 16px;
  align-items: start;
}

.admin-list-column,
.admin-detail-column {
  min-width: 0;
}

.admin-list-column {
  display: grid;
  gap: 14px;
}

.admin-queue-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.65fr);
  gap: 14px;
  align-items: end;
}

.admin-queue-header h3 {
  margin: 2px 0 4px;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.admin-queue-header p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

.admin-search-field {
  display: grid;
  gap: 7px;
}

.admin-search-field span {
  color: #374151;
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-search-field input {
  min-height: 46px;
  border: 1px solid #d2dce7;
  border-radius: var(--radius);
  padding: 0 12px;
  background: #fff;
  font: inherit;
}

.admin-status-tabs {
  overflow-x: auto;
  padding-bottom: 2px;
}

.admin-application-table {
  display: grid;
  gap: 8px;
}

.admin-application-head,
.application-review-card {
  display: grid;
  grid-template-columns: minmax(180px, 1.15fr) minmax(150px, 0.95fr) minmax(140px, 0.75fr) minmax(120px, 0.6fr);
  gap: 12px;
}

.admin-application-head {
  padding: 0 14px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.application-review-list {
  display: grid;
  gap: 10px;
  max-height: min(62vh, 620px);
  overflow: auto;
  padding-right: 3px;
}

.application-review-card {
  width: 100%;
  min-width: 0;
  align-items: center;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  background: #ffffff;
  color: #202633;
  text-align: left;
}

.application-review-card:hover {
  border-color: rgba(67, 97, 238, 0.28);
  background: #f8fbff;
}

.application-review-card.selected {
  border-color: rgba(67, 97, 238, 0.46);
  background:
    linear-gradient(135deg, rgba(238, 244, 255, 0.98), rgba(255, 241, 248, 0.72));
  box-shadow: inset 3px 0 0 #4361ee;
}

.application-review-card span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.application-review-card strong {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.application-review-card small,
.application-review-card em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 850;
}

.admin-panel-surface {
  min-width: 0;
  padding: clamp(16px, 2.5vw, 24px);
  border: 1px solid #dbe3ec;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.admin-panel-surface .admin-detail-header h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
}

.admin-command-workspace {
  display: grid;
  gap: 16px;
}

.command-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(16px, 3vw, 28px);
  align-items: center;
  background:
    linear-gradient(135deg, #ffffff, #f8fbff),
    radial-gradient(circle at 92% 0%, rgba(247, 37, 133, 0.14), transparent 32%),
    radial-gradient(circle at 0% 0%, rgba(0, 187, 249, 0.14), transparent 32%);
}

.command-hero-panel h2 {
  margin: 4px 0 10px;
  font-size: clamp(1.7rem, 3.4vw, 2.65rem);
  line-height: 0.96;
}

.command-hero-panel p:not(.eyebrow) {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-weight: 760;
  line-height: 1.5;
}

.catalog-command-hero {
  background:
    linear-gradient(135deg, #ffffff, #f8fbff),
    radial-gradient(circle at 94% 6%, rgba(0, 187, 249, 0.15), transparent 32%);
}

.orders-command-hero {
  background:
    linear-gradient(135deg, #ffffff, #f8fbff),
    radial-gradient(circle at 88% 4%, rgba(255, 107, 95, 0.14), transparent 32%);
}

.business-command-hero {
  background:
    linear-gradient(135deg, #ffffff, #f8fbff),
    radial-gradient(circle at 92% 0%, rgba(173, 240, 91, 0.18), transparent 34%);
}

.admin-focus-grid,
.admin-orders-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 16px;
  align-items: start;
}

.admin-command-section {
  border: 1px solid #dbe3ec;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.admin-command-section > summary {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px clamp(16px, 2.5vw, 22px);
  cursor: pointer;
  list-style: none;
  background:
    linear-gradient(135deg, #ffffff, #f8fbff),
    radial-gradient(circle at 94% 0%, rgba(67, 97, 238, 0.08), transparent 30%);
}

.admin-command-section > summary::-webkit-details-marker {
  display: none;
}

.admin-command-section > summary::after {
  content: "+";
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #10131f;
  color: #ffffff;
  font-weight: 950;
}

.admin-command-section[open] > summary::after {
  content: "-";
}

.admin-command-section > summary strong,
.admin-command-section > summary small {
  display: block;
}

.admin-command-section > summary small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.admin-command-section > .admin-applications-panel,
.admin-command-section > .document-review-layout,
.admin-command-section > .inventory-manager-stack,
.admin-command-section > .promo-console {
  margin: 16px;
}

.admin-record-table {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
}

.admin-record-head,
.admin-record-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.1fr) minmax(150px, 1fr) minmax(90px, 0.55fr) minmax(110px, 0.6fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid #e7edf4;
}

.admin-record-head {
  background: #f8fbff;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-record-row:last-child {
  border-bottom: 0;
}

.admin-record-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-record-row strong,
.admin-record-row small {
  display: block;
}

.admin-record-row small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 800;
}

.admin-operations-grid,
.inventory-manager-stack,
.admin-reports-grid {
  display: grid;
  gap: 16px;
}

.operations-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(16px, 3vw, 28px);
  align-items: center;
  background:
    linear-gradient(135deg, #ffffff, #f8fbff),
    radial-gradient(circle at 88% 8%, rgba(247, 37, 133, 0.14), transparent 30%),
    radial-gradient(circle at 8% 0%, rgba(0, 187, 249, 0.14), transparent 30%);
}

.operations-hero-panel h2 {
  margin: 4px 0 10px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1;
}

.operations-hero-panel p:not(.eyebrow) {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.5;
}

.operations-priority-grid,
.operations-action-grid,
.report-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-priority-card {
  min-width: 0;
  min-height: 104px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid #dbe3ec;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.94)),
    radial-gradient(circle at 0% 0%, rgba(0, 187, 249, 0.1), transparent 34%);
  color: #10131f;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(16, 19, 31, 0.04);
}

.admin-priority-card:hover {
  border-color: rgba(67, 97, 238, 0.34);
  transform: translateY(-1px);
}

.admin-priority-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.admin-priority-copy span,
.admin-priority-copy small {
  color: var(--muted);
  font-weight: 900;
}

.admin-priority-copy span {
  color: #202633;
  font-size: 0.92rem;
}

.admin-priority-copy small {
  line-height: 1.25;
}

.admin-priority-card strong {
  min-width: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border-radius: 16px;
  background: #10131f;
  color: #ffffff;
  font-size: clamp(1.05rem, 2.8vw, 1.45rem);
  line-height: 0.9;
}

.operations-list,
.settings-list {
  display: grid;
  gap: 10px;
}

.operations-list > button,
.operations-list > div,
.settings-list > div {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  background: #f8fbff;
  color: #202633;
  text-align: left;
}

.operations-list > button {
  cursor: pointer;
}

.operations-list > button:hover {
  border-color: rgba(67, 97, 238, 0.34);
  background: #ffffff;
}

.operations-list span,
.settings-list span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.operations-list strong,
.settings-list strong {
  overflow-wrap: anywhere;
}

.operations-list small,
.settings-list span {
  color: var(--muted);
  font-weight: 850;
}

.operations-settings-panel .operations-action-grid {
  margin-top: 14px;
}

.document-review-layout {
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
}

.document-account-list {
  max-height: min(68vh, 720px);
}

.document-review-card {
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.9fr) minmax(130px, 0.65fr);
}

.compact-document-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-document-actions .btn {
  width: 100%;
  justify-content: center;
}

.inventory-command-panel {
  background:
    linear-gradient(135deg, #ffffff, #f8fbff),
    radial-gradient(circle at 96% 0%, rgba(0, 187, 249, 0.12), transparent 30%);
}

.admin-reports-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.admin-reports-grid > .admin-panel-surface:first-child {
  grid-row: span 2;
}

.admin-review-panel {
  display: grid;
  gap: 16px;
}

.admin-review-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-fact-card {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  background: #f8fbff;
}

.admin-fact-card span,
.admin-fact-card small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.admin-fact-card strong {
  color: #10131f;
  font-size: 0.96rem;
  overflow-wrap: anywhere;
}

.admin-review-action-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.55fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid #dbe3ec;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, #ffffff, #f8fbff),
    radial-gradient(circle at 94% 0%, rgba(247, 37, 133, 0.12), transparent 32%);
}

.admin-action-message {
  grid-row: span 2;
}

.admin-review-action-strip .compact-email {
  grid-column: 2;
  margin: 0;
}

.admin-collapse {
  border: 1px solid #dbe3ec;
  border-radius: var(--radius);
  background: #ffffff;
  overflow: hidden;
}

.admin-collapse summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  background: #f8fbff;
  list-style: none;
}

.admin-collapse summary::-webkit-details-marker {
  display: none;
}

.admin-collapse summary::after {
  content: "+";
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #dbe3ec;
  border-radius: 999px;
  background: #fff;
  color: #10131f;
  font-weight: 950;
}

.admin-collapse[open] summary::after {
  content: "-";
}

.admin-collapse summary span {
  display: block;
  color: #10131f;
  font-weight: 950;
}

.admin-collapse summary small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 800;
}

.admin-collapse > .admin-section,
.admin-collapse > .admin-section-grid,
.admin-collapse > .admin-work-grid {
  margin: 14px;
}

.admin-collapse.destructive-admin-section {
  display: block;
  margin-top: 0;
}

.admin-inventory-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) minmax(160px, 0.65fr) minmax(170px, 0.7fr) auto;
  gap: 12px;
  align-items: end;
  margin: 18px 0 12px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  background: #f8fbff;
}

.admin-add-product-panel {
  margin-top: 18px;
  border: 1px solid #dbe3ec;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.admin-add-product-panel summary {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}

.admin-add-product-panel summary::-webkit-details-marker {
  display: none;
}

.admin-add-product-panel summary::after {
  content: "+";
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #10131f;
  color: #ffffff;
  font-weight: 950;
}

.admin-add-product-panel[open] summary::after {
  content: "−";
}

.admin-add-product-panel summary strong,
.admin-add-product-panel summary small {
  display: block;
}

.admin-add-product-panel summary small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.admin-add-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 16px 16px;
}

.admin-add-product-grid > *,
.admin-product-meta-grid > *,
.admin-unit-grid > *,
.admin-product-unit-card > * {
  min-width: 0;
}

.admin-add-product-grid input,
.admin-add-product-grid select,
.admin-add-product-grid textarea,
.admin-product-meta-grid input,
.admin-product-meta-grid select,
.admin-product-meta-grid textarea,
.admin-unit-grid input,
.admin-unit-grid select,
.admin-unit-grid textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.admin-add-product-grid input[type="file"],
.admin-product-meta-grid input[type="file"] {
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-result-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 14px;
  color: var(--muted);
  font-weight: 850;
}

.admin-result-bar strong {
  color: #202633;
}

.compact-admin-products {
  grid-template-columns: repeat(auto-fill, minmax(min(520px, 100%), 1fr));
}

.compact-admin-products .admin-product-unit-card {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 19, 31, 0.05);
}

.admin-product-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-product-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  background: #f8fbff;
}

.admin-inline-switch,
.admin-flag-toggle {
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  background: #ffffff;
}

.admin-product-meta-grid .admin-inline-switch {
  min-height: 64px;
}

.admin-inline-switch {
  grid-template-columns: auto auto 1fr;
}

.admin-inline-switch input[type="checkbox"] {
  width: 1px;
  max-width: 1px;
  min-height: 1px;
  padding: 0;
}

.admin-flag-toggle {
  align-items: center;
  margin: 0;
}

.admin-load-more {
  display: flex;
  justify-content: center;
  padding-top: 16px;
}

.quick-order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 8px;
  margin: 14px 0;
}

.quick-order-grid input {
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 10px;
}

.brand-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.brand-tile {
  min-height: 238px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  background: #fff;
  color: var(--ink);
  text-align: left;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.brand-tile:hover,
.brand-tile:focus-visible {
  border-color: color-mix(in srgb, var(--brand-accent, var(--blue)) 50%, var(--line));
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.13);
  transform: translateY(-2px);
  outline: 0;
}

.brand-media-wrap {
  width: 100%;
  height: 210px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--brand-accent, var(--cyan)) 18%, #ffffff), #ffffff 52%),
    linear-gradient(90deg, rgba(16, 19, 31, 0.05), transparent);
}

.brand-image,
.product-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand-image {
  object-fit: contain;
  padding: 16px;
  transition: transform 0.24s ease;
}

.brand-tile:hover .brand-image,
.brand-tile:focus-visible .brand-image {
  transform: scale(1.035);
}

.brand-tile-copy {
  min-height: 78px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.brand-name {
  display: block;
  font-size: 1.16rem;
  font-weight: 850;
}

.brand-tag {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  color: white;
  background: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.badge.best,
.badge.best-seller {
  background: #f2a51a;
}

.badge.high,
.badge.high-demand {
  background: #7659a7;
}

.badge.hot,
.badge.hot-item {
  background: #ef798a;
}

.badge.top,
.badge.top-rated {
  background: #3b653b;
}

.badge.new {
  background: #4cc9f0;
}

.badge.restocking,
.badge.restocking-soon {
  background: #3f9487;
}

.badge.compliance,
.badge.compliance-watch {
  background: #293241;
}

.badge.trending,
.badge.trending-now {
  background: #fb7756;
}

.catalog-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.filters {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  padding: 18px;
}

.filters h2 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.field label {
  font-size: 0.84rem;
  font-weight: 850;
  color: #343b4b;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  border-radius: var(--radius);
  border: 1px solid #ccd6df;
  background: #ffffff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.checkbox-label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #343b4b;
  line-height: 1.45;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.option-box,
.terms-box {
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.required-mark,
.optional-mark {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 6px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
  vertical-align: middle;
}

.required-mark {
  color: #7f1d1d;
  background: #fee2e2;
}

.required-star {
  margin-left: 4px;
  color: #ef4444;
  font-weight: 950;
}

.optional-mark {
  color: #475467;
  background: #eef2f6;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 3px 0 0;
  padding: 0;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.12);
}

.catalog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.catalog-top strong {
  font-size: 1.05rem;
}

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

.product-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.product-art {
  height: 180px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.82), transparent 22%),
    linear-gradient(135deg, var(--product-color, #00bbf9), #10131f);
}

.product-art.premium-art {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.2) 48%, transparent),
    linear-gradient(135deg, color-mix(in srgb, var(--product-color, #00bbf9) 20%, #f7fbff), #ffffff);
}

.product-art.premium-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--product-color, #00bbf9), #fee440, #4ade80);
}

.product-image {
  position: relative;
  z-index: 1;
}

.modal-product-image {
  border-radius: 8px;
}

.device {
  position: absolute;
  width: 70px;
  height: 128px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%) rotate(-8deg);
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.15)),
    linear-gradient(135deg, var(--product-color, #00bbf9), #111827);
  box-shadow: 0 22px 34px rgba(0, 0, 0, 0.28);
}

.device::before {
  content: "";
  position: absolute;
  width: 44px;
  height: 36px;
  left: 50%;
  top: 38px;
  transform: translateX(-50%);
  border-radius: 6px;
  background: rgba(9, 11, 20, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.device::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -12px;
  width: 22px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 8px 8px 4px 4px;
  background: rgba(255, 255, 255, 0.86);
}

.product-art .badge {
  position: absolute;
  left: 12px;
  top: 12px;
}

.product-body {
  padding: 16px;
}

.product-body h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 12px;
}

.product-meta span {
  padding: 6px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

.stock-count-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  padding: 9px 10px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fbff, #eef6ff);
  color: #0f172a;
  font-size: 0.84rem;
}

.stock-count-row strong {
  min-width: 0;
  line-height: 1.25;
}

.stock-count-row span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #047857;
  font-size: 0.72rem;
  font-weight: 900;
}

.stock-count-row.low-stock span {
  background: #fff7ed;
  color: #c2410c;
}

.stock-count-row.out-of-stock span,
.stock-count-row.restricted span {
  background: #fee2e2;
  color: #991b1b;
}

.unit-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.unit-badge {
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #0f172a;
  background: #ecfeff;
  border: 1px solid #bae6fd;
  font-size: 0.72rem;
  font-weight: 900;
}

.unit-price-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding: 10px;
  border-radius: var(--radius);
  background: #f8fbff;
  color: #334155;
  font-size: 0.83rem;
}

.unit-price-list span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.flavor-row,
.chip-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.flavor-pill,
.mini-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid #e2e8f0;
  color: #3d4656;
  font-size: 0.76rem;
  font-weight: 750;
}

.product-footer {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.unit-order-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 8px;
}

.unit-order-grid label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.unit-order-grid select,
.unit-order-grid input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 9px;
  background: #ffffff;
  color: var(--ink);
}

.price {
  display: grid;
}

.price strong {
  font-size: 1.18rem;
}

.price span {
  color: var(--muted);
  font-size: 0.75rem;
}

.unit-detail-panel {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

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

.unit-detail-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}

.unit-detail-card strong,
.unit-detail-card span,
.unit-detail-card small {
  display: block;
}

.unit-detail-card span {
  margin-top: 5px;
  color: #334155;
}

.unit-detail-card small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.detail-order-grid {
  max-width: 460px;
}

.tabs,
.auth-tabs,
.step-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab,
.chip,
.step-pill {
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: #344054;
  font-weight: 850;
}

.tab.active,
.chip.active,
.step-pill.active {
  color: white;
  background: #10131f;
  border-color: #10131f;
}

.flavor-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 20px;
}

.flavor-search input {
  min-height: 48px;
  border-radius: var(--radius);
  border: 1px solid #ccd6df;
  padding: 0 14px;
}

.flavor-card {
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.flavor-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background:
    radial-gradient(circle at 18% 18%, var(--cyan), transparent 26%),
    radial-gradient(circle at 80% 18%, var(--pink), transparent 28%),
    radial-gradient(circle at 62% 84%, var(--yellow), transparent 30%);
}

.flavor-card > * {
  position: relative;
}

.application-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}

.application-card {
  min-height: 520px;
  overflow: hidden;
  will-change: transform, opacity;
}

.application-card.slide-forward {
  animation: wizardSlideForward 0.28s ease both;
}

.application-card.slide-back {
  animation: wizardSlideBack 0.28s ease both;
}

.application-sidebar {
  padding: 20px;
}

.application-sidebar-head,
.application-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.application-sidebar-head {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 12% 20%, rgba(0, 187, 249, 0.16), transparent 30%),
    linear-gradient(135deg, #ffffff, #f8fbff);
}

.application-sidebar-head span,
.application-card-head span {
  display: inline-grid;
  place-items: center;
  min-width: 52px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  color: #10131f;
  background: linear-gradient(135deg, #fee440, #4ade80);
  font-weight: 950;
}

.application-sidebar-head strong {
  color: #202633;
}

.application-card-head {
  margin-bottom: 18px;
}

.application-card-head h2 {
  margin-bottom: 8px;
}

.application-card-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.step-list {
  display: grid;
  gap: 12px;
}

.status-legend {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.status-chip-row {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid #edf2f7;
}

.status-chip-row strong {
  font-size: 0.86rem;
}

.status-chip-row span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.42;
}

.step-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}

.step-item.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.step-item.completed {
  border-color: rgba(74, 222, 128, 0.72);
  background: #f3fff8;
}

.step-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #10131f;
  background: linear-gradient(135deg, #e0fbfc, #fee440);
  font-weight: 950;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.application-question-grid {
  grid-template-columns: 1fr;
}

.application-question-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  grid-column: 1 / -1;
}

.address-field {
  position: relative;
}

.address-suggestions {
  position: absolute;
  z-index: 15;
  top: calc(100% - 10px);
  left: 0;
  right: 0;
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
  padding: 8px;
  border: 1px solid #d6e0ea;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.address-suggestions[hidden] {
  display: none;
}

.address-suggestion {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: #f8fbff;
  text-align: left;
  cursor: pointer;
}

.address-suggestion:hover,
.address-suggestion:focus-visible {
  border-color: var(--blue);
  background: #eef4ff;
}

.address-suggestion strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.address-suggestion span,
.address-suggestion-empty {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.address-suggestion-empty {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: #f8fbff;
}

.application-help {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius);
  background: #f7fafc;
  border: 1px solid var(--line);
}

.application-help p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.field.full-field {
  grid-column: 1 / -1;
}

.upload-zone {
  min-height: 138px;
  border-radius: var(--radius);
  border: 1px dashed #9aa7b7;
  background: #f8fbfd;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
}

.upload-zone input {
  border: 0;
  padding: 0;
  min-height: auto;
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: #e6edf3;
  overflow: hidden;
  margin: 12px 0 24px;
}

.progress-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--yellow));
  transition: width 0.24s ease;
}

@keyframes wizardSlideForward {
  from {
    opacity: 0;
    transform: translateX(22px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes wizardSlideBack {
  from {
    opacity: 0;
    transform: translateX(-22px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.confirmation-panel {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 34px);
}

.confirmation-panel h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.confirmation-panel > p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 780px;
}

.application-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.application-status-grid > div {
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}

.application-status-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.application-status-grid strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.email-preview {
  margin: 22px 0;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid #bfdbfe;
  background: #eff6ff;
}

.email-preview h3 {
  margin-bottom: 8px;
}

.email-preview p:last-child {
  color: #334155;
  line-height: 1.6;
  margin-bottom: 0;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 20px;
  align-items: stretch;
}

.dashboard-status {
  padding: 24px;
  color: white;
  background:
    linear-gradient(135deg, rgba(16, 19, 31, 0.96), rgba(67, 97, 238, 0.88)),
    radial-gradient(circle at 80% 20%, rgba(254, 228, 64, 0.65), transparent 36%);
}

.dashboard-status p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.6;
}

.portal-band {
  background:
    linear-gradient(180deg, #fbfcfe, #f3f7fb);
}

.portal-container {
  display: grid;
  gap: 18px;
}

.portal-status-page {
  max-width: 820px;
  padding: clamp(22px, 4vw, 34px);
}

.portal-status-page h2 {
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  line-height: 1;
}

.portal-status-page p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.65;
}

.portal-status-page.blocked {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fffafa, #ffffff);
}

.light-status-list .status-row {
  color: #202633;
  border-bottom-color: var(--line);
}

.portal-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
}

.portal-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.portal-header p {
  color: var(--muted);
  margin: 6px 0 0;
}

.portal-header-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.portal-shell {
  display: grid;
  grid-template-columns: minmax(220px, 0.28fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.portal-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  padding: 10px;
  display: grid;
  gap: 6px;
}

.portal-menu-item {
  min-height: 58px;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: #202633;
  text-align: left;
}

.portal-menu-item strong,
.portal-menu-item span {
  display: block;
}

.portal-menu-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.portal-menu-item.active,
.portal-menu-item:hover {
  background:
    linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(247, 37, 133, 0.08)),
    #ffffff;
  color: var(--ink);
}

.portal-main,
.portal-page {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.portal-welcome {
  padding: clamp(20px, 3vw, 30px);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(16, 19, 31, 0.96), rgba(67, 97, 238, 0.86)),
    radial-gradient(circle at 85% 18%, rgba(247, 37, 133, 0.36), transparent 34%);
}

.portal-welcome h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.portal-welcome p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.portal-warning {
  margin: 0;
}

.portal-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.portal-card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-card,
.portal-form,
.portal-table-card {
  padding: 18px;
}

.portal-card h3 {
  margin-bottom: 14px;
}

.portal-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.portal-detail-row:last-child {
  border-bottom: 0;
}

.portal-detail-row span {
  color: var(--muted);
  font-weight: 800;
}

.portal-detail-row strong {
  text-align: right;
}

.license-mini-table {
  display: grid;
  gap: 10px;
}

.license-mini-table > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #edf2f7;
  border-radius: var(--radius);
  background: #f8fbff;
}

.license-mini-table span,
.license-mini-table small {
  color: var(--muted);
  font-weight: 800;
}

.portal-quick-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.quick-action-card {
  min-height: 84px;
  padding: 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff, #f8fbff);
  font-weight: 900;
  text-align: left;
}

.quick-action-card:hover {
  border-color: #9db4ff;
  transform: translateY(-1px);
}

.portal-page-head {
  display: grid;
  gap: 6px;
}

.portal-page-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 3rem);
}

.portal-page-head p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.6;
}

.license-list {
  display: grid;
  gap: 12px;
}

.license-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(130px, auto) minmax(130px, auto);
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.license-card h3 {
  overflow-wrap: anywhere;
}

.license-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

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

.support-option {
  min-height: 68px;
  padding: 14px;
  display: grid;
  place-items: center;
  color: #202633;
  font-weight: 900;
  text-align: center;
}

.portal-table-head {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius);
  color: #475467;
  background: #f7fafc;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-table-body {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.portal-table-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 13px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: #202633;
  font-weight: 800;
}

.status-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.status-row,
.cart-summary > div,
.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-row {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.order-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.modal,
.cart-drawer {
  position: fixed;
  z-index: 50;
  background: white;
  box-shadow: var(--shadow);
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 82;
  background: rgba(9, 11, 20, .42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}

.cart-backdrop[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal {
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(9, 11, 20, 0.54);
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-panel {
  width: min(640px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 24px;
  border-radius: var(--radius);
  background: white;
  position: relative;
}

.product-panel {
  width: min(920px, 100%);
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
}

.auth-tabs {
  padding-right: 52px;
  margin-bottom: 18px;
}

.cart-drawer {
  right: 0;
  top: 0;
  z-index: 90;
  width: min(620px, 100%);
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  transform: translateX(105%);
  transition: transform 0.22s ease;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 0;
  visibility: hidden;
  pointer-events: none;
}

.cart-drawer[aria-hidden="false"] {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
}

.cart-drawer-body {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 18px 24px;
}

.cart-items {
  display: grid;
  gap: 12px;
  padding: 0;
}

.cart-promotion {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.promo-form {
  display: grid;
  gap: 8px;
}

.promo-form label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.promo-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.promo-input-row input {
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 10px;
}

.cart-line {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  background: #fff;
}

.cart-line img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  background: #f5f7fb;
}

.cart-line-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.cart-line-main strong {
  color: var(--ink);
  line-height: 1.2;
}

.cart-line-main p,
.cart-line-main small,
.cart-stock-note {
  color: var(--muted);
  line-height: 1.35;
}

.cart-line-main p {
  margin: 0;
}

.cart-stock-note {
  font-size: .78rem;
  font-weight: 800;
}

.cart-line-controls {
  grid-column: 2;
  display: grid;
  grid-template-columns: auto minmax(72px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.cart-line-controls > strong {
  justify-self: end;
  white-space: nowrap;
}

.cart-remove,
.cart-inline-link {
  border: 0;
  background: transparent;
  color: var(--v2-primary, #f72585);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.qty-control {
  display: inline-grid;
  grid-template-columns: 42px 52px 42px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.qty-control button {
  border: 0;
  min-height: 42px;
  background: #f6f8fb;
  font-weight: 900;
}

.qty-control input {
  width: 52px;
  min-height: 42px;
  border: 0;
  text-align: center;
  padding: 0;
  font-size: 1rem;
}

.cart-summary {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.cart-drawer .cart-summary {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}

.cart-total-row {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.fine-print {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.cart-drawer-footer {
  display: grid;
  gap: 10px;
  padding: 14px 24px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(16px);
}

.cart-footer-actions {
  display: grid;
  gap: 10px;
}

.cart-footer-actions.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cart-footer-actions.three {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(1.15fr, 1.35fr);
}

.cart-stepper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.cart-stepper button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.cart-stepper button.active {
  border-color: rgba(247, 37, 133, .38);
  background: #fff1f7;
  color: var(--v2-primary, #f72585);
}

.cart-stepper span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #eef3fa;
  color: inherit;
  font-size: .82rem;
}

.cart-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.cart-section-head h3 {
  margin: 0 0 4px;
}

.cart-section-head p {
  margin: 0;
  color: var(--muted);
}

.cart-line-list {
  display: grid;
  gap: 12px;
}

.cart-empty-state {
  min-height: 220px;
}

.cart-confirm-card {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.cart-confirm-card h4 {
  margin: 0 0 4px;
}

.cart-confirm-card > div:not(.cart-account-row) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid #eef2f7;
}

.cart-confirm-card > div:not(.cart-account-row):first-of-type {
  border-top: 0;
}

.cart-account-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid #eef2f7;
}

.cart-account-row:first-of-type {
  border-top: 0;
}

.cart-account-row span {
  color: var(--muted);
  font-weight: 800;
}

.cart-account-row strong {
  overflow-wrap: anywhere;
}

.cart-warning {
  margin: 10px 0 12px;
}

.cart-notes-field {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  font-weight: 900;
}

.cart-notes-field em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.cart-notes-field textarea {
  width: 100%;
  min-height: 108px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  font: inherit;
}

.cart-clear-confirm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #fed7d7;
  border-radius: 14px;
  background: #fff5f5;
}

.cart-clear-confirm > div {
  display: grid;
  gap: 4px;
}

.cart-clear-confirm span {
  color: var(--muted);
  font-size: .86rem;
}

.cart-success-state {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-height: 100%;
  align-content: center;
  text-align: center;
  padding: 24px 8px;
}

.cart-success-state h3,
.cart-success-state p {
  margin: 0;
}

.cart-success-state p {
  color: var(--muted);
}

.cart-request-id {
  display: grid;
  gap: 4px;
  width: min(360px, 100%);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
}

.cart-request-id span {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: .74rem;
}

.cart-review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(360px, 100%);
  padding: 0;
  list-style: none;
}

.cart-review-list li {
  padding: 10px;
  border-radius: 12px;
  background: #eefaf6;
  color: #08775f;
  font-weight: 900;
}

html.cart-drawer-open,
body.cart-drawer-open {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(9, 11, 20, 0.9), rgba(67, 97, 238, 0.62)),
    url("/assets/spark-signal-warehouse.jpg") center / cover no-repeat;
}

.age-gate.hidden {
  display: none;
}

.gate-panel {
  width: min(540px, 100%);
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.gate-panel h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1;
  margin: 12px 0;
}

.gate-panel p {
  color: #4b5563;
  line-height: 1.65;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 36px));
}

.toast-stack .toast {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius);
  color: white;
  background: #10131f;
  box-shadow: var(--shadow);
  line-height: 1.45;
  opacity: 1;
  visibility: visible;
}

.toast-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toast-actions button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  padding: 0 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, .12);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.toast-actions button:hover,
.toast-actions button:focus-visible {
  background: rgba(255, 255, 255, .22);
}

.empty-state {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #b9c3cf;
  border-radius: var(--radius);
  background: #fff;
}

@media (max-width: 1220px) {
  .main-nav {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
  }

  .header-actions {
    display: inline-flex;
  }

  .header-actions .btn {
    min-width: 0;
    padding-inline: 12px;
  }

  .site-header .menu-button {
    display: grid;
  }

  .site-header.menu-open .menu-button {
    background: #10131f;
    color: #ffffff;
    border-color: #10131f;
  }

  .grid.four,
.category-grid,
.ranked-brand-grid,
.backlog-grid,
.application-status-grid,
.product-grid,
.brand-wall,
.admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-section-grid,
  .admin-work-grid,
  .payment-matrix,
  .compact-history,
  .admin-unit-grid,
  .admin-split-grid {
    grid-template-columns: 1fr;
  }

  .promotion-admin-grid,
  .deal-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doc-review-grid {
    grid-template-columns: 1fr;
  }

  .portal-shell,
  .portal-card-grid,
  .portal-card-grid.three {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portal-quick-actions,
  .support-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .license-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand-tile {
    min-height: 220px;
  }

  .brand-media-wrap {
    height: 220px;
  }

  .catalog-shell,
  .application-layout,
  .dashboard-hero,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }
}

@media (max-width: 700px) {
  .mobile-dropdown {
    max-height: none;
    overflow: auto;
  }


  .grid.four,
.grid.three,
.grid.two,
.category-grid,
.ranked-brand-grid,
.backlog-grid,
.checkbox-grid,
.application-status-grid,
.product-grid,
.brand-wall,
.admin-stat-grid,
.application-review-card,
.application-detail-grid,
.doc-input-grid,
.admin-action-grid,
.portal-header,
.portal-sidebar,
.portal-quick-actions,
.support-options,
.unit-detail-grid,
.unit-order-grid,
.form-grid,
.application-question-panel,
.route-grid {
    grid-template-columns: 1fr;
  }


  .band.home-intro {
    padding-top: 8px;
  }

  .metric {
    padding: 10px;
  }

  .metric strong {
    font-size: 1.1rem;
  }

  .metric span {
    font-size: 0.72rem;
  }

  .section-head,
  .catalog-top,
  .flavor-search,
  .cta-panel,
  .admin-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-tabs {
    justify-content: flex-start;
  }

  .admin-detail-header,
  .admin-section-head,
  .doc-review-head,
  .private-file {
    align-items: flex-start;
  }

  .admin-detail-header,
  .admin-section-head,
  .doc-review-head {
    flex-direction: column;
  }

  .private-file {
    grid-template-columns: 1fr;
  }

  .admin-detail-status {
    justify-items: start;
  }

  .portal-header-meta {
    justify-content: flex-start;
  }

  .portal-menu-item {
    min-height: 52px;
  }

  .license-mini-table > div,
  .license-card,
  .portal-table-head,
  .portal-table-row {
    grid-template-columns: 1fr;
  }

  .portal-detail-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-detail-row strong {
    text-align: left;
  }

  .admin-product-unit-head,
  .promotion-customer-head,
  .admin-doc-preview-head {
    flex-direction: column;
  }

  .admin-doc-preview-head {
    padding-right: 42px;
  }

  .promotion-admin-grid,
  .promotion-setting-grid,
  .promo-summary-strip,
  .promo-rule-notes,
  .deal-metric-grid,
  .promo-input-row,
  .discount-code-form,
  .deal-simulator-form,
  .generated-doc-preview dl,
  .doc-preview-meta,
  .promotion-code-row,
  .deal-picker-head,
  .deal-selected-unit {
    grid-template-columns: 1fr;
  }

  .promotion-code-row,
  .deal-picker-head,
  .deal-selected-unit {
    align-items: flex-start;
  }

  .deal-picker-head,
  .deal-selected-unit,
  .admin-unit-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-unit-title-row small {
    text-align: left;
  }

  .compact-deal-picker .deal-product-card {
    grid-template-columns: 1fr;
  }

  .promotion-code-actions {
    justify-content: flex-start;
  }

  .deal-unit-chip {
    width: 100%;
  }

  .application-card-head,
  .application-sidebar-head {
    flex-direction: column;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .private-file span {
    white-space: normal;
  }

  .brand-tile {
    min-height: 260px;
  }

  .brand-media-wrap {
    height: clamp(210px, 58vw, 250px);
  }

  .brand-tile-copy {
    min-height: auto;
  }

  .product-footer,
  .status-row,
  .cart-summary > div,
  .order-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .btn {
    min-width: 0;
    white-space: normal;
  }
}


@media (max-width: 700px) {
  .header-actions {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 1180px) {
  .admin-workspace,
  .admin-applications-panel,
  .operations-hero-panel,
  .admin-reports-grid,
  .command-hero-panel,
  .admin-focus-grid,
  .admin-orders-grid {
    grid-template-columns: 1fr;
  }

  .admin-side {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-side-header {
    grid-column: 1 / -1;
  }

  .admin-nav-button {
    min-height: 82px;
  }

  .admin-inventory-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.5fr);
  }

  .admin-review-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .document-review-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-add-product-grid,
  .admin-product-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-console-band {
    padding: 16px 0 42px;
  }

  .admin-commandbar,
  .admin-panel-heading,
  .admin-result-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-commandbar-actions {
    width: 100%;
    justify-content: stretch;
  }

  .admin-commandbar-actions .btn,
  .admin-user-chip {
    flex: 1 1 160px;
    justify-content: center;
  }

  .admin-queue-header,
  .admin-review-action-strip,
  .admin-review-summary {
    grid-template-columns: 1fr;
  }

  .admin-application-head {
    display: none;
  }

  .admin-review-action-strip .compact-email {
    grid-column: auto;
  }

  .admin-action-message {
    grid-row: auto;
  }

  .admin-console-band .admin-stat-grid,
  .admin-side,
  .admin-inventory-toolbar,
  .admin-add-product-grid,
  .admin-product-meta-grid,
  .compact-admin-products,
  .operations-priority-grid,
  .operations-action-grid,
  .report-metric-grid,
  .document-review-card,
  .compact-document-actions,
  .admin-record-head,
  .admin-record-row {
    grid-template-columns: 1fr;
  }

  .admin-console-band {
    padding-bottom: 132px;
  }

  .admin-workspace {
    display: flex;
    flex-direction: column;
  }

  .admin-main-panel {
    order: 1;
  }

  .admin-side {
    position: fixed;
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 80;
    order: 2;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    padding: 7px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 48px rgba(16, 19, 31, 0.18);
    backdrop-filter: blur(16px);
  }

  .admin-side-header {
    display: none;
  }

  .admin-nav-button {
    min-height: 56px;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    justify-content: center;
    padding: 7px;
    text-align: center;
    gap: 4px;
    border-radius: 18px;
  }

  .admin-nav-button.active {
    background: #10131f;
    color: #ffffff;
    box-shadow: none;
  }

  .admin-nav-icon {
    width: 30px;
    height: 24px;
    margin: 0 auto;
    border-radius: 9px;
    font-size: 0.58rem;
  }

  .admin-nav-copy {
    display: grid;
    place-items: center;
  }

  .admin-nav-copy small,
  .admin-nav-meta {
    display: none;
  }

  .admin-nav-copy strong {
    font-size: clamp(0.68rem, 2.7vw, 0.8rem);
    line-height: 1.05;
  }

  .operations-list > button,
  .operations-list > div,
  .settings-list > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-nav-button {
    min-height: 62px;
  }

  .admin-panel-surface {
    padding: 14px;
  }

  .destructive-admin-section {
    grid-template-columns: 1fr;
  }

  .compact-admin-products .admin-product-unit-card {
    padding: 14px;
  }

  .admin-product-actions {
    justify-content: flex-start;
  }
}

/* Final responsive overrides for the mockup pass. Keep this last. */
.catalog-app-page {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}


.catalog-app-page h1,
.catalog-app-page h2,
.catalog-app-page h3,
.catalog-app-page p {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}


.mock-brand-card {
  color: #0f172a;
  text-decoration: none;
}

.catalog-app-grid.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.cart-line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.cart-line > img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
}

.cart-line .cart-line-controls {
  grid-column: 2;
}

.cart-drawer-body,
.cart-items,
.cart-line,
.cart-line-main,
.cart-line-controls,
.cart-summary {
  min-width: 0;
}

.cart-line-main strong {
  overflow-wrap: anywhere;
}

.cart-line-main p,
.cart-line-main small {
  overflow-wrap: anywhere;
}

.cart-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cart-summary > div strong {
  text-align: right;
}

.cart-footer-actions .btn {
  min-height: 46px;
}

@media (min-width: 768px) {
  .cart-drawer {
    max-width: min(620px, calc(100vw - 44px));
  }
}

@media (max-width: 767px) {
  .cart-backdrop[aria-hidden="false"] {
    background: rgba(9, 11, 20, .18);
  }

  .cart-drawer {
    inset: 0;
    right: auto;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    border-left: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    transform: translateX(102%);
  }

  .cart-drawer[aria-hidden="false"] {
    transform: translateX(0);
  }

  .cart-drawer .drawer-header {
    min-height: 84px;
    padding: calc(16px + env(safe-area-inset-top)) 18px 14px;
    background: #fff;
  }

  .cart-drawer .drawer-header h2 {
    font-size: clamp(26px, 8vw, 34px);
    line-height: 1;
  }

  .cart-drawer .drawer-header .icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .cart-drawer-body {
    padding: 14px 14px 18px;
    background: #f6f8fb;
  }

  .cart-items {
    gap: 14px;
  }

  .cart-stepper {
    position: sticky;
    top: 0;
    z-index: 4;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: -14px -14px 14px;
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px);
  }

  .cart-stepper button {
    min-height: 52px;
    padding: 10px;
  }

  .cart-stepper button strong {
    font-size: 13px;
  }

  .cart-section-head {
    padding: 2px 2px 0;
  }

  .cart-section-head h3 {
    font-size: 24px;
  }

  .cart-mobile-checkout {
    position: static;
    z-index: auto;
    grid-template-columns: 1fr;
    margin: 0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
  }

  .cart-line-list {
    gap: 12px;
  }

  .cart-line {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .055);
  }

  .cart-line > img,
  .cart-line img {
    width: 82px;
    height: 104px;
    border-radius: 16px;
  }

  .cart-line-controls {
    grid-column: 1 / -1;
    grid-template-columns: minmax(128px, auto) minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding-top: 4px;
  }

  .qty-control {
    grid-template-columns: 44px 48px 44px;
    border-radius: 999px;
  }

  .qty-control button,
  .qty-control input {
    min-height: 44px;
  }

  .cart-line-controls > strong {
    justify-self: end;
    font-size: 18px;
  }

  .cart-remove {
    grid-column: auto;
    justify-self: end;
    min-height: 44px;
    padding-inline: 8px;
  }

  .cart-drawer .cart-summary {
    margin-top: 12px;
    border-radius: 20px;
    background: #fff;
  }

  .cart-summary > div {
    align-items: flex-start;
    flex-direction: row;
  }

  .cart-drawer-footer {
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .98);
  }

  .cart-footer-actions.two,
  .cart-footer-actions.three {
    grid-template-columns: 1fr;
  }

  .cart-footer-actions .btn {
    min-height: 50px;
  }

  .cart-clear-confirm {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }
}

@media (max-width: 380px) {
  .cart-line {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .cart-line > img,
  .cart-line img {
    width: 72px;
    height: 96px;
  }

  .cart-line-controls {
    grid-template-columns: 1fr auto;
  }

  .cart-remove {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

.spark-document-mini-list button {
  grid-template-columns: 28px minmax(0, 1fr) auto auto;
  min-width: 0;
}

.spark-doc-file-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spark-doc-date,
.spark-doc-status {
  min-width: max-content;
}

.portal-band {
  background:
    radial-gradient(circle at 12% 12%, rgba(49, 93, 246, 0.06), transparent 26%),
    radial-gradient(circle at 88% 0%, rgba(247, 37, 133, 0.06), transparent 28%),
    #f6f8fb;
}

.customer-app-header {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.08);
}

.portal-sidebar {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.portal-menu-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 12px;
}

.portal-menu-icon {
  grid-row: 1 / 3;
  display: grid !important;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 !important;
  border-radius: 14px;
  color: #315df6;
  background: #eef4ff;
}

.portal-menu-icon .spark-icon {
  width: 20px;
  height: 20px;
}

.portal-menu-item strong,
.portal-menu-item > span:not(.portal-menu-icon) {
  grid-column: 2;
  min-width: 0;
}

.portal-menu-item.active .portal-menu-icon,
.portal-menu-item:hover .portal-menu-icon {
  color: #ffffff;
  background: linear-gradient(135deg, #315df6, #f72585);
}

.customer-app-page {
  gap: 18px;
}

.customer-app-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.customer-app-head h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
}

.customer-app-head p {
  max-width: 620px;
  color: #667085;
  line-height: 1.55;
}

.customer-app-stat-grid,
.customer-account-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.customer-stat-card {
  display: grid;
  gap: 4px;
  padding: 18px;
}

.customer-stat-card strong {
  font-size: 2rem;
  line-height: 1;
}

.customer-stat-card span,
.customer-stat-card small {
  color: #667085;
  font-weight: 800;
}

.customer-soft-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #315df6;
  background: #eef4ff;
}

.customer-soft-icon .spark-icon {
  width: 22px;
  height: 22px;
}

.customer-record-list {
  display: grid;
  gap: 12px;
}

.customer-record-card,
.customer-product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
}

.customer-record-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.customer-record-main h3,
.customer-product-row strong {
  margin: 0;
  overflow-wrap: anywhere;
}

.customer-record-main p,
.customer-product-row span {
  margin: 4px 0 0;
  color: #667085;
  font-weight: 750;
}

.customer-record-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.customer-product-row {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  color: #0f172a;
  text-decoration: none;
}

.customer-product-row img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  background: #eef2f7;
}

.customer-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
}

.customer-cart-card,
.customer-cart-summary {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.customer-cart-summary {
  position: sticky;
  top: calc(var(--header-h) + 18px);
}

.customer-cart-line {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e4eaf2;
  border-radius: 18px;
  background: #ffffff;
}

.customer-cart-line img {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  object-fit: cover;
  background: #eef2f7;
}

.customer-cart-line-main {
  min-width: 0;
}

.customer-cart-line-main strong {
  display: block;
  overflow-wrap: anywhere;
}

.customer-cart-line-main p,
.customer-cart-line-main small {
  color: #667085;
  font-weight: 750;
}

.customer-cart-line-controls {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.customer-cart-line-total {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.customer-cart-remove {
  position: static;
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 11px;
}

.customer-empty-app {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 34px 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 22px;
  color: #667085;
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.customer-empty-app h3 {
  margin: 0;
  color: #0f172a;
}

.cart-promotion:empty {
  display: none;
}

@media (min-width: 900px) and (max-width: 1180px) {
  .spark-command-app {
    grid-template-columns: 240px minmax(0, 1fr);
    padding-bottom: 0;
  }

  .spark-command-sidebar {
    display: flex;
  }

  .spark-mobile-admin-nav {
    display: none;
  }

  .spark-command-content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .spark-filter-tabs {
    flex-wrap: wrap;
    overflow: visible;
  }

  .spark-filter-tabs button {
    flex: 1 1 136px;
    justify-content: space-between;
  }

  .spark-product-head,
  .spark-product-row {
    grid-template-columns: 24px minmax(150px, 1fr) 70px 96px 88px 28px;
    gap: 8px;
    padding: 12px;
  }

  .spark-orders-head,
  .spark-order-row {
    grid-template-columns: 24px minmax(110px, 1fr) minmax(118px, 1fr) 86px 90px 92px 28px;
    gap: 8px;
    padding: 12px;
  }

  .spark-order-toolbar {
    grid-template-columns: 1fr;
  }

  .spark-order-toolbar select,
  .spark-order-toolbar button {
    display: none;
  }

  .spark-row-menu-button {
    width: 28px;
  }

  .spark-action-row,
  .approved-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 980px) {






  .customer-cart-layout,
  .customer-app-stat-grid,
  .customer-account-shortcuts {
    grid-template-columns: 1fr;
  }

  .customer-cart-summary {
    position: static;
  }
}

@media (max-width: 760px) {
  .catalog-app-page,
  .portal-container {
    width: min(100% - 24px, 560px);
  }

  .site-header {
    min-height: 84px;
    height: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px 18px;
  }











  .catalog-select-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .catalog-app-grid.product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .catalog-app-grid .product-art {
    height: 150px;
  }

  .catalog-app-grid .product-meta span:nth-child(n+3),
  .catalog-app-grid .unit-badge-row,
  .catalog-app-grid .flavor-row,
  .catalog-app-grid .unit-price-list {
    display: none;
  }

  .portal-header,
  .portal-sidebar {
    display: none;
  }



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

  .customer-app-head {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-record-card,
  .customer-product-row {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .customer-record-meta {
    justify-items: start;
  }

  .customer-cart-line {
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
  }

  .customer-cart-line img {
    width: 64px;
    height: 64px;
  }

  .customer-cart-line-controls {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-items: start;
  }

  .customer-cart-line-total {
    justify-self: end;
  }

  .customer-desktop-extras {
    display: none;
  }

  .spark-filter-tabs.mobile-filter-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .spark-filter-tabs.mobile-filter-tabs button {
    width: 100%;
    justify-content: space-between;
  }

  .spark-document-mini-list button {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .spark-doc-date,
  .spark-doc-status {
    grid-column: 2;
    justify-self: start;
  }

  .cart-drawer {
    width: 100%;
    max-width: none;
  }

  .cart-drawer-body {
    padding: 16px;
  }

  .drawer-header,
  .cart-drawer-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cart-stepper {
    grid-template-columns: 1fr;
  }

  .cart-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .cart-line {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }

  .cart-line img {
    width: 64px;
    height: 64px;
  }

  .cart-line-controls {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .cart-remove {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 44px;
  }

  .cart-footer-actions.two,
  .cart-footer-actions.three {
    grid-template-columns: 1fr;
  }

  .cart-account-row {
    grid-template-columns: 1fr;
  }

  .cart-inline-link {
    justify-self: start;
    min-height: 36px;
  }

  .cart-clear-confirm {
    grid-template-columns: 1fr;
  }

  .cart-clear-confirm > div:last-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cart-review-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .catalog-select-row {
    grid-template-columns: 1fr;
  }

  .catalog-app-grid .product-art {
    height: 132px;
  }
}

/* Spark Distributions V2 redesign */
:root {
  --v2-bg: #f6f8fb;
  --v2-surface: #ffffff;
  --v2-surface-2: #f9fbff;
  --v2-line: #dfe7f2;
  --v2-line-strong: #cdd8e7;
  --v2-text: #0d1324;
  --v2-muted: #647086;
  --v2-soft: #eef3fa;
  --v2-primary: #f72585;
  --v2-purple: #6c5ce7;
  --v2-coral: #ff715b;
  --v2-blue: #2f80ed;
  --v2-green: #17b890;
  --v2-yellow: #f5b700;
  --v2-shadow: 0 22px 60px rgba(20, 33, 61, .08);
  --v2-shadow-soft: 0 12px 34px rgba(20, 33, 61, .06);
  --v2-radius: 18px;
  --v2-radius-sm: 12px;
  --v2-gradient: linear-gradient(135deg, #5b5ff4 0%, #f72585 58%, #ff715b 100%);
}

.v2-public-page,
.v2-public-page *,
.v2-apply-page,
.v2-apply-page *,
.v2-customer-app,
.v2-customer-app *,
.spark-command-app,
.spark-command-app * {
  box-sizing: border-box;
}

html {
  background: var(--v2-bg);
  scroll-padding-top: 110px;
}

body {
  background:
    radial-gradient(circle at 12% 4%, rgba(47, 128, 237, .08), transparent 32rem),
    radial-gradient(circle at 90% 0%, rgba(247, 37, 133, .07), transparent 30rem),
    var(--v2-bg);
  color: var(--v2-text);
  letter-spacing: 0;
}

.view {
  background: transparent;
}

.btn,
button,
input,
select,
textarea {
  font: inherit;
}

.btn {
  min-height: 44px;
  border-radius: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.btn.primary {
  border: 0;
  background: var(--v2-gradient);
  color: #fff;
  box-shadow: 0 14px 30px rgba(247, 37, 133, .22);
}

.btn.ghost,
.icon-btn {
  border-color: var(--v2-line);
  background: #fff;
  color: var(--v2-text);
}

.btn.ghost:hover,
.icon-btn:hover {
  border-color: var(--v2-line-strong);
  box-shadow: var(--v2-shadow-soft);
}

.card,
.spark-card,
.spark-info-card,
.portal-card {
  border-color: var(--v2-line);
  border-radius: var(--v2-radius);
  box-shadow: var(--v2-shadow-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 82px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 0 clamp(18px, 4vw, 72px);
  border-bottom: 1px solid var(--v2-line);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--v2-text);
  font-size: 21px;
  font-weight: 950;
  text-decoration: none;
  min-width: 0;
}

.logo-badge {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: var(--v2-gradient);
  color: #fff;
  box-shadow: 0 12px 34px rgba(247, 37, 133, .22);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.5vw, 36px);
}

.main-nav a {
  color: #283246;
  font-weight: 850;
  text-decoration: none;
  padding: 30px 0 26px;
  border-bottom: 3px solid transparent;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--v2-text);
  border-bottom-color: var(--v2-primary);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.menu-button {
  display: none;
}

.mobile-dropdown {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 80;
  width: min(360px, 88vw);
  padding: 96px 22px 22px;
  border-right: 1px solid var(--v2-line);
  background: rgba(255, 255, 255, .97);
  box-shadow: 26px 0 70px rgba(15, 23, 42, .16);
  transform: translateX(-110%);
  transition: transform .24s ease;
  overflow-y: auto;
}

.mobile-dropdown.open,
body.mobile-menu-open .mobile-dropdown {
  transform: translateX(0);
}

.mobile-nav,
.mobile-menu-actions,
.mobile-auth-actions {
  display: grid;
  gap: 10px;
}

.mobile-nav a,
.mobile-action {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--v2-text);
  background: transparent;
  text-decoration: none;
  font-weight: 850;
  text-align: left;
}

.mobile-nav a:hover,
.mobile-action:hover {
  border-color: var(--v2-line);
  background: var(--v2-surface-2);
}

.mobile-menu-actions {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--v2-line);
}

.mobile-auth-actions {
  margin-top: 18px;
}

.mobile-auth-actions .btn {
  min-height: 44px;
}

.v2-public-page {
  width: min(1380px, calc(100vw - 48px));
  margin: 34px auto 82px;
}

.v2-public-page > *,
.v2-info-page > *,
.v2-page-head,
.v2-contact-grid,
.v2-contact-grid > *,
.v2-contact-form,
.v2-contact-form label,
.v2-contact-card,
.v2-contact-card > *,
.v2-benefit-bar {
  min-width: 0;
}

.v2-hero,
.v2-info-hero,
.v2-page-head,
.v2-cta-panel {
  border: 1px solid var(--v2-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--v2-shadow);
}

.v2-hero {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  min-height: 530px;
  padding: clamp(32px, 5vw, 72px);
  overflow: hidden;
}

.v2-hero-copy {
  min-width: 0;
}

.eyebrow {
  color: #68758f;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.v2-hero h1,
.v2-info-hero h1,
.v2-page-head h1,
.v2-apply-title h1,
.spark-panel-title h2 {
  color: var(--v2-text);
  letter-spacing: 0;
}

.v2-hero h1 {
  max-width: 620px;
  margin: 14px 0 18px;
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: .98;
}

.v2-hero p,
.v2-info-hero p,
.v2-page-head p,
.v2-cta-panel p {
  max-width: 620px;
  color: #536178;
  font-size: clamp(17px, 1.25vw, 21px);
  line-height: 1.55;
}

.v2-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.v2-hero-media {
  position: relative;
  min-width: 0;
}

.v2-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .16);
}

.v2-hero-media::before {
  content: "";
  position: absolute;
  inset: -18% -14%;
  z-index: -1;
  background: radial-gradient(circle, rgba(247, 37, 133, .16), transparent 60%);
}

.v2-license-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 0;
  padding: 18px 22px;
  border: 1px solid #f5d990;
  border-radius: 14px;
  background: #fff7d7;
  color: #5f4a0b;
  font-weight: 800;
}

.v2-public-section {
  margin-top: 58px;
}

.v2-section-head,
.v2-brand-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.v2-section-head h2,
.v2-brand-heading h2,
.v2-cta-panel h2 {
  margin: 6px 0 0;
  color: var(--v2-text);
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.08;
}

.v2-brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.v2-brand-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.v2-top-brands-row {
  min-width: 0;
}

.mock-brand-card {
  min-width: 0;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: 16px;
  background: #fff;
  color: var(--v2-text);
  text-decoration: none;
  box-shadow: var(--v2-shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.mock-brand-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand-a), #fff 35%);
  box-shadow: var(--v2-shadow);
}

.mock-brand-image {
  display: block;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
}

.mock-brand-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.mock-brand-caption {
  display: grid;
  gap: 4px;
  padding: 17px 18px 18px;
}

.mock-brand-caption strong {
  font-size: 17px;
  font-weight: 950;
  text-transform: uppercase;
}

.mock-brand-caption small {
  color: #68758f;
  font-weight: 900;
  text-transform: uppercase;
}

.v2-benefit-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.v2-benefit-row article,
.v2-step-grid article,
.v2-panel,
.v2-ready-card,
.v2-contact-form,
.v2-contact-card {
  border: 1px solid var(--v2-line);
  border-radius: var(--v2-radius);
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--v2-shadow-soft);
}

.v2-benefit-row article {
  min-height: 148px;
  padding: 24px;
}

.v2-benefit-row span,
.v2-ready-card span,
.v2-stage-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  color: #fff;
  background: var(--v2-gradient);
}

.v2-benefit-row strong {
  display: block;
  margin-top: 18px;
  font-size: 19px;
}

.v2-benefit-row small,
.v2-step-grid p,
.v2-panel p,
.v2-ready-card p,
.v2-contact-card p {
  color: #58667e;
  line-height: 1.5;
}

.v2-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.v2-step-grid article {
  min-height: 210px;
  padding: 28px;
}

.v2-step-grid span {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef4ff, #fff1fa);
  color: var(--v2-purple);
  font-weight: 950;
}

.v2-step-grid h3 {
  margin: 0 0 10px;
  font-size: 23px;
}

.v2-cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 64px;
  padding: clamp(24px, 4vw, 44px);
  background:
    linear-gradient(135deg, rgba(91, 95, 244, .07), rgba(247, 37, 133, .06)),
    #fff;
}

.v2-page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(30px, 5vw, 58px);
}

.v2-page-head h1,
.v2-info-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1;
}

.v2-price-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--v2-line);
  border-radius: 12px;
  background: #fff;
  color: #2b3549;
  font-weight: 900;
}

.v2-centered-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.v2-info-page {
  display: grid;
  gap: 34px;
}

.v2-info-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
}

.v2-ready-card {
  padding: 28px;
}

.v2-ready-card h3 {
  margin: 20px 0 10px;
  font-size: 23px;
}

.v2-ready-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: #3f4b61;
  font-weight: 800;
}

.v2-ready-card li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--v2-green);
}

.v2-benefit-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--v2-shadow-soft);
}

.v2-benefit-bar span {
  display: grid;
  place-items: center;
  min-height: 70px;
  padding: 16px;
  color: #526079;
  font-weight: 900;
  text-align: center;
  border-right: 1px solid var(--v2-line);
}

.v2-benefit-bar span:last-child {
  border-right: 0;
}

.v2-two-column,
.v2-info-grid,
.v2-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.v2-panel {
  padding: clamp(22px, 3vw, 34px);
}

.v2-panel h2 {
  margin: 0 0 18px;
  font-size: 26px;
}

.v2-doc-row,
.v2-status-example {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--v2-line);
  border-radius: 14px;
  background: var(--v2-surface-2);
}

.v2-status-example {
  grid-template-columns: minmax(118px, max-content) minmax(170px, 1fr) minmax(220px, 1.1fr);
}

.v2-doc-row + .v2-doc-row,
.v2-status-example + .v2-status-example {
  margin-top: 12px;
}

.v2-doc-row > span {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #eef4ff;
  color: var(--v2-purple);
}

.v2-status-example .status-badge {
  align-self: center;
  justify-self: start;
  width: auto;
  min-width: 0;
  max-width: 100%;
}

.v2-status-example strong,
.v2-status-example small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.v2-status-example small {
  color: #263246;
  font-size: 1rem;
  line-height: 1.35;
}

.v2-license-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border: 1px solid #eee2ff;
  border-radius: 18px;
  background: linear-gradient(135deg, #f7f4ff, #fff7fb);
}

.v2-contact-grid {
  align-items: start;
}

.v2-contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.v2-contact-form label,
.v2-form-grid label,
.auth-form label {
  display: grid;
  gap: 8px;
  color: #344056;
  font-weight: 850;
}

.v2-contact-form input,
.v2-contact-form textarea,
.v2-form-grid input,
.v2-form-grid select,
.v2-form-grid textarea,
.auth-form input,
.auth-form select,
.auth-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--v2-line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--v2-text);
  font-size: 16px;
}

.v2-contact-form textarea,
.v2-form-grid textarea {
  min-height: 120px;
  padding-top: 14px;
  resize: vertical;
}

.v2-contact-cards {
  display: grid;
  gap: 18px;
}

.v2-contact-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  padding: 26px;
}

.v2-contact-card span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #f4ecff;
  color: var(--v2-purple);
}

.modal[aria-hidden="false"] {
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 13, 28, .56);
  backdrop-filter: blur(8px);
}

.modal-panel {
  width: min(680px, calc(100vw - 32px));
  max-height: min(780px, calc(100vh - 32px));
  overflow: auto;
  border: 1px solid var(--v2-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .2);
}

.v2-auth-switch {
  display: flex;
  gap: 10px;
  padding: 28px 28px 8px;
}

.v2-auth-switch .tab {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--v2-line);
  border-radius: 12px;
  background: #fff;
  color: #344056;
  font-weight: 900;
}

.v2-auth-switch .tab.active {
  border-color: #0d1324;
  background: #0d1324;
  color: #fff;
}

#authContent {
  padding: 8px 28px 30px;
}

#authContent h2 {
  margin: 18px 0;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.v2-auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.v2-auth-links button {
  min-height: 42px;
  border: 1px solid var(--v2-line);
  border-radius: 10px;
  background: #fff;
  color: #263248;
  font-weight: 850;
}

.v2-apply-page {
  min-height: calc(100vh - 82px);
  padding: clamp(18px, 4vw, 56px) 0 80px;
}

.v2-apply-shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.v2-apply-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.v2-apply-header h1 {
  margin: 8px 0 8px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
}

.v2-apply-header p,
.v2-apply-note {
  color: #5f6b80;
  font-size: 17px;
  line-height: 1.5;
}

.v2-apply-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.v2-apply-steps,
.v2-apply-card {
  border: 1px solid var(--v2-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--v2-shadow-soft);
}

.v2-apply-steps {
  position: sticky;
  top: 106px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.v2-step-button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--v2-text);
  text-align: left;
}

.v2-step-button strong {
  display: block;
  font-size: 14px;
}

.v2-step-button small {
  color: #718098;
  font-weight: 800;
}

.v2-step-button span:first-child {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--v2-soft);
  color: var(--v2-purple);
  font-weight: 950;
}

.v2-step-button.active {
  border-color: #bfc8ff;
  background: linear-gradient(135deg, rgba(91, 95, 244, .09), rgba(247, 37, 133, .06));
}

.v2-step-button.active span:first-child {
  background: var(--v2-gradient);
  color: #fff;
}

.v2-apply-card {
  overflow: hidden;
}

.v2-progress-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px 28px 0;
}

.v2-progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf6;
}

.v2-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--v2-gradient);
}

.v2-progress-row strong {
  color: #647086;
  font-size: 13px;
  text-transform: uppercase;
}

.v2-apply-stage {
  padding: clamp(28px, 5vw, 48px);
}

.v2-apply-title {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-bottom: 28px;
}

.v2-apply-title h1 {
  margin: 18px 0 8px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
}

.v2-apply-title p {
  max-width: 620px;
  margin: 0;
  color: #5d6a80;
  font-size: 17px;
  line-height: 1.5;
}

.v2-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.v2-form-grid label:has(textarea),
.v2-form-grid .full {
  grid-column: 1 / -1;
}

.checkbox-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 16px;
  border: 1px solid var(--v2-line);
  border-radius: 14px;
  background: #fff;
}

.checkbox-card input {
  width: 22px;
  height: 22px;
}

.v2-application-review {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.v2-review-row {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--v2-line);
  border-radius: 14px;
  background: var(--v2-surface-2);
}

.v2-review-row span {
  color: #66738a;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.v2-review-row strong {
  overflow-wrap: anywhere;
}

.v2-apply-actions {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.v2-apply-actions .save {
  grid-column: 1 / -1;
}

.v2-apply-note {
  margin-top: 22px;
  text-align: center;
}

.v2-mobile-stepper {
  display: none;
}

.v2-mobile-stepper-copy {
  display: grid;
  gap: 2px;
}

.v2-mobile-stepper-copy span {
  color: #647086;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.v2-mobile-stepper-copy strong {
  color: var(--v2-text);
  font-size: 18px;
  font-weight: 950;
}

.v2-mobile-step-dots {
  display: flex;
  gap: 6px;
  overflow: hidden;
}

.v2-mobile-step-dots span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #eef2f8;
  color: #647086;
  font-size: 11px;
  font-weight: 950;
}

.v2-mobile-step-dots span.done,
.v2-mobile-step-dots span.active {
  background: var(--v2-gradient);
  color: #fff;
}

.customer-mode .site-header {
  display: none;
}

.customer-mode main {
  min-height: 100vh;
}

.v2-customer-app {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--v2-bg);
}

.v2-app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 30px;
  padding: 24px 18px;
  border-right: 1px solid var(--v2-line);
  background: rgba(255, 255, 255, .9);
}

.v2-app-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--v2-text);
  font-size: 22px;
  font-weight: 950;
  text-decoration: none;
}

.v2-app-sidebar nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.v2-app-sidebar nav :is(button, a) {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: #344056;
  text-align: left;
  text-decoration: none;
}

.v2-app-sidebar nav :is(button, a) svg {
  grid-row: span 2;
}

.v2-app-sidebar nav :is(button, a) span {
  font-weight: 900;
}

.v2-app-sidebar nav :is(button, a) small {
  color: #738098;
  font-weight: 750;
}

.v2-app-sidebar nav :is(button, a).active,
.v2-app-sidebar nav :is(button, a):hover {
  border-color: #ffd2e5;
  background: #fff1f7;
  color: var(--v2-primary);
}

.v2-app-main {
  min-width: 0;
  padding: 0 clamp(18px, 4vw, 52px) 72px;
}

.v2-app-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 84px;
  margin: 0 calc(clamp(18px, 4vw, 52px) * -1) 28px;
  padding: 0 clamp(18px, 4vw, 52px);
  border-bottom: 1px solid var(--v2-line);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(16px);
}

.v2-app-topbar strong {
  display: block;
  font-size: 20px;
}

.v2-app-topbar span {
  color: #68758f;
  font-weight: 800;
}

.v2-app-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.cart-action {
  position: relative;
}

.v2-app-sidebar nav :is(button, a),
.v2-bottom-nav :is(button, a) {
  position: relative;
}

.v2-app-sidebar nav .action-count {
  top: 10px;
  right: 10px;
}

.v2-bottom-nav {
  display: none;
}

.portal-page,
.catalog-app-page {
  width: 100%;
  margin: 0;
}

.portal-page-head,
.catalog-app-head,
.customer-app-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.portal-page-head h2,
.catalog-app-head h2,
.customer-app-head h2 {
  margin: 4px 0 8px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
}

.portal-page-head p,
.catalog-app-head p,
.customer-app-head p {
  color: #5d6a80;
}

.catalog-controls,
.customer-search-row {
  border: 1px solid var(--v2-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--v2-shadow-soft);
}

.catalog-grid,
.catalog-app-grid {
  gap: 18px;
}

.product-card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--v2-shadow-soft);
}

.product-card .product-art {
  background: linear-gradient(135deg, rgba(91, 95, 244, .12), rgba(247, 37, 133, .08));
}

.cart-drawer {
  border-left: 1px solid var(--v2-line);
  box-shadow: -24px 0 70px rgba(15, 23, 42, .18);
}

#cartPromotion,
#cartPromoRow,
#cartCreditRow {
  display: none !important;
}

.admin-mode .site-header {
  display: none;
}

.spark-command-app {
  background: var(--v2-bg);
}

.spark-command-sidebar {
  border-right-color: var(--v2-line);
  background: rgba(255, 255, 255, .92);
}

.spark-plan-card {
  display: none;
}

.spark-command-nav-item {
  border-radius: 14px;
}

.spark-command-nav-item.active {
  background: #fff1f7;
  color: var(--v2-primary);
}

.spark-command-main,
.spark-workspace {
  min-width: 0;
}

.spark-inbox-page {
  grid-template-columns: minmax(360px, 520px) minmax(0, 1fr);
}

.spark-detail-panel,
.spark-inbox-list-panel,
.spark-catalog-drawer,
.spark-info-card,
.spark-settings-card,
.spark-orders-detail {
  border-color: var(--v2-line);
  border-radius: 18px;
}

.spark-document-mini-list button {
  grid-template-columns: 28px minmax(0, 1fr) minmax(110px, auto) minmax(90px, auto);
  gap: 12px;
}

.spark-doc-date,
.spark-doc-status {
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: minmax(220px, 1fr) auto;
  }

  .main-nav {
    display: none;
  }

  .menu-button {
    display: inline-grid;
    justify-self: end;
  }

  .header-actions {
    display: none;
  }

  .v2-hero,
  .v2-info-hero {
    grid-template-columns: 1fr;
  }

  .v2-hero-media img {
    max-height: 430px;
  }

  .v2-brand-grid,
  .v2-brand-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .v2-customer-app {
    grid-template-columns: 1fr;
  }

  .v2-app-sidebar {
    display: none;
  }

  .v2-app-main {
    padding-bottom: 112px;
  }

  .v2-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 72px;
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--v2-line);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(18px);
  }

  .v2-bottom-nav :is(button, a) {
    display: grid;
    place-items: center;
    gap: 4px;
    min-width: 0;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #5d6a80;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
  }

  .v2-bottom-nav :is(button, a) svg {
    width: 22px;
    height: 22px;
  }

  .v2-bottom-nav :is(button, a).active {
    color: var(--v2-primary);
    background: #fff1f7;
  }

  .v2-bottom-nav .action-count {
    top: 4px;
    right: 22%;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 92px;
  }

  .site-header {
    height: 78px;
    padding: 0 18px;
  }

  .logo {
    font-size: 19px;
  }

  .logo-badge {
    width: 48px;
    height: 48px;
  }

  .v2-public-page,
  .v2-apply-shell {
    width: min(100% - 28px, 720px);
    margin-top: 18px;
  }

  .v2-hero {
    min-height: auto;
    padding: 24px;
    border-radius: 18px;
  }

  .v2-hero h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .v2-section-head,
  .v2-brand-heading,
  .v2-page-head,
  .v2-cta-panel,
  .v2-license-note,
  .portal-page-head,
  .catalog-app-head,
  .customer-app-head {
    align-items: stretch;
    flex-direction: column;
  }

  .v2-brand-grid,
  .v2-brand-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .v2-benefit-row,
  .v2-step-grid,
  .v2-two-column,
  .v2-info-grid,
  .v2-contact-grid {
    grid-template-columns: 1fr;
  }

  .v2-benefit-bar {
    grid-template-columns: 1fr;
  }

  .v2-benefit-bar span {
    border-right: 0;
    border-bottom: 1px solid var(--v2-line);
  }

  .v2-benefit-bar span:last-child {
    border-bottom: 0;
  }

  .v2-info-hero,
  .v2-page-head {
    padding: 24px;
  }

  .v2-apply-header {
    align-items: start;
    flex-direction: column;
  }

  .v2-apply-layout {
    grid-template-columns: 1fr;
  }

  .v2-apply-steps {
    position: static;
    display: flex;
    overflow-x: auto;
    padding: 10px;
    scrollbar-width: none;
  }

  .v2-apply-steps::-webkit-scrollbar {
    display: none;
  }

  .v2-step-button {
    grid-template-columns: 38px max-content;
    flex: 0 0 auto;
    min-width: 176px;
  }

  .v2-step-button small {
    display: none;
  }

  .v2-form-grid,
  .v2-application-review,
  .v2-apply-actions {
    grid-template-columns: 1fr;
  }

  .v2-apply-stage {
    padding: 24px 18px;
  }

  .v2-apply-actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 24px 0 -24px;
    padding: 14px 18px max(14px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--v2-line);
    border-radius: 16px 16px 0 0;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(16px);
  }

  .v2-app-topbar {
    min-height: 76px;
    align-items: start;
    flex-direction: column;
    justify-content: center;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .v2-app-actions {
    width: 100%;
    justify-content: stretch;
  }

  .v2-app-actions .btn {
    flex: 1;
  }

  .spark-inbox-page {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1366px) and (min-width: 901px) {
  .spark-inbox-page {
    grid-template-columns: 1fr;
  }

  .spark-detail-panel,
  .spark-inbox-list-panel,
  .spark-simple-page,
  .spark-card,
  .spark-application-detail {
    min-width: 0;
    overflow: hidden;
  }

  .spark-document-mini-list button {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .spark-doc-date,
  .spark-doc-status {
    grid-column: 2;
    justify-self: start;
  }

  .customer-table .spark-product-head {
    display: none;
  }

  .customer-table .spark-customer-row {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
  }
}

@media (max-width: 560px) {
  .v2-public-page,
  .v2-apply-shell {
    width: calc(100% - 24px);
  }

  .v2-brand-grid,
  .v2-brand-grid.compact {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }



  .v2-hero-media img {
    aspect-ratio: 4 / 3;
  }

  .v2-license-notice,
  .v2-doc-row,
  .v2-status-example,
  .v2-contact-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .v2-license-notice {
    display: block;
  }

  .v2-license-notice svg {
    margin-right: 8px;
  }

  .modal[aria-hidden="false"] {
    align-items: end;
    padding: 0;
  }

  .modal-panel {
    width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: 24px 24px 0 0;
  }

  .v2-auth-switch {
    padding: 22px 18px 8px;
    overflow-x: auto;
  }

  #authContent {
    padding: 8px 18px 24px;
  }

  .v2-progress-row {
    grid-template-columns: 1fr;
    padding: 18px 18px 0;
  }

  .v2-apply-title {
    text-align: left;
    justify-items: start;
  }

  .v2-apply-title h1 {
    font-size: clamp(32px, 11vw, 46px);
  }

  .v2-stage-icon {
    width: 50px;
    height: 50px;
  }

  .portal-page-head h2,
  .catalog-app-head h2,
  .customer-app-head h2 {
    font-size: clamp(32px, 11vw, 44px);
  }

  .spark-document-mini-list button {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .spark-doc-date,
  .spark-doc-status {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 767px) {
  .v2-public-page,
  .v2-apply-page,
  .v2-apply-shell,
  .v2-home,
  .v2-apply-main,
  .v2-apply-card {
    max-width: 100%;
    min-width: 0;
  }

  .v2-public-page {
    overflow-x: clip;
  }

  .v2-home .v2-public-section {
    margin-top: 44px;
  }

  .v2-home .v2-section-head {
    align-items: start;
    gap: 12px;
    margin-bottom: 16px;
  }

  .v2-home .v2-section-head h2 {
    font-size: clamp(31px, 9vw, 40px);
    line-height: 1.08;
  }

  .v2-home .v2-section-head .text-link {
    width: max-content;
    font-size: 19px;
    line-height: 1.2;
  }

  .v2-home .v2-top-brands-row {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    width: calc(100% + 24px);
    margin-inline: -12px;
    padding: 0 12px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding-inline: 12px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .v2-home .v2-top-brands-row::-webkit-scrollbar {
    display: none;
  }

  .v2-home .v2-top-brands-row .mock-brand-card {
    flex: 0 0 min(72vw, 250px);
    width: min(72vw, 250px);
    min-width: 220px;
    max-width: 260px;
    scroll-snap-align: start;
  }

  .v2-home .v2-top-brands-row .mock-brand-image img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  .v2-home .v2-top-brands-row .mock-brand-caption {
    min-height: 104px;
    padding: 16px;
  }

  .v2-home .v2-top-brands-row .mock-brand-caption strong,
  .v2-home .v2-top-brands-row .mock-brand-caption small {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .v2-home .v2-top-brands-row .mock-brand-caption strong {
    font-size: 18px;
    line-height: 1.15;
  }

  .v2-apply-page {
    min-height: calc(100svh - 78px);
    padding: 0 0 max(32px, env(safe-area-inset-bottom));
    background:
      radial-gradient(circle at 15% 12%, rgba(255, 255, 255, .88), transparent 28%),
      linear-gradient(180deg, #dcebff 0%, #f8fbff 44%, #cfe4ff 100%);
    overflow-x: clip;
  }

  .v2-apply-shell {
    width: 100%;
    padding: 22px 16px 0;
  }

  .v2-apply-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 18px;
  }

  .v2-apply-header > div {
    display: none;
  }

  .v2-back-link {
    width: fit-content;
    color: #2563eb;
    font-size: 18px;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .v2-back-link .spark-icon {
    width: 18px;
    height: 18px;
    transform: rotate(180deg);
  }

  .v2-mobile-stepper {
    display: grid;
    gap: 16px;
    margin-bottom: 22px;
    padding: 18px 4px 20px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .v2-mobile-stepper .progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8edf6;
  }

  .v2-mobile-stepper .progress-fill {
    height: 100%;
    border-radius: inherit;
    background: var(--v2-gradient);
  }

  .v2-mobile-stepper-copy {
    gap: 4px;
  }

  .v2-mobile-stepper-copy span {
    color: #50617b;
    font-size: 15px;
    letter-spacing: .08em;
  }

  .v2-mobile-stepper-copy strong {
    font-size: 26px;
    letter-spacing: 0;
  }

  .v2-mobile-step-dots {
    display: none;
  }

  .v2-apply-layout {
    display: block;
  }

  .v2-apply-steps {
    display: none;
  }

  .v2-apply-card {
    border-radius: 24px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 24px 60px rgba(58, 88, 145, .16);
    overflow: hidden;
  }

  .v2-apply-card > .v2-progress-row,
  .v2-apply-card > .progress-track {
    display: none;
  }

  .v2-apply-stage {
    padding: 30px 22px 28px;
  }

  .v2-apply-title {
    justify-items: start;
    text-align: left;
    gap: 14px;
    margin-bottom: 24px;
  }

  .v2-apply-title h1 {
    margin: 8px 0 0;
    font-size: clamp(32px, 8.5vw, 38px);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  .v2-apply-title .eyebrow {
    color: #2563eb;
    font-size: 14px;
    letter-spacing: .06em;
  }

  .v2-apply-title p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.48;
  }

  .v2-stage-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(247, 37, 133, .16);
  }

  .v2-form-grid,
  .v2-application-review {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .v2-form-grid .field,
  .v2-form-grid .full,
  .v2-form-grid .full-field,
  .v2-form-grid label:has(textarea) {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .v2-form-grid input,
  .v2-form-grid select,
  .v2-form-grid textarea,
  .v2-form-grid .form-control,
  .v2-form-grid .form-select {
    width: 100%;
    min-height: 56px;
    border-color: #ccd8ea;
    border-radius: 15px;
    font-size: 16px;
  }

  .v2-form-grid textarea.form-control {
    min-height: 116px;
  }

  .v2-form-grid .form-label {
    margin-bottom: 8px;
    color: var(--v2-text);
    font-size: 15px;
    font-weight: 950;
  }

  .v2-form-grid .form-text {
    margin: 8px 0 0;
    color: #61708a;
    font-size: 15px;
  }

  .v2-form-grid .application-password-field.input-group {
    position: relative;
    display: block !important;
  }

  .v2-form-grid .application-password-field.input-group .form-control {
    display: block;
    width: 100%;
    min-width: 0;
    padding-right: 86px;
    border-right: 1px solid #ccd8ea;
    border-radius: 15px !important;
  }

  .v2-form-grid .application-password-field.input-group .password-toggle {
    position: absolute;
    top: 50%;
    right: 17px;
    z-index: 2;
    min-width: auto;
    min-height: 40px;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    color: #2563eb;
    font-size: 16px;
    font-weight: 850;
    box-shadow: none !important;
    transform: translateY(-50%);
  }

  .checkbox-card {
    min-height: 58px;
    padding: 14px;
  }

  .v2-apply-actions {
    position: static;
    z-index: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .v2-apply-actions .btn,
  .v2-save-later {
    width: 100%;
    min-height: 56px;
  }

  .v2-save-later {
    min-height: 44px;
    margin-top: 14px;
    border: 0;
    background: transparent;
    color: #2563eb;
    box-shadow: none;
  }

  .v2-save-later.btn,
  .v2-save-later.btn-spark-secondary {
    border-color: transparent;
    background: transparent;
    color: #2563eb;
    box-shadow: none;
  }

  .v2-apply-note {
    margin: 26px 4px 0;
    color: #5b6a83;
    font-size: 16px;
    text-align: center;
  }
}

@media (max-width: 340px) {
  .v2-home .v2-top-brands-row .mock-brand-card {
    flex-basis: min(82vw, 224px);
    width: min(82vw, 224px);
    min-width: 205px;
  }

  .v2-apply-shell {
    padding-inline: 12px;
  }

  .v2-apply-stage {
    padding-inline: 16px;
  }

  .v2-mobile-stepper-copy strong {
    font-size: 24px;
  }

  .v2-apply-title h1 {
    font-size: 31px;
  }

  .v2-form-grid .application-password-field.input-group .password-toggle {
    right: 14px;
  }
}

@media (max-width: 1180px) {
  .compact-customer-topbar.v2-app-topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    min-height: 70px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .compact-customer-actions.v2-app-actions {
    width: auto;
    display: inline-flex;
    flex-wrap: nowrap;
    justify-content: end;
  }

  .compact-customer-actions .btn {
    flex: 0 0 auto;
  }
}

.v2-customer-catalog .spark-filter-button {
  min-height: 44px;
}

.v2-customer-catalog .quick-buy-actions .btn.small,
.v2-customer-catalog .catalog-top-actions button {
  min-height: 44px;
}

@media (min-width: 901px) {
  .spark-inbox-page,
  .spark-orders-layout {
    width: 100%;
    min-width: 0;
  }

  .spark-inbox-list-panel,
  .spark-detail-panel,
  .spark-orders-main,
  .spark-order-drawer,
  .spark-application-detail,
  .spark-order-detail,
  .spark-info-card,
  .spark-card,
  .spark-orders-table {
    min-width: 0;
  }

  .spark-orders-table {
    overflow-x: auto;
  }

  .spark-orders-head,
  .spark-order-row {
    grid-template-columns:
      28px minmax(132px, 1fr) minmax(190px, 1.22fr) minmax(86px, 0.52fr)
      minmax(104px, 0.58fr) minmax(142px, 0.72fr) minmax(48px, auto);
    min-width: 860px;
    gap: 12px;
  }

  .spark-orders-head > span,
  .spark-order-row > span,
  .spark-order-row strong,
  .spark-order-row small,
  .spark-customer-block > div,
  .spark-customer-block strong,
  .spark-customer-block small,
  .spark-order-item strong,
  .spark-order-item em,
  .spark-drawer-title,
  .spark-drawer-title h2,
  .spark-application-hero > div,
  .spark-application-hero h2,
  .spark-application-hero p,
  .spark-application-hero small,
  .spark-info-row,
  .spark-info-row span,
  .spark-info-row strong {
    min-width: 0;
  }

  .spark-order-row strong,
  .spark-order-row small,
  .spark-customer-block strong,
  .spark-customer-block small,
  .spark-order-detail .spark-info-row span,
  .spark-order-detail .spark-info-row strong {
    display: block;
  }

  .spark-order-row small,
  .spark-customer-block small {
    margin-top: 2px;
    line-height: 1.25;
  }

  .spark-order-row strong,
  .spark-order-row small,
  .spark-customer-block small,
  .spark-order-item strong,
  .spark-order-item em,
  .spark-application-hero h2,
  .spark-application-hero p,
  .spark-application-hero small,
  .spark-info-row strong {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .spark-row-more {
    justify-self: end;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid #dbe3ec;
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 950;
  }

  .spark-order-row .spark-status {
    justify-self: start;
    max-width: 100%;
  }

  .spark-order-detail {
    width: 100%;
    max-width: 100%;
  }

  .spark-order-detail .spark-action-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .spark-order-detail .spark-action-row .btn,
  .spark-action-row.approved-actions .btn {
    min-width: 0;
    white-space: normal;
  }

  .spark-customer-block {
    align-items: flex-start;
  }

  .spark-order-item {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .spark-order-item em {
    grid-column: 2;
    justify-self: start;
  }

  .spark-info-row {
    grid-template-columns: minmax(104px, 0.72fr) minmax(0, 1fr);
    align-items: start;
  }

  .spark-document-mini-list button {
    grid-template-columns: 28px minmax(0, 1fr) minmax(112px, auto) minmax(90px, auto);
  }

  .spark-application-documents-card {
    grid-column: 1 / -1;
  }

  .spark-application-documents-card .spark-document-mini-list button {
    grid-template-columns: 28px minmax(180px, 1fr) minmax(118px, auto) minmax(150px, auto) minmax(120px, auto);
    gap: 12px;
    align-items: center;
  }

  .spark-application-documents-card .spark-doc-date,
  .spark-application-documents-card .spark-doc-status,
  .spark-application-documents-card .spark-status {
    min-width: 0;
    justify-self: start;
    white-space: normal;
  }

  .spark-application-documents-card .spark-doc-status {
    overflow-wrap: break-word;
  }

  .spark-doc-file-name {
    max-width: 100%;
  }

  .spark-application-hero {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .spark-application-hero .spark-assigned {
    grid-column: 2;
    justify-self: start;
  }

  .spark-action-row {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }

  .spark-detail-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (min-width: 901px) and (max-width: 1540px) {
  .spark-inbox-page,
  .spark-orders-layout {
    grid-template-columns: 1fr;
    max-width: 1120px;
    margin-inline: auto;
  }

  .spark-order-detail,
  .spark-product-editor {
    position: static;
  }

  .spark-order-drawer {
    max-width: 760px;
  }

  .spark-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1541px) {
  .spark-inbox-page {
    grid-template-columns: minmax(430px, 520px) minmax(0, 1fr);
    align-items: start;
  }

  .spark-orders-layout {
    grid-template-columns: minmax(760px, 1fr) minmax(390px, 450px);
    align-items: start;
  }

  .spark-order-drawer {
    width: 100%;
  }
}

/* Spark Command V2 Part 1: shell and dashboard foundation */
.spark-admin-menu-open {
  overflow: hidden;
}

.spark-command-app {
  grid-template-columns: 236px minmax(0, 1fr);
  background: #f6f8fb;
}

.spark-command-sidebar {
  grid-template-rows: auto auto;
  align-content: start;
  gap: 30px;
  padding: 20px 14px;
  border-right-color: #e6edf5;
  background: rgba(255, 255, 255, 0.96);
}

.spark-command-brand {
  min-height: 44px;
  padding: 0 4px;
}

.spark-command-brand strong,
.spark-command-mobile-brand strong {
  overflow-wrap: anywhere;
}

.spark-command-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(247, 37, 133, 0.14);
}

.spark-command-nav {
  gap: 6px;
  padding-top: 0;
}

.spark-command-nav-item {
  min-height: 44px;
  gap: 12px;
  padding: 0 12px;
  border-radius: 12px;
  color: #3d4b60;
}

.spark-command-nav-item:hover,
.spark-command-nav-item:focus-visible,
.spark-command-metric:focus-visible,
.spark-dashboard-work-row:focus-visible,
.spark-mobile-admin-nav button:focus-visible,
.spark-mobile-more-sheet button:focus-visible {
  outline: 3px solid rgba(67, 97, 238, 0.22);
  outline-offset: 2px;
}

.spark-command-nav-item.active {
  background: #f7edf4;
  color: #d91d72;
}

.spark-command-nav-item em,
.spark-mobile-admin-nav em {
  min-width: 20px;
  min-height: 20px;
  padding: 0 6px;
  background: #f72f87;
  font-size: 0.68rem;
}

.spark-command-topbar {
  min-height: 64px;
  z-index: 80;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px) minmax(210px, 1fr);
  column-gap: 18px;
  padding: 10px 28px;
  border-bottom-color: #e6edf5;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.spark-command-search {
  min-height: 42px;
  width: 100%;
  max-width: 460px;
  justify-self: center;
  border-color: #dbe5f0;
  border-radius: 12px;
  background: #f8fafc;
}

.spark-command-content {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding: 32px clamp(22px, 3vw, 42px) 46px;
}

.spark-bell span {
  min-width: 18px;
  height: 18px;
  top: 1px;
  right: 1px;
  border: 2px solid #ffffff;
}

.spark-dashboard-v2 {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: 18px;
}

.spark-dashboard-hero,
.spark-dashboard-metrics,
.spark-dashboard-system-strip {
  grid-column: 1 / -1;
}

.spark-dashboard-hero {
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.spark-dashboard-hero h1 {
  margin: 0 0 5px;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1;
}

.spark-dashboard-hero p {
  margin: 0;
  color: #516075;
  font-weight: 760;
}

.spark-dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.spark-command-metric {
  min-width: 0;
  min-height: 92px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 13px;
  padding: 14px 15px;
  border: 1px solid #e0e8f2;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.045);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

@media (hover: hover) {
  .spark-command-metric:hover {
    transform: translateY(-1px);
    border-color: #cbd8ea;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.075);
  }
}

.spark-command-metric .spark-soft-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.spark-command-metric strong,
.spark-command-metric small,
.spark-command-metric em {
  display: block;
  min-width: 0;
}

.spark-command-metric strong {
  font-size: clamp(1.38rem, 1.85vw, 1.74rem);
  line-height: 0.95;
}

.spark-command-metric small {
  margin-top: 2px;
  color: #172033;
  font-weight: 920;
  line-height: 1.15;
}

.spark-command-metric em {
  margin-top: 6px;
  color: #64748b;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 760;
  line-height: 1.2;
}

.spark-dashboard-panel,
.spark-dashboard-system-strip {
  min-width: 0;
  border: 1px solid #e0e8f2;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.045);
}

.spark-dashboard-panel {
  padding: 18px;
}

.spark-dashboard-section-head {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.spark-dashboard-section-head h2 {
  margin: 0 0 4px;
  font-size: 1.12rem;
}

.spark-dashboard-section-head p {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 720;
}

.spark-dashboard-work-list,
.spark-dashboard-activity-list {
  display: grid;
  gap: 8px;
}

.spark-dashboard-work-row {
  min-width: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1.1fr) minmax(130px, 0.66fr) minmax(72px, auto) 18px;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
}

.spark-dashboard-work-row:hover {
  border-color: #ffd1e4;
  background: #fff8fb;
}

.spark-dashboard-work-row .spark-avatar-tile {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.spark-dashboard-work-main,
.spark-dashboard-work-main strong,
.spark-dashboard-work-main small,
.spark-dashboard-work-reason,
.spark-dashboard-work-row em {
  min-width: 0;
}

.spark-dashboard-work-main strong,
.spark-dashboard-work-main small,
.spark-dashboard-work-reason,
.spark-dashboard-work-row em {
  display: block;
  overflow-wrap: anywhere;
}

.spark-dashboard-work-main small,
.spark-dashboard-work-row em {
  color: #64748b;
  font-style: normal;
  font-weight: 760;
}

.spark-dashboard-work-reason {
  color: #334155;
  font-weight: 860;
}

.spark-dashboard-activity-list > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) minmax(92px, auto);
  gap: 8px 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f7;
}

.spark-dashboard-activity-list > div:last-child {
  border-bottom: 0;
}

.spark-dashboard-activity-list > div > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f1f5f9;
  color: #4361ee;
}

.spark-dashboard-activity-list strong,
.spark-dashboard-activity-list small,
.spark-dashboard-activity-list em {
  min-width: 0;
  display: block;
  overflow-wrap: anywhere;
}

.spark-dashboard-activity-list small {
  grid-column: 2;
  color: #64748b;
  font-weight: 760;
}

.spark-dashboard-activity-list em {
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: end;
  color: #64748b;
  font-style: normal;
  font-weight: 820;
  white-space: nowrap;
}

.spark-dashboard-system-strip {
  min-height: 58px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 12px 16px;
  color: #42526a;
}

.spark-dashboard-system-strip strong {
  color: #0f172a;
  margin-right: auto;
}

.spark-dashboard-system-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 820;
}

.spark-dashboard-system-strip .spark-icon {
  width: 16px;
  height: 16px;
  color: #10b981;
}

.spark-mobile-date-chip {
  min-height: 44px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0 14px;
  border: 1px solid #dbe5f0;
  border-radius: 12px;
  background: #ffffff;
  color: #344256;
  font: inherit;
  font-weight: 900;
}

.spark-mobile-date-chip.active {
  border-color: #ffd1e4;
  background: #fff4f9;
  color: #d91d72;
}

.spark-dashboard-clear {
  min-height: 72px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  padding: 14px;
  border: 1px dashed #dbe5f0;
  border-radius: 12px;
  color: #64748b;
}

.spark-dashboard-clear .spark-icon {
  grid-row: span 2;
  color: #10b981;
}

.spark-dashboard-clear strong {
  color: #0f172a;
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .spark-command-app {
    grid-template-columns: 84px minmax(0, 1fr);
    padding-bottom: 0;
  }

  .spark-command-sidebar {
    display: grid;
    padding: 16px 12px;
  }

  .spark-command-brand {
    justify-content: center;
  }

  .spark-command-brand strong,
  .spark-command-nav-item span {
    display: none;
  }

  .spark-command-nav-item {
    position: relative;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0;
  }

  .spark-command-nav-item em {
    position: absolute;
    top: 4px;
    right: 7px;
  }

  .spark-mobile-admin-nav {
    display: none;
  }

  .spark-command-topbar {
    grid-template-columns: minmax(260px, 440px) minmax(0, 1fr);
    justify-content: stretch;
  }

  .spark-command-search {
    grid-column: 1;
    display: grid;
  }

  .spark-command-user {
    grid-column: 2;
  }

  .spark-command-mobile-brand {
    display: none;
  }

  .spark-command-content {
    padding-inline: 28px;
  }

  .spark-dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .spark-command-app {
    grid-template-columns: 1fr;
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .spark-command-sidebar {
    display: none;
  }

  .spark-command-topbar {
    min-height: 72px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px 16px;
  }

  .spark-command-mobile-brand {
    display: inline-flex;
  }

  .spark-command-search {
    display: none;
  }

  .spark-command-user {
    grid-column: auto;
  }

  .spark-command-content {
    max-width: 760px;
    padding: 24px 16px calc(34px + env(safe-area-inset-bottom));
  }

  .spark-dashboard-v2 {
    grid-template-columns: 1fr;
  }

  .spark-dashboard-hero {
    align-items: flex-start;
  }

  .spark-dashboard-priority-panel {
    order: 1;
  }

  .spark-dashboard-metrics {
    order: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spark-dashboard-activity-panel {
    order: 3;
  }

  .spark-dashboard-system-strip {
    order: 4;
  }
}

@media (min-width: 720px) and (max-width: 1023px) {
  .spark-command-app {
    grid-template-columns: 84px minmax(0, 1fr);
    padding-bottom: 0;
  }

  .spark-command-sidebar {
    display: grid;
    padding: 16px 12px;
  }

  .spark-command-brand {
    justify-content: center;
  }

  .spark-command-brand strong,
  .spark-command-nav-item span {
    display: none;
  }

  .spark-command-nav-item {
    position: relative;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0;
  }

  .spark-command-nav-item em {
    position: absolute;
    top: 4px;
    right: 7px;
  }

  .spark-mobile-admin-nav {
    display: none;
  }

  .spark-command-topbar {
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    min-height: 64px;
    padding-inline: 18px;
  }

  .spark-command-mobile-brand {
    display: none;
  }

  .spark-command-search {
    grid-column: 1;
    display: grid;
    max-width: 360px;
    justify-self: start;
  }

  .spark-command-user {
    grid-column: 2;
    justify-self: end;
  }

  .spark-command-user .spark-user-copy {
    display: none;
  }

  .spark-command-content {
    max-width: 840px;
    padding-inline: 20px;
  }
}

@media (min-width: 720px) and (max-width: 1279px) {
  .spark-command-nav-item em {
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    top: 5px;
    right: 8px;
    padding: 0 5px;
    border: 2px solid #ffffff;
    font-size: 0.62rem;
    line-height: 14px;
  }

  .spark-command-nav-item[data-badge-priority="dot"] em {
    width: 9px;
    min-width: 9px;
    height: 9px;
    min-height: 9px;
    top: 9px;
    right: 15px;
    padding: 0;
    font-size: 0;
    line-height: 0;
  }

  .spark-command-nav-item[data-badge-priority="count"] em {
    right: 5px;
  }
}

@media (min-width: 720px) and (max-width: 1023px) {
  .spark-mobile-more-sheet {
    left: auto;
    right: 18px;
    top: 76px;
    bottom: auto;
    width: min(292px, calc(100vw - 120px));
  }
}

@media (max-width: 560px) {
  .spark-dashboard-hero {
    display: grid;
    gap: 10px;
  }

  .spark-dashboard-hero h1 {
    font-size: 2rem;
  }

  .spark-date-button {
    justify-self: start;
  }

  .spark-dashboard-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .spark-command-metric {
    min-height: 82px;
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    padding: 13px;
  }

  .spark-command-metric .spark-soft-icon {
    width: 40px;
    height: 40px;
  }

  .spark-command-metric strong {
    font-size: 1.35rem;
  }

  .spark-command-metric em {
    display: block;
    margin-top: 3px;
    font-size: 0.72rem;
    line-height: 1.15;
  }

  .spark-dashboard-panel {
    padding: 14px;
  }

  .spark-dashboard-section-head {
    align-items: center;
  }

  .spark-dashboard-section-head p {
    display: none;
  }

  .spark-dashboard-work-row {
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    gap: 10px;
  }

  .spark-dashboard-work-row .spark-avatar-tile {
    width: 40px;
    height: 40px;
  }

  .spark-dashboard-work-reason,
  .spark-dashboard-work-row em {
    grid-column: 2;
  }

  .spark-dashboard-work-row > .spark-icon:last-child {
    grid-column: 3;
    grid-row: 1 / span 3;
  }

  .spark-dashboard-activity-list > div {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .spark-dashboard-activity-list em {
    grid-column: 2;
    grid-row: auto;
    justify-self: start;
  }

  .spark-dashboard-system-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spark-dashboard-system-strip strong {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .v2-customer-catalog .catalog-app-grid.quick-buy-grid.product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .v2-customer-catalog .catalog-app-grid.quick-buy-grid.product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1680px) {
  .v2-customer-catalog .catalog-app-grid.quick-buy-grid.product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Spark Command V2 Part 2A: Work Queue foundation */
.spark-status.needs-review,
.spark-status.open,
.spark-status.requested,
.spark-status.completed,
.spark-status.approved {
  background: #e9fff3;
  color: #09a66d;
}

.spark-status.needs-info,
.spark-status.pending-review,
.spark-status.expiring-soon,
.spark-status.email-queued {
  background: #fff7e3;
  color: #c27606;
}

.spark-status.rejected {
  background: #ffe8ef;
  color: #d91f5b;
}

.spark-work-queue-page {
  width: min(100%, 1280px);
  margin-inline: auto;
  display: grid;
  gap: 16px;
}

.spark-work-queue-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.spark-work-queue-head h1 {
  margin: 0 0 3px;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: .96;
}

.spark-work-queue-head p {
  margin: 0;
  max-width: 620px;
  color: #55637a;
  font-weight: 780;
}

.spark-work-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #64748b;
  font-size: .86rem;
  font-weight: 850;
  white-space: nowrap;
}

.spark-work-tabs,
.spark-work-filters {
  min-width: 0;
  display: flex;
  align-items: center;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 18px;
  scrollbar-width: none;
}

.spark-work-tabs::-webkit-scrollbar,
.spark-work-filters::-webkit-scrollbar {
  display: none;
}

.spark-work-tabs {
  width: fit-content;
  max-width: 100%;
  border: 1px solid #e1e8f2;
  border-radius: 14px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .045);
}

.spark-work-tabs button {
  min-height: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  border: 0;
  border-right: 1px solid #edf1f6;
  background: transparent;
  color: #223047;
  font: inherit;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.spark-work-tabs button:last-child {
  border-right: 0;
}

.spark-work-tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: transparent;
}

.spark-work-tabs button.active {
  color: #f72585;
}

.spark-work-tabs button.active::after {
  background: #f72585;
}

.spark-work-tabs span,
.spark-work-list-title span {
  min-width: 22px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #edf2f7;
  color: #53627a;
  font-size: .72rem;
  font-weight: 950;
}

.spark-work-tabs button.active span {
  background: #f72585;
  color: #ffffff;
}

.spark-work-filters {
  gap: 10px;
  padding: 2px 0;
}

.spark-work-filters button {
  min-height: 40px;
  padding: 0 17px;
  border: 1px solid #dfe7f0;
  border-radius: 10px;
  background: #ffffff;
  color: #172033;
  font: inherit;
  font-weight: 880;
  white-space: nowrap;
  cursor: pointer;
}

.spark-work-filters button.active {
  border-color: #ffe0ee;
  background: #fff1f7;
  color: #f72585;
}

.spark-work-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(430px, .9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: start;
}

.spark-work-list-card,
.spark-work-detail-panel,
.spark-work-detail-card,
.spark-work-notes-card,
.spark-work-select-empty {
  min-width: 0;
  border: 1px solid #e1e8f2;
  border-radius: 18px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .045);
}

.spark-work-list-card {
  overflow: hidden;
}

.spark-work-list-title {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px 12px;
}

.spark-work-list-title h2 {
  margin: 0;
  font-size: 1.28rem;
}

.spark-work-list-title span {
  width: auto;
  padding: 0 8px;
}

.spark-work-list {
  display: grid;
}

.spark-work-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(112px, auto) 22px;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 0;
  border-top: 1px solid #eef3f8;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
}

.spark-work-row:hover,
.spark-work-row:focus-visible {
  background: #fff7fb;
  outline: 3px solid rgba(247, 37, 133, .14);
  outline-offset: -3px;
}

.spark-work-row.selected {
  background: #fff0f7;
  box-shadow: inset 3px 0 0 #f72585;
}

.spark-work-row .spark-avatar-tile {
  width: 46px;
  height: 46px;
}

.spark-work-row-main,
.spark-work-row-main strong,
.spark-work-row-main small,
.spark-work-row-main em,
.spark-work-row-status {
  min-width: 0;
}

.spark-work-row-main {
  display: grid;
  gap: 4px;
}

.spark-work-row-main strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: .98rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
}

.spark-work-row-main small,
.spark-work-row-main em {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #53627a;
  font-size: .8rem;
  font-style: normal;
  font-weight: 760;
  line-height: 1.25;
}

.spark-work-row-reason {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f8fafc;
  color: #172033;
  font-size: .76rem;
  font-weight: 920;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.spark-work-row-main small {
  overflow-wrap: anywhere;
}

.spark-work-row-status {
  display: grid;
  justify-items: start;
  gap: 7px;
}

.spark-work-row-status small {
  color: #53627a;
  font-size: .8rem;
  font-weight: 820;
}

.spark-work-detail-panel {
  padding: 16px;
}

.spark-work-detail-shell {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.spark-work-mobile-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.spark-work-back {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #334155;
  font: inherit;
  font-weight: 900;
}

.spark-work-back .spark-icon {
  transform: rotate(180deg);
}

.spark-work-mobile-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.spark-work-detail-hero {
  min-width: 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.spark-work-detail-hero .spark-avatar-tile {
  width: 64px;
  height: 64px;
}

.spark-work-detail-hero h2 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.spark-work-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: #53627a;
  font-size: .86rem;
  font-weight: 820;
}

.spark-work-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.spark-work-required-action,
.spark-work-related-card,
.spark-work-activity-card {
  min-width: 0;
  border: 1px solid #e1e8f2;
  border-radius: 16px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .04);
}

.spark-work-required-action {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: linear-gradient(135deg, #fff7fb 0%, #ffffff 62%, #f7fbff 100%);
}

.spark-work-required-action .spark-soft-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #ffe8f3;
  color: #f72585;
}

.spark-work-required-action strong {
  display: block;
  margin-bottom: 3px;
  color: #172033;
  font-size: .86rem;
  font-weight: 950;
  text-transform: uppercase;
}

.spark-work-required-action p {
  margin: 0;
  color: #334155;
  font-weight: 860;
  overflow-wrap: anywhere;
}

.spark-work-detail-card {
  display: grid;
  padding: 16px 18px;
}

.spark-work-detail-section {
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid #eef3f8;
}

.spark-work-detail-section:first-child {
  border-top: 0;
}

.spark-work-detail-section.full {
  grid-column: 1 / -1;
}

.spark-work-detail-section .spark-soft-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #eef6ff;
  color: #1a73e8;
}

.spark-work-detail-section .spark-soft-icon.tone-purple {
  background: #f1ecff;
  color: #7c3aed;
}

.spark-work-detail-section .spark-soft-icon.tone-green {
  background: #e8fbf3;
  color: #10b981;
}

.spark-work-detail-section .spark-soft-icon.tone-orange {
  background: #fff3e8;
  color: #f97316;
}

.spark-work-detail-section h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.spark-work-detail-row {
  display: grid;
  grid-template-columns: minmax(92px, .64fr) minmax(0, 1fr);
  gap: 12px;
  padding: 5px 0;
}

.spark-work-detail-row span {
  color: #64748b;
  font-weight: 760;
}

.spark-work-detail-row strong,
.spark-work-detail-section p {
  min-width: 0;
  color: #172033;
  font-weight: 820;
  overflow-wrap: anywhere;
}

.spark-work-doc-pills {
  display: grid;
  gap: 7px;
}

.spark-work-doc-pills button,
.spark-work-doc-pills > span {
  min-height: 36px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #e5ebf3;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  font: inherit;
  font-size: .84rem;
  font-weight: 820;
  text-align: left;
}

.spark-work-doc-pills span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spark-work-notes-card {
  padding: 15px 18px;
}

.spark-work-notes-card h3,
.spark-work-related-card h3,
.spark-work-activity-card h3 {
  margin-bottom: 8px;
}

.spark-work-notes-card p,
.spark-work-related-card p,
.spark-work-activity-card p {
  margin: 0;
  color: #53627a;
  font-weight: 760;
}

.spark-work-related-card,
.spark-work-activity-card {
  padding: 15px 18px;
}

.spark-work-related-list,
.spark-work-activity-list {
  display: grid;
  gap: 8px;
}

.spark-work-related-list > span {
  min-width: 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) minmax(0, auto);
  gap: 9px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid #eef3f8;
}

.spark-work-activity-list > span {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 9px 0;
  border-top: 1px solid #eef3f8;
}

.spark-work-related-list > span:first-child,
.spark-work-activity-list > span:first-child {
  border-top: 0;
}

.spark-work-related-list strong,
.spark-work-activity-list strong,
.spark-work-related-list em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.spark-work-activity-list strong,
.spark-work-activity-list em {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.spark-work-related-list em,
.spark-work-activity-list em {
  color: #64748b;
  font-size: .8rem;
  font-style: normal;
  font-weight: 780;
}

.spark-work-activity-list em {
  display: block;
}

.spark-work-part-note {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #d9e7ff;
  border-radius: 12px;
  background: #f1f6ff;
  color: #53627a;
  font-size: .86rem;
  font-weight: 800;
}

.spark-work-part-note .spark-icon {
  color: #1a73e8;
}

.spark-work-action-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.spark-work-detail-shell > .spark-action-row {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
}

.spark-work-select-empty,
.spark-work-empty {
  display: grid;
  place-items: center;
  gap: 7px;
  padding: 28px 16px;
  color: #64748b;
  text-align: center;
}

.spark-work-select-empty .spark-icon,
.spark-work-empty .spark-icon {
  color: #10b981;
}

.spark-work-select-empty strong,
.spark-work-empty strong {
  color: #172033;
}

.spark-work-system-strip {
  margin-top: 2px;
}

body.spark-admin-doc-review-open {
  overflow: hidden;
}

body.spark-admin-doc-review-open .modal[aria-hidden="false"] {
  z-index: 140;
}

.spark-doc-review-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  justify-content: flex-end;
  background: rgba(15, 23, 42, .28);
  backdrop-filter: blur(10px);
}

.spark-doc-review-drawer {
  --spark-doc-review-footer-clearance: 86px;
  width: min(760px, calc(100vw - 28px));
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  border-left: 1px solid #dde7f2;
  background: #f8fafc;
  box-shadow: -28px 0 70px rgba(15, 23, 42, .18);
}

.spark-doc-review-drawer:focus {
  outline: none;
}

.spark-doc-review-drawer:focus-visible {
  outline: 3px solid rgba(247, 37, 133, .32);
  outline-offset: -3px;
}

.spark-doc-review-header {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 20px 22px 6px;
  background: #ffffff;
  border-bottom: 1px solid #edf2f7;
}

.spark-doc-review-topline {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.spark-doc-review-close {
  position: static;
  flex: 0 0 auto;
}

.spark-doc-review-title {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding-right: 0;
}

.spark-doc-review-title h2 {
  margin: 0 0 5px;
  font-size: clamp(1.55rem, 2.3vw, 2.1rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.spark-doc-review-title small {
  display: block;
  min-width: 0;
  color: #53627a;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.spark-doc-review-selected-summary {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 18px;
  padding: 12px 14px;
  border: 1px solid #e1e8f2;
  border-radius: 16px;
  background: #ffffff;
}

.spark-doc-review-selected-summary strong,
.spark-doc-review-selected-summary span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.spark-doc-review-selected-summary span {
  margin-top: 3px;
  color: #64748b;
  font-size: .86rem;
  font-weight: 780;
}

.spark-doc-review-alert {
  margin: 0 18px;
  padding: 10px 12px;
  border-radius: 13px;
  font-size: .9rem;
  font-weight: 850;
}

.spark-doc-review-alert.error {
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #be123c;
}

.spark-doc-review-alert.warning {
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.spark-doc-review-alert.success {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #047857;
}

.spark-doc-review-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(230px, .72fr) minmax(0, 1fr);
  gap: 12px;
  padding: 0 18px 16px;
  overflow: auto;
  overscroll-behavior: contain;
}

.spark-doc-review-list,
.spark-doc-review-main,
.spark-doc-review-preview,
.spark-doc-review-form,
.spark-doc-review-activity {
  min-width: 0;
  border: 1px solid #e1e8f2;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .045);
}

.spark-doc-review-list,
.spark-doc-review-main {
  min-height: 0;
  overflow: auto;
}

.spark-doc-review-list-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #eef3f8;
  backdrop-filter: blur(10px);
}

.spark-doc-review-list-head strong {
  font-size: 1rem;
}

.spark-doc-review-list-head span {
  color: #64748b;
  font-size: .82rem;
  font-weight: 850;
}

.spark-doc-review-list-items {
  display: grid;
  padding: 8px;
}

.spark-doc-review-list-items button {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px 10px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #111827;
  font: inherit;
  text-align: left;
}

.spark-doc-review-list-items button:hover,
.spark-doc-review-list-items button:focus-visible,
.spark-doc-review-list-items button.selected {
  background: #fff2f8;
  outline: 2px solid rgba(247, 37, 133, .18);
}

.spark-doc-review-list-items .spark-status {
  grid-column: 2;
  width: fit-content;
  margin-top: 4px;
}

.spark-doc-review-list-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.spark-doc-review-list-copy strong,
.spark-doc-review-list-copy small,
.spark-doc-review-list-copy em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.spark-doc-review-list-copy small,
.spark-doc-review-list-copy em {
  color: #64748b;
  font-size: .78rem;
  font-style: normal;
  font-weight: 760;
}

.spark-doc-review-main {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 12px;
}

.spark-doc-review-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background:
    radial-gradient(circle at 16% 14%, rgba(247, 37, 133, .08), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.spark-doc-review-preview h3 {
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}

.spark-doc-review-file-name {
  display: block;
  max-width: 100%;
  margin: -1px 0 8px;
  color: #64748b;
  font-size: .82rem;
  font-weight: 780;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spark-doc-review-preview p {
  margin: 0;
  color: #53627a;
  font-weight: 760;
}

.spark-doc-review-form {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.spark-doc-review-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.spark-doc-review-form label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: #334155;
  font-weight: 850;
}

.spark-doc-review-label-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.spark-doc-review-required {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff1f2;
  color: #be123c;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.spark-doc-review-helper {
  margin-top: -2px;
  color: #64748b;
  font-size: .78rem;
  font-weight: 760;
}

.spark-doc-review-helper.is-hidden,
.spark-doc-review-field-error.is-hidden,
.spark-doc-review-action-message.is-hidden {
  display: none;
}

.spark-doc-review-field-error {
  color: #be123c;
  font-size: .78rem;
  font-weight: 850;
}

.spark-doc-review-form input,
.spark-doc-review-form select,
.spark-doc-review-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d6e0ec;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  font: inherit;
  font-weight: 760;
}

.spark-doc-review-form input,
.spark-doc-review-form select {
  min-height: 44px;
  padding: 0 12px;
}

.spark-doc-review-form textarea {
  min-height: 86px;
  padding: 12px;
  resize: vertical;
}

.spark-doc-review-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.spark-doc-review-current > span {
  color: #53627a;
  font-size: .86rem;
  font-weight: 850;
}

.spark-doc-review-activity {
  padding: 16px;
}

.spark-doc-review-activity h3 {
  margin: 0 0 10px;
}

.spark-doc-review-activity > div {
  display: grid;
  gap: 8px;
}

.spark-doc-review-activity span {
  display: grid;
  gap: 2px;
  padding: 8px 0;
  border-top: 1px solid #edf2f7;
}

.spark-doc-review-activity span:first-child {
  border-top: 0;
}

.spark-doc-review-activity small,
.spark-doc-review-activity em,
.spark-doc-review-activity p {
  color: #64748b;
  font-style: normal;
  font-weight: 760;
}

.spark-doc-review-activity strong,
.spark-doc-review-activity em {
  overflow-wrap: anywhere;
}

.spark-doc-review-actions {
  flex: 0 0 auto;
  position: relative;
  z-index: 4;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-height: calc(74px + env(safe-area-inset-bottom));
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid #e1e8f2;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -18px 40px rgba(15, 23, 42, .08);
}

.spark-doc-review-footer-context {
  display: none;
}

.spark-doc-review-action-message {
  grid-column: 1 / -1;
  padding: 8px 10px;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
  font-size: .84rem;
  font-weight: 850;
}

.spark-doc-review-actions .btn {
  min-height: 44px;
  padding-inline: 12px;
}

.spark-doc-review-actions .btn:disabled,
.spark-doc-review-actions .btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .58;
  box-shadow: none;
  filter: saturate(.82);
}

.spark-status.missing-expiration,
.spark-status.needs-replacement,
.spark-status.expired {
  background: #ffe8ef;
  color: #d91f5b;
}

.spark-status.expiring-soon {
  background: #fff7e3;
  color: #c27606;
}

@media (max-width: 820px) {
  .spark-doc-review-overlay {
    justify-content: stretch;
    background: #f8fafc;
    backdrop-filter: none;
  }

  .spark-doc-review-drawer {
    --spark-doc-review-footer-clearance: 214px;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    border-left: 0;
    box-shadow: none;
  }

  .spark-doc-review-header {
    padding: calc(14px + env(safe-area-inset-top)) 16px 10px;
  }

  .spark-doc-review-close {
    display: none;
  }

  .spark-doc-review-title {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    padding-right: 0;
  }

  .spark-doc-review-title h2 {
    font-size: clamp(1.65rem, 8vw, 2.25rem);
  }

  .spark-doc-review-selected-summary,
  .spark-doc-review-alert {
    margin-inline: 14px;
  }

  .spark-doc-review-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 14px calc(var(--spark-doc-review-footer-clearance) + env(safe-area-inset-bottom));
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .spark-doc-review-list,
  .spark-doc-review-main {
    flex: 0 0 auto;
    overflow: visible;
  }

  .spark-doc-review-list {
    position: relative;
    z-index: 2;
    min-height: auto;
    border-radius: 16px;
  }

  .spark-doc-review-main {
    position: relative;
    z-index: 1;
  }

  .spark-doc-review-list-head {
    position: static;
    padding: 12px;
  }

  .spark-doc-review-list-items {
    padding: 6px;
  }

  .spark-doc-review-list-items button {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 11px 9px;
  }

  .spark-doc-review-list-items .spark-status {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .spark-doc-review-main {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .spark-doc-review-preview,
  .spark-doc-review-form,
  .spark-doc-review-activity {
    border-radius: 16px;
  }

  .spark-doc-review-preview {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .spark-doc-review-preview .btn {
    width: 100%;
  }

  .spark-doc-review-form {
    padding: 14px;
  }

  .spark-doc-review-form-grid {
    grid-template-columns: 1fr;
  }

  .spark-doc-review-form input,
  .spark-doc-review-form select,
  .spark-doc-review-form textarea {
    font-size: 16px;
  }

  .spark-doc-review-current {
    align-items: start;
    flex-direction: column;
  }

  .spark-doc-review-activity {
    padding: 14px;
  }

  .spark-doc-review-actions {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 95;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-height: calc(168px + env(safe-area-inset-bottom));
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  }

  .spark-doc-review-footer-context {
    min-width: 0;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid #e1e8f2;
    border-radius: 13px;
    background: #f8fafc;
    color: #334155;
    font-size: .84rem;
    line-height: 1.2;
  }

  .spark-doc-review-footer-context span {
    color: #64748b;
    font-weight: 850;
  }

  .spark-doc-review-footer-context strong {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 950;
  }

  .spark-doc-review-footer-context em {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
    font-style: normal;
    font-size: .76rem;
    font-weight: 900;
    padding: 3px 8px;
  }

  .spark-doc-review-actions .btn {
    min-width: 0;
    min-height: 46px;
    padding-inline: 10px;
    white-space: normal;
  }

  .spark-doc-review-actions .btn:first-child {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  .spark-doc-review-header {
    gap: 10px;
    padding-inline: 14px;
  }

  .spark-doc-review-title {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .spark-doc-review-title .spark-avatar-tile {
    width: 48px;
    height: 48px;
  }

  .spark-doc-review-selected-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 11px 12px;
  }

  .spark-doc-review-body {
    padding-inline: 12px;
    padding-bottom: calc(224px + env(safe-area-inset-bottom));
  }

  .spark-doc-review-list-items button {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .spark-doc-review-list-items .spark-status {
    grid-column: 2;
    grid-row: auto;
    align-self: start;
  }

  .spark-doc-review-actions {
    padding-inline: 12px;
    min-height: calc(178px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 1180px) and (min-width: 1024px) {
  .spark-work-layout {
    grid-template-columns: minmax(360px, .82fr) minmax(0, 1.18fr);
  }

  .spark-work-tabs button {
    padding-inline: 22px;
  }

  .spark-work-row {
    grid-template-columns: 44px minmax(0, 1fr) 22px;
  }

  .spark-work-row-status {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .spark-work-row > .spark-icon:last-child {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 1023px) {
  .spark-admin-work-detail-open .spark-command-app {
    padding-bottom: 0;
  }

  .spark-admin-work-detail-open .spark-command-topbar {
    display: none;
  }

  .spark-admin-work-detail-open .spark-command-content {
    padding-top: 18px;
  }

  .spark-admin-work-detail-open .spark-mobile-admin-nav {
    display: none;
  }

  .spark-work-queue-page {
    gap: 14px;
  }

  .spark-work-queue-head {
    align-items: start;
    flex-direction: column;
  }

  .spark-work-head-actions {
    display: none;
  }

  .spark-work-tabs {
    width: 100%;
    padding-inline: 8px;
    box-sizing: border-box;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  }

  .spark-work-tabs button {
    flex: 0 0 auto;
    min-height: 56px;
    padding-inline: 16px;
  }

  .spark-work-filters {
    padding: 10px;
    border: 1px solid #e1e8f2;
    border-radius: 14px;
    background: rgba(255, 255, 255, .98);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  }

  .spark-work-layout {
    display: block;
  }

  .spark-work-list-card {
    border-radius: 16px;
  }

  .spark-work-row {
    grid-template-columns: 54px minmax(0, 1fr) 104px 22px;
    padding: 16px;
  }

  .spark-work-row-main strong {
    white-space: normal;
  }
}

@media (max-width: 820px) {
  .spark-work-queue-head h1 {
    font-size: clamp(2.45rem, 12vw, 3rem);
  }

  .spark-work-row {
    grid-template-columns: 56px minmax(0, 1fr) auto 18px;
    gap: 12px;
  }

  .spark-work-row .spark-avatar-tile {
    width: 52px;
    height: 52px;
  }

  .spark-work-row-status {
    justify-items: end;
  }

  .spark-work-detail-shell.mobile {
    gap: 10px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  .spark-work-detail-shell.mobile .spark-work-action-bar {
    position: static;
    z-index: 30;
    margin-top: 2px;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    border: 1px solid #e1e8f2;
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
    backdrop-filter: blur(14px);
  }

  .spark-work-detail-shell.mobile .spark-work-detail-hero {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
  }

  .spark-work-detail-shell.mobile .spark-work-detail-hero .spark-avatar-tile {
    width: 54px;
    height: 54px;
  }

  .spark-work-detail-shell.mobile .spark-work-detail-hero h2 {
    margin-bottom: 5px;
    font-size: 1.48rem;
  }

  .spark-work-detail-shell.mobile .spark-work-detail-meta {
    gap: 8px 12px;
    font-size: .8rem;
  }

  .spark-work-detail-shell.mobile .spark-work-detail-card {
    padding: 8px 14px;
    border-radius: 16px;
  }

  .spark-work-detail-shell.mobile .spark-work-detail-section {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 0;
  }

  .spark-work-detail-shell.mobile .spark-work-detail-section .spark-soft-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .spark-work-detail-shell.mobile .spark-work-detail-section h3 {
    margin-bottom: 6px;
  }

  .spark-work-detail-shell.mobile .spark-work-detail-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 5px 0;
    font-size: .9rem;
  }

  .spark-work-detail-shell.mobile .spark-work-detail-row span,
  .spark-work-detail-shell.mobile .spark-work-detail-row strong {
    overflow-wrap: anywhere;
  }

  .spark-work-detail-shell.mobile .spark-work-related-list > span {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .spark-work-detail-shell.mobile .spark-work-activity-list > span {
    grid-template-columns: minmax(0, 1fr);
  }

  .spark-work-detail-shell.mobile .spark-work-related-list em {
    grid-column: 2;
  }

  .spark-work-detail-shell.mobile .spark-work-activity-list em {
    grid-column: auto;
  }

  .spark-work-detail-shell.mobile .spark-work-notes-card {
    padding: 12px 14px;
  }

  .spark-work-detail-shell.mobile .spark-work-part-note {
    min-height: 38px;
    padding: 8px 12px;
    font-size: .8rem;
  }

  .spark-work-detail-shell.mobile .spark-work-doc-pills button,
  .spark-work-detail-shell.mobile .spark-work-doc-pills > span {
    min-height: 40px;
    padding-block: 8px;
  }

  .spark-work-detail-shell.mobile .spark-work-doc-pills span {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 430px) {
  .spark-work-queue-page {
    width: 100%;
  }

  .spark-work-tabs button {
    padding-inline: 14px;
    font-size: .86rem;
  }

  .spark-work-filters button {
    padding-inline: 14px;
  }

  .spark-work-list-title {
    padding-inline: 14px;
  }

  .spark-work-row {
    grid-template-columns: 52px minmax(0, 1fr) 18px;
    padding: 15px 14px;
  }

  .spark-work-row-status {
    grid-column: 2;
    display: flex;
    justify-items: start;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 100%;
  }

  .spark-work-row-status .spark-status,
  .spark-work-row-status small {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .spark-work-row > .spark-icon:last-child {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .spark-work-detail-hero {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .spark-work-detail-hero .spark-avatar-tile {
    width: 58px;
    height: 58px;
  }

  .spark-work-detail-card {
    padding: 10px 16px;
  }

  .spark-work-detail-section {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }

  .spark-work-detail-row {
    grid-template-columns: minmax(78px, .58fr) minmax(0, 1fr);
    gap: 8px;
  }

  .spark-work-action-bar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1023px) and (min-width: 720px) {
  .v2-customer-catalog .catalog-app-grid.quick-buy-grid.product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 719px) {
  .v2-customer-app .catalog-app-page.v2-customer-catalog {
    width: 100%;
    margin-top: 0;
  }



  .v2-customer-catalog .catalog-app-grid.quick-buy-grid.product-grid {
    grid-template-columns: 1fr;
  }

  .v2-customer-catalog .quick-buy-card.product-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}

@media (max-width: 359px) {
  .v2-customer-catalog .quick-buy-card.product-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .v2-customer-catalog .catalog-top-actions {
    grid-template-columns: 1fr;
  }

  .v2-customer-catalog .catalog-sort-control {
    min-width: 0;
    justify-content: space-between;
  }

  .v2-customer-catalog .catalog-sort-control select {
    width: 100%;
    min-width: 0;
  }
}

/* Mobile wholesale catalog hardening: quick-buy V2.1 */
.compact-account-menu {
  position: relative;
  display: none;
  min-width: 0;
}

.compact-account-menu summary {
  list-style: none;
  cursor: pointer;
}

.compact-account-menu summary::-webkit-details-marker {
  display: none;
}

.compact-account-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  display: grid;
  min-width: 180px;
  padding: 8px;
  border: 1px solid var(--v2-line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .16);
}

.compact-account-popover button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--v2-text);
  font-weight: 900;
  text-align: left;
}

.compact-account-popover button:hover,
.compact-account-popover button:focus-visible {
  background: #f8fafc;
}

.v2-customer-catalog .catalog-search-bar,
.v2-customer-catalog .catalog-top-actions,
.v2-customer-catalog .catalog-availability-row,
.v2-customer-catalog .catalog-applied-filters,
.v2-customer-catalog .quick-buy-card,
.v2-customer-catalog .quick-package-row {
  min-width: 0;
  max-width: 100%;
}

.v2-customer-catalog .quick-buy-media {
  background: linear-gradient(135deg, #f8fafc, color-mix(in srgb, var(--product-color, #5b5ff4) 13%, #ffffff));
}

.v2-customer-catalog .quick-buy-media::after {
  display: none;
}

@media (max-width: 767px) {
  body.catalog-filter-open {
    overflow: hidden;
    touch-action: none;
  }

  .v2-customer-app {
    min-width: 0;
    overflow-x: clip;
  }

  .v2-customer-app .v2-app-main {
    min-width: 0;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .compact-customer-topbar.v2-app-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 76px;
    padding: 10px 14px;
  }

  .compact-customer-brand {
    min-width: 44px;
  }

  .compact-customer-store {
    min-width: 0;
    display: grid;
    gap: 3px;
  }

  .compact-customer-store strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .compact-customer-store span {
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .compact-customer-actions.v2-app-actions {
    width: auto;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: end;
    min-width: 0;
  }

  .desktop-account-action {
    display: none;
  }

  .compact-account-menu {
    display: block;
  }

  .account-menu-action.icon-action {
    padding: 0;
    font-size: 0;
  }

  .v2-customer-app .catalog-app-page.v2-customer-catalog {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    gap: 12px;
    padding: 12px 12px calc(112px + env(safe-area-inset-bottom));
  }

  .v2-customer-catalog .catalog-app-head {
    display: block;
    margin: 0;
  }

  .v2-customer-catalog .catalog-app-head h1 {
    margin-bottom: 4px;
    font-size: 30px;
    line-height: 1.08;
  }

  .v2-customer-catalog .catalog-app-head p {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
  }



























  .brand-detail-hero,
  .line-placeholder-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
  }

  .brand-detail-hero h1,
  .line-placeholder-card h1 {
    margin-bottom: 6px;
    font-size: 34px;
    line-height: 1;
  }

  .brand-detail-hero p,
  .line-placeholder-card p {
    font-size: 14px;
    line-height: 1.4;
  }

  .brand-detail-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
    gap: 8px;
  }

  .brand-detail-stats span {
    padding: 9px;
    border-radius: 13px;
    font-size: 11px;
  }

  .brand-detail-stats strong {
    font-size: 18px;
  }

























  .line-detail-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .placeholder-next-step {
    padding: 14px;
    border-radius: 16px;
  }







  .catalog-results-head {
    display: grid;
    align-items: start;
  }

  .catalog-route-bar {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .catalog-route-bar::-webkit-scrollbar {
    display: none;
  }

  .compact-clear {
    width: fit-content;
  }

  .v2-customer-catalog .catalog-search-bar {
    min-height: 50px;
    padding: 0 12px;
    border-radius: 14px;
  }

  .v2-customer-catalog .catalog-search-bar input {
    min-height: 48px;
    font-size: 16px;
  }

  .v2-customer-catalog .catalog-top-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }

  .v2-customer-catalog .desktop-catalog-filters {
    display: none;
  }

  .v2-customer-catalog .spark-filter-button,
  .v2-customer-catalog .catalog-sort-control {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    justify-content: center;
    border-radius: 13px;
    font-size: 14px;
  }

  .v2-customer-catalog .catalog-sort-control {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 0 10px;
  }

  .v2-customer-catalog .catalog-sort-control span {
    white-space: nowrap;
  }

  .v2-customer-catalog .catalog-sort-control select {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    font-size: 14px;
    text-overflow: ellipsis;
  }

  .v2-customer-catalog .catalog-applied-filters,
  .v2-customer-catalog .catalog-availability-row {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 2px 5px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .v2-customer-catalog .catalog-applied-filters::-webkit-scrollbar,
  .v2-customer-catalog .catalog-availability-row::-webkit-scrollbar {
    display: none;
  }

  .v2-customer-catalog .catalog-applied-filters > *,
  .v2-customer-catalog .catalog-availability-row .chip {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .v2-customer-catalog .catalog-top {
    display: block;
    margin: -2px 0 0;
  }

  .v2-customer-catalog .catalog-top strong {
    font-size: 14px;
  }

  .v2-customer-catalog .catalog-top span {
    display: none;
  }

  .v2-customer-catalog .catalog-app-grid.quick-buy-grid.product-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .v2-customer-catalog .quick-buy-card.product-card {
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: start;
    border-radius: 15px;
  }

  .v2-customer-catalog .quick-buy-media {
    align-self: start;
    width: 96px;
    height: 104px;
    min-height: 104px;
    padding: 8px;
    border-right: 1px solid #edf2f7;
    border-radius: 14px 0 0 14px;
    background: #f8fafc;
  }

  .v2-customer-catalog .quick-buy-media .product-image {
    width: 82px;
    max-width: 82px;
    height: 88px;
    max-height: 88px;
    object-fit: contain;
  }

  .v2-customer-catalog .quick-buy-body {
    grid-template-rows: auto;
    gap: 7px;
    padding: 10px;
  }

  .v2-customer-catalog .quick-buy-title-row {
    gap: 6px;
  }

  .v2-customer-catalog .quick-buy-title-row h3 {
    font-size: 15px;
    line-height: 1.18;
  }

  .v2-customer-catalog .quick-buy-meta,
  .v2-customer-catalog .quick-buy-sku {
    overflow-wrap: anywhere;
    font-size: 11px;
    line-height: 1.25;
  }

  .v2-customer-catalog .quick-buy-sku {
    white-space: nowrap;
  }

  .v2-customer-catalog .quick-package-list {
    gap: 6px;
  }

  .v2-customer-catalog .quick-package-row {
    grid-template-columns: minmax(48px, 1fr) auto;
    gap: 4px 7px;
    min-height: 36px;
    padding: 7px 8px;
    border-radius: 11px;
    font-size: 12px;
  }

  .v2-customer-catalog .quick-package-row small {
    grid-column: 1 / -1;
    justify-self: start;
    white-space: normal;
  }

  .v2-customer-catalog .quick-buy-controls {
    grid-template-columns: minmax(0, 1fr) 74px;
    gap: 7px;
  }

  .v2-customer-catalog .five-pack-control-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .v2-customer-catalog .five-pack-stepper {
    width: 100%;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .v2-customer-catalog .quick-buy-controls select,
  .v2-customer-catalog .quick-buy-controls input {
    min-height: 44px;
  }

  .v2-customer-catalog .quick-buy-actions {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .v2-customer-catalog .quick-buy-actions .btn {
    min-height: 44px;
    white-space: normal;
  }



  .flavor-family-row {
    margin-inline: -12px;
    padding-inline: 18px;
    scroll-padding-inline: 18px;
  }



















  .five-pack-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 8px;
    padding: 8px;
    border-radius: 12px;
  }

  .five-pack-row small {
    grid-column: 1 / -1;
  }





  .toast-stack {
    right: 12px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    width: min(360px, calc(100vw - 24px));
    z-index: 140;
  }

  .toast-stack .toast {
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.35;
  }

  .catalog-filter-sheet {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: block;
    min-height: 100dvh;
    pointer-events: none;
  }

  .catalog-filter-sheet[aria-hidden="false"] {
    pointer-events: auto;
  }

  .catalog-filter-sheet .sheet-scrim {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, .34);
    opacity: 0;
    transition: opacity .2s ease;
  }

  .catalog-filter-sheet[aria-hidden="false"] .sheet-scrim {
    opacity: 1;
  }

  .catalog-filter-sheet .sheet-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    gap: 14px;
    max-height: calc(100dvh - 28px);
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    background: #ffffff;
    box-shadow: 0 -24px 80px rgba(15, 23, 42, .22);
    transform: translateY(105%);
    transition: transform .24s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .catalog-filter-sheet[aria-hidden="false"] .sheet-panel {
    transform: translateY(0);
  }

  .catalog-filter-sheet .sheet-actions {
    bottom: calc(env(safe-area-inset-bottom) * -1);
  }

  .v2-bottom-nav {
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  .compact-customer-store strong {
    font-size: 14px;
  }

  .compact-customer-store span {
    display: block;
    width: 100%;
  }

  .compact-customer-actions .icon-action {
    width: 42px;
    min-width: 42px;
    height: 42px;
  }
}

@media (max-width: 359px) {












  .brand-detail-stats {
    grid-template-columns: 1fr;
  }



  .v2-customer-catalog .quick-buy-card.product-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .v2-customer-catalog .quick-buy-media {
    width: 88px;
  }

  .v2-customer-catalog .quick-buy-media .product-image {
    width: 74px;
    max-width: 74px;
  }
}

.compact-customer-topbar .logo-badge {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 13px;
  font-size: 16px;
}

.compact-account-menu .account-menu-action::before {
  content: none;
  display: none;
}

.compact-account-menu .account-menu-action svg,
.compact-customer-actions .icon-action svg {
  width: 20px;
  height: 20px;
  display: block;
}

.compact-customer-actions .icon-action {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 14px;
}

.v2-customer-catalog .quick-buy-media {
  overflow: hidden;
  isolation: isolate;
}

.v2-customer-catalog .quick-buy-media .product-image {
  display: block;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .v2-customer-catalog .catalog-app-grid.quick-buy-grid.product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .v2-customer-catalog .quick-buy-card.product-card {
    grid-template-columns: 116px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: start;
    min-height: 0;
    border-radius: 16px;
  }

  .v2-customer-catalog .quick-buy-media {
    align-self: stretch;
    width: 116px;
    height: 100%;
    min-height: 136px;
    padding: 10px;
    border-right: 1px solid #edf2f7;
    border-radius: 15px 0 0 15px;
    background: #f8fafc;
  }

  .v2-customer-catalog .quick-buy-media .product-image {
    width: 96px;
    max-width: 96px;
    height: 112px;
    max-height: 112px;
    object-fit: contain;
  }

  .v2-customer-catalog .quick-buy-body {
    grid-template-rows: auto;
    padding: 14px;
  }

  .v2-customer-catalog .quick-buy-actions {
    grid-template-columns: minmax(120px, .7fr) minmax(150px, 1fr);
  }
}

@media (max-width: 767px) {
  .compact-customer-topbar .logo-badge {
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 15px;
  }

  .compact-customer-actions .icon-action {
    width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: 13px;
  }
}

@media (max-width: 760px) {
  .btn.small {
    min-height: 44px;
  }


}

/* Customer commerce app polish: Amazon-inspired scan/buy flow without copying brand UI */
button.quick-buy-media {
  width: 100%;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

button.quick-buy-media:focus-visible {
  outline: 3px solid rgba(47, 128, 237, .28);
  outline-offset: -3px;
}

body.modal-open main,
body.modal-open .site-header,
body.modal-open .mobile-dropdown {
  pointer-events: none;
}

#authModal[aria-hidden="false"],
#productModal[aria-hidden="false"] {
  z-index: 180;
  pointer-events: auto;
}

#authModal .modal-panel,
#productModal .modal-panel {
  pointer-events: auto;
}

.product-panel {
  padding: 0;
  overflow: hidden;
}

#productContent {
  max-height: inherit;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.product-detail-sheet {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  grid-template-areas:
    "media header"
    "media body"
    "media footer";
  min-height: min(720px, calc(100vh - 34px));
  background: #ffffff;
}

.product-detail-header {
  grid-area: header;
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 34px 64px 12px 26px;
}

.product-detail-header h2 {
  margin: 0;
  color: var(--v2-text);
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.04;
  letter-spacing: 0;
}

.product-detail-media {
  grid-area: media;
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 24px;
  background:
    radial-gradient(circle at 16% 14%, rgba(255, 255, 255, .92), transparent 28%),
    linear-gradient(145deg, color-mix(in srgb, var(--product-color, #5b5ff4) 18%, #f8fafc), #ffffff 50%, color-mix(in srgb, var(--product-color, #f72585) 12%, #f8fafc));
}

.product-detail-media .product-image {
  width: min(100%, 300px);
  max-height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 24px 34px rgba(15, 23, 42, .16));
}

.product-detail-body {
  grid-area: body;
  min-width: 0;
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 0 26px 18px;
}

.product-detail-buybox,
.product-detail-facts,
.product-detail-flavors,
.product-detail-note {
  min-width: 0;
  border: 1px solid var(--v2-line);
  border-radius: 18px;
  background: #ffffff;
}

.product-detail-buybox {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(135deg, #ffffff, #fbfdff);
}

.product-detail-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, auto);
  gap: 12px;
  align-items: end;
}

.product-detail-price-row div,
.product-detail-qty {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.product-detail-price-row span,
.product-detail-qty > span,
.product-detail-facts span {
  color: #667085;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.product-detail-price-row strong {
  color: var(--v2-text);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1;
}

.product-detail-price-row em {
  justify-self: end;
  color: #047857;
  font-style: normal;
  font-weight: 950;
  text-align: right;
}

.product-detail-qty {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.product-detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.product-detail-facts div {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border-bottom: 1px solid #edf2f7;
}

.product-detail-facts div:nth-child(odd) {
  border-right: 1px solid #edf2f7;
}

.product-detail-facts strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--v2-text);
  font-size: 14px;
  line-height: 1.25;
}

.product-detail-flavors {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.product-detail-flavors h3 {
  margin: 0;
  font-size: 18px;
}

.product-detail-note {
  margin: 0;
  padding: 14px 16px;
  color: #475467;
  font-weight: 750;
  line-height: 1.55;
}

.product-detail-footer {
  grid-area: footer;
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(130px, .8fr) minmax(170px, 1.2fr);
  gap: 10px;
  padding: 14px 26px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--v2-line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(18px);
}

.product-detail-footer .btn {
  min-height: 48px;
}

.cart-mobile-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #ffe58a;
  border-radius: 18px;
  background: linear-gradient(135deg, #fffbea, #ffffff);
  box-shadow: 0 14px 32px rgba(251, 191, 36, .12);
}

.cart-mobile-checkout div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cart-mobile-checkout span,
.cart-mobile-checkout small {
  color: #667085;
  font-weight: 850;
}

.cart-mobile-checkout strong {
  color: var(--v2-text);
  font-size: 30px;
  line-height: 1;
}

@media (max-width: 980px) {
  .customer-cart-summary {
    order: -1;
  }
}

@media (max-width: 767px) {
  .v2-customer-catalog .quick-buy-card.product-card {
    overflow: hidden;
    border-color: #e8eef6;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .055);
  }

  .v2-customer-catalog .quick-buy-media {
    border-radius: 17px 0 0 17px;
  }

  .v2-customer-catalog .quick-buy-title-row {
    grid-template-columns: 1fr;
  }

  .v2-customer-catalog .quick-buy-title-row .availability-badge {
    min-height: 22px;
    padding-inline: 8px;
    font-size: 10px;
  }

  .v2-customer-catalog .quick-buy-actions .btn.primary {
    min-height: 46px;
  }

  #productModal.modal[aria-hidden="false"] {
    align-items: end;
    padding: 0;
  }

  #productModal .product-panel {
    width: 100%;
    max-height: calc(100dvh - 42px);
    border-radius: 26px 26px 0 0;
  }

  #productModal .modal-close {
    top: 14px;
    right: 14px;
    z-index: 8;
    width: 48px;
    height: 48px;
    border: 1px solid var(--v2-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
  }

  .product-detail-sheet {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "media"
      "body"
      "footer";
    min-height: 0;
  }

  .product-detail-header {
    padding: 20px 76px 12px 18px;
  }

  .product-detail-header h2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 22px;
    line-height: 1.12;
  }

  .product-detail-media {
    min-height: 260px;
    padding: 16px 18px;
  }

  .product-detail-media .product-image {
    width: min(82vw, 310px);
    max-height: 250px;
  }

  .product-detail-body {
    gap: 12px;
    padding: 0 16px 14px;
  }

  .product-detail-price-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .product-detail-price-row em {
    justify-self: start;
    text-align: left;
  }

  .product-detail-qty {
    grid-template-columns: 1fr;
  }

  .product-detail-qty .five-pack-stepper {
    width: 100%;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
  }

  .product-detail-facts {
    grid-template-columns: 1fr;
  }

  .product-detail-facts div,
  .product-detail-facts div:nth-child(odd) {
    border-right: 0;
  }

  .product-detail-footer {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }

  .product-detail-footer .btn {
    min-height: 52px;
  }

  .cart-drawer-body {
    display: grid;
    align-content: start;
    gap: 12px;
  }

  .cart-mobile-checkout {
    position: sticky;
    top: 0;
    z-index: 3;
    grid-template-columns: 1fr;
    margin-top: -4px;
  }

  .cart-mobile-checkout strong {
    font-size: 28px;
  }

  .cart-line {
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .045);
  }

  .cart-line-controls {
    gap: 8px;
  }

  .cart-line-controls > strong {
    font-size: 18px;
  }

  .customer-cart-summary {
    background: linear-gradient(135deg, #fffbea, #ffffff);
    border-color: #ffe58a;
  }
}

@media (max-width: 359px) {
  .product-detail-footer {
    grid-template-columns: 1fr;
  }
}

/* Customer home refresh: focused buyer dashboard without duplicate order history */
.customer-home-v2 {
  gap: 22px;
}

.customer-home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: clamp(20px, 4vw, 42px);
  align-items: center;
  overflow: hidden;
  padding: clamp(24px, 4vw, 46px);
  color: #ffffff;
  border-color: rgba(255, 255, 255, .12);
  background:
    linear-gradient(135deg, rgba(11, 18, 32, .98), rgba(42, 27, 92, .96) 54%, rgba(136, 33, 112, .94)),
    linear-gradient(90deg, rgba(91, 95, 244, .26), rgba(247, 37, 133, .22));
  box-shadow: 0 30px 80px rgba(15, 23, 42, .16);
}

.customer-home-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -42% 40%;
  height: 72%;
  background:
    linear-gradient(90deg, rgba(91, 95, 244, .28), rgba(247, 37, 133, .26), rgba(255, 113, 91, .2));
  transform: skewY(-7deg);
  opacity: .78;
  pointer-events: none;
}

.customer-home-hero > * {
  position: relative;
  z-index: 1;
}

.customer-home-hero .eyebrow {
  color: rgba(255, 255, 255, .72);
}

.customer-home-hero h2 {
  max-width: 760px;
  margin: 10px 0 14px;
  font-size: clamp(2.3rem, 5vw, 5.2rem);
  line-height: .96;
  color: #ffffff;
}

.customer-home-hero p {
  max-width: 650px;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.55;
}

.customer-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.customer-home-actions .btn.ghost {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .24);
  color: #ffffff;
}

.customer-home-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.customer-home-bullets span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .86);
  font-weight: 800;
  font-size: .84rem;
}

.customer-home-bullets .spark-icon {
  width: 16px;
  height: 16px;
  color: #7ef0bd;
}

.customer-home-visual {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.customer-shelf-card {
  display: grid;
  gap: 4px;
  max-width: 360px;
  margin-left: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, .14);
}

.customer-shelf-card.primary-shelf {
  margin-right: 46px;
}

.customer-shelf-card.accent-shelf {
  margin-right: 22px;
}

.customer-shelf-card span,
.customer-shelf-card small {
  color: rgba(255, 255, 255, .74);
  font-weight: 850;
}

.customer-shelf-card strong {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.customer-home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.customer-home-stats .customer-stat-card {
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 4px 14px;
}

.customer-home-stats .customer-soft-icon {
  grid-row: span 3;
}

.customer-home-stats .customer-stat-card strong {
  overflow-wrap: anywhere;
  font-size: clamp(1.35rem, 2.6vw, 2.2rem);
}

.customer-home-quick-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.customer-home-quick-grid .customer-action-card {
  min-height: 132px;
  background:
    linear-gradient(180deg, #ffffff, #fbfdff);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.customer-home-quick-grid .customer-action-card:hover,
.customer-home-quick-grid .customer-action-card:focus-visible {
  border-color: rgba(247, 37, 133, .32);
  box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
  transform: translateY(-2px);
}

.customer-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr) minmax(260px, .9fr);
  gap: 16px;
  align-items: stretch;
}

.customer-home-grid .customer-license-card,
.customer-account-card,
.customer-support-card {
  min-width: 0;
}

.customer-home-grid .customer-license-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
}

.customer-home-grid .customer-license-card h3 {
  margin: 4px 0 8px;
}

.customer-support-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.customer-support-card p {
  color: #5d6a80;
  line-height: 1.5;
}

@media (max-width: 1180px) {
  .customer-home-hero,
  .customer-home-grid {
    grid-template-columns: 1fr;
  }

  .customer-home-visual {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .customer-shelf-card,
  .customer-shelf-card.primary-shelf,
  .customer-shelf-card.accent-shelf {
    margin: 0;
    max-width: none;
  }

  .customer-home-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .customer-home-v2 {
    gap: 16px;
  }

  .customer-home-hero {
    padding: 24px 18px;
  }

  .customer-home-hero h2 {
    font-size: clamp(2.1rem, 12vw, 3.4rem);
  }

  .customer-home-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .customer-home-visual,
  .customer-home-stats,
  .customer-home-quick-grid {
    grid-template-columns: 1fr;
  }

  .customer-home-bullets {
    display: grid;
  }

  .customer-home-stats .customer-stat-card {
    min-height: 104px;
  }

  .customer-home-grid .customer-license-card {
    grid-template-columns: 1fr;
  }

  .customer-home-grid .customer-license-card .status-pill {
    justify-self: start;
  }
}

/* 2026-07-06 customer catalog card polish: keep package/quantity rows readable on laptop and desktop. */
@media (min-width: 1024px) {
  .v2-customer-catalog .catalog-app-grid.quick-buy-grid.product-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: 18px;
  }

  .v2-customer-catalog .quick-buy-card.product-card {
    min-width: 0;
  }

  .v2-customer-catalog .quick-buy-body {
    gap: 11px;
    padding: 15px 16px 16px;
  }

  .v2-customer-catalog .quick-package-row {
    grid-template-columns: max-content minmax(78px, max-content) minmax(112px, 1fr);
    gap: 10px;
    min-height: 54px;
    padding: 10px 12px;
  }

  .v2-customer-catalog .quick-package-row span,
  .v2-customer-catalog .quick-package-row strong,
  .v2-customer-catalog .quick-package-row small {
    min-width: 0;
    line-height: 1.18;
  }

  .v2-customer-catalog .quick-package-row span {
    white-space: nowrap;
  }

  .v2-customer-catalog .quick-package-row strong {
    justify-self: end;
    font-size: 18px;
  }

  .v2-customer-catalog .quick-package-row small {
    justify-self: end;
    max-width: 132px;
    overflow: visible;
    text-align: right;
    white-space: normal;
  }

  .v2-customer-catalog .five-pack-control-row {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 12px;
    align-items: center;
  }

  .v2-customer-catalog .five-pack-control-row > span {
    min-width: 0;
    line-height: 1.25;
  }

  .v2-customer-catalog .five-pack-stepper {
    width: 140px;
    max-width: 100%;
    grid-template-columns: 44px minmax(50px, 52px) 44px;
  }

  .v2-customer-catalog .quick-buy-actions {
    grid-template-columns: minmax(104px, .78fr) minmax(142px, 1fr);
    gap: 10px;
  }
}

@media (min-width: 1024px) and (max-width: 1320px) {
  .v2-customer-catalog .catalog-app-grid.quick-buy-grid.product-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  }

  .v2-customer-catalog .quick-package-row {
    grid-template-columns: max-content minmax(74px, max-content) minmax(0, 1fr);
  }

  .v2-customer-catalog .quick-package-row small {
    max-width: 116px;
  }
}

/* Customer Cart V2 Part 1.1: mobile cart behaves like a full-screen shopping cart. */
html.cart-drawer-open,
body.cart-drawer-open {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

.cart-drawer-body,
.cart-line-list {
  overscroll-behavior: contain;
}

@media (max-width: 767px) {
  .cart-drawer {
    inset: 0;
    right: auto;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    border-left: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
    transform: translateX(102%);
  }

  .cart-drawer[aria-hidden="false"] {
    transform: translateX(0);
  }

  .cart-drawer .drawer-header {
    min-height: 84px;
    padding: calc(16px + env(safe-area-inset-top)) 18px 14px;
    background: #ffffff;
  }

  .cart-drawer .drawer-header h2 {
    font-size: clamp(26px, 8vw, 34px);
    line-height: 1;
  }

  .cart-drawer .drawer-header .icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .cart-drawer-body {
    padding: 14px 14px 18px;
    background: #f6f8fb;
  }

  .cart-stepper {
    position: sticky;
    top: 0;
    z-index: 4;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: -14px -14px 14px;
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px);
  }

  .cart-stepper button {
    min-height: 52px;
    padding: 10px;
  }

  .cart-stepper button strong {
    font-size: 13px;
  }

  .cart-mobile-checkout {
    position: static;
    grid-template-columns: 1fr;
    margin: 0;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
  }

  .cart-line-list {
    display: grid;
    gap: 12px;
  }

  .cart-line {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .055);
  }

  .cart-line > img,
  .cart-line img {
    width: 82px;
    height: 104px;
    border-radius: 16px;
  }

  .cart-line-controls {
    grid-column: 1 / -1;
    grid-template-columns: minmax(128px, auto) minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding-top: 4px;
  }

  .qty-control {
    grid-template-columns: 44px 48px 44px;
    border-radius: 999px;
  }

  .qty-control button,
  .qty-control input {
    min-height: 44px;
  }

  .cart-line-controls > strong {
    justify-self: end;
    font-size: 18px;
  }

  .cart-remove {
    grid-column: auto;
    justify-self: end;
    min-height: 44px;
    padding-inline: 8px;
  }

  .cart-drawer .cart-summary {
    margin-top: 12px;
    border-radius: 20px;
    background: #ffffff;
  }

  .cart-summary > div {
    align-items: flex-start;
    flex-direction: row;
  }

  .cart-drawer-footer {
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .98);
  }

  .cart-footer-actions.two,
  .cart-footer-actions.three {
    grid-template-columns: 1fr;
  }

  .cart-footer-actions .btn {
    min-height: 50px;
  }
}

@media (max-width: 380px) {
  .cart-line {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .cart-line > img,
  .cart-line img {
    width: 72px;
    height: 96px;
  }

  .cart-line-controls {
    grid-template-columns: 1fr auto;
  }

  .cart-remove {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* 2026-07-06 targeted polish: modal spacing, cart duplication, and auth links. */
@media (min-width: 768px) {
  #productModal .product-panel {
    width: min(1040px, calc(100vw - 48px));
    max-height: min(760px, calc(100dvh - 36px));
  }

  #productModal .product-detail-sheet {
    grid-template-columns: minmax(300px, 430px) minmax(360px, 440px);
    min-height: min(700px, calc(100dvh - 36px));
  }

  #productModal .product-detail-header {
    padding: 30px 76px 12px 32px;
  }

  #productModal .product-detail-body {
    gap: 16px;
    padding: 0 32px 20px;
  }

  #productModal .product-detail-buybox {
    gap: 16px;
    padding: 18px 20px;
  }

  #productModal .product-detail-price-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
  }

  #productModal .product-detail-price-row strong {
    font-size: clamp(32px, 3vw, 42px);
  }

  #productModal .product-detail-price-row em {
    justify-self: start;
    max-width: 100%;
    color: #047857;
    line-height: 1.22;
    text-align: left;
    overflow-wrap: anywhere;
  }

  #productModal .product-detail-qty {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 12px;
  }

  #productModal .product-detail-qty .five-pack-stepper {
    width: 178px;
    grid-template-columns: 50px 78px 50px;
  }

  #productModal .product-detail-footer {
    grid-template-columns: minmax(140px, .8fr) minmax(190px, 1.2fr);
    padding-inline: 32px;
  }
}

@media (min-width: 768px) and (max-width: 1080px) {
  #productModal .product-panel {
    width: min(960px, calc(100vw - 32px));
  }

  #productModal .product-detail-sheet {
    grid-template-columns: minmax(280px, 390px) minmax(340px, 1fr);
  }
}

#productModal .admin-doc-preview {
  gap: 18px;
  padding: clamp(20px, 2.4vw, 30px);
}

#productModal .admin-doc-preview-head {
  min-width: 0;
  padding-right: 58px;
}

#productModal .admin-doc-preview-head h2 {
  margin: 0 0 8px;
  color: var(--v2-text);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
}

#productModal .admin-doc-frame {
  min-height: 0;
  height: min(58vh, 560px);
  border-radius: 18px;
}

#productModal .admin-doc-frame img,
#productModal .admin-doc-frame iframe {
  height: 100%;
}

.v2-auth-links {
  align-items: center;
  gap: 16px;
}

.v2-auth-links .link-button {
  min-height: auto;
  padding: 4px 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  color: #1d4ed8;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
  box-shadow: none;
}

.v2-auth-links .link-button:hover,
.v2-auth-links .link-button:focus-visible {
  color: #f72585;
  outline: 2px solid rgba(247, 37, 133, .18);
  outline-offset: 4px;
}

@media (max-width: 767px) {
  #productModal .admin-doc-preview {
    padding: 18px 16px calc(20px + env(safe-area-inset-bottom));
  }

  #productModal .admin-doc-preview-head {
    padding-right: 58px;
  }

  #productModal .admin-doc-preview-head h2 {
    font-size: clamp(26px, 9vw, 34px);
  }

  #productModal .admin-doc-frame {
    height: min(52vh, 460px);
  }

  .cart-mobile-checkout .cart-summary-review-action {
    display: none;
  }
}


/* 2026-07-08 catalog image clarity: slightly larger product/flavor visuals without changing buying logic. */
.v2-customer-catalog .quick-buy-media {
  min-height: 172px;
}

.v2-customer-catalog .quick-buy-media .product-image {
  max-width: 92%;
  max-height: 150px;
}


@media (min-width: 768px) and (max-width: 1023px) {
  .v2-customer-catalog .quick-buy-media {
    width: 136px;
    min-height: 154px;
  }

  .v2-customer-catalog .quick-buy-media .product-image {
    width: 112px;
    max-width: 112px;
    height: 130px;
    max-height: 130px;
  }
}

@media (max-width: 767px) {
  .v2-customer-catalog .quick-buy-card.product-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .v2-customer-catalog .quick-buy-media {
    width: 112px;
    min-height: 128px;
    height: 128px;
    padding: 9px;
  }

  .v2-customer-catalog .quick-buy-media .product-image {
    width: 96px;
    max-width: 96px;
    height: 108px;
    max-height: 108px;
  }






}

@media (max-width: 359px) {
  .v2-customer-catalog .quick-buy-card.product-card {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .v2-customer-catalog .quick-buy-media {
    width: 100px;
    min-height: 118px;
    height: 118px;
  }

  .v2-customer-catalog .quick-buy-media .product-image {
    width: 88px;
    max-width: 88px;
    height: 100px;
    max-height: 100px;
  }






}


/* 2026-07-08 iPhone catalog repair: prevent skinny brand cards and black clipped flavor wells. */
@media (max-width: 767px) {
  .v2-brands-page .v2-brand-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    overflow: visible;
    padding: 0 0 14px;
    scroll-snap-type: none;
  }

  .v2-brands-page .mock-brand-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto;
    width: 100%;
    min-width: 0;
    min-height: 128px;
    border-radius: 20px;
    scroll-snap-align: unset;
  }

  .v2-brands-page .mock-brand-image {
    width: 112px;
    height: 100%;
    min-height: 128px;
    border-radius: 20px 0 0 20px;
  }

  .v2-brands-page .mock-brand-image img {
    min-height: 0;
    height: 100%;
    object-fit: cover;
  }

  .v2-brands-page .mock-brand-caption {
    min-width: 0;
    align-content: center;
    gap: 6px;
    padding: 15px 16px;
  }

  .v2-brands-page .mock-brand-caption strong {
    font-size: 19px;
    line-height: 1.08;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .v2-brands-page .mock-brand-caption small {
    font-size: 12.5px;
    line-height: 1.22;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .v2-home .v2-top-brands-row .mock-brand-card {
    flex: 0 0 min(76vw, 286px);
    min-width: 236px;
  }

  .flavor-family-row {
    margin-inline: 0;
    padding-inline: 0;
    scroll-padding-inline: 0;
    background: transparent;
    mask-image: none;
    -webkit-mask-image: none;
  }

























  .five-pack-row {
    grid-template-columns: minmax(62px, auto) auto minmax(0, 1fr);
    align-items: center;
    gap: 4px 8px;
    padding: 10px;
    min-width: 0;
  }

  .five-pack-row small {
    grid-column: auto;
    justify-self: end;
    min-width: 0;
    text-align: right;
    overflow-wrap: normal;
  }


}

@media (max-width: 359px) {
  .v2-brands-page .mock-brand-card {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 118px;
  }

  .v2-brands-page .mock-brand-image {
    width: 96px;
    min-height: 118px;
  }

  .v2-home .v2-top-brands-row .mock-brand-card {
    flex-basis: 82vw;
    min-width: 222px;
  }











  .five-pack-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .five-pack-row small {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }
}

/* Customer catalog V3 guided flow */
.catalog-flow-v3 {
  --flow-pink: #f72585;
  --flow-ink: #0f172a;
  --flow-muted: #64748b;
  --flow-line: #e1e8f2;
  --flow-soft: #f5f8fc;
  --flow-green: #06a35b;
  --flow-orange: #f97316;
  --flow-red: #dc2626;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: clamp(16px, 4vw, 28px) clamp(14px, 4vw, 28px) calc(126px + env(safe-area-inset-bottom));
  color: var(--flow-ink);
  container-type: inline-size;
}

.catalog-flow-v3 *,
.catalog-flow-v3 *::before,
.catalog-flow-v3 *::after {
  box-sizing: border-box;
  min-width: 0;
}

.catalog-flow-v3 a {
  color: inherit;
  text-decoration: none;
}

.catalog-flow-title-row,
.catalog-flow-section-head,
.catalog-flow-sku-table-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.catalog-flow-title-row {
  margin-bottom: 14px;
}

.catalog-flow-title-row h1,
.catalog-flow-section-head h2,
.catalog-flow-line-hero h1,
.catalog-flow-summary-copy h1,
.catalog-flow-detail-panel h1 {
  margin: 0;
  color: var(--flow-ink);
  letter-spacing: 0;
}

.catalog-flow-title-row h1 {
  font-size: clamp(22px, 6vw, 34px);
  line-height: 1.05;
}

.catalog-flow-title-row p,
.catalog-flow-section-head span,
.catalog-flow-summary-copy span,
.catalog-flow-line-hero p {
  margin: 4px 0 0;
  color: var(--flow-muted);
  font-weight: 800;
}

.catalog-flow-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 900;
  color: #64748b;
}

.catalog-flow-breadcrumb a {
  color: var(--flow-pink);
}

.catalog-flow-breadcrumb > * + *::before {
  content: "/";
  margin-right: 8px;
  color: #cbd5e1;
}

.catalog-flow-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 10px;
  margin: 0 0 18px;
}

.catalog-flow-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--flow-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.catalog-flow-search svg,
.catalog-flow-filter-btn svg,
.catalog-flow-chevron svg,
.catalog-flow-fact svg,
.catalog-flow-pricing-info svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.catalog-flow-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--flow-ink);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
}

.catalog-flow-search input::placeholder {
  color: #94a3b8;
}

.catalog-flow-filter-btn,
.catalog-flow-link,
.catalog-flow-sort-btn {
  min-height: 48px;
  border: 1px solid var(--flow-line);
  border-radius: 16px;
  background: #fff;
  color: var(--flow-ink);
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  cursor: pointer;
}

.catalog-flow-link {
  min-height: 38px;
  padding: 0 14px;
}

.catalog-flow-sort-btn {
  min-height: 40px;
  padding: 0 14px;
  color: #334155;
  font-size: 13px;
  white-space: nowrap;
}

.catalog-flow-section {
  margin-top: 10px;
}

.catalog-flow-sku-page,
.catalog-flow-product-detail {
  padding-bottom: calc(132px + env(safe-area-inset-bottom));
}

.catalog-flow-section-head {
  margin: 0 0 12px;
}

.catalog-flow-section-head h2 {
  font-size: clamp(18px, 5vw, 24px);
  line-height: 1.1;
}

.catalog-flow-brand-list,
.catalog-flow-line-list,
.catalog-flow-sku-list {
  display: grid;
  gap: 12px;
}

.catalog-flow-brand-card,
.catalog-flow-line-card,
.catalog-flow-sku-row {
  position: relative;
  display: grid;
  align-items: center;
  gap: 14px;
  width: 100%;
  border: 1px solid var(--flow-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.catalog-flow-brand-card:hover,
.catalog-flow-line-card:hover,
.catalog-flow-sku-row:hover,
.catalog-flow-brand-card:focus-visible,
.catalog-flow-line-card:focus-visible,
.catalog-flow-sku-row:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(247, 37, 133, 0.35);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
  outline: none;
}

.catalog-flow-brand-card {
  grid-template-columns: 122px minmax(0, 1fr) 30px;
  min-height: 132px;
  padding: 12px 12px 12px 12px;
}

.catalog-flow-brand-media,
.catalog-flow-line-media,
.catalog-flow-sku-media,
.catalog-flow-summary-media,
.catalog-flow-gallery-main,
.catalog-flow-thumbs img {
  display: grid;
  place-items: center;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.9) 0 17%, transparent 18%),
    linear-gradient(135deg, #fbe7f3, #eef7ff 52%, #ecfdf5);
}

.catalog-flow-brand-media {
  width: 122px;
  height: 108px;
}

.catalog-flow-brand-media img,
.catalog-flow-line-media img,
.catalog-flow-sku-media img,
.catalog-flow-summary-media img,
.catalog-flow-gallery-main img,
.catalog-flow-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.catalog-flow-brand-content,
.catalog-flow-line-body,
.catalog-flow-sku-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.catalog-flow-brand-content strong,
.catalog-flow-line-body strong,
.catalog-flow-sku-main strong {
  font-size: 18px;
  line-height: 1.08;
  color: var(--flow-ink);
  overflow-wrap: anywhere;
}

.catalog-flow-brand-content small,
.catalog-flow-line-body small,
.catalog-flow-sku-main small,
.catalog-flow-sku-main em {
  color: var(--flow-muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  font-style: normal;
  overflow-wrap: anywhere;
}

.catalog-flow-brand-content em {
  color: var(--flow-orange);
  font-style: normal;
  font-weight: 950;
  font-size: 12px;
}

.catalog-flow-chevron {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--flow-pink);
  background: rgba(247, 37, 133, 0.09);
}

.catalog-flow-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  max-width: 100%;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  white-space: normal;
}

.catalog-flow-badge.in {
  color: #047857;
  background: #dcfce7;
}

.catalog-flow-badge.low,
.catalog-flow-badge.soon {
  color: #c2410c;
  background: #ffedd5;
}

.catalog-flow-badge.out {
  color: #b91c1c;
  background: #fee2e2;
}

.catalog-flow-badge.brand {
  color: #2563eb;
  background: #dbeafe;
}

.catalog-flow-badge.flavor {
  color: #be123c;
  background: #ffe4ee;
}

.catalog-flow-badge.neutral {
  color: #475569;
  background: #eef2f7;
}

.catalog-flow-category-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.catalog-flow-category-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--flow-line);
  border-radius: 18px;
  background: #fff;
  color: var(--flow-ink);
  text-align: left;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.catalog-flow-category-card svg {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 14px;
  color: var(--flow-pink);
  background: rgba(247, 37, 133, 0.09);
}

.catalog-flow-category-card span {
  font-weight: 950;
}

.catalog-flow-category-card small {
  color: var(--flow-muted);
  font-weight: 850;
}

.catalog-flow-brand-summary {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--flow-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
}

.catalog-flow-summary-media {
  width: 132px;
  height: 118px;
}

.catalog-flow-summary-copy p {
  margin: 0 0 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.catalog-flow-summary-copy h1 {
  font-size: clamp(28px, 8vw, 38px);
  line-height: 1.02;
}

.catalog-flow-stat-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.catalog-flow-stat-grid span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 70px;
  padding: 12px 10px;
  border: 1px solid var(--flow-line);
  border-radius: 15px;
  background: #fff;
}

.catalog-flow-stat-grid strong {
  font-size: 22px;
  line-height: 1;
}

.catalog-flow-stat-grid small {
  color: var(--flow-muted);
  font-size: 11px;
  font-weight: 850;
}

.catalog-flow-line-card {
  grid-template-columns: 104px minmax(0, 1fr) 30px;
  min-height: 124px;
  padding: 12px;
}

.catalog-flow-line-media {
  width: 104px;
  height: 96px;
}

.catalog-flow-line-body em {
  color: var(--flow-pink);
  background: rgba(247, 37, 133, 0.1);
  border-radius: 999px;
  padding: 4px 8px;
  font-style: normal;
  font-weight: 950;
  font-size: 11px;
}

.catalog-flow-line-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 14px;
  align-items: center;
  min-height: 142px;
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff, #f8fbff 64%, #fdf2f8);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
  border: 1px solid var(--flow-line);
  overflow: hidden;
}

.catalog-flow-line-hero h1 {
  font-size: clamp(24px, 7vw, 34px);
}

.catalog-flow-line-hero img {
  width: 128px;
  height: 128px;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(15, 23, 42, 0.14));
}

.catalog-flow-sku-table-head {
  margin: 0 8px 8px;
  padding: 0 62px 0 16px;
  color: #64748b;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.catalog-flow-sku-row {
  grid-template-columns: 58px minmax(0, 1fr) auto 26px;
  min-height: 76px;
  padding: 10px 12px;
}

.catalog-flow-sku-media {
  width: 54px;
  height: 54px;
  border-radius: 13px;
}

.catalog-flow-sku-main strong {
  font-size: 15px;
}

.catalog-flow-sku-main em {
  font-size: 12px;
  color: #475569;
}

.catalog-flow-detail-grid {
  display: grid;
  gap: 16px;
}

.catalog-flow-gallery,
.catalog-flow-detail-panel {
  border: 1px solid var(--flow-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
}

.catalog-flow-gallery {
  padding: 10px;
}

.catalog-flow-gallery-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
}

.catalog-flow-thumbs {
  display: flex;
  gap: 9px;
  margin-top: 10px;
}

.catalog-flow-thumbs img {
  width: 62px;
  height: 62px;
  border: 2px solid var(--flow-pink);
  border-radius: 14px;
}

.catalog-flow-detail-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}

.catalog-flow-product-kickers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-flow-detail-panel h1 {
  font-size: clamp(23px, 7vw, 34px);
  line-height: 1.1;
}

.catalog-flow-facts {
  display: grid;
  gap: 8px;
}

.catalog-flow-fact {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 42px;
  color: #475569;
}

.catalog-flow-fact small {
  font-size: 12px;
  font-weight: 850;
}

.catalog-flow-fact strong {
  justify-self: end;
  text-align: right;
  color: var(--flow-ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.catalog-flow-pricing-info {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  background: #ecfdf5;
  color: #047857;
}

.catalog-flow-pricing-info svg {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 14px;
  background: #dcfce7;
}

.catalog-flow-pricing-info strong,
.catalog-flow-pricing-info span {
  display: block;
}

.catalog-flow-pricing-info strong {
  font-size: 14px;
}

.catalog-flow-pricing-info span {
  font-size: 12px;
  color: #059669;
  font-weight: 850;
}

.catalog-flow-highlights h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.catalog-flow-highlights ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #475569;
  font-weight: 850;
  font-size: 13px;
}

.catalog-flow-highlights li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
}

.catalog-flow-highlights li::before {
  content: "✓";
  color: var(--flow-green);
  font-weight: 950;
}

.catalog-flow-detail-actions {
  display: grid;
  grid-template-columns: minmax(110px, auto) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  margin-top: auto;
}

.catalog-flow-detail-actions .quantity-stepper,
.catalog-flow-detail-actions .five-pack-stepper,
.catalog-flow-detail-actions .qty-stepper {
  min-height: 48px;
}

.catalog-flow-detail-actions .btn,
.catalog-flow-wishlist {
  min-height: 48px;
  border-radius: 12px;
}

.catalog-flow-wishlist {
  border: 1px solid rgba(247, 37, 133, 0.55);
  background: #fff;
  color: var(--flow-pink);
  font-weight: 950;
}

@media (min-width: 700px) {
  .catalog-flow-brand-list,
  .catalog-flow-line-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-flow-detail-grid {
    grid-template-columns: minmax(320px, 1.05fr) minmax(320px, .95fr);
    align-items: stretch;
  }
}

@media (min-width: 1180px) {
  .catalog-flow-brand-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .catalog-flow-v3 {
    width: min(100%, 1180px);
  }
}

@media (max-width: 620px) {
  .catalog-flow-v3 {
    width: 100%;
    padding: 14px 18px calc(128px + env(safe-area-inset-bottom));
  }

  .catalog-flow-title-row h1 {
    font-size: 20px;
  }

  .catalog-flow-search-row {
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 8px;
  }

  .catalog-flow-search,
  .catalog-flow-filter-btn {
    min-height: 46px;
    border-radius: 14px;
  }

  .catalog-flow-brand-card {
    grid-template-columns: 108px minmax(0, 1fr) 28px;
    min-height: 122px;
    padding: 10px;
    border-radius: 18px;
  }

  .catalog-flow-brand-media {
    width: 108px;
    height: 102px;
  }

  .catalog-flow-brand-content strong {
    font-size: 17px;
  }

  .catalog-flow-brand-summary {
    grid-template-columns: 110px minmax(0, 1fr);
    border-radius: 20px;
    padding: 10px;
  }

  .catalog-flow-summary-media {
    width: 110px;
    height: 104px;
  }

  .catalog-flow-summary-copy h1 {
    font-size: 29px;
  }

  .catalog-flow-summary-copy span {
    font-size: 13px;
    line-height: 1.35;
  }

  .catalog-flow-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .catalog-flow-stat-grid span:nth-child(4) {
    display: none;
  }

  .catalog-flow-line-card {
    grid-template-columns: 92px minmax(0, 1fr) 28px;
    min-height: 116px;
    padding: 10px;
    border-radius: 18px;
  }

  .catalog-flow-line-media {
    width: 92px;
    height: 92px;
  }

  .catalog-flow-line-body strong {
    font-size: 16px;
  }

  .catalog-flow-line-hero {
    grid-template-columns: minmax(0, 1fr) 108px;
    min-height: 126px;
    padding: 14px;
  }

  .catalog-flow-line-hero img {
    width: 108px;
    height: 108px;
  }

  .catalog-flow-sku-table-head {
    display: none;
  }

  .catalog-flow-sku-row {
    grid-template-columns: 58px minmax(0, 1fr) 24px;
    gap: 10px;
  }

  .catalog-flow-sku-status {
    grid-column: 2 / 3;
  }

  .catalog-flow-sku-row > .catalog-flow-chevron {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .catalog-flow-detail-panel,
  .catalog-flow-gallery {
    border-radius: 20px;
  }

  .catalog-flow-sku-page,
  .catalog-flow-product-detail {
    padding-bottom: calc(144px + env(safe-area-inset-bottom));
  }

  .catalog-flow-product-detail .catalog-flow-detail-grid {
    padding-bottom: 8px;
  }

  .catalog-flow-detail-actions {
    grid-template-columns: 1fr;
  }

  .catalog-flow-fact {
    grid-template-columns: 20px minmax(0, .85fr) minmax(0, 1.15fr);
  }
}

@media (max-width: 380px) {
  .catalog-flow-v3 {
    padding-left: 14px;
    padding-right: 14px;
  }

  .catalog-flow-brand-card {
    grid-template-columns: 96px minmax(0, 1fr) 26px;
  }

  .catalog-flow-brand-media {
    width: 96px;
    height: 96px;
  }

  .catalog-flow-category-row,
  .catalog-flow-stat-grid {
    grid-template-columns: 1fr;
  }

  .catalog-flow-stat-grid span:nth-child(4) {
    display: flex;
  }

  .catalog-flow-line-card {
    grid-template-columns: 84px minmax(0, 1fr) 26px;
  }

  .catalog-flow-line-media {
    width: 84px;
    height: 84px;
  }

  .catalog-flow-line-hero {
    grid-template-columns: minmax(0, 1fr) 86px;
  }

  .catalog-flow-line-hero img {
    width: 86px;
    height: 86px;
  }
}

/* Customer Catalog V2 mockup match: screen 4 product detail */
.catalog-flow-product-detail {
  --detail-ink: #071126;
  --detail-muted: #66758d;
  --detail-line: #e6edf5;
  --detail-pink: #f72585;
  --detail-green: #0f9f67;
  --detail-soft-green: #eafbf2;
  max-width: 1160px;
  color: var(--detail-ink);
}

.catalog-flow-product-detail .catalog-flow-detail-grid {
  gap: 16px;
  align-items: start;
}

.catalog-flow-product-detail .catalog-flow-gallery,
.catalog-flow-product-detail .catalog-flow-detail-panel {
  border-color: var(--detail-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  min-width: 0;
}

.catalog-flow-product-detail .catalog-flow-gallery {
  padding: 10px;
}

.catalog-flow-product-detail .catalog-flow-gallery-main {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background: linear-gradient(145deg, #f5f7fb, #fff 58%, #fff0f7);
  border: 1px solid rgba(226, 232, 240, 0.72);
}

.catalog-flow-product-detail .catalog-flow-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-flow-product-detail .catalog-flow-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}

.catalog-flow-product-detail .catalog-flow-thumbs img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--detail-line);
  border-radius: 12px;
  background: #f8fafc;
}

.catalog-flow-product-detail .catalog-flow-thumbs img.active {
  border-color: var(--detail-pink);
  box-shadow: 0 0 0 2px rgba(247, 37, 133, 0.12);
}

.catalog-flow-product-detail .catalog-flow-detail-panel {
  gap: 13px;
  padding: 15px;
  min-width: 0;
}

.catalog-flow-product-detail .catalog-flow-product-kickers {
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.catalog-flow-product-detail .catalog-flow-badge {
  min-height: 25px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.catalog-flow-product-detail .catalog-flow-badge.brand {
  color: #1261d8;
  background: #eaf3ff;
}

.catalog-flow-product-detail .catalog-flow-badge.flavor {
  color: #be123c;
  background: #fff1f5;
}

.catalog-flow-product-detail .catalog-flow-detail-panel h1 {
  margin: 0;
  color: var(--detail-ink);
  font-size: clamp(22px, 5.8vw, 31px);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.catalog-flow-product-detail .detail-flavor-row {
  margin-top: -3px;
}

.catalog-flow-product-detail .catalog-flow-facts {
  display: grid;
  gap: 0;
  overflow: hidden;
  margin-top: 5px;
  border: 1px solid var(--detail-line);
  border-radius: 17px;
  background: #fff;
}

.catalog-flow-product-detail .catalog-flow-fact {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  min-height: 48px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--detail-line);
  align-items: center;
}

.catalog-flow-product-detail .catalog-flow-fact:last-child {
  border-bottom: 0;
}

.catalog-flow-product-detail .catalog-flow-fact svg {
  width: 17px;
  height: 17px;
  color: #64748b;
}

.catalog-flow-product-detail .catalog-flow-fact small {
  color: var(--detail-muted);
  font-size: 12px;
  font-weight: 850;
}

.catalog-flow-product-detail .catalog-flow-fact strong {
  color: var(--detail-ink);
  font-size: 13px;
  font-weight: 950;
  text-align: right;
  overflow-wrap: anywhere;
}

.catalog-flow-product-detail .catalog-flow-pricing-info {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  padding: 12px;
  border-color: #b7efd0;
  border-radius: 15px;
  background: var(--detail-soft-green);
}

.catalog-flow-product-detail .catalog-flow-pricing-info svg {
  width: 38px;
  height: 38px;
  padding: 10px;
  color: var(--detail-green);
  background: #dff8eb;
  border-radius: 12px;
}

.catalog-flow-product-detail .catalog-flow-pricing-info strong {
  color: #057047;
  font-size: 13px;
}

.catalog-flow-product-detail .catalog-flow-pricing-info span {
  color: #318466;
  font-size: 11px;
}

.catalog-flow-product-detail .catalog-flow-highlights h2 {
  margin: 2px 0 8px;
  color: var(--detail-ink);
  font-size: 15px;
}

.catalog-flow-product-detail .catalog-flow-highlights ul {
  gap: 7px;
  color: #44536a;
  font-size: 12px;
  font-weight: 800;
}

.catalog-flow-product-detail .catalog-flow-highlights li {
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: start;
}

.catalog-flow-product-detail .catalog-flow-highlights li::before {
  content: "✦";
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.catalog-flow-product-detail .catalog-flow-detail-actions {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 9px;
  align-items: stretch;
  margin-top: 2px;
}

.catalog-flow-product-detail .catalog-flow-detail-actions .five-pack-stepper {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 30px;
  min-height: 46px;
  overflow: hidden;
  border: 1px solid var(--detail-line);
  border-radius: 12px;
  background: #fff;
}

.catalog-flow-product-detail .catalog-flow-detail-actions .five-pack-stepper button,
.catalog-flow-product-detail .catalog-flow-detail-actions .five-pack-stepper input {
  min-width: 0;
  height: 46px;
  border: 0;
  background: transparent;
  color: var(--detail-ink);
  font-weight: 950;
}

.catalog-flow-product-detail .catalog-flow-detail-actions .five-pack-stepper input {
  border-right: 1px solid var(--detail-line);
  border-left: 1px solid var(--detail-line);
  text-align: center;
}

.catalog-flow-product-detail .catalog-flow-detail-actions .btn.primary {
  min-height: 46px;
  border-radius: 12px;
  background: #071126;
  box-shadow: none;
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.catalog-flow-product-detail .catalog-flow-detail-actions .btn.disabled-gray {
  grid-column: 1 / -1;
  min-height: 46px;
  border-radius: 12px;
  background: #eef2f7;
  color: #64748b;
  font-weight: 950;
}

.catalog-flow-product-detail .catalog-flow-wishlist {
  min-height: 46px;
  border: 1px solid rgba(247, 37, 133, 0.5);
  border-radius: 12px;
  background: #fff;
  color: var(--detail-pink);
  font-size: 14px;
  font-weight: 950;
}

@media (min-width: 760px) {
  .catalog-flow-product-detail .catalog-flow-detail-grid {
    grid-template-columns: minmax(320px, 1fr) minmax(360px, 430px);
  }

  .catalog-flow-product-detail .catalog-flow-gallery {
    position: sticky;
    top: 96px;
  }
}

@media (max-width: 620px) {
  .catalog-flow-product-detail {
    padding: 12px 13px calc(118px + env(safe-area-inset-bottom));
  }

  .catalog-flow-product-detail .catalog-flow-breadcrumb {
    margin-bottom: 12px;
    font-size: 12px;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .catalog-flow-product-detail .catalog-flow-detail-grid {
    display: grid;
    grid-template-columns: minmax(126px, .86fr) minmax(0, 1.14fr);
    gap: 10px;
    align-items: start;
  }

  .catalog-flow-product-detail .catalog-flow-gallery,
  .catalog-flow-product-detail .catalog-flow-detail-panel {
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  }

  .catalog-flow-product-detail .catalog-flow-gallery {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .catalog-flow-product-detail .catalog-flow-gallery-main {
    border-radius: 15px;
    min-height: 248px;
    aspect-ratio: 0.78 / 1;
    background: #fff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  }

  .catalog-flow-product-detail .catalog-flow-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 8px;
  }

  .catalog-flow-product-detail .catalog-flow-thumbs img:nth-child(n+4) {
    display: none;
  }

  .catalog-flow-product-detail .catalog-flow-detail-panel {
    gap: 9px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .catalog-flow-product-detail .catalog-flow-detail-panel h1 {
    font-size: 21px;
    line-height: 1.12;
  }

  .catalog-flow-product-detail .catalog-flow-fact {
    grid-template-columns: 18px minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 7px;
    min-height: 39px;
    padding: 8px 9px;
  }

  .catalog-flow-product-detail .catalog-flow-fact svg {
    width: 15px;
    height: 15px;
  }

  .catalog-flow-product-detail .catalog-flow-fact small {
    font-size: 10px;
  }

  .catalog-flow-product-detail .catalog-flow-fact strong {
    font-size: 11px;
  }

  .catalog-flow-product-detail .catalog-flow-badge {
    min-height: 22px;
    padding: 4px 8px;
    font-size: 10px;
  }

  .catalog-flow-product-detail .catalog-flow-pricing-info {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    padding: 9px;
  }

  .catalog-flow-product-detail .catalog-flow-pricing-info svg {
    width: 30px;
    height: 30px;
    padding: 8px;
    border-radius: 10px;
  }

  .catalog-flow-product-detail .catalog-flow-pricing-info strong {
    font-size: 11px;
  }

  .catalog-flow-product-detail .catalog-flow-pricing-info span {
    font-size: 10px;
  }

  .catalog-flow-product-detail .catalog-flow-highlights h2 {
    margin: 1px 0 6px;
    font-size: 13px;
  }

  .catalog-flow-product-detail .catalog-flow-highlights ul {
    gap: 5px;
    font-size: 10.5px;
  }

  .catalog-flow-product-detail .catalog-flow-highlights li {
    grid-template-columns: 14px minmax(0, 1fr);
  }

  .catalog-flow-product-detail .catalog-flow-highlights li::before {
    font-size: 10px;
  }

  .catalog-flow-product-detail .catalog-flow-detail-actions {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 8px;
  }

  .catalog-flow-product-detail .catalog-flow-detail-actions .five-pack-stepper {
    grid-template-columns: 24px minmax(0, 1fr) 24px;
    min-height: 42px;
    border-radius: 11px;
  }

  .catalog-flow-product-detail .catalog-flow-detail-actions .five-pack-stepper button,
  .catalog-flow-product-detail .catalog-flow-detail-actions .five-pack-stepper input {
    height: 42px;
  }

  .catalog-flow-product-detail .catalog-flow-detail-actions .btn.primary,
  .catalog-flow-product-detail .catalog-flow-detail-actions .btn.disabled-gray,
  .catalog-flow-product-detail .catalog-flow-wishlist {
    min-height: 42px;
    border-radius: 11px;
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .catalog-flow-product-detail {
    padding-left: 12px;
    padding-right: 12px;
  }

  .catalog-flow-product-detail .catalog-flow-detail-actions {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .catalog-flow-product-detail .catalog-flow-fact {
    grid-template-columns: 20px minmax(0, .75fr) minmax(0, 1.25fr);
    gap: 8px;
  }
}


.customer-account-edit-panel-v3 {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  padding: 18px;
  border: 1px solid var(--customer-line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.customer-account-edit-panel-v3.is-open {
  display: grid;
}

.customer-account-edit-panel-v3 > div,
.customer-account-edit-panel-v3 > label:last-of-type,
.customer-account-edit-panel-v3 > textarea {
  grid-column: 1 / -1;
}

.customer-account-edit-panel-v3 h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 950;
}

.customer-account-edit-panel-v3 p {
  margin: 5px 0 2px;
  color: #536179;
  font-size: 13px;
  font-weight: 700;
}

.customer-account-edit-panel-v3 label {
  align-self: end;
  color: var(--customer-text);
  font-size: 13px;
  font-weight: 900;
}

.customer-account-edit-panel-v3 input,
.customer-account-edit-panel-v3 textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--customer-line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--customer-text);
  font: inherit;
  font-size: 16px;
}

.customer-account-edit-panel-v3 textarea {
  min-height: 92px;
  resize: vertical;
}

.support-options .support-option {
  width: 100%;
  min-height: 66px;
  border: 1px solid #dfe6f0;
  color: #071126;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.support-options .support-option:hover,
.support-options .support-option:focus-visible {
  border-color: #f72585;
  box-shadow: 0 12px 28px rgba(247, 37, 133, 0.1);
}

@media (max-width: 900px) {


  .customer-account-edit-panel-v3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-account-edit-panel-v3 > * {
    grid-column: 1;
  }
}

@media (max-width: 430px) {


  .customer-account-edit-panel-v3 {
    padding: 15px;
  }
}


@media (max-width: 340px) {
  .catalog-flow-product-detail .catalog-flow-detail-grid {
    grid-template-columns: 1fr;
  }

  .catalog-flow-product-detail .catalog-flow-gallery-main {
    min-height: 230px;
    aspect-ratio: 1 / .86;
  }
}

/* Customer Catalog V2 mockup match: screen 1 brand list */
@media (max-width: 620px) {
  .v2-customer-app:has(.catalog-flow-home),
  .v2-customer-app:has(.catalog-flow-home) .v2-app-main {
    background: #f5f8fc;
  }

  .v2-customer-app:has(.catalog-flow-home) .compact-customer-topbar {
    position: sticky;
    top: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 84px;
    padding: 14px 14px 11px;
    background: #fff;
    border-bottom: 1px solid #e5eaf2;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  }

  .v2-customer-app:has(.catalog-flow-home) .compact-customer-brand {
    width: 44px;
    min-width: 44px;
  }

  .v2-customer-app:has(.catalog-flow-home) .compact-customer-brand span:not(.logo-badge) {
    display: none !important;
  }

  .v2-customer-app:has(.catalog-flow-home) .compact-customer-brand .logo-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 17px;
    box-shadow: 0 10px 22px rgba(247, 37, 133, 0.2);
  }

  .v2-customer-app:has(.catalog-flow-home) .compact-customer-store {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .v2-customer-app:has(.catalog-flow-home) .compact-customer-store strong {
    max-width: 100%;
    overflow: hidden;
    color: #0f172a;
    font-size: 13px;
    font-weight: 950;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .v2-customer-app:has(.catalog-flow-home) .compact-customer-store span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    max-width: 100%;
    width: max-content;
    padding: 3px 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #dcfce7;
    color: #047857;
    font-size: 9px;
    font-weight: 950;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .v2-customer-app:has(.catalog-flow-home) .compact-customer-store span::before {
    content: "";
    width: 5px;
    height: 5px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #059669;
  }

  .v2-customer-app:has(.catalog-flow-home) .compact-customer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
  }

  .v2-customer-app:has(.catalog-flow-home) .compact-customer-actions .icon-action {
    width: 38px;
    height: 38px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  }

  .v2-customer-app:has(.catalog-flow-home) .compact-customer-actions .icon-action svg {
    width: 18px;
    height: 18px;
  }

  .v2-customer-app:has(.catalog-flow-home) .desktop-account-action {
    display: none !important;
  }

  .v2-customer-app:has(.catalog-flow-home) .compact-account-menu summary::-webkit-details-marker {
    display: none;
  }

  .v2-customer-app:has(.catalog-flow-home) .action-count {
    top: -8px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid #fff;
    font-size: 10px;
    line-height: 14px;
  }

  .catalog-flow-v3.catalog-flow-home {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 16px 14px calc(92px + env(safe-area-inset-bottom));
    background: #f5f8fc;
  }

  .catalog-flow-home .catalog-flow-brand-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 12px;
  }

  .catalog-flow-home .catalog-flow-brand-head h1 {
    margin: 0;
    color: #0f172a;
    font-size: 17px;
    font-weight: 950;
    line-height: 1.15;
  }

  .catalog-flow-home .catalog-flow-brand-head p {
    margin: 0;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.1;
  }

  .catalog-flow-home .catalog-flow-search-row {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 9px;
    margin: 0 0 12px;
  }

  .catalog-flow-home .catalog-flow-search,
  .catalog-flow-home .catalog-flow-filter-btn {
    min-height: 44px;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  }

  .catalog-flow-home .catalog-flow-search {
    padding: 0 12px;
  }

  .catalog-flow-home .catalog-flow-search input {
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
  }

  .catalog-flow-home .catalog-flow-search input::placeholder {
    color: #94a3b8;
  }

  .catalog-flow-home .catalog-flow-filter-btn {
    width: 44px;
  }

  .catalog-flow-home .catalog-flow-section {
    margin: 0;
  }

  .catalog-flow-home .catalog-flow-brand-list {
    display: grid;
    gap: 10px;
  }

  .catalog-flow-home .catalog-flow-brand-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 12px;
    min-height: 112px;
    padding: 10px;
    border: 1px solid #e5eaf2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  }

  .catalog-flow-home .catalog-flow-brand-media {
    width: 104px;
    height: 92px;
    overflow: hidden;
    border-radius: 13px;
    background: #f1f5f9;
  }

  .catalog-flow-home .catalog-flow-brand-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  .catalog-flow-home .catalog-flow-brand-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .catalog-flow-home .catalog-flow-brand-content strong {
    color: #0f172a;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.08;
  }

  .catalog-flow-home .catalog-flow-brand-content small {
    color: #64748b;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.15;
  }

  .catalog-flow-home .catalog-flow-badge {
    min-height: 20px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
  }

  .catalog-flow-home .catalog-flow-brand-content em {
    color: #d97706;
    font-size: 10px;
    font-style: normal;
    font-weight: 950;
    line-height: 1.1;
  }

  .catalog-flow-home .catalog-flow-chevron {
    width: 25px;
    height: 25px;
    align-self: center;
    border-radius: 999px;
    background: #fff1f7;
    color: #f72585;
  }

  .catalog-flow-home .catalog-flow-chevron svg {
    width: 16px;
    height: 16px;
  }

  .catalog-flow-home .catalog-flow-category-row {
    display: none;
  }

  .v2-customer-app:has(.catalog-flow-brand-detail),
  .v2-customer-app:has(.catalog-flow-brand-detail) .v2-app-main {
    background: #f5f8fc;
  }

  .v2-customer-app:has(.catalog-flow-brand-detail) .compact-customer-topbar {
    position: sticky;
    top: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 84px;
    padding: 14px 14px 11px;
    background: #fff;
    border-bottom: 1px solid #e5eaf2;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  }

  .v2-customer-app:has(.catalog-flow-brand-detail) .compact-customer-brand {
    width: 44px;
    min-width: 44px;
  }

  .v2-customer-app:has(.catalog-flow-brand-detail) .compact-customer-brand span:not(.logo-badge) {
    display: none !important;
  }

  .v2-customer-app:has(.catalog-flow-brand-detail) .compact-customer-brand .logo-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 17px;
    box-shadow: 0 10px 22px rgba(247, 37, 133, 0.2);
  }

  .v2-customer-app:has(.catalog-flow-brand-detail) .compact-customer-store {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .v2-customer-app:has(.catalog-flow-brand-detail) .compact-customer-store strong {
    max-width: 100%;
    overflow: hidden;
    color: #0f172a;
    font-size: 13px;
    font-weight: 950;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .v2-customer-app:has(.catalog-flow-brand-detail) .compact-customer-store span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    max-width: 100%;
    width: max-content;
    padding: 3px 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #dcfce7;
    color: #047857;
    font-size: 9px;
    font-weight: 950;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .v2-customer-app:has(.catalog-flow-brand-detail) .compact-customer-store span::before {
    content: "";
    width: 5px;
    height: 5px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #059669;
  }

  .v2-customer-app:has(.catalog-flow-brand-detail) .compact-customer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
  }

  .v2-customer-app:has(.catalog-flow-brand-detail) .compact-customer-actions .icon-action {
    width: 38px;
    height: 38px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  }

  .v2-customer-app:has(.catalog-flow-brand-detail) .compact-customer-actions .icon-action svg {
    width: 18px;
    height: 18px;
  }

  .v2-customer-app:has(.catalog-flow-brand-detail) .desktop-account-action {
    display: none !important;
  }

  .v2-customer-app:has(.catalog-flow-brand-detail) .compact-account-menu summary::-webkit-details-marker {
    display: none;
  }

  .v2-customer-app:has(.catalog-flow-brand-detail) .action-count {
    top: -8px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid #fff;
    font-size: 10px;
    line-height: 14px;
  }

  .catalog-flow-v3.catalog-flow-brand-detail {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 14px 14px calc(92px + env(safe-area-inset-bottom));
    background: #f5f8fc;
  }

  .catalog-flow-brand-detail .catalog-flow-breadcrumb {
    gap: 7px;
    margin: 2px 0 14px;
    color: #64748b;
    font-size: 11px;
    font-weight: 950;
  }

  .catalog-flow-brand-detail .catalog-flow-breadcrumb a {
    color: #f72585;
  }

  .catalog-flow-brand-detail .catalog-flow-brand-summary {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin: 0 0 12px;
    padding: 10px;
    border: 1px solid #e5eaf2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  }

  .catalog-flow-brand-detail .catalog-flow-summary-media {
    width: 132px;
    height: 104px;
    border-radius: 13px;
    background: #f1f5f9;
  }

  .catalog-flow-brand-detail .catalog-flow-summary-media img {
    object-fit: cover;
  }

  .catalog-flow-brand-detail .catalog-flow-summary-copy {
    align-self: center;
  }

  .catalog-flow-brand-detail .catalog-flow-summary-copy p {
    display: none;
  }

  .catalog-flow-brand-detail .catalog-flow-summary-copy h1 {
    margin: 0 0 7px;
    color: #0f172a;
    font-size: 22px;
    font-weight: 950;
    line-height: 1.05;
  }

  .catalog-flow-brand-detail .catalog-flow-summary-copy span {
    display: block;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
  }

  .catalog-flow-brand-detail .catalog-flow-stat-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .catalog-flow-brand-detail .catalog-flow-stat-grid span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 58px;
    padding: 9px 6px;
    border: 1px solid #e5eaf2;
    border-radius: 11px;
    background: #fff;
    box-shadow: none;
    text-align: center;
  }

  .catalog-flow-brand-detail .catalog-flow-stat-grid strong {
    color: #0f172a;
    font-size: 18px;
    font-weight: 950;
    line-height: 1;
  }

  .catalog-flow-brand-detail .catalog-flow-stat-grid small {
    color: #64748b;
    font-size: 9px;
    font-weight: 850;
    line-height: 1.15;
  }

  .catalog-flow-brand-detail .catalog-flow-stat-grid span:nth-child(3) strong,
  .catalog-flow-brand-detail .catalog-flow-stat-grid span:nth-child(3) small {
    color: #059669;
  }

  .catalog-flow-brand-detail .catalog-flow-stat-grid span:nth-child(4) strong,
  .catalog-flow-brand-detail .catalog-flow-stat-grid span:nth-child(4) small {
    color: #ea580c;
  }

  .catalog-flow-brand-detail .catalog-flow-search-row {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 9px;
    margin: 0 0 12px;
  }

  .catalog-flow-brand-detail .catalog-flow-search,
  .catalog-flow-brand-detail .catalog-flow-filter-btn {
    min-height: 44px;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  }

  .catalog-flow-brand-detail .catalog-flow-search {
    padding: 0 12px;
  }

  .catalog-flow-brand-detail .catalog-flow-search input {
    font-size: 13px;
    font-weight: 800;
  }

  .catalog-flow-brand-detail .catalog-flow-filter-btn {
    width: 44px;
  }

  .catalog-flow-brand-detail .catalog-flow-section {
    margin-top: 0;
  }

  .catalog-flow-brand-detail .catalog-flow-section-head {
    align-items: center;
    margin: 0 0 9px;
  }

  .catalog-flow-brand-detail .catalog-flow-section-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.1;
  }

  .catalog-flow-brand-detail .catalog-flow-section-head span {
    display: block;
    margin: 3px 0 0;
    color: #64748b;
    font-size: 11px;
    font-weight: 850;
  }

  .catalog-flow-brand-detail .catalog-flow-sort-btn {
    min-height: 36px;
    padding: 0 10px;
    border-radius: 11px;
    color: #475569;
    font-size: 10px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  }

  .catalog-flow-brand-detail .catalog-flow-line-list {
    display: grid;
    gap: 9px;
  }

  .catalog-flow-brand-detail .catalog-flow-line-card {
    grid-template-columns: 92px minmax(0, 1fr) 26px;
    gap: 11px;
    min-height: 104px;
    padding: 8px;
    border: 1px solid #e5eaf2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  }

  .catalog-flow-brand-detail .catalog-flow-line-media {
    width: 92px;
    height: 88px;
    border-radius: 12px;
    background: #f1f5f9;
  }

  .catalog-flow-brand-detail .catalog-flow-line-media img {
    object-fit: cover;
  }

  .catalog-flow-brand-detail .catalog-flow-line-body {
    gap: 4px;
  }

  .catalog-flow-brand-detail .catalog-flow-line-body em {
    padding: 0;
    background: transparent;
    color: #f72585;
    font-size: 10px;
    line-height: 1;
  }

  .catalog-flow-brand-detail .catalog-flow-line-body strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.12;
  }

  .catalog-flow-brand-detail .catalog-flow-line-body small {
    color: #64748b;
    font-size: 10px;
    font-weight: 850;
    line-height: 1.1;
  }

  .catalog-flow-brand-detail .catalog-flow-line-body .catalog-flow-badge {
    min-height: 19px;
    padding: 4px 7px;
    font-size: 9px;
    line-height: 1;
  }

  .catalog-flow-brand-detail .catalog-flow-chevron {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #fff1f7;
    color: #f72585;
  }

  .catalog-flow-brand-detail .catalog-flow-chevron svg {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 360px) {
  .v2-customer-app:has(.catalog-flow-home) .compact-customer-topbar,
  .v2-customer-app:has(.catalog-flow-brand-detail) .compact-customer-topbar {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 4px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .v2-customer-app:has(.catalog-flow-home) .compact-customer-brand,
  .v2-customer-app:has(.catalog-flow-home) .compact-customer-brand .logo-badge,
  .v2-customer-app:has(.catalog-flow-brand-detail) .compact-customer-brand,
  .v2-customer-app:has(.catalog-flow-brand-detail) .compact-customer-brand .logo-badge {
    width: 34px;
    min-width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 14px;
  }

  .v2-customer-app:has(.catalog-flow-home) .compact-customer-actions,
  .v2-customer-app:has(.catalog-flow-brand-detail) .compact-customer-actions {
    gap: 4px;
  }

  .v2-customer-app:has(.catalog-flow-home) .compact-customer-actions .icon-action,
  .v2-customer-app:has(.catalog-flow-brand-detail) .compact-customer-actions .icon-action {
    box-sizing: border-box;
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 10px;
  }

  .v2-customer-app:has(.catalog-flow-home) .compact-customer-actions .icon-action svg,
  .v2-customer-app:has(.catalog-flow-brand-detail) .compact-customer-actions .icon-action svg {
    width: 15px;
    height: 15px;
  }

  .v2-customer-app:has(.catalog-flow-home) .compact-customer-store strong,
  .v2-customer-app:has(.catalog-flow-brand-detail) .compact-customer-store strong {
    font-size: 12px;
  }

  .v2-customer-app:has(.catalog-flow-home) .compact-customer-store span,
  .v2-customer-app:has(.catalog-flow-brand-detail) .compact-customer-store span {
    gap: 2px;
    padding: 3px 6px;
    font-size: 8px;
  }

  .catalog-flow-v3.catalog-flow-home,
  .catalog-flow-v3.catalog-flow-brand-detail {
    padding-left: 12px;
    padding-right: 12px;
  }

  .catalog-flow-home .catalog-flow-brand-card {
    grid-template-columns: 96px minmax(0, 1fr) 26px;
    gap: 10px;
    min-height: 106px;
  }

  .catalog-flow-home .catalog-flow-brand-media {
    width: 96px;
    height: 86px;
  }

  .catalog-flow-home .catalog-flow-brand-content strong {
    font-size: 15px;
  }

  .catalog-flow-brand-detail .catalog-flow-brand-summary {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
    padding: 9px;
  }

  .catalog-flow-brand-detail .catalog-flow-summary-media {
    width: 112px;
    height: 96px;
  }

  .catalog-flow-brand-detail .catalog-flow-summary-copy h1 {
    font-size: 20px;
  }

  .catalog-flow-brand-detail .catalog-flow-summary-copy span {
    font-size: 11px;
  }

  .catalog-flow-brand-detail .catalog-flow-stat-grid {
    gap: 5px;
  }

  .catalog-flow-brand-detail .catalog-flow-stat-grid span {
    min-height: 54px;
    padding: 8px 4px;
  }

  .catalog-flow-brand-detail .catalog-flow-stat-grid small {
    font-size: 8px;
  }

  .catalog-flow-brand-detail .catalog-flow-line-card {
    grid-template-columns: 82px minmax(0, 1fr) 24px;
    gap: 9px;
    min-height: 98px;
  }

  .catalog-flow-brand-detail .catalog-flow-line-media {
    width: 82px;
    height: 82px;
  }

  .catalog-flow-brand-detail .catalog-flow-line-body strong {
    font-size: 13px;
  }
}

@media (max-width: 620px) {
  .v2-customer-app:has(.catalog-flow-sku-page),
  .v2-customer-app:has(.catalog-flow-sku-page) .v2-app-main {
    background: #f5f8fc;
  }

  .v2-customer-app:has(.catalog-flow-sku-page) .compact-customer-topbar {
    position: sticky;
    top: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 84px;
    padding: 14px 14px 11px;
    background: #fff;
    border-bottom: 1px solid #e5eaf2;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  }

  .v2-customer-app:has(.catalog-flow-sku-page) .compact-customer-brand {
    width: 44px;
    min-width: 44px;
  }

  .v2-customer-app:has(.catalog-flow-sku-page) .compact-customer-brand span:not(.logo-badge) {
    display: none !important;
  }

  .v2-customer-app:has(.catalog-flow-sku-page) .compact-customer-brand .logo-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 17px;
    box-shadow: 0 10px 22px rgba(247, 37, 133, 0.2);
  }

  .v2-customer-app:has(.catalog-flow-sku-page) .compact-customer-store {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .v2-customer-app:has(.catalog-flow-sku-page) .compact-customer-store strong {
    max-width: 100%;
    overflow: hidden;
    color: #0f172a;
    font-size: 13px;
    font-weight: 950;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .v2-customer-app:has(.catalog-flow-sku-page) .compact-customer-store span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    max-width: 100%;
    width: max-content;
    padding: 3px 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #dcfce7;
    color: #047857;
    font-size: 9px;
    font-weight: 950;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .v2-customer-app:has(.catalog-flow-sku-page) .compact-customer-store span::before {
    content: "";
    width: 5px;
    height: 5px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #059669;
  }

  .v2-customer-app:has(.catalog-flow-sku-page) .compact-customer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
  }

  .v2-customer-app:has(.catalog-flow-sku-page) .compact-customer-actions .icon-action {
    width: 38px;
    height: 38px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  }

  .v2-customer-app:has(.catalog-flow-sku-page) .compact-customer-actions .icon-action svg {
    width: 18px;
    height: 18px;
  }

  .v2-customer-app:has(.catalog-flow-sku-page) .desktop-account-action {
    display: none !important;
  }

  .v2-customer-app:has(.catalog-flow-sku-page) .compact-account-menu summary::-webkit-details-marker {
    display: none;
  }

  .v2-customer-app:has(.catalog-flow-sku-page) .action-count {
    top: -8px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid #fff;
    font-size: 10px;
    line-height: 14px;
  }

  .catalog-flow-v3.catalog-flow-sku-page {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 14px 14px calc(92px + env(safe-area-inset-bottom));
    background: #f5f8fc;
  }

  .catalog-flow-sku-page .catalog-flow-breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 2px 0 14px;
    color: #64748b;
    font-size: 11px;
    font-weight: 950;
  }

  .catalog-flow-sku-page .catalog-flow-breadcrumb a {
    color: #f72585;
  }

  .catalog-flow-sku-page .catalog-flow-line-hero {
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 10px;
    align-items: center;
    min-height: 112px;
    margin: 0 0 14px;
    padding: 0 0 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .catalog-flow-line-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .catalog-flow-sku-page .catalog-flow-line-hero h1 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
    font-weight: 950;
    line-height: 1.08;
  }

  .catalog-flow-sku-page .catalog-flow-line-hero p {
    margin: 4px 0 8px;
    color: #475569;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.35;
  }

  .catalog-flow-sku-page .catalog-flow-line-hero .catalog-flow-badge {
    min-height: 20px;
    padding: 5px 8px;
    font-size: 9px;
  }

  .catalog-flow-sku-page .catalog-flow-line-hero img {
    justify-self: end;
    width: 96px;
    height: 96px;
    border-radius: 16px;
    object-fit: contain;
    filter: drop-shadow(0 14px 18px rgba(15, 23, 42, 0.14));
  }

  .catalog-flow-sku-page .catalog-flow-search-row {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 9px;
    margin: 0 0 13px;
  }

  .catalog-flow-sku-page .catalog-flow-search,
  .catalog-flow-sku-page .catalog-flow-filter-btn {
    min-height: 44px;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  }

  .catalog-flow-sku-page .catalog-flow-search {
    padding: 0 12px;
  }

  .catalog-flow-sku-page .catalog-flow-search input {
    min-width: 0;
    font-size: 13px;
    font-weight: 800;
  }

  .catalog-flow-sku-page .catalog-flow-filter-btn {
    width: 44px;
  }

  .catalog-flow-sku-page .catalog-flow-section {
    margin-top: 0;
  }

  .catalog-flow-sku-page .catalog-flow-sku-table-head {
    display: grid;
    grid-template-columns: 44px minmax(0, 1.05fr) minmax(54px, .8fr) minmax(82px, .95fr) 14px;
    gap: 7px;
    align-items: center;
    margin: 0 0 7px;
    padding: 0 8px;
    color: #64748b;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: none;
  }

  .catalog-flow-sku-page .catalog-flow-sku-list {
    display: grid;
    gap: 8px;
  }

  .catalog-flow-sku-page .catalog-flow-sku-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1.05fr) minmax(54px, .8fr) minmax(82px, .95fr) 14px;
    gap: 7px;
    align-items: center;
    min-height: 56px;
    padding: 8px;
    border: 1px solid #e5eaf2;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  }

  .catalog-flow-sku-page .catalog-flow-sku-media {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f1f5f9;
  }

  .catalog-flow-sku-page .catalog-flow-sku-media img {
    object-fit: cover;
  }

  .catalog-flow-sku-page .catalog-flow-sku-main {
    min-width: 0;
    display: block;
  }

  .catalog-flow-sku-page .catalog-flow-sku-main strong {
    display: -webkit-box;
    overflow: hidden;
    color: #0f172a;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.15;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .catalog-flow-sku-page .catalog-flow-sku-code {
    min-width: 0;
    overflow: hidden;
    color: #475569;
    font-size: 10px;
    font-weight: 850;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .catalog-flow-sku-page .catalog-flow-sku-status {
    grid-column: auto;
    grid-row: auto;
    min-width: 0;
    justify-self: start;
  }

  .catalog-flow-sku-page .catalog-flow-sku-status .catalog-flow-badge {
    max-width: 100%;
    min-height: 20px;
    padding: 4px 7px;
    overflow: hidden;
    font-size: 9px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .catalog-flow-sku-page .catalog-flow-chevron {
    width: 20px;
    height: 20px;
    background: transparent;
    color: #0f172a;
  }

  .catalog-flow-sku-page .catalog-flow-sku-row > .catalog-flow-chevron {
    grid-column: auto;
    grid-row: auto;
    justify-self: end;
  }

  .catalog-flow-sku-page .catalog-flow-chevron svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 360px) {
  .v2-customer-app:has(.catalog-flow-sku-page) .compact-customer-topbar {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 4px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .v2-customer-app:has(.catalog-flow-sku-page) .compact-customer-brand,
  .v2-customer-app:has(.catalog-flow-sku-page) .compact-customer-brand .logo-badge {
    width: 34px;
    min-width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 14px;
  }

  .v2-customer-app:has(.catalog-flow-sku-page) .compact-customer-actions {
    gap: 4px;
  }

  .v2-customer-app:has(.catalog-flow-sku-page) .compact-customer-actions .icon-action {
    box-sizing: border-box;
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 10px;
  }

  .v2-customer-app:has(.catalog-flow-sku-page) .compact-customer-actions .icon-action svg {
    width: 15px;
    height: 15px;
  }

  .v2-customer-app:has(.catalog-flow-sku-page) .compact-customer-store strong {
    font-size: 12px;
  }

  .v2-customer-app:has(.catalog-flow-sku-page) .compact-customer-store span {
    gap: 2px;
    padding: 3px 6px;
    font-size: 8px;
  }

  .catalog-flow-v3.catalog-flow-sku-page {
    padding-right: 12px;
    padding-left: 12px;
  }

  .catalog-flow-sku-page .catalog-flow-line-hero {
    grid-template-columns: minmax(0, 1fr) 82px;
  }

  .catalog-flow-sku-page .catalog-flow-line-hero img {
    width: 82px;
    height: 82px;
  }

  .catalog-flow-sku-page .catalog-flow-line-hero h1 {
    font-size: 20px;
  }

  .catalog-flow-sku-page .catalog-flow-sku-table-head,
  .catalog-flow-sku-page .catalog-flow-sku-row {
    grid-template-columns: 40px minmax(0, 1fr) 58px 78px 12px;
    gap: 6px;
  }

  .catalog-flow-sku-page .catalog-flow-sku-media {
    width: 36px;
    height: 36px;
  }

  .catalog-flow-sku-page .catalog-flow-sku-main strong {
    font-size: 11px;
  }

  .catalog-flow-sku-page .catalog-flow-sku-code {
    font-size: 9px;
  }

  .catalog-flow-sku-page .catalog-flow-sku-status .catalog-flow-badge {
    padding-inline: 5px;
    font-size: 8px;
  }
}

/* Customer Home + Account redesign */
.customer-account-v3 {
  --customer-bg: #f6f7fb;
  --customer-card: #ffffff;
  --customer-text: #071126;
  --customer-muted: #647087;
  --customer-line: #e0e7f0;
  --customer-pink: #f72585;
  --customer-red: #ff5f55;
  --customer-purple: #6158f6;
  --customer-green: #19a76a;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
  background: var(--customer-bg);
  color: var(--customer-text);
}

.v2-customer-app:has(.customer-account-v3),
.v2-customer-app:has(.customer-account-v3) .v2-app-main {
  background: #f6f7fb;
}


.customer-account-action-v3:active,
.customer-account-row-v3:active {
  transform: scale(0.985);
}


.customer-account-v3 {
  max-width: 860px;
}

.customer-account-hero-v3 {
  margin-bottom: 22px;
}

.customer-account-hero-v3 h1 {
  margin: 0;
  color: var(--customer-text);
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.02;
}

.customer-account-hero-v3 p {
  max-width: 460px;
  margin: 12px 0 0;
  color: #536179;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.customer-account-actions-v3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.customer-account-action-v3 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 146px;
  padding: 18px;
  border: 1px solid var(--customer-line);
  border-radius: 16px;
  background: #ffffff;
  color: var(--customer-text);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.customer-account-action-v3:hover {
  transform: translateY(-2px);
  border-color: #cfd8e6;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
}

.customer-account-action-v3 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #eef2ff;
  color: #2357ff;
}

.customer-account-action-v3 strong {
  margin-top: 5px;
  color: var(--customer-text);
  font-size: 17px;
  font-weight: 950;
}

.customer-account-action-v3 small {
  color: #536179;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.customer-account-form-v3 {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.customer-account-section-head-v3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.customer-account-section-head-v3 h2 {
  margin: 0;
  color: var(--customer-text);
  font-size: 19px;
  font-weight: 950;
}

.customer-account-section-head-v3 button {
  min-width: 64px;
  min-height: 44px;
  border: 1px solid var(--customer-line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--customer-text);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.customer-account-rows-v3 {
  overflow: hidden;
  border: 1px solid var(--customer-line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.customer-account-row-v3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 70px;
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid #e8edf4;
  background: #ffffff;
  color: var(--customer-text);
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease;
}

.customer-account-row-v3:last-child {
  border-bottom: 0;
}

.customer-account-row-v3:hover {
  background: #fbfcff;
}

.customer-account-row-v3 > span {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.customer-account-row-v3 strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--customer-text);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.2;
}

.customer-account-row-v3 em {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #344054;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.32;
}

.customer-account-row-v3 svg {
  width: 18px;
  height: 18px;
  color: #536179;
}

.customer-account-row-badge-v3 {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fde7f4;
  color: #a90f63;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.customer-account-notify-v3 {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid #ffd3e5;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff2f8, #fff7fb);
  box-shadow: 0 16px 38px rgba(247, 37, 133, 0.07);
}

.customer-account-notify-v3 > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: #f6dcff;
  color: #b51cff;
}

.customer-account-notify-v3 strong {
  color: var(--customer-text);
  font-size: 16px;
  font-weight: 950;
}

.customer-account-notify-v3 p {
  margin: 4px 0 0;
  color: #536179;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.customer-account-switch-v3 {
  position: relative;
  display: inline-flex;
  width: 58px;
  height: 34px;
  cursor: pointer;
}

.customer-account-switch-v3 input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.customer-account-switch-v3 span {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #d8e0ea;
  transition: background 150ms ease;
}

.customer-account-switch-v3 span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.2);
  transition: transform 150ms ease;
}

.customer-account-switch-v3 input:checked + span {
  background: var(--customer-pink);
}

.customer-account-switch-v3 input:checked + span::after {
  transform: translateX(24px);
}

.customer-account-save-v3 {
  min-height: 56px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #5148f5 0%, #f72585 52%, #ff5f55 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(247, 37, 133, 0.18);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.customer-account-save-v3:active {
  transform: scale(0.99);
}

@media (max-width: 900px) {
  .customer-account-v3 {
    padding: 16px 16px calc(96px + env(safe-area-inset-bottom));
  }

  .v2-customer-app:has(.customer-account-v3) .compact-customer-topbar {
    min-height: 86px;
    padding: 14px 16px;
    border-bottom: 1px solid #e6edf5;
    background: #ffffff;
  }

  .v2-customer-app:has(.customer-account-v3) .compact-customer-brand {
    width: auto;
    min-width: 46px;
    height: auto;
    gap: 0;
  }

  .v2-customer-app:has(.customer-account-v3) .compact-customer-brand > span:not(.logo-badge) {
    display: none;
  }

  .v2-customer-app:has(.customer-account-v3) .compact-customer-brand .logo-badge {
    width: 46px;
    min-width: 46px;
    height: 46px;
    border-radius: 12px;
    font-size: 17px;
  }

  .v2-customer-app:has(.customer-account-v3) .compact-customer-store strong {
    font-size: 14px;
    line-height: 1.1;
  }

  .v2-customer-app:has(.customer-account-v3) .compact-customer-store span {
    margin-top: 5px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #dff7ea;
    color: #00834c;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
  }

  .v2-customer-app:has(.customer-account-v3) .compact-customer-actions .icon-action {
    width: 46px;
    min-width: 46px;
    height: 46px;
    border-radius: 14px;
    border-color: #dce5ef;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  }


  .customer-account-actions-v3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .customer-account-action-v3 {
    min-height: 134px;
    padding: 14px;
  }

  .customer-account-action-v3 strong {
    font-size: 15px;
  }

  .customer-account-action-v3 small {
    font-size: 12px;
  }
}

@media (max-width: 430px) {
  .customer-account-v3 {
    padding-inline: 14px;
  }


  .customer-account-hero-v3 h1 {
    font-size: 34px;
  }

  .customer-account-actions-v3 {
    gap: 9px;
  }

  .customer-account-action-v3 {
    min-height: 130px;
    padding: 12px;
    border-radius: 14px;
  }

  .customer-account-action-v3 span {
    width: 36px;
    height: 36px;
  }

  .customer-account-action-v3 strong {
    font-size: 14px;
  }

  .customer-account-action-v3 small {
    font-size: 11px;
  }

  .customer-account-row-v3 {
    min-height: 66px;
    padding: 13px 15px;
  }

  .customer-account-notify-v3 {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 15px;
  }

  .customer-account-notify-v3 > span {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .customer-account-switch-v3 {
    width: 52px;
    height: 32px;
  }

  .customer-account-switch-v3 span::after {
    width: 24px;
    height: 24px;
  }

  .customer-account-switch-v3 input:checked + span::after {
    transform: translateX(20px);
  }
}

@media (max-width: 360px) {


  .customer-account-actions-v3 {
    grid-template-columns: 1fr;
  }

  .customer-account-action-v3 {
    min-height: 92px;
  }
}

/* Customer Catalog V2 - mobile brand-list mockup pass */
.catalog-flow-count-label {
  margin: 0;
  color: var(--flow-muted);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.catalog-flow-home-title {
  align-items: center;
}

@media (max-width: 767px) {
  .v2-customer-app .v2-app-main {
    background: #f4f7fb;
  }

  .compact-customer-topbar.v2-app-topbar {
    position: sticky;
    top: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 86px;
    padding: 13px 14px 12px;
    border-bottom: 1px solid rgba(220, 226, 235, 0.95);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  }

  .compact-customer-brand {
    display: none !important;
  }

  .compact-customer-store {
    position: relative;
    display: grid;
    align-content: center;
    justify-self: start;
    min-width: 0;
    min-height: 52px;
    padding-left: 62px;
  }

  .compact-customer-store::before {
    content: "SD";
    position: absolute;
    left: 0;
    top: 50%;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6c5cff 0%, #f72585 52%, #fb7756 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 950;
    box-shadow: 0 10px 24px rgba(247, 37, 133, 0.18);
    transform: translateY(-50%);
  }

  .compact-customer-store strong {
    max-width: min(52vw, 210px);
    color: #0f172a;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.1;
    letter-spacing: 0;
  }

  .compact-customer-store span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: min(52vw, 210px);
    min-height: 19px;
    margin-top: 3px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #dcfce7;
    color: #047857;
    font-size: 10px;
    font-weight: 950;
    line-height: 1.2;
  }

  .compact-customer-store span::before {
    content: "";
    width: 5px;
    height: 5px;
    margin-right: 5px;
    border-radius: 999px;
    background: #059669;
  }

  .compact-customer-actions.v2-app-actions {
    display: inline-flex;
    align-items: center;
    justify-content: end;
    gap: 8px;
    min-width: max-content;
  }

  .compact-customer-actions .icon-action,
  .compact-account-menu .account-menu-action.icon-action {
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-radius: 13px;
    border-color: #dfe6f0;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
  }

  .compact-customer-actions .icon-action svg,
  .compact-account-menu .account-menu-action svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.4;
  }

  .compact-customer-actions .action-count {
    top: -8px;
    right: -7px;
    min-width: 19px;
    height: 19px;
    border-width: 2px;
    font-size: 10px;
  }

  .catalog-flow-v3.catalog-flow-home {
    width: 100%;
    padding: 16px 15px calc(102px + env(safe-area-inset-bottom));
    background: #f4f7fb;
  }

  .catalog-flow-home .catalog-flow-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
  }

  .catalog-flow-home .catalog-flow-title-row h1 {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.15;
  }

  .catalog-flow-home .catalog-flow-count-label {
    color: #475569;
    font-size: 12px;
    font-weight: 900;
  }

  .catalog-flow-home .catalog-flow-search-row {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 9px;
    margin: 0 0 12px;
  }

  .catalog-flow-home .catalog-flow-search {
    min-height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    border-color: #dde5f0;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  }

  .catalog-flow-home .catalog-flow-search input {
    min-height: 42px;
    font-size: 15px;
    font-weight: 750;
  }

  .catalog-flow-home .catalog-flow-filter-btn {
    min-height: 44px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  }

  .catalog-flow-home .catalog-flow-section {
    margin-top: 0;
  }

  .catalog-flow-home .catalog-flow-brand-list {
    gap: 10px;
  }

  .catalog-flow-home .catalog-flow-brand-card {
    grid-template-columns: 114px minmax(0, 1fr) 26px;
    gap: 12px;
    min-height: 124px;
    padding: 10px;
    border: 1px solid #e3e9f2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.055);
  }

  .catalog-flow-home .catalog-flow-brand-media {
    width: 114px;
    height: 98px;
    border-radius: 13px;
    background:
      radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.88) 0 15%, transparent 16%),
      linear-gradient(135deg, #f2e9ff 0%, #eef8ff 52%, #ffe5f1 100%);
  }

  .catalog-flow-home .catalog-flow-brand-media img {
    object-fit: cover;
    object-position: center;
  }

  .catalog-flow-home .catalog-flow-brand-content {
    gap: 5px;
    min-width: 0;
  }

  .catalog-flow-home .catalog-flow-brand-content strong {
    color: #0f172a;
    font-size: 17px;
    font-weight: 950;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .catalog-flow-home .catalog-flow-brand-content small {
    color: #667085;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.25;
  }

  .catalog-flow-home .catalog-flow-brand-content em {
    color: #c2410c;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.2;
  }

  .catalog-flow-home .catalog-flow-badge {
    min-height: 21px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
  }

  .catalog-flow-home .catalog-flow-chevron {
    width: 26px;
    height: 26px;
    align-self: center;
    color: #f72585;
    background: #fff0f7;
  }

  .catalog-flow-home .catalog-flow-chevron svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.8;
  }

  .catalog-flow-home .catalog-flow-category-row {
    margin-top: 14px;
  }
}

@media (max-width: 380px) {
  .compact-customer-store {
    padding-left: 58px;
  }

  .compact-customer-store::before {
    width: 48px;
    height: 48px;
  }

  .catalog-flow-v3.catalog-flow-home {
    padding-left: 12px;
    padding-right: 12px;
  }

  .catalog-flow-home .catalog-flow-brand-card {
    grid-template-columns: 104px minmax(0, 1fr) 24px;
    gap: 10px;
  }

  .catalog-flow-home .catalog-flow-brand-media {
    width: 104px;
    height: 94px;
  }

  .catalog-flow-home .catalog-flow-brand-content strong {
    font-size: 16px;
  }
}
