:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --text: #1f252c;
  --muted: #687483;
  --line: #dce2e8;
  --strong-line: #c6d0da;
  --primary: #15705f;
  --primary-dark: #0e594c;
  --accent: #255f9d;
  --danger: #b13f3f;
  --warning: #996100;
  --success-bg: #e5f5ee;
  --failed-bg: #fff1dc;
  --my-order-success: #15705f;
  --my-order-total: #d17800;
  --my-order-moq: #687483;
  --new-product-progress-self: #15705f;
  --new-product-progress-manager: #d17800;
  --new-product-progress-other: #6f8393;
  --new-product-progress-remaining: #edf1f4;
  --inventory-available: #15705f;
  --inventory-tag-bg: #f7f9fb;
  --inventory-tag-font-size: 12px;
  --inventory-tag-text: #687483;
  --operator-tag-bg: #f0f4f7;
  --operator-tag-font-size: 12px;
  --operator-tag-text: #687483;
  --base-font-size: 14px;
  --radius: 8px;
  --card-gap: 16px;
  --product-image-size: 72px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

@property --electric-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 18deg;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-size: var(--base-font-size);
  margin: 0;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 24px;
  font-weight: 780;
  letter-spacing: 0;
}

h2 {
  font-size: 16px;
  font-weight: 740;
  letter-spacing: 0;
}

h3 {
  font-size: 14px;
  margin-bottom: 12px;
}

.hidden {
  display: none !important;
}

.login-shell {
  align-items: center;
  background-image: var(--login-bg-image);
  background-position: center;
  background-size: cover;
  display: grid;
  min-height: 100vh;
  padding: 24px;
}

.login-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(31, 37, 44, 0.08);
  display: grid;
  gap: 14px;
  margin: 0 auto;
  max-width: 380px;
  padding: 24px;
  width: 100%;
}

.brand-logo {
  max-height: 64px;
  max-width: 180px;
  object-fit: contain;
}

.password-login {
  border-top: 1px solid var(--line);
  padding-top: 6px;
}

.password-login summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  list-style-position: inside;
  padding: 6px 0;
}

.login-card p,
.hint,
.muted {
  color: var(--muted);
  font-size: 13px;
}

label {
  color: var(--muted);
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 680;
}

input,
textarea,
select {
  background: #fff;
  border: 1px solid var(--strong-line);
  border-radius: 6px;
  color: var(--text);
  min-height: 38px;
  outline: none;
  padding: 8px 10px;
}

textarea {
  line-height: 1.5;
  min-height: 132px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 95, 157, 0.12);
}

.topbar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 18px 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.userbar,
.admin-actions,
.button-row {
  align-items: center;
  display: flex;
  gap: 10px;
}

.admin-actions {
  flex-wrap: wrap;
}

.button-row.compact {
  flex-wrap: wrap;
  gap: 6px;
}

.inline-select {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 13px;
  font-weight: 720;
  gap: 6px;
}

.inline-select select {
  min-height: 36px;
  min-width: 142px;
  padding: 7px 30px 7px 10px;
}

.central-purchase-candidate-controls {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) max-content;
}

.central-purchase-candidate-controls label {
  display: grid;
  gap: 6px;
}

.central-purchase-candidate-controls select {
  width: 100%;
}

.hall-search {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 13px;
  font-weight: 720;
  gap: 6px;
}

.hall-search input {
  background: #fbfcfd;
  min-height: 36px;
  min-width: 220px;
  width: min(30vw, 300px);
}

.layout {
  display: grid;
  gap: var(--card-gap);
  grid-template-columns: minmax(540px, 1fr) minmax(320px, 400px);
  padding: 16px 24px 28px;
}

.new-page-body {
  background: #eef2f4;
}

.new-workspace {
  min-height: 100vh;
}

.new-topbar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.new-layout {
  display: grid;
  gap: 16px;
  margin: 0;
  max-width: none;
  padding: 18px 24px 32px;
  width: 100%;
}

.new-hero {
  align-items: end;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 42%, rgba(255, 255, 255, 0.28) 100%),
    url("/uploads/new_products/new-product-hall-banner.png") center / cover;
  border: 1px solid rgba(198, 208, 218, 0.9);
  border-radius: var(--radius);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) max-content;
  min-height: 238px;
  overflow: hidden;
  padding: 28px;
}

.new-hero-copy {
  display: grid;
  gap: 10px;
  max-width: 620px;
}

.new-eyebrow {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.new-hero h2 {
  font-size: 30px;
}

.new-hero p {
  color: #4f5e69;
  font-size: 14px;
  line-height: 1.7;
}

.new-hero-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.new-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.new-stats > div {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  padding: 14px 16px;
}

.new-stats b {
  color: var(--text);
  font-size: 24px;
}

.new-stats span {
  color: var(--muted);
  font-size: 12px;
}

.new-stats-note {
  color: var(--muted);
  font-size: 13px;
  grid-column: 1 / -1;
  line-height: 1.6;
  margin: 0;
}

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

:root[data-density="compact"] .panel,
:root[data-compact="true"] .product-row,
:root[data-compact="true"] .record {
  padding: 12px;
}

:root[data-density="comfortable"] .panel {
  padding: 24px;
}

.hall-panel {
  min-height: 640px;
}

.side-stack {
  display: grid;
  gap: var(--card-gap);
}

.side-stack-content,
.new-workbench-content {
  display: grid;
  gap: var(--card-gap);
}

.mobile-collapse-summary {
  display: none;
}

.mobile-fold-toggle {
  display: none;
}

.topbar-actions-content {
  align-items: center;
  display: flex;
  gap: 10px;
}

.hall-options-collapse {
  display: block;
  margin-bottom: 12px;
}

.hall-options-content {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.hall-options-content .button-row,
.hall-options-content .hall-status-filters,
.hall-options-content .hall-tabs {
  justify-content: flex-end;
}

.admin-panel {
  grid-column: 1 / -1;
}

.group-order-panel {
  grid-column: 1 / -1;
}

.new-product-panel {
  grid-column: 1 / -1;
}

.new-product-start {
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  padding-bottom: 14px;
}

.new-product-start-form {
  margin-top: 0;
}

.new-product-fields {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.new-product-sku-preview {
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
}

.new-product-sku-preview-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 74px minmax(0, 1fr);
}

.new-product-sku-preview-image {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: #eef3f7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.new-product-sku-preview-image img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.new-product-sku-preview-row p,
.new-product-sku-preview-miss {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.new-product-batch-list {
  display: grid;
  gap: 12px;
}

.new-product-batch-summary {
  align-items: center;
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: space-between;
  padding: 10px 12px;
}

.new-product-batch-summary strong {
  color: var(--text);
}

.new-product-batch-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  padding: 12px;
}

.new-product-batch-head {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.new-product-batch-head div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.new-product-batch-head strong {
  overflow-wrap: anywhere;
}

.new-product-batch-head span,
.new-product-batch-head small {
  color: var(--muted);
  font-size: 12px;
}

.new-product-batch-pending {
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  padding: 12px;
}

.new-product-batch-pending-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.new-product-batch-pending-head div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.new-product-batch-pending-head span {
  color: var(--muted);
  font-size: 12px;
}

.new-product-batch-pending-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.new-product-batch-pending-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  grid-template-columns: 64px minmax(0, 1fr);
  padding: 8px;
}

.new-product-batch-pending-image {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: #eef3f7;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.new-product-batch-pending-image img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.new-product-batch-pending-card div:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.new-product-batch-pending-card strong,
.new-product-batch-pending-card span,
.new-product-batch-pending-card small {
  overflow-wrap: anywhere;
}

.new-product-batch-pending-card span,
.new-product-batch-pending-card small {
  color: var(--muted);
  font-size: 12px;
}

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

.new-product-designer-filters {
  margin-bottom: 14px;
}

.new-product-board > .panel-title {
  align-items: flex-start;
  justify-content: flex-start;
}

.new-product-type-tabs {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1px 0 0 18px;
}

.new-product-type-tabs.hidden {
  display: none;
}

.new-product-type-tab {
  align-items: center;
  background: #f7fafb;
  border: 1px solid #d4e2eb;
  border-radius: 999px;
  color: #25313b;
  cursor: pointer;
  display: inline-flex;
  font-weight: 820;
  gap: 8px;
  min-height: 40px;
  padding: 7px 12px;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.new-product-type-tab:hover,
.new-product-type-tab.active {
  background: #eef6fb;
  border-color: #8fb7d1;
  box-shadow: 0 0 0 4px rgba(37, 95, 157, 0.1);
}

.new-product-type-tab:active {
  transform: translateY(1px);
}

.new-product-type-tab b {
  background: #fff;
  border: 1px solid #d8e4ec;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  min-width: 24px;
  padding: 5px 7px;
  text-align: center;
}

@media (max-width: 720px) {
  .share-borrow-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .share-borrow-response-list > div {
    align-items: start;
    grid-template-columns: 1fr;
  }
  .new-product-board > .panel-title {
    align-items: stretch;
    flex-direction: column;
  }

  .new-product-type-tabs {
    margin: 0;
  }
}

.new-product-designer-filter-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.new-product-designer-filter-item {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.new-product-designer-filter {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(var(--designer-rgb, 31, 37, 44), 0.08)),
    rgba(var(--designer-rgb, 31, 37, 44), 0.05);
  border: 1px solid rgba(var(--designer-rgb, 31, 37, 44), 0.24);
  border-radius: 999px;
  color: #1f252c;
  cursor: pointer;
  display: inline-flex;
  gap: 10px;
  min-height: 48px;
  padding: 6px 12px 6px 7px;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.new-product-designer-filter:hover,
.new-product-designer-filter.active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(var(--designer-rgb, 31, 37, 44), 0.13)),
    rgba(var(--designer-rgb, 31, 37, 44), 0.1);
  border-color: rgba(var(--designer-rgb, 31, 37, 44), 0.58);
  box-shadow: 0 0 0 4px rgba(var(--designer-rgb, 31, 37, 44), 0.11), 0 12px 26px rgba(var(--designer-rgb, 31, 37, 44), 0.13);
  color: var(--designer-color, var(--primary-dark));
}

.new-product-designer-filter:active {
  transform: translateY(1px);
}

.new-product-designer-filter.all {
  --designer-color: #1f252c;
  --designer-rgb: 31, 37, 44;
}

.new-product-designer-filter.mine {
  --designer-color: var(--accent);
  --designer-rgb: 37, 95, 157;
}

.new-product-designer-filter i,
.new-product-designer-badge i {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.96) 0 20%, rgba(255, 255, 255, 0.38) 21% 34%, transparent 35%),
    radial-gradient(circle at 64% 68%, rgba(var(--designer-rgb, 21, 112, 95), 0.92), var(--designer-color, var(--primary)) 68%);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -8px 14px rgba(0, 0, 0, 0.1),
    0 0 0 3px rgba(255, 255, 255, 0.95),
    0 0 0 5px rgba(var(--designer-rgb, 21, 112, 95), 0.16),
    0 8px 18px rgba(var(--designer-rgb, 21, 112, 95), 0.18);
  display: inline-block;
  flex: 0 0 auto;
  height: 32px;
  width: 32px;
}

.new-product-designer-filter span {
  font-size: 13px;
  font-weight: 840;
}

.new-product-designer-logo {
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 0 0 3px rgba(255, 255, 255, 0.96),
    0 0 0 5px rgba(var(--designer-rgb, 21, 112, 95), 0.16),
    0 8px 18px rgba(var(--designer-rgb, 21, 112, 95), 0.18);
  display: inline-block;
  flex: 0 0 auto;
  object-fit: cover;
}

.new-product-designer-logo.filter {
  height: 34px;
  width: 34px;
}

.new-product-designer-logo.badge {
  height: 26px;
  width: 26px;
}

.new-product-designer-filter b {
  background: rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  color: var(--designer-color, var(--primary-dark));
  font-size: 12px;
  font-weight: 840;
  line-height: 1;
  min-width: 22px;
  padding: 4px 7px;
  text-align: center;
}

.new-product-designer-logo-upload,
.new-product-designer-color {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(var(--designer-rgb, 31, 37, 44), 0.28);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  padding: 3px;
  width: 28px;
}

.new-product-designer-logo-upload::before {
  color: var(--designer-color, var(--primary-dark));
  content: "+";
  font-size: 18px;
  font-weight: 760;
  line-height: 1;
}

.new-product-designer-logo-upload input {
  display: none;
}

.new-product-designer-border-picker {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(var(--designer-rgb, 31, 37, 44), 0.16);
  border-radius: 999px;
  display: inline-flex;
  gap: 4px;
  padding: 3px;
}

.new-product-border-swatch {
  --border-preview-size: 30px;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  height: var(--border-preview-size);
  min-height: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  transition: box-shadow 0.16s ease, transform 0.16s ease;
  width: var(--border-preview-size);
}

.new-product-border-swatch span {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.new-product-border-swatch.active,
.new-product-border-swatch:hover {
  box-shadow: 0 0 0 3px rgba(var(--designer-rgb, 21, 112, 95), 0.16);
  transform: translateY(-1px);
}

.new-product-designer-color input {
  background: transparent;
  border: 0;
  cursor: pointer;
  height: 20px;
  min-height: 0;
  padding: 0;
  width: 20px;
}

.new-product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 0;
  overflow: hidden;
  position: relative;
}

.new-product-card::before,
.new-product-card::after,
.new-product-border-swatch::before,
.new-product-border-swatch::after {
  border-radius: inherit;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.new-product-card > * {
  position: relative;
  z-index: 2;
}

.new-product-card.designer-border-minimal,
.new-product-border-swatch.designer-border-minimal {
  border-color: rgba(var(--designer-rgb, 21, 112, 95), 0.52);
  box-shadow: 0 8px 24px rgba(var(--designer-rgb, 21, 112, 95), 0.08);
}

.new-product-card.designer-border-double,
.new-product-border-swatch.designer-border-double {
  border: 1px solid rgba(var(--designer-rgb, 21, 112, 95), 0.58);
  box-shadow: inset 0 0 0 3px rgba(var(--designer-rgb, 21, 112, 95), 0.12), 0 10px 26px rgba(31, 37, 44, 0.05);
}

.new-product-card.designer-border-botanical,
.new-product-border-swatch.designer-border-botanical {
  border-color: rgba(var(--designer-rgb, 21, 112, 95), 0.48);
  box-shadow: 0 10px 28px rgba(var(--designer-rgb, 21, 112, 95), 0.09);
}

.new-product-card.designer-border-botanical::before,
.new-product-border-swatch.designer-border-botanical::before {
  background:
    radial-gradient(16px 9px at 16px 16px, rgba(var(--designer-rgb, 21, 112, 95), 0.2) 0 45%, transparent 48%),
    radial-gradient(15px 8px at calc(100% - 16px) calc(100% - 16px), rgba(var(--designer-rgb, 21, 112, 95), 0.18) 0 45%, transparent 48%),
    linear-gradient(135deg, rgba(var(--designer-rgb, 21, 112, 95), 0.26), transparent 22%, transparent 78%, rgba(var(--designer-rgb, 21, 112, 95), 0.2));
  opacity: 0.9;
}

.new-product-card.designer-border-gem,
.new-product-border-swatch.designer-border-gem {
  border-color: rgba(var(--designer-rgb, 21, 112, 95), 0.46);
}

.new-product-card.designer-border-gem::before,
.new-product-border-swatch.designer-border-gem::before {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.72), transparent 30%),
    conic-gradient(from 45deg, rgba(var(--designer-rgb, 21, 112, 95), 0.28), transparent 18%, rgba(var(--designer-rgb, 21, 112, 95), 0.18), transparent 56%, rgba(var(--designer-rgb, 21, 112, 95), 0.26));
  padding: 2px;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.new-product-card.designer-border-aurora,
.new-product-border-swatch.designer-border-aurora {
  border-color: rgba(var(--designer-rgb, 21, 112, 95), 0.32);
  box-shadow: 0 0 0 1px rgba(var(--designer-rgb, 21, 112, 95), 0.14), 0 14px 40px rgba(var(--designer-rgb, 21, 112, 95), 0.16);
}

.new-product-card.designer-border-aurora::before,
.new-product-border-swatch.designer-border-aurora::before {
  background: linear-gradient(135deg, rgba(var(--designer-rgb, 21, 112, 95), 0.22), rgba(255,255,255,0), rgba(var(--designer-rgb, 21, 112, 95), 0.14));
}

.new-product-card.designer-border-stitched,
.new-product-border-swatch.designer-border-stitched {
  border: 1px dashed rgba(var(--designer-rgb, 21, 112, 95), 0.76);
  box-shadow: inset 0 0 0 4px rgba(var(--designer-rgb, 21, 112, 95), 0.06);
}

.new-product-card.designer-border-corner,
.new-product-border-swatch.designer-border-corner {
  border-color: rgba(var(--designer-rgb, 21, 112, 95), 0.28);
}

.new-product-card.designer-border-corner::before,
.new-product-border-swatch.designer-border-corner::before {
  background:
    linear-gradient(var(--designer-color), var(--designer-color)) left 10px top 10px / 34px 2px no-repeat,
    linear-gradient(var(--designer-color), var(--designer-color)) left 10px top 10px / 2px 34px no-repeat,
    linear-gradient(var(--designer-color), var(--designer-color)) right 10px bottom 10px / 34px 2px no-repeat,
    linear-gradient(var(--designer-color), var(--designer-color)) right 10px bottom 10px / 2px 34px no-repeat;
  opacity: 0.78;
}

.new-product-card.designer-border-ribbon,
.new-product-border-swatch.designer-border-ribbon {
  border-color: rgba(var(--designer-rgb, 21, 112, 95), 0.34);
}

.new-product-card.designer-border-ribbon::before,
.new-product-border-swatch.designer-border-ribbon::before {
  background:
    linear-gradient(135deg, rgba(var(--designer-rgb, 21, 112, 95), 0.2) 0 18px, transparent 18px),
    linear-gradient(315deg, rgba(var(--designer-rgb, 21, 112, 95), 0.16) 0 18px, transparent 18px);
}

.new-product-card.designer-border-pearl,
.new-product-border-swatch.designer-border-pearl {
  border-color: rgba(var(--designer-rgb, 21, 112, 95), 0.34);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.74);
}

.new-product-card.designer-border-pearl::before,
.new-product-border-swatch.designer-border-pearl::before {
  background:
    radial-gradient(circle at 14px 14px, rgba(var(--designer-rgb, 21, 112, 95), 0.34) 0 2px, transparent 2.6px),
    radial-gradient(circle at calc(100% - 14px) 14px, rgba(var(--designer-rgb, 21, 112, 95), 0.28) 0 2px, transparent 2.6px),
    radial-gradient(circle at 14px calc(100% - 14px), rgba(var(--designer-rgb, 21, 112, 95), 0.28) 0 2px, transparent 2.6px),
    radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), rgba(var(--designer-rgb, 21, 112, 95), 0.34) 0 2px, transparent 2.6px);
}

.new-product-card.designer-border-crystal,
.new-product-border-swatch.designer-border-crystal {
  border-color: rgba(var(--designer-rgb, 21, 112, 95), 0.45);
  box-shadow: 0 11px 30px rgba(31, 37, 44, 0.06);
}

.new-product-card.designer-border-crystal::before,
.new-product-border-swatch.designer-border-crystal::before {
  background:
    linear-gradient(120deg, rgba(var(--designer-rgb, 21, 112, 95), 0.34) 0 8%, transparent 8% 88%, rgba(var(--designer-rgb, 21, 112, 95), 0.24) 88%),
    linear-gradient(35deg, transparent 18%, rgba(255,255,255,0.72) 18% 21%, transparent 21% 74%, rgba(var(--designer-rgb, 21, 112, 95), 0.18) 74% 78%, transparent 78%);
  padding: 2px;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.new-product-card.designer-border-marble,
.new-product-border-swatch.designer-border-marble {
  border-color: rgba(var(--designer-rgb, 21, 112, 95), 0.32);
  box-shadow: inset 0 0 0 1px rgba(var(--designer-rgb, 21, 112, 95), 0.06), 0 12px 28px rgba(31, 37, 44, 0.05);
}

.new-product-card.designer-border-marble::before,
.new-product-border-swatch.designer-border-marble::before {
  background:
    linear-gradient(130deg, transparent 8%, rgba(var(--designer-rgb, 21, 112, 95), 0.18) 9%, transparent 11% 48%, rgba(var(--designer-rgb, 21, 112, 95), 0.14) 50%, transparent 53%),
    linear-gradient(28deg, transparent 18%, rgba(var(--designer-rgb, 21, 112, 95), 0.11) 20%, transparent 23% 78%, rgba(var(--designer-rgb, 21, 112, 95), 0.16) 80%, transparent 82%);
  opacity: 0.9;
}

.new-product-card.designer-border-neon,
.new-product-border-swatch.designer-border-neon {
  border-color: rgba(var(--designer-rgb, 21, 112, 95), 0.72);
  box-shadow: 0 0 0 1px rgba(var(--designer-rgb, 21, 112, 95), 0.2), 0 0 18px rgba(var(--designer-rgb, 21, 112, 95), 0.22), 0 14px 34px rgba(31, 37, 44, 0.05);
}

.new-product-card.designer-border-neon::before,
.new-product-border-swatch.designer-border-neon::before {
  border: 2px solid rgba(var(--designer-rgb, 21, 112, 95), 0.24);
  inset: 5px;
}

.new-product-card.designer-border-wave,
.new-product-border-swatch.designer-border-wave {
  border-color: rgba(var(--designer-rgb, 21, 112, 95), 0.4);
}

.new-product-card.designer-border-wave::before,
.new-product-border-swatch.designer-border-wave::before {
  background:
    radial-gradient(18px 10px at 18px 0, transparent 68%, rgba(var(--designer-rgb, 21, 112, 95), 0.22) 70% 78%, transparent 80%) top left / 36px 12px repeat-x,
    radial-gradient(18px 10px at 18px 100%, transparent 68%, rgba(var(--designer-rgb, 21, 112, 95), 0.18) 70% 78%, transparent 80%) bottom left / 36px 12px repeat-x;
}

.new-product-card.designer-border-ink,
.new-product-border-swatch.designer-border-ink {
  border-color: rgba(var(--designer-rgb, 21, 112, 95), 0.64);
  box-shadow: inset 0 0 0 2px rgba(var(--designer-rgb, 21, 112, 95), 0.08);
}

.new-product-card.designer-border-ink::before,
.new-product-border-swatch.designer-border-ink::before {
  background:
    linear-gradient(93deg, rgba(var(--designer-rgb, 21, 112, 95), 0.34), transparent 20% 80%, rgba(var(--designer-rgb, 21, 112, 95), 0.26)) left top / 100% 2px no-repeat,
    linear-gradient(267deg, rgba(var(--designer-rgb, 21, 112, 95), 0.28), transparent 20% 80%, rgba(var(--designer-rgb, 21, 112, 95), 0.3)) left bottom / 100% 2px no-repeat,
    linear-gradient(183deg, rgba(var(--designer-rgb, 21, 112, 95), 0.3), transparent 18% 82%, rgba(var(--designer-rgb, 21, 112, 95), 0.24)) left top / 2px 100% no-repeat,
    linear-gradient(3deg, rgba(var(--designer-rgb, 21, 112, 95), 0.26), transparent 18% 82%, rgba(var(--designer-rgb, 21, 112, 95), 0.32)) right top / 2px 100% no-repeat;
}

.new-product-card.designer-border-metal,
.new-product-border-swatch.designer-border-metal {
  border-color: rgba(var(--designer-rgb, 21, 112, 95), 0.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.74), 0 14px 30px rgba(31, 37, 44, 0.06);
}

.new-product-card.designer-border-metal::before,
.new-product-border-swatch.designer-border-metal::before {
  background: linear-gradient(115deg, rgba(var(--designer-rgb, 21, 112, 95), 0.12), rgba(255,255,255,0.86), rgba(var(--designer-rgb, 21, 112, 95), 0.2), rgba(255,255,255,0.62));
  padding: 2px;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.new-product-card.designer-border-lace,
.new-product-border-swatch.designer-border-lace {
  border-color: rgba(var(--designer-rgb, 21, 112, 95), 0.35);
}

.new-product-card.designer-border-lace::before,
.new-product-border-swatch.designer-border-lace::before {
  background:
    radial-gradient(circle at 10px 10px, rgba(var(--designer-rgb, 21, 112, 95), 0.24) 0 2px, transparent 2.6px) top left / 20px 20px repeat-x,
    radial-gradient(circle at 10px 10px, rgba(var(--designer-rgb, 21, 112, 95), 0.18) 0 2px, transparent 2.6px) bottom left / 20px 20px repeat-x,
    radial-gradient(circle at 10px 10px, rgba(var(--designer-rgb, 21, 112, 95), 0.2) 0 2px, transparent 2.6px) top left / 20px 20px repeat-y,
    radial-gradient(circle at 10px 10px, rgba(var(--designer-rgb, 21, 112, 95), 0.2) 0 2px, transparent 2.6px) top right / 20px 20px repeat-y;
}

.new-product-card.designer-border-sunrise,
.new-product-border-swatch.designer-border-sunrise {
  border-color: rgba(var(--designer-rgb, 21, 112, 95), 0.32);
  box-shadow: 0 12px 32px rgba(var(--designer-rgb, 21, 112, 95), 0.11);
}

.new-product-card.designer-border-sunrise::before,
.new-product-border-swatch.designer-border-sunrise::before {
  background:
    radial-gradient(circle at 50% 100%, rgba(var(--designer-rgb, 21, 112, 95), 0.22) 0 18%, transparent 20%),
    linear-gradient(180deg, transparent 62%, rgba(var(--designer-rgb, 21, 112, 95), 0.12));
}

.new-product-card.designer-border-mosaic,
.new-product-border-swatch.designer-border-mosaic {
  border-color: rgba(var(--designer-rgb, 21, 112, 95), 0.34);
}

.new-product-card.designer-border-mosaic::before,
.new-product-border-swatch.designer-border-mosaic::before {
  background:
    linear-gradient(90deg, rgba(var(--designer-rgb, 21, 112, 95), 0.24) 0 8px, transparent 8px 12px, rgba(var(--designer-rgb, 21, 112, 95), 0.14) 12px 20px, transparent 20px) left top / 40px 10px no-repeat,
    linear-gradient(90deg, rgba(var(--designer-rgb, 21, 112, 95), 0.16) 0 8px, transparent 8px 12px, rgba(var(--designer-rgb, 21, 112, 95), 0.25) 12px 20px, transparent 20px) right bottom / 40px 10px no-repeat,
    linear-gradient(180deg, rgba(var(--designer-rgb, 21, 112, 95), 0.18) 0 8px, transparent 8px 12px, rgba(var(--designer-rgb, 21, 112, 95), 0.12) 12px 20px, transparent 20px) left top / 10px 40px no-repeat,
    linear-gradient(180deg, rgba(var(--designer-rgb, 21, 112, 95), 0.12) 0 8px, transparent 8px 12px, rgba(var(--designer-rgb, 21, 112, 95), 0.22) 12px 20px, transparent 20px) right bottom / 10px 40px no-repeat;
}

.new-product-card.designer-border-orbit,
.new-product-border-swatch.designer-border-orbit {
  border-color: rgba(var(--designer-rgb, 21, 112, 95), 0.36);
  box-shadow: inset 0 0 0 1px rgba(var(--designer-rgb, 21, 112, 95), 0.08);
}

.new-product-card.designer-border-orbit::before,
.new-product-border-swatch.designer-border-orbit::before {
  background:
    radial-gradient(circle at 18px 18px, transparent 0 10px, rgba(var(--designer-rgb, 21, 112, 95), 0.3) 10px 11px, transparent 12px),
    radial-gradient(circle at calc(100% - 18px) calc(100% - 18px), transparent 0 10px, rgba(var(--designer-rgb, 21, 112, 95), 0.24) 10px 11px, transparent 12px),
    radial-gradient(circle at calc(100% - 18px) 18px, rgba(var(--designer-rgb, 21, 112, 95), 0.34) 0 2px, transparent 3px),
    radial-gradient(circle at 18px calc(100% - 18px), rgba(var(--designer-rgb, 21, 112, 95), 0.3) 0 2px, transparent 3px);
}

.new-product-card.designer-border-velvet,
.new-product-border-swatch.designer-border-velvet {
  border-color: rgba(var(--designer-rgb, 21, 112, 95), 0.45);
  box-shadow: inset 0 0 0 5px rgba(var(--designer-rgb, 21, 112, 95), 0.06), 0 18px 34px rgba(var(--designer-rgb, 21, 112, 95), 0.12);
}

.new-product-card.designer-border-velvet::before,
.new-product-border-swatch.designer-border-velvet::before {
  background:
    linear-gradient(135deg, rgba(var(--designer-rgb, 21, 112, 95), 0.12), transparent 44%, rgba(var(--designer-rgb, 21, 112, 95), 0.18)),
    repeating-linear-gradient(90deg, rgba(var(--designer-rgb, 21, 112, 95), 0.04) 0 1px, transparent 1px 4px);
}

.new-product-card[class*="designer-border-"],
.new-product-border-swatch[class*="designer-border-"] {
  border-width: 2px;
}

.new-product-card[class*="designer-border-"] {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.92),
    0 16px 34px rgba(var(--designer-rgb, 21, 112, 95), 0.12),
    0 6px 14px rgba(31, 37, 44, 0.04);
}

.new-product-card[class*="designer-border-"]::after,
.new-product-border-swatch[class*="designer-border-"]::after {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), transparent 24% 74%, rgba(var(--designer-rgb, 21, 112, 95), 0.2)),
    linear-gradient(180deg, rgba(var(--designer-rgb, 21, 112, 95), 0.09), transparent 34% 70%, rgba(var(--designer-rgb, 21, 112, 95), 0.08));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 0 0 2px rgba(var(--designer-rgb, 21, 112, 95), 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -12px 24px rgba(var(--designer-rgb, 21, 112, 95), 0.05);
  inset: 3px;
  opacity: 0.95;
}

.new-product-card.designer-border-electric-field,
.new-product-card.designer-border-electric-field-a,
.new-product-card.designer-border-electric-field-b {
  background: #fff;
  border-color: rgba(var(--designer-rgb, 255, 214, 10), 0.82);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.78),
    0 0 20px rgba(var(--designer-rgb, 255, 214, 10), 0.32),
    0 18px 42px rgba(31, 37, 44, 0.1);
  isolation: isolate;
}

.new-product-border-swatch.designer-border-electric-field,
.new-product-border-swatch.designer-border-electric-field-a,
.new-product-border-swatch.designer-border-electric-field-b {
  background: #111207;
  border-color: rgba(var(--designer-rgb, 255, 214, 10), 0.82);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.78),
    0 0 20px rgba(var(--designer-rgb, 255, 214, 10), 0.32),
    0 18px 42px rgba(31, 37, 44, 0.2);
  isolation: isolate;
}

.new-product-card.designer-border-electric-field::before,
.new-product-card.designer-border-electric-field-a::before,
.new-product-card.designer-border-electric-field-b::before {
  display: none;
}

.new-product-border-swatch.designer-border-electric-field::before,
.new-product-border-swatch.designer-border-electric-field-a::before,
.new-product-border-swatch.designer-border-electric-field-b::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(var(--designer-rgb, 255, 214, 10), 0.34), transparent 42%),
    radial-gradient(circle at 14% 20%, rgba(255, 255, 255, 0.62) 0 2px, transparent 5px),
    radial-gradient(circle at 86% 78%, rgba(var(--designer-rgb, 255, 214, 10), 0.62) 0 2px, transparent 6px),
    linear-gradient(145deg, #141405 0%, #29230c 48%, #080a08 100%);
  filter: saturate(1.16) contrast(1.08);
  animation: hiddenElectricFieldPulse 3.2s ease-in-out infinite;
  opacity: 1;
  z-index: 0;
}

.new-product-card.designer-border-electric-field::after,
.new-product-card.designer-border-electric-field-a::after,
.new-product-card.designer-border-electric-field-b::after,
.new-product-border-swatch.designer-border-electric-field::after,
.new-product-border-swatch.designer-border-electric-field-a::after,
.new-product-border-swatch.designer-border-electric-field-b::after {
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.92) 0 2px, transparent 5px),
    radial-gradient(circle at 86% 12%, rgba(var(--designer-rgb, 255, 214, 10), 0.82) 0 2px, transparent 6px),
    radial-gradient(circle at 16% 86%, rgba(var(--designer-rgb, 255, 214, 10), 0.72) 0 2px, transparent 6px),
    radial-gradient(circle at 88% 82%, rgba(255, 255, 255, 0.82) 0 2px, transparent 5px),
    conic-gradient(from var(--electric-angle, 18deg) at 50% 50%, rgba(255, 255, 255, 0.96), rgba(var(--designer-rgb, 255, 214, 10), 0.14) 9%, transparent 16%, rgba(var(--designer-rgb, 255, 214, 10), 0.82) 22%, transparent 31%, rgba(255, 255, 255, 0.72) 38%, transparent 48%, rgba(var(--designer-rgb, 255, 214, 10), 0.78) 58%, transparent 70%, rgba(255, 255, 255, 0.86) 80%, transparent 92%, rgba(var(--designer-rgb, 255, 214, 10), 0.74));
  border: 1px solid rgba(var(--designer-rgb, 255, 214, 10), 0.38);
  box-shadow:
    inset 0 0 0 2px rgba(var(--designer-rgb, 255, 214, 10), 0.2),
    inset 0 0 34px rgba(var(--designer-rgb, 255, 214, 10), 0.16),
    0 0 28px rgba(var(--designer-rgb, 255, 214, 10), 0.3);
  filter:
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.36))
    drop-shadow(0 0 18px rgba(var(--designer-rgb, 255, 214, 10), 0.5));
  inset: -1px;
  padding: 7px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: hiddenElectricCurrentFlow 2.4s linear infinite, hiddenElectricFrameFlicker 1.6s steps(2, end) infinite;
  opacity: 0.98;
  z-index: 1;
}

.new-product-card.designer-hidden-border-card::after {
  display: none;
}

.new-product-card.designer-hidden-border-card {
  overflow: visible;
}

.hidden-electric-canvas {
  filter: saturate(1.28) contrast(1.08);
  inset: -54px;
  height: calc(100% + 108px);
  mix-blend-mode: screen;
  opacity: 0.98;
  pointer-events: none;
  position: absolute;
  width: calc(100% + 108px);
  z-index: 3;
}

.new-product-card.designer-border-electric-field .new-product-media,
.new-product-card.designer-border-electric-field-a .new-product-media,
.new-product-card.designer-border-electric-field-b .new-product-media,
.designer-style-preview-card.designer-hidden-border-card .designer-style-preview-media {
  background: #f4f7f9;
  border-bottom-color: rgba(var(--designer-rgb, 255, 214, 10), 0.22);
  isolation: isolate;
}

.new-product-card.designer-border-electric-field .new-product-media::before,
.new-product-card.designer-border-electric-field-a .new-product-media::before,
.new-product-card.designer-border-electric-field-b .new-product-media::before,
.designer-style-preview-card.designer-hidden-border-card .designer-style-preview-media::before {
  background:
    radial-gradient(circle at 50% 52%, rgba(var(--designer-rgb, 255, 214, 10), 0.46), transparent 45%),
    radial-gradient(circle at 18% 20%, rgba(255, 248, 184, 0.68) 0 3px, transparent 6px),
    radial-gradient(circle at 76% 18%, rgba(255, 248, 184, 0.58) 0 3px, transparent 6px),
    radial-gradient(circle at 86% 78%, rgba(var(--designer-rgb, 255, 214, 10), 0.5) 0 2px, transparent 5px);
  border-radius: 0;
  content: "";
  height: auto;
  inset: 0;
  opacity: 0.72;
  pointer-events: none;
  position: absolute;
  transform: none;
  width: auto;
  z-index: 0;
}

.new-product-card.designer-border-electric-field .new-product-media::after,
.new-product-card.designer-border-electric-field-a .new-product-media::after,
.new-product-card.designer-border-electric-field-b .new-product-media::after,
.designer-style-preview-card.designer-hidden-border-card .designer-style-preview-media::after {
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.72) 0 2px, transparent 5px),
    radial-gradient(circle at 82% 20%, rgba(var(--designer-rgb, 255, 214, 10), 0.74) 0 2px, transparent 6px),
    radial-gradient(circle at 14% 76%, rgba(var(--designer-rgb, 255, 214, 10), 0.54) 0 2px, transparent 5px),
    radial-gradient(circle at 86% 78%, rgba(255, 255, 255, 0.58) 0 2px, transparent 5px),
    linear-gradient(102deg, transparent 0 16%, rgba(255, 255, 255, 0.42) 17%, transparent 19% 45%, rgba(var(--designer-rgb, 255, 214, 10), 0.4) 46%, transparent 48% 100%),
    linear-gradient(14deg, transparent 0 22%, rgba(var(--designer-rgb, 255, 214, 10), 0.36) 23%, transparent 25% 72%, rgba(255, 255, 255, 0.32) 73%, transparent 75%);
  content: "";
  filter:
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.48))
    drop-shadow(0 0 20px rgba(var(--designer-rgb, 255, 214, 10), 0.52));
  inset: 0;
  animation: hiddenElectricMediaCurrent 2.8s linear infinite, hiddenElectricFrameFlicker 1.9s steps(2, end) infinite;
  opacity: 0.62;
  pointer-events: none;
  position: absolute;
  transform-origin: 50% 50%;
  z-index: 1;
}

.new-product-card.designer-border-electric-field-b .new-product-media::after {
  opacity: 0.54;
}

.new-product-card.designer-hidden-border-card .new-product-media::after,
.designer-style-preview-card.designer-hidden-border-card .designer-style-preview-media::after {
  display: none;
}

.new-product-card.designer-hidden-border-card .new-product-media::before,
.designer-style-preview-card.designer-hidden-border-card .designer-style-preview-media::before {
  display: none;
}

.new-product-card.designer-border-electric-field .new-product-image-button,
.new-product-card.designer-border-electric-field-a .new-product-image-button,
.new-product-card.designer-border-electric-field-b .new-product-image-button,
.new-product-card.designer-border-electric-field .new-product-media img,
.new-product-card.designer-border-electric-field-a .new-product-media img,
.new-product-card.designer-border-electric-field-b .new-product-media img {
  position: relative;
  z-index: 5;
}

.new-product-card.designer-hidden-border-card .new-product-media .tag {
  z-index: 6;
}

.new-product-card.designer-hidden-border-card .new-product-main,
.new-product-card.designer-hidden-border-card .new-product-card-thumbs {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 4;
}

.new-product-card.designer-hidden-border-card .new-product-card-thumbs {
  border-bottom-color: rgba(var(--designer-rgb, 255, 214, 10), 0.18);
}

.designer-style-border-option.designer-border-electric-field strong,
.designer-style-border-option.designer-border-electric-field-a strong,
.designer-style-border-option.designer-border-electric-field-b strong {
  color: #fff6a8;
  text-shadow: 0 0 12px rgba(var(--designer-rgb, 255, 214, 10), 0.9), 0 1px 2px rgba(0, 0, 0, 0.58);
}

.designer-style-border-option.designer-border-electric-field span,
.designer-style-border-option.designer-border-electric-field-a span,
.designer-style-border-option.designer-border-electric-field-b span {
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.62);
}

@keyframes hiddenElectricFieldPulse {
  0%, 100% {
    filter: saturate(1.08) contrast(1.04) brightness(0.96);
  }
  36% {
    filter: saturate(1.22) contrast(1.08) brightness(1.08);
  }
  40% {
    filter: saturate(1.48) contrast(1.18) brightness(1.22);
  }
  44% {
    filter: saturate(1.12) contrast(1.04) brightness(1);
  }
  78% {
    filter: saturate(1.32) contrast(1.1) brightness(1.14);
  }
}

@keyframes hiddenElectricCurrentFlow {
  0% {
    --electric-angle: 18deg;
    filter:
      drop-shadow(0 0 10px rgba(255, 255, 255, 0.28))
      drop-shadow(0 0 18px rgba(var(--designer-rgb, 255, 214, 10), 0.44));
  }
  50% {
    filter:
      drop-shadow(0 0 12px rgba(255, 255, 255, 0.52))
      drop-shadow(0 0 28px rgba(var(--designer-rgb, 255, 214, 10), 0.66));
  }
  100% {
    --electric-angle: 378deg;
    filter:
      drop-shadow(0 0 10px rgba(255, 255, 255, 0.28))
      drop-shadow(0 0 18px rgba(var(--designer-rgb, 255, 214, 10), 0.44));
  }
}

@keyframes hiddenElectricMediaCurrent {
  0% {
    background-position: 0 0, 0 0, 0 0, 0 0, -28% 0, 22% 0;
    opacity: 0.42;
  }
  38% {
    opacity: 0.72;
  }
  100% {
    background-position: 0 0, 0 0, 0 0, 0 0, 128% 0, -86% 0;
    opacity: 0.48;
  }
}

@keyframes hiddenElectricFrameFlicker {
  0%, 68%, 100% {
    opacity: 0.68;
  }
  8%, 12%, 46%, 52%, 82% {
    opacity: 1;
  }
}

.designer-style-layout {
  gap: 18px;
}

.designer-style-hero {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.88) 46%, rgba(255, 255, 255, 0.36) 100%),
    url("/uploads/new_products/new-product-hall-banner.png") center / cover;
}

.designer-style-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
}

.designer-style-preview-panel,
.designer-style-editor-panel {
  min-width: 0;
}

.designer-style-preview-panel {
  align-self: start;
  display: grid;
  gap: 14px;
  position: sticky;
  top: 88px;
}

.designer-style-preview-card {
  min-height: 440px;
}

.designer-style-preview-media {
  align-items: center;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 24% 24%, rgba(255, 255, 255, 0.95) 0 8%, transparent 18%),
    radial-gradient(circle at 76% 72%, rgba(var(--designer-rgb, 37, 99, 235), 0.26), transparent 32%),
    linear-gradient(135deg, #f7fafb, rgba(var(--designer-rgb, 37, 99, 235), 0.14));
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: center;
  position: relative;
}

.designer-style-preview-media::before {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent),
    linear-gradient(180deg, rgba(var(--designer-rgb, 37, 99, 235), 0.1), transparent);
  border-radius: 999px;
  content: "";
  height: 72%;
  position: absolute;
  transform: rotate(-10deg);
  width: 46%;
}

.designer-style-logo-preview {
  align-items: center;
  background: rgba(var(--designer-rgb, 37, 99, 235), 0.11);
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow:
    0 0 0 6px rgba(var(--designer-rgb, 37, 99, 235), 0.12),
    0 18px 38px rgba(var(--designer-rgb, 37, 99, 235), 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  display: flex;
  height: 132px;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 132px;
  z-index: 2;
}

.designer-style-logo-preview i {
  background: var(--designer-color, var(--primary));
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 0 0 12px rgba(var(--designer-rgb, 37, 99, 235), 0.14);
  display: block;
  height: 44px;
  width: 44px;
}

.new-product-designer-logo.preview {
  box-shadow: none;
  height: 100%;
  width: 100%;
}

.designer-style-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.designer-style-control {
  align-items: center;
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  gap: 10px;
  min-height: 42px;
  padding: 6px 12px;
}

.designer-style-control span {
  color: #4f5e69;
  font-size: 13px;
  font-weight: 760;
}

.designer-style-control input {
  background: transparent;
  border: 0;
  cursor: pointer;
  height: 26px;
  min-height: 0;
  padding: 0;
  width: 42px;
}

.designer-style-logo-upload input {
  display: none;
}

.designer-style-border-head {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 16px;
}

.designer-style-border-head h3 {
  font-size: 18px;
  margin: 0 0 4px;
}

.designer-style-border-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  margin-top: 14px;
}

.designer-style-border-option.new-product-border-swatch {
  align-content: end;
  border-radius: var(--radius);
  display: grid;
  height: 104px;
  justify-items: start;
  min-width: 0;
  padding: 12px;
  text-align: left;
  width: auto;
}

.designer-style-border-option strong,
.designer-style-border-option span {
  position: relative;
  z-index: 2;
}

.designer-style-border-option strong {
  color: #1f252c;
  font-size: 15px;
  font-weight: 840;
}

.designer-style-border-option span {
  clip: auto;
  clip-path: none;
  color: var(--muted);
  font-size: 11px;
  height: auto;
  overflow: visible;
  white-space: normal;
  width: auto;
}

.designer-style-border-option.active {
  box-shadow: 0 0 0 3px rgba(var(--designer-rgb, 37, 99, 235), 0.18), 0 14px 30px rgba(31, 37, 44, 0.08);
}

.designer-hidden-style-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(var(--designer-rgb, 255, 214, 10), 0.08)),
    #fff;
  border: 1px solid rgba(var(--designer-rgb, 255, 214, 10), 0.2);
  border-radius: var(--radius);
  margin-top: 18px;
  padding: 0 14px 14px;
}

.designer-hidden-style-panel .designer-style-border-head {
  border-top: 0;
  margin-top: 0;
}

.new-product-media {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: #f4f7f9;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.new-product-image-button,
.new-product-thumb-button {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: zoom-in;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.new-product-image-button {
  height: 100%;
  width: 100%;
}

.new-product-media img,
.new-product-preview-image img,
.new-product-trash-thumb img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.new-product-media .tag {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 4;
}

.new-product-card-thumbs,
.new-product-image-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.new-product-paste-panel {
  display: grid;
  gap: 8px;
}

.new-product-paste-zone {
  align-items: center;
  background: #f7fafb;
  border: 1px dashed #9fb1c2;
  border-radius: var(--radius);
  color: var(--muted);
  cursor: text;
  display: grid;
  gap: 4px;
  min-height: 72px;
  outline: none;
  padding: 12px;
}

.new-product-paste-zone strong {
  color: var(--text);
  font-size: 13px;
}

.new-product-paste-zone.is-disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.new-product-paste-zone:focus,
.new-product-paste-zone.has-preview {
  background: #eef6fb;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 95, 157, 0.1);
}

.new-product-paste-preview {
  align-items: start;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.new-product-paste-preview .new-product-image-sort-tip {
  grid-column: 1 / -1;
}

.new-product-paste-thumb {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  max-width: 360px;
  padding: 8px;
  position: relative;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease, transform 0.16s ease;
}

.new-product-paste-thumb img {
  background: #eef3f7;
  border-radius: 5px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  width: 100%;
}

.new-product-paste-thumb span {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.new-product-paste-remove {
  justify-self: end;
  min-height: 28px;
  padding: 0 4px;
}

.new-product-paste-actions {
  justify-content: flex-start;
}

.new-product-image-sort-tip {
  color: var(--muted);
  flex-basis: 100%;
  font-size: 12px;
  line-height: 1.45;
}

.new-product-drag-handle {
  align-self: center;
  background-color: #fff;
  background-image: radial-gradient(currentColor 1.15px, transparent 1.15px);
  background-position: 2px 2px;
  background-size: 6px 6px;
  border: 1px solid #d5e1ea;
  border-radius: 5px;
  color: #758697;
  cursor: grab;
  display: block;
  height: 28px;
  width: 22px;
}

.new-product-paste-thumb > .new-product-drag-handle {
  box-shadow: 0 4px 12px rgba(20, 39, 58, 0.12);
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 1;
}

.new-product-image-chip[draggable="true"],
.new-product-paste-thumb[draggable="true"] {
  cursor: grab;
}

.new-product-image-chip.is-dragging,
.new-product-paste-thumb.is-dragging {
  opacity: 0.56;
  transform: scale(0.98);
}

.new-product-image-chip.is-drag-over,
.new-product-paste-thumb.is-drag-over {
  background: #eef6fb;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 95, 157, 0.12);
}

.new-product-card-thumbs {
  border-bottom: 1px solid var(--line);
  padding: 8px 10px 0;
}

.new-product-thumb-button {
  border-radius: 6px;
  height: 48px;
  overflow: hidden;
  width: 64px;
}

.new-product-card-thumbs img {
  background: #f4f7f9;
  border: 1px solid var(--line);
  border-radius: 6px;
  height: 48px;
  object-fit: contain;
  width: 64px;
}

.new-product-image-chip {
  align-items: center;
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 6px;
  grid-template-columns: 22px 56px minmax(34px, max-content) max-content max-content;
  padding: 6px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease, transform 0.16s ease;
}

.new-product-image-chip img {
  background: #eef3f7;
  border-radius: 5px;
  height: 42px;
  object-fit: contain;
  width: 56px;
}

.new-product-image-chip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.new-product-cover-mark {
  background: var(--success-bg);
  border-radius: 999px;
  color: var(--primary-dark) !important;
  padding: 3px 8px;
}

.new-product-main {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
}

.new-product-card-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
}

.new-product-card-head strong {
  display: block;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.new-product-card-head p {
  color: var(--muted);
  line-height: 1.6;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.new-product-name {
  background: #eef6fb;
  border: 1px solid #c8ddeb;
  border-radius: 6px;
  color: #174869;
  display: block;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.45;
  margin-top: 6px;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 5px 8px;
  width: fit-content;
}

.new-product-name.compact {
  font-size: 12px;
  margin-top: 4px;
  padding: 4px 7px;
}

.new-product-name.missing {
  background: #f7fafb;
  border-style: dashed;
  color: var(--muted);
  font-weight: 700;
}

.new-product-type-chip {
  background: #f5f0ff;
  border: 1px solid #d9ccf4;
  border-radius: 999px;
  color: #4c2b78;
  display: inline-flex;
  font-size: 12px;
  font-weight: 820;
  line-height: 1;
  padding: 5px 7px;
  vertical-align: middle;
}

.new-product-description {
  margin-top: 8px;
}

.new-product-remarks {
  display: grid;
  gap: 10px;
}

.new-product-manager-annotation {
  background:
    linear-gradient(135deg, rgba(255, 252, 244, 0.98), rgba(246, 242, 255, 0.96)),
    #fbf8ff;
  border: 1px solid #cbbbe7;
  border-left: 4px solid #6b4ca5;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(63, 39, 105, 0.1);
  color: #322148;
  overflow: hidden;
  padding: 10px 12px 11px;
  position: relative;
}

.new-product-manager-annotation::after {
  background: #b38a3e;
  border-radius: 999px;
  content: "";
  height: 5px;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 5px;
}

.new-product-manager-annotation-head {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  justify-content: space-between;
  padding-right: 10px;
}

.new-product-manager-annotation-head span {
  color: #6b4ca5;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.new-product-manager-annotation-head small {
  color: #806b9b;
  font-size: 11px;
  font-weight: 650;
}

.new-product-manager-annotation p {
  color: #322148;
  font-family: "Songti SC", "Noto Serif SC", STSong, Georgia, serif;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.025em;
  line-height: 1.75;
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.new-product-annotation-button {
  border-color: #9277bf;
  color: #5b3d8c;
}

.new-product-annotation-field > span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 550;
  margin-top: 6px;
}

.new-product-annotation-field textarea {
  border-color: #bba7db;
  font-family: "Songti SC", "Noto Serif SC", STSong, Georgia, serif;
  font-size: 15px;
  line-height: 1.7;
}

.new-product-annotation-field textarea:focus {
  border-color: #6b4ca5;
  box-shadow: 0 0 0 3px rgba(107, 76, 165, 0.14);
}

.new-product-meta-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.new-product-meta-designer {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}

.new-product-designer-badge {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(var(--designer-rgb, 21, 112, 95), 0.1)),
    rgba(var(--designer-rgb, 21, 112, 95), 0.08);
  border: 1px solid rgba(var(--designer-rgb, 21, 112, 95), 0.28);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(var(--designer-rgb, 21, 112, 95), 0.08);
  color: var(--designer-color, var(--primary-dark));
  display: inline-flex;
  font-size: 12px;
  font-weight: 840;
  gap: 8px;
  max-width: 100%;
  min-height: 34px;
  overflow: hidden;
  padding: 4px 10px 4px 5px;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.new-product-designer-badge i {
  height: 22px;
  width: 22px;
}

.new-product-participants {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.new-product-participants.empty {
  color: var(--muted);
  font-size: 13px;
}

.new-product-participant-chip {
  align-items: center;
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  gap: 7px;
  min-height: 28px;
  min-width: 0;
  padding: 4px 9px;
}

.new-product-participant-chip.is-viewer {
  align-items: flex-start;
  border-radius: 8px;
  flex-direction: column;
  gap: 3px;
}

.new-product-participant-main {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  min-width: 0;
}

.new-product-participant-chip b {
  font-size: 13px;
  font-weight: 780;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.new-product-participant-chip em {
  background: var(--success-bg);
  border-radius: 999px;
  color: var(--primary-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 820;
  line-height: 1;
  min-width: 24px;
  padding: 4px 7px;
  text-align: center;
}

.new-product-participant-chip small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.new-product-join-form {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) max-content;
}

.new-product-manager-join-form {
  grid-template-columns: minmax(160px, 1fr) minmax(92px, 120px) max-content;
}

.new-product-manager-join-form select {
  min-width: 0;
}

.new-product-manager-clear-form {
  grid-template-columns: minmax(160px, 1fr) max-content;
}

.new-product-manager-strip {
  align-items: center;
  background: #f4f8fb;
  border: 1px solid #d5e1ea;
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) max-content;
  padding: 10px;
}

.new-product-manager-strip strong {
  display: block;
  font-size: 13px;
}

.new-product-manager-strip span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.new-product-manager-strip .button {
  min-height: 34px;
  padding: 7px 12px;
  white-space: nowrap;
  width: auto;
}

.new-product-manager-dialog-backdrop {
  align-items: center;
  background: rgba(18, 28, 38, 0.42);
  display: grid;
  inset: 0;
  padding: 20px;
  position: fixed;
  z-index: 100;
}

.new-product-manager-dialog-backdrop.hidden {
  display: none;
}

.new-product-manager-dialog {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 26px 70px rgba(18, 28, 38, 0.28);
  display: grid;
  gap: 14px;
  justify-self: center;
  max-height: min(86vh, 760px);
  max-width: 640px;
  overflow: auto;
  padding: 18px;
  width: min(100%, 640px);
}

.new-product-manager-dialog-head {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) max-content;
}

.new-product-manager-dialog-head h2 {
  font-size: 20px;
  margin-top: 4px;
}

.new-product-manager-dialog-head p {
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
}

.new-product-manager-segmented {
  background: #f3f7fa;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
}

.new-product-manager-segmented button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 760;
  min-height: 36px;
}

.new-product-manager-segmented button.is-active {
  background: var(--panel);
  border-color: var(--strong-line);
  box-shadow: 0 4px 12px rgba(31, 37, 44, 0.08);
  color: var(--primary-dark);
}

.new-product-manager-alert {
  background: #fff1dc;
  border: 1px solid #eccb9a;
  border-radius: var(--radius);
  color: #795000;
  line-height: 1.5;
  padding: 10px 12px;
}

.new-product-manager-alert.success {
  background: var(--success-bg);
  border-color: #b8dbc9;
  color: var(--primary-dark);
}

.new-product-manager-dialog-panel {
  display: grid;
  gap: 12px;
}

.new-product-manager-fields {
  display: grid;
  gap: 10px;
}

.new-product-manager-field-hint {
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  padding: 8px 10px;
}

.new-product-manager-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.new-product-manager-dialog-actions .button {
  width: auto;
}

.new-product-manager-clear-list {
  display: grid;
  gap: 8px;
}

.new-product-manager-clear-option {
  align-items: center;
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 18px minmax(0, 1fr) max-content;
  padding: 10px;
}

.new-product-manager-clear-option:has(input:checked) {
  background: #eef6fb;
  border-color: var(--accent);
}

.new-product-manager-clear-option input {
  min-height: auto;
}

.new-product-manager-clear-option strong {
  color: var(--text);
  display: block;
  font-size: 13px;
}

.new-product-manager-clear-option span span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 2px;
}

.new-product-manager-clear-option em {
  background: var(--failed-bg);
  border-radius: 999px;
  color: var(--warning);
  font-size: 12px;
  font-style: normal;
  font-weight: 820;
  padding: 5px 8px;
  white-space: nowrap;
}

.new-product-manager-empty {
  background: #f7fafb;
  border: 1px dashed #c8d5df;
  border-radius: var(--radius);
  color: var(--muted);
  line-height: 1.6;
  padding: 16px;
}

.new-product-join-button {
  min-height: 36px;
  padding: 8px 12px;
  white-space: nowrap;
  width: auto;
}

.new-product-actions,
.new-product-trash-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.new-product-history {
  border-color: #dce7ef;
}

.new-product-history-search {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(240px, 360px) max-content max-content;
}

.new-product-history-search input {
  min-height: 38px;
}

.new-history-toolbar,
.new-history-statuses,
.new-history-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.new-history-toolbar { justify-content: space-between; margin-bottom: 16px; }
.new-history-pagination { justify-content: center; margin-top: 18px; }
.new-history-statuses .button[aria-pressed="true"] {
  background: #e5f5ee;
  color: #0e594c;
  border: 2px solid #15705f;
  box-shadow: 0 0 0 2px #15705f18;
}
.new-history-toolbar .button { white-space: normal; }
.new-history-statuses .button,
.new-history-pagination .button { width: auto; }

.new-product-history-list {
  display: grid;
  gap: 12px;
}

.new-product-history-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  grid-template-columns: 92px minmax(0, 1fr);
  padding: 10px;
}

.new-product-history-thumb {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: #f4f7f9;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.new-product-history-thumb .new-product-image-button,
.new-product-history-thumb img {
  height: 100%;
  width: 100%;
}

.new-product-history-thumb img {
  object-fit: contain;
}

.new-product-history-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.new-product-history-head {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.new-product-history-actions {
  align-items: flex-end;
  display: grid;
  gap: 8px;
  justify-items: end;
}

.new-product-history-head strong {
  font-size: 17px;
}

.new-product-history-head p {
  color: var(--muted);
  line-height: 1.5;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.new-product-history-meta {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.new-product-approval-panel {
  border-color: #dce6e2;
}

.new-product-approval-list {
  display: grid;
  gap: 14px;
}

.new-product-approval-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
  border: 1px solid #dce6e2;
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.new-product-approval-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.new-product-approval-head strong {
  font-size: 18px;
}

.new-product-approval-head p {
  color: var(--muted);
  margin-top: 4px;
}

.new-product-approval-info {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 8px 14px;
}

.danger-text {
  color: var(--danger) !important;
}

.new-product-approval-remark {
  display: grid;
  gap: 7px;
}

.new-product-approval-remark textarea {
  min-height: 160px;
}

.new-product-approval-files {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  padding: 12px;
}

.new-product-approval-files-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.new-product-approval-files-head span {
  font-weight: 760;
}

.new-product-approval-files-head small,
.new-product-approval-empty {
  color: var(--muted);
}

.new-product-attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.new-product-attachment-chip {
  align-items: center;
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  gap: 8px;
  max-width: 100%;
  min-height: 32px;
  padding: 5px 9px;
}

.new-product-attachment-chip a {
  color: var(--text);
  font-size: 13px;
  font-weight: 720;
  max-width: 240px;
  overflow: hidden;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.new-product-attachment-chip span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.new-product-approval-upload {
  justify-self: start;
}

.new-product-approval-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.approval-page-body {
  background:
    linear-gradient(180deg, #f7faf9 0%, #f2f5f7 220px, #f4f6f8 100%);
}

.approval-workspace {
  margin: 0 auto;
  max-width: 1180px;
  min-height: 100vh;
  padding: 22px 24px 32px;
}

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

.approval-topbar h1 {
  margin-top: 3px;
}

.approval-main {
  display: grid;
  gap: 16px;
}

.approval-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.approval-summary div {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #dce6e2;
  border-radius: var(--radius);
  min-height: 74px;
  padding: 14px 16px;
}

.approval-summary span {
  color: var(--muted);
  display: block;
  font-size: 13px;
}

.approval-summary b {
  display: block;
  font-size: 26px;
  line-height: 1.2;
  margin-top: 5px;
}

.approval-tabs {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.approval-tab {
  appearance: none;
  background: #ffffff;
  border: 1px solid #d6e2dd;
  border-radius: 999px;
  color: #5e6d7d;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  min-height: 42px;
  padding: 9px 16px;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.approval-tab:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.approval-tab.active {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 8px 20px rgba(30, 78, 63, 0.16);
  color: #ffffff;
}

.approval-tab:focus-visible {
  outline: 3px solid rgba(37, 143, 85, 0.22);
  outline-offset: 2px;
}

.approval-board {
  background: var(--panel);
  border: 1px solid #dce6e2;
  border-radius: var(--radius);
  display: grid;
  gap: 14px;
  padding: 16px;
}

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

.approval-shadow-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.approval-shadow-summary > div {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-soft, #f8fafc);
}

.approval-shadow-summary span,
.approval-shadow-summary b {
  display: block;
}

.approval-shadow-summary span { color: var(--muted); font-size: 13px; }
.approval-shadow-summary b { margin-top: 6px; font-size: 24px; }

.approval-shadow-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.approval-shadow-table { overflow-x: auto; }
.approval-shadow-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.approval-shadow-table th,
.approval-shadow-table td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.approval-shadow-table th { color: var(--muted); font-weight: 600; }

@media (max-width: 900px) {
  .approval-shadow-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .approval-shadow-columns { grid-template-columns: 1fr; }
}

.approval-scope-tag {
  background: #edf5f2;
  border: 1px solid #d5e5df;
  border-radius: 999px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 760;
  padding: 5px 10px;
  white-space: nowrap;
}

.approval-list {
  display: grid;
  gap: 12px;
}

.approval-empty {
  align-items: center;
  border: 1px dashed var(--strong-line);
  border-radius: var(--radius);
  color: var(--muted);
  display: grid;
  min-height: 150px;
  place-items: center;
  text-align: center;
}

.approval-card {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfb 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.approval-card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
}

.approval-card-main,
.approval-card-side {
  min-width: 0;
}

.approval-card-main {
  display: grid;
  gap: 12px;
}

.approval-card-side {
  border-left: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-left: 16px;
}

.approval-order-head {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 64px minmax(0, 1fr);
}

.approval-thumb {
  align-items: center;
  background: #edf3f5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  height: 64px;
  justify-items: center;
  overflow: hidden;
  width: 64px;
}

.approval-thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.approval-thumb span {
  color: var(--muted);
  font-weight: 780;
}

.approval-title-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.approval-title-line strong {
  font-size: 20px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.approval-status-pill {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 760;
  padding: 4px 8px;
}

.approval-status-pill.pending {
  background: #edf4fb;
  color: #255f9d;
}

.approval-status-pill.warning {
  background: #fff4cf;
  color: #7a5700;
}

.approval-status-pill.success {
  background: var(--success-bg);
  color: var(--primary-dark);
}

.approval-status-pill.failed {
  background: #fff1dc;
  color: var(--warning);
}

.approval-card-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 7px 12px;
  margin-top: 6px;
}

.approval-participants {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.approval-participants.empty,
.approval-attachment-empty {
  color: var(--muted);
  font-size: 13px;
}

.approval-participants span {
  align-items: center;
  background: #f2f5f7;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  gap: 7px;
  min-height: 28px;
  padding: 4px 8px;
}

.approval-participants b {
  font-size: 13px;
  font-weight: 730;
}

.approval-participants em {
  color: var(--primary);
  font-style: normal;
  font-weight: 780;
}

.approval-remark {
  display: grid;
  gap: 7px;
}

.approval-remark span,
.approval-files-head span {
  font-weight: 760;
}

.approval-remark textarea {
  min-height: 138px;
  resize: vertical;
}

.approval-files {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 9px;
  padding-top: 12px;
}

.approval-files-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.approval-files-head small {
  color: var(--muted);
}

.approval-attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.approval-attachment-chip {
  align-items: center;
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  gap: 8px;
  max-width: 100%;
  min-height: 32px;
  padding: 5px 9px;
}

.approval-attachment-chip a {
  color: var(--text);
  font-size: 13px;
  font-weight: 720;
  max-width: 220px;
  overflow: hidden;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.approval-attachment-chip span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.approval-files .approval-upload {
  justify-self: start;
  min-height: 44px;
}

.is-uploading .approval-upload {
  cursor: wait;
  opacity: 0.6;
}

.approval-files .approval-upload input {
  opacity: 0;
}

.approval-upload-progress {
  background: #edf4fb;
  border: 1px solid #cddff0;
  border-radius: 10px;
  display: grid;
  gap: 8px;
  padding: 12px;
  min-width: 0;
}

.approval-upload-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.approval-upload-status span {
  overflow-wrap: anywhere;
}

.approval-upload-status strong {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.approval-upload-progress progress {
  accent-color: var(--primary);
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
}

.approval-upload-progress progress::-webkit-progress-bar {
  background: #dbe5ee;
  border-radius: 999px;
}

.approval-upload-progress progress::-webkit-progress-value {
  background: var(--primary);
  border-radius: 999px;
}

.approval-upload-progress small {
  color: var(--muted);
}

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

.approval-instance-admin {
  align-items: end;
  background: #f4f7f9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
}

.approval-instance-admin label {
  display: grid;
  gap: 6px;
}

.approval-instance-admin label span {
  color: var(--muted);
  font-size: 12px;
}

.approval-instance-admin input {
  min-width: 0;
  width: 100%;
}

.new-product-edit-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
}

.new-product-edit-preview {
  display: grid;
  gap: 12px;
}

.new-product-preview-image {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: #f4f7f9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.file-button {
  position: relative;
}

.file-button input {
  height: 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.new-product-trash {
  margin-top: 2px;
}

.new-product-trash-list {
  display: grid;
  gap: 10px;
}

.new-product-trash-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  grid-template-columns: 96px minmax(0, 1fr) max-content;
  padding: 10px;
}

.new-product-trash-thumb {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: #f4f7f9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.new-product-trash-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.group-order-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.group-order-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  padding: 12px;
  text-align: left;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.group-order-card.is-open {
  border-color: rgba(21, 112, 95, 0.34);
}

.group-order-card.is-closed {
  border-color: rgba(177, 63, 63, 0.28);
}

.group-order-main {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 8px;
  padding: 0;
  text-align: left;
}

.group-order-card.is-open.active,
.group-order-card.is-open:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 112, 95, 0.08);
}

.group-order-card.is-closed.active,
.group-order-card.is-closed:hover {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(177, 63, 63, 0.08);
}

.group-order-card strong {
  font-size: 15px;
}

.group-order-card .record-meta {
  display: grid;
  gap: 4px;
}

.group-order-meta-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.group-order-status {
  font-weight: 800;
}

.group-order-status.is-open {
  color: var(--primary);
}

.group-order-status.is-closed {
  color: var(--danger);
}

.group-order-delete {
  justify-self: start;
}

.hall-tabs {
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.hall-tabs button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  font-weight: 720;
  min-height: 34px;
  padding: 7px 10px;
}

.hall-tabs button.active,
.hall-tabs button:hover {
  background: #eef4f7;
  border-color: var(--primary);
  color: var(--primary-dark);
}

.panel-title {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

/* Keep the hall title and status together; controls wrap as complete items. */
.hall-panel > .panel-title > .button-row {
  flex-wrap: wrap;
  min-width: 0;
}

.hall-panel > .panel-title h2,
.hall-panel .hall-search,
.hall-panel .inline-select,
.hall-panel .hall-status-filters button {
  white-space: nowrap;
}

@media (min-width: 721px) {
  .hall-panel > .panel-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hall-panel > .panel-title > .button-row {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .hall-panel > .panel-title > .hall-status-filters {
    grid-column: 2;
    grid-row: 1;
    flex-wrap: nowrap;
  }

  .hall-panel .hall-search {
    flex: 1 1 260px;
    max-width: 380px;
    min-width: 0;
  }

  .hall-panel .hall-search input {
    flex: 1;
    min-width: 0;
    width: 0;
  }
}

.stats {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stats span,
.stats button {
  background: #f0f4f7;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  cursor: default;
  font-size: 12px;
  padding: 6px 9px;
}

.stats button {
  font: inherit;
}

.hall-status-filters button {
  align-items: center;
  background: #f6f8fb;
  border-color: #d8e1e8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  cursor: pointer;
  display: inline-flex;
  gap: 5px;
  min-height: 32px;
  position: relative;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.hall-status-filters button:hover {
  background: #eef4f7;
  border-color: var(--primary);
  color: var(--primary-dark);
}

.hall-status-filters button.active {
  background: linear-gradient(180deg, #ffffff 0%, #e8f3ef 100%);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(21, 112, 95, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.76);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.hall-status-filters button.active::before {
  background: var(--primary);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(21, 112, 95, 0.12);
  content: "";
  height: 6px;
  width: 6px;
}

.hall-status-filters button.active b {
  color: var(--primary-dark);
}

.stats b {
  color: var(--text);
  font-size: 15px;
}

.stack {
  display: grid;
  gap: 12px;
}

.button,
.icon-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 720;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  text-decoration: none;
  white-space: nowrap;
}

.button.primary {
  background: var(--primary);
  color: #fff;
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.danger {
  background: #fff;
  border-color: rgba(177, 63, 63, 0.32);
  color: var(--danger);
}

.button.danger:hover {
  background: #fff3f3;
  border-color: var(--danger);
}

.button.secondary {
  background: #eef3f7;
  border-color: #d4dde6;
  color: #1f354c;
}

.button.warning-action {
  background: #e87918;
  border-color: #d6650c;
  color: #fff;
}

.button.warning-action:hover:not(:disabled) {
  background: #cf650f;
}

.cancel-success-sku-search {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) auto;
}

.cancel-success-sku-detail {
  border-color: rgba(232, 121, 24, 0.38);
}

.cancel-success-sku-product {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: var(--product-image-size) minmax(0, 1fr);
  width: 100%;
}

.cancel-success-sku-plan-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

@media (max-width: 720px) {
  .cancel-success-sku-search {
    grid-template-columns: 1fr;
  }
}

.button.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--accent);
}

.button.wide {
  width: 100%;
}

.button.mini {
  font-size: 12px;
  min-height: 30px;
  padding: 5px 8px;
}

.icon-button {
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  min-width: 38px;
  padding: 8px;
}

button:disabled,
input:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.button.inventory-refresh-running,
.button.inventory-refresh-running:disabled {
  background: rgba(177, 63, 63, 0.18);
  border-color: rgba(177, 63, 63, 0.42);
  color: #8f2f2f;
  opacity: 0.72;
}

.button.export-download-running,
.button.export-download-running:disabled {
  background: rgba(37, 95, 157, 0.16);
  border-color: rgba(37, 95, 157, 0.42);
  color: #1f4f84;
  opacity: 0.78;
}

.inventory-refresh-status {
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

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

.product-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  grid-template-columns: var(--product-image-size) minmax(0, 1fr);
  overflow: hidden;
  padding: 12px;
}

.product-image {
  background: #edf1f4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: var(--product-image-size);
  overflow: hidden;
  width: var(--product-image-size);
}

.product-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hall-product-image-preview {
  cursor: zoom-in;
}

.hall-product-image-preview:focus-visible {
  box-shadow: 0 0 0 3px rgba(21, 112, 95, 0.22);
  outline: none;
}

.image-hover-preview {
  background: #ffffff;
  border: 1px solid rgba(23, 36, 48, 0.14);
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.24);
  box-sizing: border-box;
  height: 400px;
  opacity: 0;
  overflow: hidden;
  padding: 8px;
  pointer-events: none;
  position: fixed;
  transform: translateY(4px) scale(0.985);
  transition: opacity 120ms ease, transform 120ms ease;
  visibility: hidden;
  width: 400px;
  z-index: 3000;
}

.image-hover-preview.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.image-hover-preview img {
  border-radius: 7px;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

@media (hover: none), (pointer: coarse) {
  .hall-product-image-preview {
    cursor: default;
  }

  .image-hover-preview {
    display: none !important;
  }
}

.image-fallback {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-weight: 800;
  height: 100%;
  justify-content: center;
}

.product-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.product-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
}

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

.product-head strong,
.product-head p {
  overflow-wrap: anywhere;
}

.product-head p,
.product-meta {
  color: var(--muted);
  font-size: 13px;
}

.product-b2b-no-restock-tag {
  align-items: center;
  background: #fff0e6;
  border: 1px solid #f3a76f;
  border-radius: 999px;
  color: #a54300;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 6px;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 5px 8px;
}

.progress-line {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) max-content;
  min-width: 0;
}

.progress-bar {
  background: #edf1f4;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.progress-bar span {
  background: var(--primary);
  display: block;
  height: 100%;
}

.new-product-progress-line {
  gap: 8px;
}

.new-product-progress-bar {
  background: var(--new-product-progress-remaining);
  display: flex;
}

.new-product-progress-bar .new-product-progress-segment {
  flex: 0 0 auto;
  min-width: 0;
}

.new-product-progress-segment.self {
  background: var(--new-product-progress-self);
}

.new-product-progress-segment.manager {
  background: var(--new-product-progress-manager);
}

.new-product-progress-segment.other {
  background: var(--new-product-progress-other);
}

.new-product-progress-legend {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 6px 12px;
  line-height: 1.35;
}

.new-product-progress-legend span {
  align-items: center;
  display: inline-flex;
  gap: 5px;
  min-width: 0;
}

.new-product-progress-legend i {
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
  height: 8px;
  width: 8px;
}

.new-product-progress-legend i.self {
  background: var(--new-product-progress-self);
}

.new-product-progress-legend i.manager {
  background: var(--new-product-progress-manager);
}

.new-product-progress-legend i.other {
  background: var(--new-product-progress-other);
}

.product-meta,
.operator-list {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-meta.new-product-meta-grid {
  align-items: stretch;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.status-select {
  min-height: 30px;
  padding: 4px 8px;
}

.sku-moq-control {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sku-moq-control input {
  max-width: 104px;
  min-height: 34px;
}

.sku-moq-control .button {
  min-height: 34px;
  padding: 7px 10px;
}

.operator-list span {
  background: var(--operator-tag-bg);
  border-radius: 999px;
  color: var(--operator-tag-text);
  font-size: var(--operator-tag-font-size);
  padding: 4px 7px;
}

.inventory-strip {
  align-items: center;
  color: var(--inventory-tag-text);
  display: flex;
  flex-wrap: wrap;
  font-size: var(--inventory-tag-font-size);
  gap: 6px;
}

.inventory-strip span {
  background: var(--inventory-tag-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 7px;
}

.inventory-strip span.has-inventory-quantity {
  background: rgba(21, 112, 95, 0.06);
  border-color: rgba(21, 112, 95, 0.72);
  box-shadow: inset 0 0 0 1px rgba(21, 112, 95, 0.28);
  color: var(--inventory-available);
  font-weight: 800;
}

.inventory-strip .inventory-unreturned.has-unreturned-history {
  background: rgba(153, 97, 0, 0.06);
  border-color: rgba(153, 97, 0, 0.72);
  box-shadow: inset 0 0 0 1px rgba(153, 97, 0, 0.32);
  color: var(--warning);
  font-weight: 800;
}

.inventory-strip .inventory-available b {
  color: var(--inventory-available);
}

.increment-form {
  display: grid;
  gap: 8px;
  grid-column: 2;
  grid-template-columns: 1fr 38px;
  justify-self: end;
  max-width: 220px;
  min-width: 0;
  width: 100%;
}

.increment-form input {
  min-width: 0;
  width: 100%;
}

.hall-row-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 2;
  justify-content: flex-end;
  justify-self: end;
  max-width: 360px;
  width: 100%;
}

.hall-row-actions .increment-form {
  flex: 1 1 160px;
  grid-column: auto;
}

/* 普通大厅：起订量与标签共行，参与人与数量操作共用底栏。 */
.hall-product-row {
  row-gap: 8px;
}

.hall-product-row > .sku-moq-control,
.hall-product-row > .hall-order-edit,
.hall-card-footer {
  grid-column: 2;
  min-width: 0;
}

.hall-moq-save-group {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.hall-moq-save-group > .button {
  flex-shrink: 0;
  white-space: nowrap;
  width: auto;
}

.hall-product-row .product-b2b-no-restock-tag {
  margin-top: 0;
}

.hall-card-footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.hall-card-footer > .operator-list {
  flex: 1 1 160px;
  min-width: 0;
}

.hall-card-footer > .hall-row-actions {
  flex: 0 1 360px;
  margin-left: auto;
}

.stock-offer-button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 10px;
  white-space: nowrap;
}

.stock-offer-note {
  background: #f6f8fa;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 12px;
}

.stock-offer-product {
  align-items: center;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  grid-template-columns: 76px minmax(0, 1fr);
  padding: 10px;
}

.stock-offer-product-image {
  height: 76px;
  overflow: hidden;
  width: 76px;
}

.stock-offer-product-image .product-image {
  height: 76px;
  width: 76px;
}

.stock-offer-product-image img,
.stock-offer-product-image .image-fallback {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.stock-offer-product-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.stock-offer-product-copy strong {
  color: var(--text);
  font-size: 18px;
}

.stock-offer-product-copy span {
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.stock-offer-quantity-row {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.9fr);
}

.stock-offer-quantity-field {
  margin: 0;
}

.stock-offer-inventory-status {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.stock-offer-available {
  align-items: center;
  align-self: end;
  background: #eef7f3;
  border: 1px solid rgba(21, 112, 95, 0.18);
  border-radius: var(--radius);
  box-sizing: border-box;
  color: var(--primary-dark);
  display: flex;
  font-size: 13px;
  font-weight: 700;
  min-height: 38px;
  justify-content: center;
  line-height: 1.25;
  overflow-wrap: anywhere;
  padding: 8px 12px;
  text-align: center;
  white-space: normal;
}

.stock-offer-available.error {
  background: #fff1dc;
  border-color: rgba(177, 63, 63, 0.22);
  color: var(--danger);
}

.stock-claim-deduct-option {
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  padding: 10px 12px;
}

.tag {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
  padding: 6px 8px;
}

.tag.success {
  background: var(--success-bg);
  color: var(--primary-dark);
}

.tag.failed {
  background: var(--failed-bg);
  color: var(--warning);
}

.tag.cancelled {
  background: #fff0e2;
  color: #b45309;
}

.records {
  display: grid;
  gap: 10px;
}

.record,
.admin-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.admin-box-title {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.admin-box-title h3 {
  margin: 0;
}

.record-head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.record-title {
  font-weight: 760;
}

.record-meta {
  color: var(--muted);
  font-size: 12px;
}

.danger-text {
  color: var(--danger);
  font-weight: 700;
}

.status-pill {
  background: #eef3f7;
  border: 1px solid #d4dde6;
  border-radius: 999px;
  color: #1f354c;
  display: inline-flex;
  font-size: 12px;
  font-weight: 760;
  min-height: 28px;
  padding: 5px 9px;
  white-space: nowrap;
}

.status-pill.ok {
  background: var(--success-bg);
  border-color: #bfdfd1;
  color: var(--primary-dark);
}

.status-pill.warn {
  background: var(--failed-bg);
  border-color: #edcf9e;
  color: var(--warning);
}

.order-edit,
.user-edit,
.field-row {
  display: grid;
  gap: 8px;
}

.order-edit {
  align-items: center;
  grid-template-columns: 88px minmax(120px, 1fr) 66px 44px;
}

.order-edit input {
  max-width: 88px;
}

.my-order-status {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 6px;
}

.my-order-status.success {
  color: var(--my-order-success);
  font-weight: 780;
}

.my-order-total {
  color: var(--my-order-total);
  font-weight: 780;
}

.my-order-moq {
  color: var(--my-order-moq);
  font-weight: 780;
}

.user-edit {
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
}

.user-edit .compact-switch {
  min-height: 38px;
}

.config-checkbox-grid {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  padding: 10px;
}

.config-checkbox-grid .compact-switch {
  margin: 0;
  min-height: 32px;
}

.field-row {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

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

.admin-grid.lower {
  margin-top: 12px;
}

.central-purchase-box {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
}

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

.central-actions {
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.central-record .record-head {
  align-items: flex-start;
}

.central-shell {
  min-height: 100vh;
}

.central-layout {
  display: grid;
  gap: var(--card-gap);
  grid-template-columns: 360px minmax(0, 1fr);
  padding: 16px 24px 28px;
}

.central-overview-panel,
.central-create-panel {
  grid-column: 1 / -1;
}

.central-orders-panel {
  align-self: start;
}

.central-detail-panel {
  min-width: 0;
}

.central-order-title {
  display: grid;
  gap: 3px;
}

.central-order-source-filters {
  align-items: center;
  background: #f6f8fb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: inline-flex;
  gap: 3px;
  padding: 3px;
}

.central-order-source-filters button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 740;
  gap: 5px;
  min-height: 30px;
  padding: 5px 8px;
  transition: background 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}

.central-order-source-filters button:hover,
.central-order-source-filters button.active {
  background: #fff;
  box-shadow: 0 1px 6px rgba(31, 37, 44, 0.08);
  color: var(--primary-dark);
}

.central-order-source-filters b {
  background: #e7eef2;
  border-radius: 999px;
  color: #1f354c;
  font-size: 11px;
  line-height: 1;
  min-width: 18px;
  padding: 3px 5px;
  text-align: center;
}

.central-order-source-filters button.active b {
  background: var(--success-bg);
  color: var(--primary-dark);
}

.central-summary,
.central-sync-grid,
.central-metric-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.central-summary {
  margin-bottom: 12px;
}

.central-stat,
.central-sync-card,
.central-metric {
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 5px;
  padding: 12px;
}

.central-stat span,
.central-metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.central-stat strong,
.central-metric strong {
  font-size: 20px;
}

.central-sync-card.has-error {
  background: #fff8e8;
  border-color: #edcf9e;
}

.central-create-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) auto;
}

.central-preview {
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
}

.central-order-list {
  display: grid;
  gap: 10px;
}

.central-order-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 7px;
  padding: 12px;
  text-align: left;
}

.central-order-card.active,
.central-order-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 112, 95, 0.08);
}

.central-order-progress {
  background: #e5ebf0;
  border-radius: 999px;
  display: block;
  height: 7px;
  overflow: hidden;
}

.central-order-progress i {
  background: var(--primary);
  display: block;
  height: 100%;
}

.records-shell {
  min-height: 100vh;
}

.records-layout {
  display: grid;
  gap: var(--card-gap);
  padding: 16px 24px 28px;
}

.records-filter-grid {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(140px, 1fr)) auto auto;
}

.records-tabs {
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.records-tabs button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  font-weight: 720;
  min-height: 34px;
  padding: 7px 10px;
}

.records-tabs button.active,
.records-tabs button:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 112, 95, 0.08);
}

.records-table-wrap {
  min-height: 220px;
}

.records-table td,
.records-table th {
  vertical-align: top;
}

.record-status-tag {
  background: #f5f8fa;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.2;
  padding: 4px 8px;
  white-space: nowrap;
}

.records-pager {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
}

.stock-help-shell {
  min-height: 100vh;
}

.stock-help-layout {
  display: grid;
  gap: var(--card-gap);
  padding: 16px 24px 28px;
}

.stock-help-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stock-help-view {
  display: grid;
  gap: var(--card-gap);
}

.stock-help-filter-grid {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 1fr)) auto auto;
}

.stock-help-notice-filter {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1.4fr) minmax(130px, 0.8fr) repeat(2, minmax(140px, 1fr)) auto auto;
}

.stock-help-notice-list {
  display: grid;
  gap: 10px;
  min-height: 260px;
}

.stock-help-notice-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.stock-help-notice-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.stock-help-notice-head strong {
  display: block;
  font-size: 16px;
  margin-top: 4px;
}

.stock-help-notice-stats,
.stock-help-notice-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stock-help-notice-stats span {
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  padding: 5px 9px;
}

.stock-help-notice-stats b {
  color: var(--text);
}

.stock-help-decision-pending {
  background: #fff7ed;
  color: #b45309;
}

.stock-help-decision-accepted {
  background: #ecfdf3;
  color: #067647;
}

.stock-help-decision-rejected {
  background: #fef2f2;
  color: var(--danger);
}

.stock-help-decision-expired {
  background: #f1f5f9;
  color: var(--muted);
}

.stock-help-offer-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  max-height: 220px;
  overflow: auto;
}

.stock-help-offer-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr auto;
  padding: 9px 10px;
}

.stock-help-offer-row + .stock-help-offer-row {
  border-top: 1px solid var(--line);
}

.stock-help-offer-row span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.stock-help-board {
  display: grid;
  gap: var(--card-gap);
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.45fr);
}

.stock-help-project-list {
  display: grid;
  gap: 10px;
  min-height: 260px;
}

.stock-help-project {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 7px;
  min-height: 124px;
  padding: 12px;
  text-align: left;
}

.stock-help-project:hover,
.stock-help-project.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 112, 95, 0.08);
}

.stock-help-project strong {
  font-size: 16px;
  line-height: 1.3;
}

.stock-help-project-meta,
.stock-help-project-foot {
  color: var(--muted);
  font-size: 12px;
}

.stock-help-project-stats,
.stock-help-project-foot {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.stock-help-project-stats span,
.stock-help-project-stats b {
  background: #f5f8fa;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  padding: 4px 8px;
}

.stock-help-project-stats b {
  background: #ecfdf3;
  border-color: #abefc6;
  color: #067647;
}

.stock-help-detail-panel {
  min-width: 0;
}

.stock-help-detail-title {
  align-items: start;
}

.stock-help-available {
  background: #ecfdf3;
  border: 1px solid #abefc6;
  border-radius: 999px;
  color: #067647;
  font-size: 13px;
  font-weight: 780;
  padding: 6px 10px;
  white-space: nowrap;
}

.stock-help-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  margin-bottom: 16px;
}

.stock-help-summary div {
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 10px;
}

.stock-help-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.stock-help-summary strong {
  font-size: 16px;
}

.stock-help-timeline {
  display: grid;
  gap: 12px;
  min-height: 260px;
}

.stock-help-timeline-item {
  display: grid;
  gap: 10px;
  grid-template-columns: 14px minmax(0, 1fr);
}

.stock-help-timeline-dot {
  background: var(--primary);
  border-radius: 999px;
  height: 10px;
  margin-top: 15px;
  width: 10px;
}

.stock-help-timeline-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  padding: 12px;
}

.stock-help-timeline-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stock-help-timeline-head time {
  color: var(--muted);
  font-size: 12px;
  margin-left: auto;
}

.stock-help-timeline-main {
  font-weight: 740;
}

.stock-help-timeline-card dl {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  margin: 0;
}

.stock-help-timeline-card dl div {
  min-width: 0;
}

.stock-help-timeline-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.stock-help-timeline-card dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.stock-help-error {
  color: var(--danger);
  font-weight: 720;
  overflow-wrap: anywhere;
}

.central-progress {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(6, minmax(90px, 1fr));
  margin-bottom: 12px;
}

.central-step {
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 10px;
}

.central-step span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.central-step strong {
  font-size: 15px;
}

.central-step small {
  color: var(--muted);
}

.central-step.done {
  background: var(--success-bg);
  border-color: #bfdfd1;
}

.central-step.active {
  background: #eef4f7;
  border-color: #c8d8e3;
}

.central-step.error {
  background: var(--failed-bg);
  border-color: #edcf9e;
}

.central-detail {
  display: grid;
  gap: 16px;
}

.central-section {
  display: grid;
  gap: 10px;
}

.central-table {
  max-height: 360px;
}

.central-table th,
.central-table td,
.central-table .num {
  text-align: center;
  vertical-align: middle;
}

.central-operation-time {
  min-width: 112px;
  white-space: nowrap;
}

.central-table .button-row {
  justify-content: center;
}

.purchase-progress-shell {
  min-height: 100vh;
}

.purchase-progress-layout {
  display: grid;
  gap: var(--card-gap);
  padding: 16px 24px 28px;
}

.purchase-progress-summary-panel,
.purchase-progress-filter-panel,
.purchase-progress-list-section {
  min-width: 0;
}

.purchase-progress-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.purchase-progress-summary-card {
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 6px;
  min-height: 76px;
  padding: 12px;
}

.purchase-progress-summary-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.purchase-progress-summary-card strong {
  color: var(--text);
  font-size: 20px;
  font-weight: 780;
}

.purchase-progress-search {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 13px;
  font-weight: 720;
  gap: 8px;
}

.purchase-progress-search input {
  background: #fbfcfd;
  min-height: 36px;
  min-width: 260px;
}

.purchase-progress-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.purchase-progress-filter {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #344252;
  cursor: pointer;
  display: inline-flex;
  gap: 7px;
  min-height: 34px;
  padding: 6px 11px;
}

.purchase-progress-filter b {
  background: #edf2f6;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  min-width: 22px;
  padding: 2px 6px;
}

.purchase-progress-filter.active,
.purchase-progress-filter:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 112, 95, 0.08);
  color: var(--primary-dark);
}

.purchase-progress-filter.active b {
  background: var(--success-bg);
  color: var(--primary-dark);
}

.purchase-progress-list {
  display: grid;
  gap: 12px;
}

.purchase-progress-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(31, 37, 44, 0.04);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.purchase-progress-card.has-exception {
  border-color: #e0abab;
  box-shadow: 0 0 0 3px rgba(177, 63, 63, 0.06);
}

.purchase-progress-card-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.purchase-progress-product {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 76px minmax(0, 1fr);
  min-width: 0;
}

.purchase-progress-product-image {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: #eef3f7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 780;
  justify-items: center;
  overflow: hidden;
  width: 76px;
}

.purchase-progress-product-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.purchase-progress-product-copy {
  min-width: 0;
}

.purchase-progress-card-head h3 {
  font-size: 18px;
  margin: 4px 0 5px;
}

.purchase-progress-card-head p {
  color: var(--muted);
  line-height: 1.45;
}

.purchase-progress-kicker {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 8px;
}

.purchase-progress-stage {
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 780;
  line-height: 1;
  padding: 7px 9px;
}

.purchase-progress-stage.success {
  background: var(--success-bg);
  color: var(--primary-dark);
}

.purchase-progress-stage.warning {
  background: #fff4de;
  color: var(--warning);
}

.purchase-progress-stage.info {
  background: #e9f2fb;
  color: var(--accent);
}

.purchase-progress-stage.error {
  background: #fff0f0;
  color: var(--danger);
}

.purchase-progress-stage.neutral {
  background: #eef3f7;
  color: #344252;
}

.purchase-progress-warehouse {
  align-items: center;
  background: #f9fbfc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 8px;
  padding: 9px 10px;
}

.purchase-progress-warehouse span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.purchase-progress-warehouse strong {
  font-size: 13px;
}

.purchase-progress-warehouse em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  margin-left: auto;
}

.purchase-progress-metrics {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.purchase-progress-metrics div {
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 5px;
  min-height: 70px;
  padding: 10px;
}

.purchase-progress-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 730;
}

.purchase-progress-metrics strong {
  color: var(--text);
  font-size: 18px;
}

.purchase-progress-metrics .muted-value strong {
  color: var(--muted);
  font-size: 15px;
}

.purchase-progress-progressbar {
  background: #e5ebf0;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.purchase-progress-progressbar span {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  display: block;
  height: 100%;
}

.purchase-progress-steps {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.purchase-progress-step {
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 9px;
}

.purchase-progress-step summary {
  cursor: pointer;
  display: grid;
  gap: 4px;
  list-style: none;
}

.purchase-progress-step summary::-webkit-details-marker {
  display: none;
}

.purchase-progress-step span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.purchase-progress-step strong {
  font-size: 13px;
}

.purchase-progress-step small {
  color: var(--muted);
  font-size: 11px;
}

.purchase-progress-step em {
  color: #536272;
  font-size: 11px;
  font-style: normal;
}

.purchase-progress-step:not(.is-empty) summary::after {
  color: var(--muted);
  content: "+";
  font-size: 11px;
  font-weight: 740;
  justify-self: start;
}

.purchase-progress-step[open] summary::after {
  content: "-";
}

.purchase-progress-step.done {
  background: var(--success-bg);
  border-color: #bfdfd1;
}

.purchase-progress-step.active {
  background: #e9f2fb;
  border-color: #b8d2ea;
}

.purchase-progress-step.error {
  background: #fff0f0;
  border-color: #e0abab;
}

.purchase-progress-step-details {
  border-top: 1px dashed rgba(83, 98, 114, 0.24);
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
}

.purchase-progress-step-detail {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(212, 221, 230, 0.78);
  border-radius: 6px;
  display: grid;
  gap: 3px;
  padding: 7px;
}

.purchase-progress-step-detail time,
.purchase-progress-step-detail span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.purchase-progress-step-detail strong {
  color: var(--text);
  font-size: 12px;
}

.purchase-progress-step-detail.has-error {
  border-color: #e0abab;
}

.purchase-progress-refs {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  padding-top: 12px;
}

.purchase-progress-refs span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 740;
  margin-bottom: 5px;
}

.purchase-progress-refs p {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.purchase-progress-refs em {
  background: #eef3f7;
  border: 1px solid #d4dde6;
  border-radius: 999px;
  color: #344252;
  font-size: 12px;
  font-style: normal;
  padding: 4px 7px;
}

.purchase-progress-exceptions {
  background: #fff8e8;
  border: 1px solid #edcf9e;
  border-radius: var(--radius);
  display: grid;
  gap: 6px;
  padding: 10px;
}

.purchase-progress-exceptions p {
  color: #704700;
  font-size: 13px;
  line-height: 1.45;
}

.share-borrow-modal {
  max-width: min(760px, calc(100vw - 24px));
}

.share-borrow-card {
  display: grid;
  gap: 16px;
}

.share-borrow-status {
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 7px;
  padding: 14px;
}

.share-borrow-status strong {
  color: var(--accent);
  font-size: 17px;
}

.share-borrow-status span {
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.share-borrow-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.share-borrow-metrics div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  padding: 12px;
}

.share-borrow-metrics span,
.share-borrow-response-list span,
.share-borrow-response-list time {
  color: var(--muted);
  font-size: 13px;
}

.share-borrow-metrics strong {
  font-size: 20px;
}

.share-borrow-fields {
  display: grid;
  gap: 14px;
}

.share-borrow-fields label {
  display: grid;
  font-weight: 700;
  gap: 7px;
}

.share-borrow-fields input,
.share-borrow-fields textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  padding: 11px 12px;
  resize: vertical;
  width: 100%;
}

.share-borrow-warning {
  background: #fff8e6;
  border: 1px solid #efd18b;
  border-radius: var(--radius);
  color: #7a4a00;
  line-height: 1.65;
  margin: 0;
  padding: 12px;
}

.share-borrow-responses h3 {
  margin: 0 0 10px;
}

.share-borrow-response-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  max-height: 240px;
  overflow: auto;
}

.share-borrow-response-list > div {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(100px, .8fr) minmax(220px, 1.6fr) max-content;
  padding: 11px 12px;
}

.share-borrow-response-list > div + div {
  border-top: 1px solid var(--line);
}

.config-shell {
  min-height: 100vh;
}

.config-layout {
  display: grid;
  gap: var(--card-gap);
  grid-template-columns: 220px minmax(0, 1fr) 360px;
  padding: 16px 24px 28px;
}

.config-tabs {
  align-content: start;
  display: grid;
  gap: 8px;
}

.config-tabs button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  padding: 10px 12px;
  text-align: left;
}

.config-tabs button.active,
.config-tabs button:hover {
  background: #eef4f7;
  border-color: var(--line);
  color: var(--primary-dark);
}

.config-panel {
  min-height: 620px;
}

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

.config-form label {
  display: grid;
  gap: 7px;
}

.config-form textarea,
.config-form .config-switch,
.config-form label:has(textarea) {
  grid-column: 1 / -1;
}

.upload-line {
  align-items: center;
  display: flex;
  gap: 8px;
}

.upload-line input {
  min-width: 0;
}

.config-audit {
  align-self: start;
  max-height: 760px;
  overflow: auto;
}

.config-management-panel {
  grid-column: 2 / -1;
}

.config-management-grid .config-users-box {
  grid-column: 1 / -1;
}

.audit-diff {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.audit-old,
.audit-new {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 760;
  padding: 4px 8px;
}

.audit-old {
  background: #fff1dc;
  color: var(--warning);
}

.audit-new {
  background: #e5f5ee;
  color: var(--primary-dark);
}

.audit-arrow {
  color: var(--muted);
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-height: 420px;
  overflow: auto;
}

table {
  border-collapse: collapse;
  min-width: 100%;
  table-layout: fixed;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f9fafb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  position: sticky;
  top: 0;
}

.num {
  text-align: right;
}

.mini-list {
  color: var(--muted);
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.mini-list li {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  list-style: none;
}

.mini-list .mini-more {
  color: var(--primary-dark);
  font-weight: 700;
}

.link-button {
  background: transparent;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font: inherit;
  font-weight: 720;
  padding: 0;
}

.link-button.neutral {
  color: var(--accent);
}

.notice {
  background: #fff8e8;
  border: 1px solid #efd39e;
  border-radius: var(--radius);
  color: #835400;
  margin-top: 12px;
  padding: 10px 12px;
}

.modal {
  background: transparent;
  border: 0;
  max-width: min(760px, calc(100vw - 24px));
  padding: 0;
  width: 100%;
}

.wide-modal {
  max-width: min(980px, calc(100vw - 24px));
}

.image-lightbox {
  max-width: min(1120px, calc(100vw - 24px));
}

.modal::backdrop {
  background: rgba(31, 37, 44, 0.42);
}

.modal-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 22px 70px rgba(31, 37, 44, 0.22);
  margin: 0;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 18px;
}

.new-product-hidden-question-layer {
  display: grid;
  inset: 0;
  padding: 24px;
  place-items: center;
  pointer-events: none;
  position: fixed;
  z-index: 45;
}

.new-product-hidden-question {
  align-items: center;
  animation: hiddenQuestionPulse 1.9s ease-in-out infinite;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.98) 0 10%, rgba(255, 245, 154, 0.78) 20%, transparent 62%),
    linear-gradient(145deg, #fff279, var(--designer-color, #ffd60a) 46%, #171306 100%);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  box-shadow:
    0 0 0 8px rgba(var(--designer-rgb, 255, 214, 10), 0.12),
    0 0 32px rgba(var(--designer-rgb, 255, 214, 10), 0.62),
    0 18px 48px rgba(31, 37, 44, 0.24);
  color: #211808;
  cursor: pointer;
  display: inline-flex;
  font-size: 54px;
  font-weight: 900;
  height: 98px;
  justify-content: center;
  line-height: 1;
  min-height: 0;
  padding: 0 0 4px;
  pointer-events: auto;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.84), 0 0 14px rgba(255, 255, 255, 0.72);
  width: 98px;
}

.new-product-hidden-question:hover {
  transform: translateY(-2px) scale(1.03);
}

.hidden-border-unlock-modal {
  max-width: min(520px, calc(100vw - 24px));
}

.hidden-border-unlock-card {
  background:
    radial-gradient(circle at 50% 18%, rgba(var(--designer-rgb, 255, 214, 10), 0.24), transparent 34%),
    linear-gradient(145deg, #1f2111 0%, #111409 54%, #070806 100%);
  border-color: rgba(var(--designer-rgb, 255, 214, 10), 0.34);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34), 0 0 36px rgba(var(--designer-rgb, 255, 214, 10), 0.22);
  color: #fff9cf;
  display: grid;
  gap: 14px;
  padding: 24px;
  text-align: center;
}

.hidden-border-unlock-card .muted {
  color: rgba(255, 249, 207, 0.78);
  line-height: 1.7;
}

.hidden-border-unlock-card .modal-actions {
  justify-content: center;
  margin-top: 4px;
}

.hidden-border-unlock-card-bright {
  background:
    radial-gradient(circle at 50% 12%, rgba(var(--designer-rgb, 255, 214, 10), 0.34), transparent 38%),
    linear-gradient(145deg, #fff9d8 0%, #fffdf1 58%, #ffe66b 100%);
  border-color: rgba(var(--designer-rgb, 255, 214, 10), 0.48);
  box-shadow: 0 26px 72px rgba(92, 72, 10, 0.22), 0 0 34px rgba(var(--designer-rgb, 255, 214, 10), 0.22);
  color: #241b07;
}

.hidden-border-unlock-card-bright .muted {
  color: rgba(36, 27, 7, 0.68);
}

.hidden-border-unlock-card-glass {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.82)),
    radial-gradient(circle at 50% 10%, rgba(var(--designer-rgb, 255, 214, 10), 0.18), transparent 42%);
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 28px 74px rgba(21, 30, 40, 0.24), inset 0 0 0 1px rgba(var(--designer-rgb, 255, 214, 10), 0.14);
  color: #17202a;
}

.hidden-border-unlock-card-glass .muted {
  color: rgba(23, 32, 42, 0.62);
}

.hidden-border-unlock-art {
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 50% 50%, rgba(var(--designer-rgb, 255, 214, 10), 0.18), transparent 58%),
    conic-gradient(from 20deg, transparent, rgba(var(--designer-rgb, 255, 214, 10), 0.82), transparent 24%, rgba(255, 255, 255, 0.86), transparent 52%, rgba(var(--designer-rgb, 255, 214, 10), 0.72), transparent);
  border-radius: var(--radius);
  box-shadow:
    inset 0 0 0 2px rgba(var(--designer-rgb, 255, 214, 10), 0.34),
    inset 0 0 32px rgba(var(--designer-rgb, 255, 214, 10), 0.12),
    0 0 28px rgba(var(--designer-rgb, 255, 214, 10), 0.24);
  justify-self: center;
  max-width: 180px;
  padding: 5px;
  width: 48%;
}

.hidden-border-unlock-image {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  box-shadow:
    inset 0 0 0 2px rgba(var(--designer-rgb, 255, 214, 10), 0.26),
    0 0 28px rgba(var(--designer-rgb, 255, 214, 10), 0.2);
  justify-self: center;
  max-width: 190px;
  overflow: hidden;
  width: 48%;
}

.hidden-border-unlock-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hidden-border-test-layout {
  gap: 16px;
}

.hidden-border-test-hero {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 52%, rgba(var(--designer-rgb, 255, 214, 10), 0.08) 100%);
  border-color: rgba(var(--designer-rgb, 255, 214, 10), 0.22);
  box-shadow: inset 0 0 0 1px rgba(var(--designer-rgb, 255, 214, 10), 0.12);
}

.hidden-border-test-controls {
  display: grid;
  gap: 14px;
}

.hidden-border-test-control-grid {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: 160px minmax(260px, 1fr);
}

.hidden-border-test-notice-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.hidden-border-test-notice-grid .wide {
  grid-column: 1 / -1;
}

.hidden-border-test-page .new-product-image-chip-readonly {
  grid-template-columns: 22px 56px minmax(34px, max-content) max-content;
  max-width: 100%;
}

.hidden-border-test-page .new-product-image-chip-readonly .new-product-drag-handle {
  cursor: default;
  opacity: 0.42;
}

.hidden-border-test-page .new-product-image-chip-readonly .muted {
  font-weight: 650;
}

.hidden-border-test-notice-image {
  display: grid;
  gap: 10px;
}

.hidden-border-test-notice-image-current {
  align-items: center;
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  grid-template-columns: 96px minmax(0, 1fr);
  min-height: 104px;
  padding: 10px;
}

.hidden-border-test-notice-image-current img {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  display: block;
  height: 96px;
  object-fit: cover;
  width: 96px;
}

.hidden-border-test-board {
  min-height: 520px;
}

.hidden-border-test-product-visual {
  align-items: center;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
  display: grid;
  gap: 8px;
  justify-items: center;
  max-height: 74%;
  max-width: 70%;
  min-height: 118px;
  min-width: 118px;
  padding: 18px;
  position: relative;
  z-index: 3;
}

.hidden-border-test-product-visual::before {
  background: rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  content: "";
  filter: blur(12px);
  height: 36%;
  position: absolute;
  top: 13%;
  width: 52%;
}

.hidden-border-test-product-visual i {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.52)),
    var(--designer-color, #ffd60a);
  border-radius: 999px;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.28), 0 14px 26px rgba(0, 0, 0, 0.16);
  display: block;
  height: 46px;
  position: relative;
  width: 46px;
  z-index: 1;
}

.hidden-border-test-product-visual b {
  color: #1f252c;
  font-size: 13px;
  overflow-wrap: anywhere;
  position: relative;
  text-align: center;
  z-index: 1;
}

.hidden-border-test-product-visual.mint {
  background: linear-gradient(145deg, #e6fff3, #b8ebdc 48%, #4a9c86);
}

.hidden-border-test-product-visual.blue {
  background: linear-gradient(145deg, #e8f2ff, #98bdea 46%, #29466e);
}

.hidden-border-test-product-visual.gold {
  background: linear-gradient(145deg, #fff8df, #f2cf76 48%, #9f6c12);
}

@keyframes hiddenQuestionPulse {
  0%, 100% {
    box-shadow:
      0 0 0 8px rgba(var(--designer-rgb, 255, 214, 10), 0.1),
      0 0 28px rgba(var(--designer-rgb, 255, 214, 10), 0.48),
      0 18px 48px rgba(31, 37, 44, 0.22);
  }
  44% {
    box-shadow:
      0 0 0 12px rgba(var(--designer-rgb, 255, 214, 10), 0.16),
      0 0 44px rgba(var(--designer-rgb, 255, 214, 10), 0.74),
      0 18px 52px rgba(31, 37, 44, 0.24);
  }
}

.new-product-lightbox-card {
  background: #101820;
  border-color: rgba(255, 255, 255, 0.14);
  color: #f7fafb;
}

.new-product-lightbox-card .muted {
  color: #a9b5c0;
}

.new-product-lightbox-stage {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  margin-top: 14px;
}

.new-product-lightbox-stage img {
  background: #0b1117;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  display: block;
  max-height: min(78vh, 760px);
  min-height: 360px;
  object-fit: contain;
  transition: opacity 120ms ease;
  width: 100%;
}

.new-product-lightbox-stage img.is-loading {
  opacity: 0.38;
}

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

.modal-head p {
  margin-top: 4px;
}

.modal-actions {
  justify-content: flex-end;
}

.sku-column {
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  display: grid;
  gap: 6px;
  max-height: 180px;
  overflow: auto;
  padding: 10px 12px;
}

.warehouse-self {
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.warehouse-self-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) max-content max-content;
}

.warehouse-self-row select {
  min-width: 0;
}

.preview-card {
  max-width: 760px;
}

.preview-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  max-height: 440px;
  overflow: auto;
}

.preview-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 58px minmax(0, 1fr) max-content;
  padding: 10px;
}

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

.preview-row.has-unreturned-history {
  background: rgba(153, 97, 0, 0.06);
  box-shadow: inset 0 0 0 1px rgba(153, 97, 0, 0.32), inset 4px 0 0 rgba(153, 97, 0, 0.72);
}

.preview-row .product-image {
  height: 58px;
  width: 58px;
}

.settlement-preview-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.settlement-preview-section.success {
  border-color: rgba(21, 128, 61, 0.24);
}

.settlement-preview-section.manual-failed {
  border-color: rgba(153, 97, 0, 0.28);
}

.settlement-preview-section.excluded {
  border-color: rgba(100, 116, 139, 0.24);
}

.settlement-preview-row,
.settlement-manual-product-row {
  grid-template-columns: 58px minmax(0, 1fr);
}

.settlement-preview-row.has-action {
  grid-template-columns: 58px minmax(0, 1fr) max-content;
}

.settlement-preview-actions {
  justify-content: flex-end;
}

.settlement-preview-row strong,
.settlement-manual-product-row strong {
  overflow-wrap: anywhere;
}

.settlement-manual-fields {
  grid-template-columns: repeat(2, minmax(160px, 1fr));
}

.settlement-manual-control {
  margin-top: 2px;
}

.preview-main {
  min-width: 0;
}

.preview-main p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.preview-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 6px 12px;
  margin-top: 6px;
}

.preview-history-warning {
  color: var(--warning);
  font-weight: 800;
}

.preview-tools {
  align-items: center;
  display: flex;
  gap: 8px;
}

.preview-quantity,
.preview-quantity-input {
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 800;
  min-width: 52px;
  text-align: right;
}

.preview-quantity-input {
  font-size: 14px;
  max-width: 90px;
}

.admin-inline {
  justify-content: flex-start;
  margin-bottom: 10px;
}

.purchase-operator {
  display: grid;
  gap: 10px;
}

.purchase-operator-head {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(140px, 1fr) minmax(180px, 260px);
}

.switch {
  align-items: center;
  display: flex;
  gap: 6px;
}

.switch input {
  min-height: auto;
}

.toast {
  background: #1f252c;
  border-radius: var(--radius);
  bottom: 20px;
  color: #fff;
  left: 50%;
  opacity: 0;
  padding: 10px 14px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 8px);
  transition: opacity 150ms ease, transform 150ms ease;
  z-index: 20;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.empty {
  color: var(--muted);
  padding: 18px;
  text-align: center;
}

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

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

@media (max-width: 1060px) {
  .layout,
  .new-hero,
  .new-stats,
  .admin-grid,
  .central-layout,
  .central-progress,
  .records-filter-grid,
  .stock-help-filter-grid,
  .stock-help-notice-filter,
  .stock-help-board,
  .purchase-progress-metrics,
  .purchase-progress-steps,
  .config-layout,
  .designer-style-grid {
    grid-template-columns: 1fr;
  }

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

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

  .new-hero-actions {
    justify-content: flex-start;
  }

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

  .approval-card-grid {
    grid-template-columns: 1fr;
  }

  .approval-card-side {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 14px;
  }

  .designer-style-preview-panel {
    position: static;
  }

  .stock-help-summary,
  .stock-help-timeline-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar,
  .approval-topbar,
  .userbar,
  .panel-title,
  .approval-board-head,
  .admin-actions,
  .admin-box-title,
  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-select {
    justify-content: space-between;
    width: 100%;
  }

  .central-purchase-candidate-controls {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .hall-search {
    justify-content: space-between;
    width: 100%;
  }

  .hall-search input {
    flex: 1;
    min-width: 0;
    width: 100%;
  }

  .inline-select select {
    flex: 1;
  }

  .layout,
  .new-layout,
  .approval-workspace,
  .central-layout,
  .purchase-progress-layout,
  .stock-help-layout,
  .config-layout {
    padding: 12px;
  }

  .config-management-panel {
    grid-column: auto;
  }

  .topbar {
    gap: 10px;
    padding: 10px 12px;
  }

  .topbar h1 {
    font-size: 20px;
  }

  .topbar p {
    font-size: 12px;
  }

  .mobile-collapse {
    min-width: 0;
  }

  .mobile-collapse > .mobile-collapse-summary {
    align-items: center;
    background: #f7fafb;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    list-style: none;
    min-height: 38px;
    padding: 8px 10px;
  }

  .mobile-fold-toggle {
    align-items: center;
    background: #f7fafb;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    min-height: 38px;
    padding: 8px 10px;
    width: 100%;
  }

  .mobile-collapse > .mobile-collapse-summary::-webkit-details-marker {
    display: none;
  }

  .mobile-collapse > .mobile-collapse-summary::after,
  .mobile-fold-toggle::after {
    align-items: center;
    background: #eef3f7;
    border: 1px solid #d4dde6;
    border-radius: 999px;
    color: #1f354c;
    content: "+";
    display: inline-flex;
    flex: 0 0 auto;
    font-weight: 800;
    height: 24px;
    justify-content: center;
    width: 24px;
  }

  .mobile-collapse[open] > .mobile-collapse-summary::after,
  .mobile-fold-toggle.is-open::after {
    content: "-";
  }

  .mobile-collapse > .mobile-collapse-summary span:first-child,
  .mobile-fold-toggle span:first-child {
    font-size: 13px;
    font-weight: 780;
  }

  .mobile-collapse-meta {
    color: var(--muted);
    flex: 1;
    font-size: 12px;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-collapse[open] > .mobile-collapse-content {
    margin-top: 10px;
  }

  .mobile-collapse:not([open]) > .mobile-collapse-content {
    display: none;
  }

  .mobile-collapse.panel {
    padding: 10px 12px;
  }

  .group-order-panel > .mobile-fold-toggle {
    margin-bottom: 10px;
  }

  .hall-panel > .mobile-fold-toggle {
    margin: 0 0 10px;
  }

  .group-order-panel.mobile-fold-collapsed > .panel-title,
  .group-order-panel.mobile-fold-collapsed > #groupOrderList,
  .hall-panel.mobile-options-collapsed > .panel-title .button-row,
  .hall-panel.mobile-options-collapsed > .panel-title .hall-status-filters,
  .hall-panel.mobile-options-collapsed > #hallTabs,
  .side-stack.mobile-fold-collapsed > .panel {
    display: none;
  }

  .collapsible-inner-title {
    display: none;
  }

  .new-product-start[open] > .new-product-start-form {
    margin-top: 10px;
  }

  .new-product-start .collapsible-inner-title {
    display: flex;
    margin-bottom: 0;
  }

  .new-product-start .collapsible-inner-title > div {
    display: none;
  }

  .userbar.mobile-collapse,
  .topbar-actions-collapse {
    display: block;
    width: 100%;
  }

  .topbar-actions-content {
    align-items: stretch;
    display: grid;
    gap: 8px;
  }

  .topbar-actions-content #currentUser,
  .topbar-actions-content #newCurrentUser {
    color: var(--muted);
    font-size: 12px;
    text-align: center;
  }

  .workbench-collapse,
  .new-workbench-collapse {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 12px;
  }

  .side-stack,
  .side-stack-content,
  .new-workbench-content {
    gap: 10px;
  }

  .side-stack-content .panel {
    padding: 12px;
  }

  .hall-options-collapse {
    margin-bottom: 10px;
  }

  .hall-panel {
    display: block;
    min-height: 0;
  }

  .hall-panel > .panel-title,
  .hall-panel > .hall-options-collapse {
    display: block;
  }

  .hall-panel > .panel-title {
    display: flex;
  }

  .hall-options-content {
    gap: 8px;
    justify-items: stretch;
  }

  .hall-options-content .button-row,
  .hall-options-content .hall-status-filters,
  .hall-options-content .hall-tabs {
    grid-column: auto;
    grid-row: auto;
    justify-content: stretch;
    justify-self: auto;
  }

  .hall-status-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hall-status-filters button {
    justify-content: center;
    min-height: 32px;
    padding: 6px 5px;
  }

  .hall-tabs {
    border-bottom: 0;
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .hall-tabs button {
    width: 100%;
  }

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

  .approval-tabs {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .approval-tab {
    width: 100%;
  }

  .approval-board {
    padding: 12px;
  }

  .approval-order-head {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .approval-thumb {
    height: 54px;
    width: 54px;
  }

  .approval-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .new-hero {
    min-height: 0;
    padding: 18px;
  }

  .new-hero p,
  .new-eyebrow {
    display: none;
  }

  .new-hero h2 {
    font-size: 22px;
  }

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

  .new-stats > div {
    padding: 10px 12px;
  }

  .new-stats b {
    font-size: 20px;
  }

  .new-product-list {
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .new-product-designer-filters {
    margin-bottom: 10px;
  }

  .new-product-designer-filter-inner {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .new-product-designer-filter,
  .new-product-designer-filter-item {
    width: 100%;
  }

  .new-product-designer-filter {
    justify-content: space-between;
    min-height: 42px;
  }

  .designer-style-controls,
  .designer-style-border-head {
    align-items: stretch;
    flex-direction: column;
  }

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

  .hidden-border-test-control-grid,
  .hidden-border-test-notice-grid {
    grid-template-columns: 1fr;
  }

  .new-product-hidden-question {
    font-size: 46px;
    height: 84px;
    width: 84px;
  }

  .new-product-edit-layout,
  .new-product-history-row,
  .new-product-trash-row {
    grid-template-columns: 1fr;
  }

  .new-product-history-search,
  .new-product-history-meta {
    grid-template-columns: 1fr;
  }

  .new-product-history-head {
    align-items: stretch;
    flex-direction: column;
  }

  .new-product-history-actions {
    align-items: center;
    display: flex;
    justify-content: space-between;
    justify-items: stretch;
  }

  .new-product-history-thumb {
    max-width: 120px;
  }

  .new-product-join-form {
    grid-template-columns: minmax(0, 1fr) max-content;
  }

  .new-product-participant-chip b {
    max-width: 104px;
  }

  .new-product-media {
    aspect-ratio: 1 / 1;
  }

  .new-product-card {
    align-items: start;
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .new-product-media {
    border-bottom: 0;
    border-right: 1px solid var(--line);
    grid-column: 1;
    height: 112px;
    min-height: 112px;
  }

  .new-product-media .tag {
    font-size: 11px;
    padding: 5px 7px;
    right: 6px;
    top: 6px;
  }

  .new-product-card-thumbs {
    display: none;
  }

  .new-product-main {
    gap: 7px;
    grid-column: 2;
    padding: 10px;
  }

  .new-product-card-head strong {
    font-size: 15px;
  }

  .new-product-name,
  .new-product-description,
  .new-product-card-head p {
    font-size: 12px;
  }

  .new-product-description {
    display: -webkit-box;
    line-height: 1.45;
    margin-top: 5px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .new-product-manager-annotation {
    border-radius: 8px;
    padding: 8px 10px 9px;
  }

  .new-product-manager-annotation-head {
    display: block;
  }

  .new-product-manager-annotation-head small {
    display: block;
    margin-top: 2px;
  }

  .new-product-manager-annotation p {
    font-size: 12px;
    line-height: 1.6;
  }

  .product-meta.new-product-meta-grid {
    grid-template-columns: 1fr;
  }

  .new-product-participants {
    max-height: 62px;
    overflow: hidden;
  }

  .new-product-join-form {
    grid-template-columns: 1fr;
  }

  .new-product-manager-strip {
    grid-template-columns: 1fr;
  }

  .new-product-manager-strip .button {
    width: 100%;
  }

  .new-product-join-button {
    width: 100%;
  }

  .new-product-manager-dialog-backdrop {
    align-items: end;
    padding: 10px;
  }

  .new-product-manager-dialog {
    gap: 12px;
    max-height: 88vh;
    padding: 14px;
    width: 100%;
  }

  .new-product-manager-dialog-head,
  .new-product-manager-dialog-actions {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .new-product-manager-dialog-actions {
    flex-direction: column-reverse;
  }

  .new-product-manager-dialog-actions .button {
    width: 100%;
  }

  .new-product-manager-clear-option {
    align-items: start;
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .new-product-manager-clear-option em {
    grid-column: 2;
    justify-self: start;
  }

  .new-product-trash-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .new-product-image-chip {
    grid-template-columns: 22px 56px minmax(0, 1fr);
    width: 100%;
  }

  .new-product-image-chip .link-button,
  .new-product-cover-mark {
    grid-column: 3 / -1;
    justify-self: start;
  }

  .new-product-paste-thumb {
    max-width: none;
    width: 100%;
  }

  .product-row {
    align-items: start;
    gap: 10px;
    padding: 10px;
    grid-template-columns: min(68px, var(--product-image-size)) minmax(0, 1fr);
  }

  .product-image {
    height: min(68px, var(--product-image-size));
    width: min(68px, var(--product-image-size));
  }

  .product-main {
    gap: 7px;
  }

  .product-head {
    gap: 8px;
  }

  .product-head p,
  .product-meta {
    font-size: 12px;
  }

  .product-meta,
  .operator-list,
  .inventory-strip {
    gap: 5px;
  }

  .inventory-strip span,
  .operator-list span {
    line-height: 1.2;
    padding: 3px 6px;
  }

  .hall-product-image-preview {
    cursor: default;
  }

  .image-hover-preview {
    display: none !important;
  }

  .increment-form {
    grid-column: 1 / -1;
  }

  .hall-row-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
    justify-self: stretch;
    max-width: none;
  }

  .stock-offer-button {
    flex: 1 1 100%;
  }

  .hall-product-row > .sku-moq-control,
  .hall-product-row > .hall-order-edit,
  .hall-card-footer {
    grid-column: 1 / -1;
  }

  .hall-card-footer > .operator-list {
    flex-basis: 100%;
  }

  .hall-card-footer > .hall-row-actions {
    flex: 1 1 100%;
    max-width: none;
    min-width: 0;
  }

  .hall-card-footer .increment-form {
    flex: 1 1 120px;
    max-width: none;
  }

  .hall-card-footer .stock-offer-button {
    flex: 0 0 auto;
    width: auto;
  }

  .stock-offer-product {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .stock-offer-product-image {
    height: 60px;
    width: 60px;
  }

  .stock-offer-product-image .product-image {
    height: 60px;
    width: 60px;
  }

  .stock-offer-quantity-row {
    grid-template-columns: 1fr;
  }

  .field-row,
  .warehouse-self-row,
  .central-create-row,
  .central-progress,
  .stock-help-filter-grid,
  .stock-help-notice-filter,
  .stock-help-summary,
  .stock-help-timeline-card dl,
  .purchase-progress-metrics,
  .purchase-progress-steps,
  .user-edit,
  .order-edit,
  .config-form {
    grid-template-columns: 1fr;
  }

  .purchase-progress-search,
  .purchase-progress-card-head,
  .purchase-progress-warehouse {
    align-items: stretch;
    flex-direction: column;
  }

  .purchase-progress-product {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .purchase-progress-product-image {
    width: 64px;
  }

  .purchase-progress-search input {
    min-width: 0;
    width: 100%;
  }

  .purchase-progress-warehouse em {
    margin-left: 0;
  }

  .purchase-progress-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .central-order-source-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .central-order-source-filters button {
    justify-content: center;
    width: 100%;
  }

  .purchase-progress-filter {
    border-radius: 6px;
    justify-content: space-between;
    width: 100%;
  }

  .button,
  .icon-button {
    width: 100%;
  }

  .modal-head,
  .modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .new-product-lightbox-stage {
    grid-template-columns: 1fr 1fr;
  }

  .new-product-lightbox-stage img {
    grid-column: 1 / -1;
    grid-row: 1;
    max-height: 68vh;
    min-height: 260px;
  }

  .preview-row {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .preview-row .product-image {
    height: 52px;
    width: 52px;
  }

  .preview-tools,
  .preview-quantity {
    grid-column: 2;
    justify-content: flex-start;
    text-align: left;
  }
}

.supplier-purchase-shell {
  background:
    radial-gradient(circle at 10% 0%, rgba(50, 112, 255, 0.09), transparent 32rem),
    var(--page-bg, #f5f7fb);
  min-height: 100vh;
}

.supplier-purchase-layout {
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 1540px;
  padding: 24px;
}

.supplier-purchase-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.supplier-purchase-summary > div {
  background: linear-gradient(145deg, #f8faff, #eef3ff);
  border: 1px solid #dce5f6;
  border-radius: 12px;
  display: grid;
  gap: 6px;
  padding: 16px;
}

.supplier-purchase-summary span,
.supplier-purchase-group-metrics span,
.supplier-purchase-external-refs span {
  color: #667085;
  font-size: 12px;
}

.supplier-purchase-summary strong {
  color: #17315d;
  font-size: 24px;
}

.supplier-purchase-filters {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(300px, 2fr) minmax(150px, 0.7fr) minmax(190px, 0.8fr) auto;
}

.supplier-purchase-filters label {
  color: #475467;
  display: grid;
  font-size: 13px;
  font-weight: 600;
  gap: 7px;
}

.supplier-purchase-filters input,
.supplier-purchase-filters select {
  background: #fff;
  border: 1px solid #ccd5e4;
  border-radius: 9px;
  color: #1d2939;
  min-height: 42px;
  padding: 8px 11px;
}

.supplier-purchase-filter-actions {
  display: flex;
  gap: 8px;
}

.supplier-purchase-list,
.supplier-purchase-group-list {
  display: grid;
  gap: 16px;
}

.supplier-purchase-supplier-card {
  overflow: hidden;
}

.supplier-purchase-supplier-head {
  align-items: center;
  border-bottom: 1px solid #e7ecf3;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: -2px -2px 16px;
  padding: 2px 2px 16px;
}

.supplier-purchase-supplier-head h3,
.supplier-purchase-group-head h4 {
  margin: 2px 0;
}

.supplier-purchase-supplier-head small,
.supplier-purchase-group-head small {
  color: #667085;
}

.supplier-purchase-supplier-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.supplier-purchase-supplier-totals span {
  background: #edf4ff;
  border-radius: 999px;
  color: #2456a6;
  font-size: 13px;
  padding: 7px 11px;
}

.supplier-purchase-kicker {
  color: #5c74a1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.supplier-purchase-group-card {
  background: #fbfcfe;
  border: 1px solid #dfe6f0;
  border-left: 4px solid #3f7de8;
  border-radius: 12px;
  padding: 16px;
}

.supplier-purchase-group-card.attention {
  border-left-color: #e59c25;
}

.supplier-purchase-group-card.blocked {
  border-left-color: #d84c4c;
}

.supplier-purchase-group-card.inactive {
  border-left-color: #98a2b3;
  opacity: 0.78;
}

.supplier-purchase-group-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.supplier-purchase-status {
  background: #e8f7ee;
  border-radius: 999px;
  color: #267348;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  white-space: nowrap;
}

.supplier-purchase-status.attention {
  background: #fff3d8;
  color: #976000;
}

.supplier-purchase-status.blocked {
  background: #ffe6e6;
  color: #a12d2d;
}

.supplier-purchase-group-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(90px, 0.5fr)) minmax(220px, 2fr);
  margin: 14px 0;
}

.supplier-purchase-group-metrics > div {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 9px;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
}

.supplier-purchase-group-metrics strong {
  color: #21324d;
}

.supplier-purchase-issues {
  display: grid;
  gap: 6px;
  margin: 10px 0;
}

.supplier-purchase-issues p {
  align-items: baseline;
  background: #fff5df;
  border-radius: 7px;
  color: #77500c;
  display: flex;
  font-size: 12px;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
}

.supplier-purchase-issues p.error {
  background: #fff0f0;
  color: #8f2c2c;
}

.supplier-purchase-external-refs {
  display: grid;
  gap: 6px;
  margin: 10px 0;
}

.supplier-purchase-external-refs > div {
  align-items: center;
  background: #eef8f4;
  border: 1px solid #d6eee4;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 9px 11px;
}

.supplier-purchase-external-refs em {
  background: #fff;
  border-radius: 999px;
  color: #47705d;
  font-size: 11px;
  font-style: normal;
  padding: 3px 7px;
}

.supplier-purchase-external-refs em.warning {
  color: #a06100;
}

.supplier-purchase-external-refs a {
  color: #2456a6;
  font-size: 12px;
  margin-left: auto;
}

.supplier-purchase-detail-button {
  margin-top: 4px;
}

.supplier-purchase-detail.open {
  border-top: 1px solid #e2e8f0;
  margin-top: 14px;
  padding-top: 14px;
}

.supplier-purchase-orders {
  display: grid;
  gap: 10px;
}

.supplier-purchase-orders details {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  overflow: hidden;
}

.supplier-purchase-orders summary {
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(150px, 1fr) repeat(3, minmax(110px, auto));
  list-style: none;
  padding: 11px 13px;
}

.supplier-purchase-orders summary span {
  color: #667085;
  font-size: 12px;
}

.supplier-purchase-table-wrap {
  border-top: 1px solid #e2e8f0;
  overflow-x: auto;
}

.supplier-purchase-table {
  border-collapse: collapse;
  min-width: 900px;
  width: 100%;
}

.supplier-purchase-table th,
.supplier-purchase-table td {
  border-bottom: 1px solid #edf0f5;
  font-size: 12px;
  padding: 9px 11px;
  text-align: left;
  vertical-align: top;
}

.supplier-purchase-table th {
  background: #f8fafd;
  color: #526077;
  font-weight: 700;
}

.supplier-purchase-table .num {
  text-align: right;
}

.supplier-purchase-table tr.inactive {
  opacity: 0.55;
}

.supplier-purchase-more {
  display: block;
  margin: 18px auto 0;
}

@media (max-width: 960px) {
  .supplier-purchase-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .supplier-purchase-filters {
    grid-template-columns: 1fr 1fr;
  }

  .supplier-purchase-search,
  .supplier-purchase-filter-actions {
    grid-column: 1 / -1;
  }

  .supplier-purchase-group-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .supplier-purchase-group-metrics .wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .supplier-purchase-layout {
    padding: 12px;
  }

  .supplier-purchase-summary,
  .supplier-purchase-filters,
  .supplier-purchase-group-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .supplier-purchase-supplier-head,
  .supplier-purchase-group-head {
    align-items: stretch;
    flex-direction: column;
  }

  .supplier-purchase-supplier-totals {
    justify-content: flex-start;
  }

  .supplier-purchase-filter-actions,
  .supplier-purchase-search,
  .supplier-purchase-group-metrics .wide {
    grid-column: 1 / -1;
  }

  .supplier-purchase-orders summary {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .new-product-card.designer-border-electric-field::before,
  .new-product-card.designer-border-electric-field-a::before,
  .new-product-card.designer-border-electric-field-b::before,
  .new-product-card.designer-border-electric-field::after,
  .new-product-card.designer-border-electric-field-a::after,
  .new-product-card.designer-border-electric-field-b::after,
  .new-product-border-swatch.designer-border-electric-field::before,
  .new-product-border-swatch.designer-border-electric-field-a::before,
  .new-product-border-swatch.designer-border-electric-field-b::before,
  .new-product-border-swatch.designer-border-electric-field::after,
  .new-product-border-swatch.designer-border-electric-field-a::after,
  .new-product-border-swatch.designer-border-electric-field-b::after,
  .new-product-card.designer-border-electric-field .new-product-media::after,
  .new-product-card.designer-border-electric-field-a .new-product-media::after,
  .new-product-card.designer-border-electric-field-b .new-product-media::after,
  .designer-style-preview-card.designer-hidden-border-card .designer-style-preview-media::after,
  .new-product-hidden-question {
    animation: none;
  }
}

/* 普通拼单分批提前结束 */
.early-close-toolbar {display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:14px 0;}
.early-close-toolbar.hidden,.early-close-batches.hidden {display:none;}
.early-close-selector {display:inline-flex;align-items:center;gap:7px;margin:7px 8px 0 0;font-size:13px;cursor:pointer;}
.early-close-selector input {width:17px;height:17px;min-height:0;margin:0;}
.early-close-countdown {display:block;margin:7px 0;color:#b45309;font-size:13px;font-weight:600;overflow-wrap:anywhere;}
.hall-product-row .product-head .early-close-countdown {display:inline;margin:0 0 0 8px;}
.early-close-batches {margin:16px 0;padding:14px;background:#fffbeb;border:1px solid #fde68a;border-radius:12px;}
.early-close-batches h3 {margin:0 0 12px;font-size:15px;}
.early-close-batch {display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid #fde68a;overflow-wrap:anywhere;}
.early-close-batch .tag {display:inline-block;margin-left:8px;}
.early-close-batch p {margin:7px 0;font-size:13px;}
.early-close-batch-actions {display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;flex-shrink:0;max-width:45%;}
.early-close-error {color:#b91c1c;overflow-wrap:anywhere;}
.early-close-dialog {background:#fff;color:#172b3a;box-shadow:0 24px 80px rgba(15,23,42,.28);width:min(760px,calc(100vw - 24px));max-height:90dvh;overflow:auto;border:0;border-radius:16px;padding:24px;box-sizing:border-box;}
.early-close-dialog::backdrop {background:rgba(15,23,42,.4);}
.early-close-dialog h2 {margin:0;}
.early-close-product {display:flex;gap:16px;padding:16px 0;border-bottom:1px solid #e2e8f0;}
.early-close-product > div:last-child {flex:1;min-width:0;overflow-wrap:anywhere;}
.early-close-product .product-image {width:72px;height:72px;flex-shrink:0;}
.early-close-product p {margin:6px 0;}
@media(max-width:640px){.early-close-dialog {padding:16px;}.early-close-batch {flex-direction:column;}.early-close-batch-actions {max-width:100%;justify-content:flex-start;}.early-close-dialog .modal-actions {flex-direction:column;}.early-close-dialog .modal-actions button {width:100%;}.early-close-product {gap:10px;}}

/* 提前结束选品窗口：候选列表与已选清单各自滚动，操作栏保持可见。 */
.early-picker-dialog {width:min(1280px,calc(100vw - 32px));height:min(860px,92dvh);max-width:none;max-height:calc(100dvh - 24px);margin:auto;padding:0;border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--ink,#172b3a);box-shadow:0 24px 80px rgba(15,23,42,.24);overflow:hidden;box-sizing:border-box;}
.early-picker-dialog[open] {display:flex;flex-direction:column;}
.early-picker-dialog::backdrop {background:rgba(15,23,42,.42);}
.early-picker-header {display:flex;justify-content:space-between;align-items:center;gap:16px;flex-shrink:0;padding:12px 20px;border-bottom:1px solid var(--line);}
.early-picker-header h2 {margin:0;font-size:18px;line-height:24px;}
.early-picker-header p {margin:2px 0 0;line-height:18px;font-size:12px;}
.early-picker-header > div {flex:1;min-width:0;}.early-picker-header > button,.early-picker-search-row > button {width:auto;flex-shrink:0;}
.early-picker-dialog .button {min-height:36px;padding:7px 12px;font-size:13px;}
.early-picker-controls {flex-shrink:0;padding:8px 20px;border-bottom:1px solid var(--line);}
.early-picker-search-row {display:flex;align-items:center;gap:12px;}
.early-picker-search,.early-picker-sort {display:flex;align-items:center;gap:8px;margin:0;font-size:12px;white-space:nowrap;}
.early-picker-search {flex:1;min-width:0;}
.early-picker-search input {flex:1;min-width:0;width:100%;}
.early-picker-sort select {width:166px;}
.early-picker-dialog input[type="search"],.early-picker-dialog select {height:36px;min-height:36px;padding:6px 9px;font-size:13px;}
.early-picker-dialog input[type="checkbox"] {width:18px;height:18px;min-height:0;max-width:none;margin:0;padding:0;accent-color:#15705f;flex-shrink:0;}
.early-picker-dialog button:focus-visible,.early-picker-dialog input:focus-visible,.early-picker-dialog select:focus-visible,.early-picker-dialog textarea:focus-visible,.early-picker-dialog summary:focus-visible {outline:2px solid #15705f;outline-offset:2px;}
.early-picker-bulk {margin-top:6px;font-size:12px;}
.early-picker-bulk > summary {padding:4px 0;line-height:20px;cursor:pointer;color:#15705f;font-weight:600;}
.early-picker-bulk-editor {display:grid;gap:7px;padding:6px 0;}
.early-picker-bulk-editor label {font-size:12px;font-weight:400;}
.early-picker-bulk-editor textarea {width:100%;height:76px;min-height:76px;resize:vertical;max-height:160px;font-family:inherit;font-size:13px;}
.early-picker-bulk-editor .button-row {justify-content:flex-start;}
.early-picker-message {margin:5px 0 0;font-size:12px;color:#b45309;line-height:18px;}
.early-picker-message:empty {display:none;}
.early-picker-match-report {margin:3px 0 0;font-size:12px;line-height:20px;color:var(--muted,#64748b);}
.early-picker-match-report.hidden {display:none;}
.early-picker-match-report summary {cursor:pointer;color:#8a4d0c;}
.early-picker-match-report summary span {margin-left:10px;text-decoration:underline;}
.early-picker-match-problems {max-height:82px;overflow:auto;overflow-wrap:anywhere;padding:4px 8px;background:#fffbeb;border-radius:6px;}
.early-picker-match-problems p {margin:3px 0;}
.early-picker-body {display:grid;grid-template-columns:minmax(0,1fr) 280px;flex:1;min-height:0;min-width:0;overflow:hidden;}
.early-picker-candidates,.early-picker-selected {display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;}
.early-picker-list-tools {display:flex;align-items:center;justify-content:space-between;gap:10px;height:36px;min-height:36px;padding:5px 12px;box-sizing:border-box;font-size:12px;color:var(--muted,#64748b);border-bottom:1px solid var(--line);}
.early-picker-list-tools label {display:flex;align-items:center;gap:7px;margin:0;font-size:12px;color:var(--ink,#172b3a);cursor:pointer;}
.early-picker-table-scroll {flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;}
.early-picker-table {width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:13px;}
.early-picker-table .picker-col-check {width:38px;}.early-picker-table .picker-col-image {width:44px;}.early-picker-table .picker-col-quantity {width:88px;}.early-picker-table .picker-col-moq {width:72px;}.early-picker-table .picker-col-status {width:140px;}
.early-picker-table thead th {position:sticky;top:0;z-index:1;height:30px;box-sizing:border-box;padding:5px 8px;background:#f4f7f9;color:var(--muted,#64748b);border-bottom:1px solid var(--line);font-weight:600;font-size:12px;line-height:19px;text-align:left;}
.early-picker-table td {height:44px;padding:5px 8px;border-bottom:1px solid #edf1f4;vertical-align:middle;box-sizing:border-box;line-height:18px;}
.early-picker-table tr.is-selected td {background:#edf8f4;}
.early-picker-table tr:hover td {background:#f4f9f7;}
.early-picker-table .picker-product-cell {overflow:hidden;white-space:nowrap;}
.picker-sku {display:inline-block;width:88px;vertical-align:middle;overflow:hidden;text-overflow:ellipsis;font-weight:600;font-variant-numeric:tabular-nums;}
.picker-product-name {display:inline-block;max-width:calc(100% - 94px);overflow:hidden;text-overflow:ellipsis;vertical-align:middle;color:var(--muted,#64748b);}
.early-picker-table .picker-quantity-cell,.early-picker-table .picker-moq-cell {text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;}
.early-picker-table th:nth-child(4),.early-picker-table th:nth-child(5) {text-align:right;}
.early-picker-table .product-image {width:32px;height:32px;border-radius:5px;}
.early-picker-table .product-image img {width:100%;height:100%;object-fit:cover;}
.early-picker-table .picker-image-cell {padding-top:5px;padding-bottom:5px;}
.early-picker-table .picker-status-cell {font-size:11px;line-height:14px;overflow-wrap:anywhere;}
.picker-status-success {color:#15705f;}.picker-status-failed {color:#9a670b;}.picker-unavailable {color:#b45309;}
.picker-mobile-moq {display:none;}
.early-picker-selected {border-left:1px solid var(--line);background:#f8fafb;}
.early-picker-selected-header {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px;min-height:44px;border-bottom:1px solid var(--line);flex-shrink:0;box-sizing:border-box;}
.early-picker-selected-header h3 {font-size:14px;line-height:20px;margin:0;}
.early-picker-selected-header .link-button {padding:0;white-space:nowrap;font-size:12px;}
.early-picker-selected-scroll {flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;}
.early-picker-selected-item {display:flex;align-items:flex-start;gap:10px;padding:10px 14px;border-bottom:1px solid var(--line);}
.early-picker-selected-item > div {flex:1;min-width:0;}
.early-picker-selected-item strong,.early-picker-selected-item span,.early-picker-selected-item small {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:18px;}
.early-picker-selected-item strong {font-size:13px;}.early-picker-selected-item span,.early-picker-selected-item small {font-size:12px;color:var(--muted,#64748b);}
.early-picker-selected-item .link-button {font-size:12px;padding:0;min-height:24px;}
.early-picker-selected-item.is-invalid {background:#fff7ed;}.early-picker-selected-item.is-invalid small {color:#b45309;white-space:normal;}
.early-picker-selected-empty {padding:24px 16px;font-size:13px;line-height:22px;color:var(--muted,#64748b);}
.early-picker-footer {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px;padding:12px 20px;box-sizing:border-box;flex-shrink:0;background:#fff;border-top:1px solid var(--line);}
.early-picker-footer > span {font-size:13px;font-weight:600;line-height:20px;}.early-picker-footer .has-invalid {color:#b45309;}
.early-picker-footer-actions {display:flex;align-items:center;gap:8px;flex-shrink:0;}
.early-picker-tabs {display:none;}
.early-picker-sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;}
.early-close-dialog[open] {display:flex;height:min(820px,90dvh);flex-direction:column;}
.early-close-dialog > form {height:100%;min-height:0;display:flex;flex-direction:column;}
.early-close-dialog .panel-title,.early-close-dialog .modal-actions,.early-close-dialog #earlyCloseSummary,.early-close-dialog #earlyCloseError,.early-close-dialog form > .muted {flex-shrink:0;}
.early-close-dialog .early-close-products {flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;}
.early-close-dialog .modal-actions {margin:0;padding-top:10px;background:#fff;}
.early-close-dialog #earlyCloseError:empty {display:none;}
.early-close-dialog .panel-title {flex-direction:row;align-items:center;gap:12px;}.early-close-dialog .panel-title > button {width:auto;flex-shrink:0;}
@media(max-width:850px){
  .early-picker-dialog {width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;}
  .early-picker-header {padding:12px 14px;}.early-picker-controls {padding:8px 14px;max-height:42dvh;overflow:auto;}
  .early-picker-search-row {gap:8px;flex-wrap:wrap;}.early-picker-search {flex-basis:100%;}.early-picker-sort {flex:1;}.early-picker-sort select {width:100%;}
  .early-picker-tabs {display:flex;gap:6px;flex-shrink:0;padding:6px 14px;border-bottom:1px solid var(--line);background:#f8fafb;}
  .early-picker-tabs button {flex:1;min-height:34px;border:1px solid var(--line);border-radius:6px;font-size:13px;background:#fff;color:var(--muted,#64748b);}
  .early-picker-tabs button[aria-selected="true"] {border-color:#15705f;background:#eaf6f1;color:#15705f;font-weight:600;}
  .early-picker-body {display:flex;flex-direction:column;}.early-picker-candidates,.early-picker-selected {flex:1;width:100%;}
  .early-picker-body[data-view="candidates"] .early-picker-selected,.early-picker-body[data-view="selected"] .early-picker-candidates {display:none;}
  .early-picker-selected {border-left:0;}.early-picker-list-tools {padding:5px 12px;font-size:11px;}.early-picker-list-tools label {font-size:12px;}
  .early-picker-table,.early-picker-table tbody {display:block;width:100%;}.early-picker-table colgroup {display:none;}
  .early-picker-table thead {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);}
  .early-picker-table tr {display:grid;grid-template-columns:24px 34px minmax(0,1fr) 76px;gap:1px 7px;padding:8px 10px;border-bottom:1px solid var(--line);align-items:center;}
  .early-picker-table td {display:block;width:auto;height:auto;min-height:0;padding:0;border:0;}
  .early-picker-table .picker-check-cell {grid-column:1;grid-row:1/3;}.early-picker-table .picker-image-cell {grid-column:2;grid-row:1/3;padding:0;}
  .early-picker-table .picker-product-cell {grid-column:3;grid-row:1;}.early-picker-table .picker-quantity-cell {grid-column:4;grid-row:1;font-size:12px;line-height:17px;}
  .early-picker-table .picker-moq-cell {display:none;}.early-picker-table .picker-status-cell {grid-column:3/5;grid-row:2;line-height:16px;}
  .picker-sku {display:block;width:auto;font-size:13px;line-height:17px;}.picker-product-name {display:block;max-width:100%;font-size:12px;line-height:17px;}
  .picker-mobile-moq {display:block;font-size:11px;line-height:17px;color:var(--muted,#64748b);font-weight:400;}
  .early-picker-table tr.is-selected,.early-picker-table tr.is-selected td {background:#edf8f4;}.early-picker-table tr:hover,.early-picker-table tr:hover td {background:#f4f9f7;}
  .early-picker-table .early-picker-empty-row {display:block;}.early-picker-empty-row td {width:100%;}.early-picker-selected-item {padding:10px 16px;}
  .early-picker-footer {padding:10px 12px calc(10px + env(safe-area-inset-bottom));gap:8px;align-items:stretch;flex-direction:column;}
  .early-picker-footer > span {font-size:12px;}.early-picker-footer-actions .button {flex:1;min-height:40px;padding:7px 9px;white-space:nowrap;}.early-picker-footer-actions {width:100%;}
  .early-close-dialog .modal-actions {display:grid;grid-template-columns:1fr 1fr;gap:8px;}.early-close-dialog #earlyCloseConfirm {grid-column:1/-1;}.early-close-dialog .modal-actions button {width:100%;}
}

.early-picker-match-report {display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
.early-picker-match-report > details {flex:1;min-width:0;}.early-picker-match-report > button {font-size:12px;flex-shrink:0;padding:0;min-height:20px;white-space:nowrap;}
