﻿* {
  box-sizing: border-box;
}

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #fafcff;
  --surface-muted: #f2f5fb;
  --line: #e2e8f0;
  --line-strong: #d7dfeb;
  --text: #1f2937;
  --muted: #667085;
  --navy: #1f3fb7;
  --navy-soft: #2847c7;
  --brand: #2b63f6;
  --brand-strong: #165dff;
  --brand-soft: #e8f0ff;
  --brand-wash: #f5f8ff;
  --danger: #dc2626;
  --shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  --shadow-soft: 0 10px 22px rgba(15, 23, 42, 0.04);
  --radius-xxl: 24px;
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
}

html,
body {
  margin: 0;
  height: 100%;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: linear-gradient(180deg, #eef4fb 0%, #f7f9fc 100%);
  color: var(--text);
  overflow: hidden;
}

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

button {
  cursor: pointer;
  border: 0;
}

img {
  max-width: 100%;
  display: block;
}

.is-hidden {
  display: none !important;
}

.eyebrow,
.panel-eyebrow {
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffaf6 0%, #f7f2eb 100%);
  border: 1px solid rgba(216, 195, 181, 0.82);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #876956;
}

.muted-text {
  color: var(--muted);
  line-height: 1.6;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.login-card {
  width: min(460px, 100%);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(221, 229, 242, 0.9);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.login-card h1,
.brand-block h2,
.shell-header h1,
.view-headline h3,
.panel-header h3,
.panel-subheader h4 {
  margin: 0;
}

.notice-box {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #eef4ff;
  color: #44648f;
}

.muted-box {
  background: #f8fafc;
  border: 1px dashed var(--line);
}

.inline-note {
  margin-top: 6px;
  margin-bottom: 2px;
}

.field-label {
  display: block;
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #52627c;
}

.text-input,
.textarea-input,
select.text-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.text-input:focus,
.textarea-input:focus,
select.text-input:focus {
  border-color: #9bb7ef;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.textarea-input {
  min-height: 120px;
  resize: vertical;
}

.compact-textarea {
  min-height: 96px;
}

.primary-btn,
.ghost-btn,
.quick-link,
.nav-item,
.file-trigger,
.upload-dropzone,
.icon-btn {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #fff;
  min-height: 46px;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 30px rgba(255, 102, 72, 0.24);
}

.hero-primary-btn {
  min-width: 136px;
  border-radius: var(--radius-md);
}

.primary-btn:hover,
.ghost-btn:hover,
.quick-link:hover,
.nav-item:hover,
.file-trigger:hover,
.icon-btn:hover {
  transform: translateY(-1px);
}

.ghost-btn,
.quick-link,
.nav-item,
.icon-btn {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  color: var(--navy-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  min-height: 44px;
  padding: 12px 16px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(17, 28, 53, 0.04);
}

.subtle-action-btn {
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  border-color: #d8e2f2;
  color: #30415f;
}

.danger-action-btn {
  background: #fff5f5;
  border-color: #fecaca;
  color: #b91c1c;
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.08);
}

.danger-action-btn:disabled {
  background: #f8fafc;
  border-color: #e5e7eb;
  color: #9ca3af;
  box-shadow: none;
}

.icon-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 20px;
}

.small-btn {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 12px;
}

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

.catalog-config-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.catalog-config-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.catalog-config-card.is-dragging {
  opacity: 0.72;
  transform: rotate(-1deg);
  box-shadow: 0 20px 44px rgba(33, 48, 81, 0.14);
}

.catalog-config-card.is-drop-target {
  border-color: #ffb29b;
  box-shadow: 0 0 0 3px rgba(255, 122, 89, 0.12);
}

.catalog-config-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.catalog-config-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.catalog-config-visual-row {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 16px;
}

.catalog-config-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  min-height: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.06);
  background: linear-gradient(180deg, #f7f2eb 0%, #efe6d8 100%);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.03), 0 18px 36px rgba(17, 24, 39, 0.06);
}

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

.catalog-config-cover-empty {
  min-height: 100%;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 18px;
  text-align: center;
  color: #6f7f98;
}

.catalog-config-cover-empty strong {
  color: #34455f;
}

.catalog-config-cover-empty em {
  font-style: normal;
  font-size: 12px;
  color: #8a98ac;
}

.catalog-config-cover-meta {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.92);
}

.catalog-config-cover-meta span {
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(17, 28, 53, 0.58);
  backdrop-filter: blur(8px);
}

.catalog-config-visual-copy {
  display: grid;
  gap: 10px;
  align-content: center;
}

.catalog-config-visual-copy strong,
.publish-stage-card h4 {
  margin: 0;
}

.catalog-config-visual-copy p {
  margin: 0;
  color: #6b7a91;
  line-height: 1.7;
}

.catalog-config-ratio-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #7c8ba2;
  font-size: 12px;
}

.catalog-config-ratio-hint span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(238, 244, 255, 0.95);
  border: 1px solid #dde8f7;
}

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

.home-visibility-grid,
.order-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.toggle-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid #e0e8f5;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 244, 240, 0.96) 100%);
}

.toggle-card input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--brand-strong);
}

.toggle-card span {
  display: grid;
  gap: 6px;
}

.toggle-card strong,
.order-insight-card strong {
  margin: 0;
}

.toggle-card small {
  color: #6f7f98;
  line-height: 1.6;
}

.order-insight-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: auto;
}

.wrap-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 1200px) {
  .catalog-config-layout,
  .catalog-config-grid,
  .home-visibility-grid,
  .order-insight-grid {
    grid-template-columns: 1fr;
  }

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

.wide-btn {
  width: 100%;
  margin-top: 18px;
}

.danger-lite {
  color: var(--danger);
}

.admin-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: 220px 240px minmax(0, 1fr);
  background: #f5f7fb;
  overflow: hidden;
}

.sidebar {
  background: #fff;
  color: var(--text);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-right: 1px solid var(--line);
  box-shadow: none;
  min-height: 0;
  overflow-y: auto;
}

.brand-block {
  padding: 12px 8px 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.brand-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1d4ed8 0%, #60a5fa 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-block .muted-text,
.network-card .muted-text {
  color: #7b8798;
}

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

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: #fff;
  border-color: transparent;
  color: #344054;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

.nav-item.is-active {
  background: #eef4ff;
  border-color: #c9d9ff;
  color: #1d4ed8;
}

.nav-item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4f7cff 0%, #2b63f6 100%);
}

.nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  border: 1px solid #d9e4f6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #2f4670;
  flex: 0 0 36px;
}

.nav-item:hover .nav-icon {
  border-color: #c9d9ff;
  background: linear-gradient(180deg, #f5f9ff 0%, #e7efff 100%);
}

.nav-item.is-active .nav-icon {
  background: linear-gradient(180deg, #e8f1ff 0%, #d9e7ff 100%);
  border-color: #b8ccff;
  color: #1d4ed8;
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.12);
}

.nav-text {
  flex: 1;
  font-weight: 700;
}

.network-card {
  margin-top: auto;
  padding: 18px;
  border-radius: 14px;
  background: #f7f9fc;
  border: 1px solid var(--line);
}

.network-url {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
  word-break: break-all;
}

.access-guide-card {
  display: grid;
  gap: 16px;
}

.access-row {
  display: grid;
  gap: 8px;
}

.access-url {
  font-size: 18px;
  line-height: 1.5;
  word-break: break-all;
  color: var(--navy-soft);
}

.module-sidebar {
  background: #f8fafc;
  border-right: 1px solid var(--line);
  padding: 28px 20px;
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 0;
  overflow-y: auto;
}

.module-sidebar-head {
  display: grid;
  gap: 8px;
}

.secondary-nav-list {
  display: grid;
  gap: 8px;
}

.secondary-nav-item {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  color: #475467;
}

.secondary-nav-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-height: 36px;
  border-radius: 12px;
  background: #f3f6fb;
  border: 1px solid #e2e8f0;
  color: #7b8798;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.secondary-nav-copy {
  display: grid;
  gap: 4px;
}

.secondary-nav-copy span {
  font-weight: 700;
}

.secondary-nav-copy em {
  font-style: normal;
  font-size: 12px;
  color: #98a2b3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.secondary-nav-item:hover {
  background: #eef4ff;
  border-color: #d6e4ff;
}

.secondary-nav-item.is-active {
  background: #eaf2ff;
  border-color: #c7d8ff;
  color: #1d4ed8;
}

.secondary-nav-item.is-active .secondary-nav-index {
  background: linear-gradient(180deg, #4f7cff 0%, #2b63f6 100%);
  border-color: #2b63f6;
  color: #fff;
}

.shell-main {
  height: 100vh;
  padding: 28px 30px 34px;
  overflow-y: auto;
  min-height: 0;
}

.shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding: 18px 20px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(79, 124, 255, 0.08), transparent 24%),
    #fff;
  border: 1px solid #dfe5ef;
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 12;
}

.header-actions,
.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy-soft);
  font-weight: 700;
}

.chip-muted {
  color: #667085;
}

.chip-accent {
  background: var(--brand-soft);
  border: 0;
  color: var(--brand-strong);
}

.save-status-chip {
  min-height: 44px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border-color: #dbe5f4;
  color: #30415f;
}

.save-status-chip.is-dirty {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.save-status-chip.is-saved {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #0f766e;
}

.save-status-chip.is-pending {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.view-stack {
  display: grid;
  min-height: 0;
}

.view-panel {
  display: none;
  gap: 20px;
}

.view-panel.is-active {
  display: grid;
}

#view-products {
  gap: 12px;
}

#view-product-detail {
  gap: 24px;
}

#view-product-detail .view-headline {
  align-items: flex-start;
}

.view-headline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  border: 1px solid #dfe5ef;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.view-headline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4f7cff 0%, #2b63f6 100%);
}

.view-headline > div:first-child {
  display: grid;
  gap: 8px;
}

.view-toolbar-stack {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.workspace-intro-card {
  display: grid;
  gap: 6px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid #dbe5ff;
  background: #f7faff;
}

.workspace-intro-card strong {
  color: #1d4ed8;
  font-size: 15px;
}

#view-products .view-headline {
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
}

#view-products .view-headline > div:first-child {
  gap: 4px;
}

#view-products .view-headline h3 {
  font-size: 17px;
}

#view-products .view-headline p.muted-text {
  font-size: 12px;
  line-height: 1.5;
}

#view-products .product-command-deck {
  gap: 10px;
}

#view-products .workspace-intro-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
}

#view-products .workspace-intro-card strong {
  font-size: 14px;
}

#view-products .workspace-intro-card .muted-text {
  font-size: 12px;
  line-height: 1.45;
}

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

.security-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #dfe5f1;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.security-card strong {
  font-size: 18px;
  color: var(--navy-soft);
}

.security-card.tone-warn {
  border-color: #ecd8b3;
  background: linear-gradient(180deg, #fffaf1 0%, #fffdf8 100%);
}

.view-workspace-panel {
  display: none;
  gap: 20px;
}

.view-workspace-panel.is-active {
  display: grid;
}

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

.view-meta-strip-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.view-meta-card {
  display: grid;
  gap: 8px;
  min-height: 104px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid #dfe6f3;
  background:
    radial-gradient(circle at top right, rgba(79, 124, 255, 0.08), transparent 22%),
    #fff;
  box-shadow: none;
}

.view-meta-kicker {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.view-meta-strip-compact .view-meta-card {
  min-height: auto;
  padding: 12px 14px;
  border-radius: 12px;
  gap: 5px;
  background: #fff;
}

.view-meta-strip-compact .view-meta-kicker {
  font-size: 11px;
  letter-spacing: 0.04em;
}

.view-meta-strip-compact .view-meta-card strong {
  font-size: 16px;
  line-height: 1.25;
}

.view-meta-strip-compact .subtle-copy {
  font-size: 12px;
  line-height: 1.55;
}

#orderViewMetaBar.view-meta-strip-compact .view-meta-card,
#inventoryViewMetaBar.view-meta-strip-compact .view-meta-card {
  min-height: auto;
  padding: 10px 12px;
  gap: 4px;
}

#orderViewMetaBar.view-meta-strip-compact .view-meta-card strong,
#inventoryViewMetaBar.view-meta-strip-compact .view-meta-card strong {
  font-size: 15px;
}

.view-meta-card strong {
  font-size: 20px;
  color: #1f2530;
  line-height: 1.3;
}

.panel-grid {
  display: grid;
  gap: 20px;
}

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

.home-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
}

.panel-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: none;
}

.panel-header,
.panel-subheader {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(221, 229, 242, 0.72);
}

.panel-header > div:first-child,
.panel-subheader > div:first-child {
  display: grid;
  gap: 6px;
}

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

.order-stats-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.inventory-stats-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.order-status-tabs,
.order-scenario-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.order-status-tab,
.order-scenario-chip {
  min-height: 58px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid #dbe3f1;
  background: #fff;
  display: grid;
  gap: 4px;
  justify-items: start;
  text-align: left;
  color: #475467;
}

.order-status-tab strong,
.order-scenario-chip strong {
  font-size: 15px;
  color: var(--navy-soft);
}

.order-status-tab span,
.order-scenario-chip span {
  font-size: 18px;
  font-weight: 800;
}

.order-status-tab em,
.order-scenario-chip em {
  font-style: normal;
  font-size: 12px;
  color: #7a889a;
}

.order-status-tab.is-active,
.order-scenario-chip.is-active {
  border-color: #bed0ff;
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.08);
}

.order-view-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.order-view-switch .step-chip {
  margin-bottom: 0;
}

.order-filter-grid {
  align-items: end;
}

.order-list-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.order-list-stats-bar span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f7faff;
  border: 1px solid #dbe5ff;
  color: #5e6e84;
  font-size: 12px;
  font-weight: 700;
}

.inventory-list-row {
  gap: 16px;
}

.inventory-detail-shell {
  display: grid;
  gap: 18px;
}

.inventory-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.inventory-detail-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.inventory-detail-main,
.inventory-detail-side {
  display: grid;
  gap: 18px;
}

.inventory-detail-table {
  gap: 12px;
}

.inventory-detail-sku-row {
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(120px, 1fr)) minmax(120px, 0.9fr) auto;
}

.stat-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid rgba(219, 229, 244, 0.96);
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(17, 28, 53, 0.05);
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -14px;
  top: -20px;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: rgba(184, 121, 99, 0.08);
}

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

.stat-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--navy-soft);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(219, 229, 244, 0.92);
}

.stat-label {
  font-size: 13px;
  color: #7a8ba2;
  font-weight: 700;
}

.stat-value {
  margin-top: 6px;
  font-size: 30px;
  font-weight: 800;
  color: var(--navy-soft);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-card.tone-urgent {
  background: linear-gradient(180deg, #fff7f3 0%, #fffaf7 100%);
  border-color: #f2d1c3;
  box-shadow: 0 16px 32px rgba(205, 92, 47, 0.08);
}

.stat-card.tone-urgent::after {
  background: rgba(205, 92, 47, 0.08);
}

.stat-card.tone-warn {
  background: linear-gradient(180deg, #fffbf2 0%, #fffdf8 100%);
  border-color: #ecd9b6;
  box-shadow: 0 16px 32px rgba(201, 138, 35, 0.08);
}

.stat-card.tone-warn::after {
  background: rgba(201, 138, 35, 0.08);
}

.stat-card.tone-soft {
  background: linear-gradient(180deg, #f7fbff 0%, #fbfdff 100%);
}

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

.quick-link {
  min-height: 96px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 12px 26px rgba(17, 28, 53, 0.05);
}

.quick-link-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff1ec 0%, #ffe2d9 100%);
  color: var(--brand-strong);
  font-weight: 800;
  flex: 0 0 42px;
}

.quick-link-copy {
  display: grid;
  gap: 6px;
}

.quick-link-copy strong {
  color: var(--navy-soft);
}

.quick-link-copy span {
  color: #6b7b94;
  line-height: 1.5;
  font-size: 13px;
}

.priority-grid {
  display: grid;
  gap: 14px;
}

.priority-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.priority-card.is-clear {
  grid-template-columns: minmax(0, 1fr);
  background: linear-gradient(180deg, #f7fff8 0%, #f0fbf4 100%);
  border-color: #cce8d5;
}

.priority-card.tone-urgent {
  background: linear-gradient(180deg, #fff6f3 0%, #fffaf7 100%);
  border-color: #f4d0c0;
}

.priority-card.tone-warn {
  background: linear-gradient(180deg, #fffaf1 0%, #fffdf8 100%);
  border-color: #ecd8b3;
}

.priority-card.tone-soft {
  background: linear-gradient(180deg, #f7faff 0%, #fbfdff 100%);
  border-color: #dbe5f4;
}

.priority-rank {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff1ec 0%, #ffe2d9 100%);
  color: var(--brand-strong);
  font-size: 18px;
  font-weight: 800;
}

.priority-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

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

.priority-severity {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #8a5b2b;
}

.priority-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.priority-top {
  display: grid;
  gap: 8px;
}

.priority-top strong {
  color: var(--navy-soft);
  font-size: 18px;
}

.priority-count {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(219, 229, 244, 0.92);
  color: var(--navy-soft);
  font-weight: 800;
}

.priority-card.tone-urgent .priority-count {
  border-color: #f2d1c3;
  color: #b45309;
}

.priority-card.tone-warn .priority-count {
  border-color: #ecd9b6;
  color: #a16207;
}

.priority-action-btn {
  white-space: nowrap;
}

.timeline-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 12px;
}

.timeline-list li {
  display: grid;
  gap: 6px;
  color: #516178;
}

.simple-list,
.log-table,
.table-wrap,
.invite-list,
.banner-list,
.featured-list,
.product-list,
.inventory-list,
.sku-editor-list {
  display: grid;
  gap: 12px;
}

.order-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 22px;
}

.focus-hint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid #ead7c8;
  background:
    radial-gradient(circle at top right, rgba(184, 121, 99, 0.12), transparent 22%),
    linear-gradient(180deg, #fffaf5 0%, #fffdf9 100%);
  box-shadow: 0 12px 28px rgba(58, 38, 23, 0.06);
}

.focus-hint-copy {
  display: grid;
  gap: 6px;
}

.focus-hint-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.focus-hint-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(216, 195, 181, 0.72);
  color: #75594b;
  font-size: 12px;
  font-weight: 700;
}

.focus-hint-copy strong {
  color: #5f3f2f;
  font-size: 15px;
}

.focus-hint-copy .subtle-copy {
  color: #8a6f60;
}

.focus-hint-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.focus-hint-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(95, 63, 47, 0.08);
  color: #6a4a3a;
  font-size: 12px;
  font-weight: 700;
}

.is-home-target {
  animation: homeTargetPulse 1.2s ease;
}

@keyframes homeTargetPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 124, 255, 0);
  }
  25% {
    box-shadow: 0 0 0 4px rgba(79, 124, 255, 0.16);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(79, 124, 255, 0);
  }
}

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

.home-action-card {
  min-height: 176px;
}

.home-action-card.is-clear {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, #f7fff8 0%, #f0fbf4 100%);
  border-color: #cce8d5;
}

.home-action-card.tone-warn {
  background: linear-gradient(180deg, #fffaf1 0%, #fffdf8 100%);
  border-color: #ecd8b3;
}

.home-action-card.tone-soft {
  background: linear-gradient(180deg, #f7faff 0%, #fbfdff 100%);
  border-color: #dbe5f4;
}

.home-action-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: auto;
}

.order-card.is-target,
.inventory-card.is-target,
.invite-card.is-target {
  position: relative;
  border-color: #d8b59d;
  box-shadow: 0 0 0 4px rgba(184, 121, 99, 0.10), 0 18px 34px rgba(58, 38, 23, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #fffaf4 100%);
}

.order-card.is-target::before,
.inventory-card.is-target::before,
.invite-card.is-target::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #b87963 0%, #1f2432 100%);
}

.order-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.order-card-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.order-card-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy-soft);
}

.order-card-meta {
  margin-top: 6px;
  color: #64748b;
  font-size: 14px;
}

.order-card-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.order-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.order-table-wrap {
  margin-top: 2px;
}

.order-card.is-collapsed .order-table-wrap {
  display: none;
}

.order-card.is-expanded .order-table-wrap {
  display: block;
}

.order-detail-shell {
  display: grid;
  gap: 18px;
}

.order-detail-top-actions {
  align-items: center;
}

.order-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.order-detail-main,
.order-detail-side {
  display: grid;
  gap: 18px;
}

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

.order-info-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #e4eaf3;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.order-info-item span {
  font-size: 12px;
  font-weight: 700;
  color: #7a889a;
}

.order-info-item strong {
  color: var(--navy-soft);
  line-height: 1.5;
}

.order-side-panel,
.detail-side-panel {
  display: grid;
  gap: 12px;
}

.detail-side-panel {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid #e7edf5;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  box-shadow: 0 10px 24px rgba(17, 28, 53, 0.04);
}

.detail-side-panel .panel-subheader {
  align-items: flex-start;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f7;
}

.detail-side-panel .panel-subheader h4 {
  font-size: 15px;
}

.detail-side-panel .panel-subheader .muted-text {
  font-size: 12px;
  line-height: 1.7;
}

.order-side-actions {
  display: grid;
  gap: 10px;
}

.order-side-readout {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e6ebf3;
  background: #f7f9fc;
  color: #556477;
  font-size: 13px;
  font-weight: 700;
}

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

.order-alert-card {
  display: grid;
  gap: 4px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid #e7edf5;
  background: #f8fafc;
}

.order-alert-card strong {
  color: var(--navy-soft);
  font-size: 13px;
}

.order-alert-card p {
  margin: 0;
  color: #617186;
  font-size: 12px;
  line-height: 1.7;
}

.order-alert-card.tone-urgent {
  border-left: 3px solid #d79273;
  background: #fff9f6;
}

.order-alert-card.tone-warn {
  border-left: 3px solid #d7bb73;
  background: #fffdf7;
}

.order-side-checklist {
  display: grid;
  gap: 8px;
  color: #617186;
  font-size: 12px;
  line-height: 1.7;
}

.order-detail-table-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.order-detail-table-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 10px;
  background: #f4f7fb;
  color: #66768b;
  font-size: 11px;
  font-weight: 700;
}

.inventory-detail-log-meta {
  margin-bottom: 10px;
}

.order-detail-table td strong,
.inventory-log-table td strong {
  color: var(--navy);
  font-size: 13px;
}

.order-detail-item-row td:last-child,
.inventory-log-row td:last-child {
  min-width: 120px;
}

.order-aggregate-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-aggregate-meta .product-card-mini {
  min-height: 30px;
}

.list-item,
.log-row,
.banner-card,
.featured-item,
.product-card,
.inventory-card,
.sku-row,
.invite-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
}

.list-item,
.log-row,
.featured-item,
.invite-card {
  padding: 16px;
}

.advisory-item {
  background: linear-gradient(180deg, #fff8ef 0%, #fffbf5 100%);
  border-color: #f5d7b8;
}

.home-preview {
  display: grid;
  gap: 14px;
}

.preview-device {
  width: min(100%, 380px);
  margin: 0 auto;
  padding: 14px 12px 16px;
  border-radius: 36px;
  background: linear-gradient(180deg, #101a31 0%, #172440 100%);
  box-shadow: 0 30px 60px rgba(17, 28, 53, 0.24);
}

.preview-device-notch {
  width: 132px;
  height: 24px;
  margin: 0 auto 12px;
  border-radius: 0 0 18px 18px;
  background: #060b16;
}

.preview-device-screen {
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, #eef5ff 0%, #f8fbff 100%);
  min-height: 680px;
}

.preview-topbar,
.preview-banner-card,
.preview-product-card {
  display: flex;
  gap: 12px;
  align-items: center;
}

.preview-topbar {
  justify-content: space-between;
  padding: 18px;
  border-radius: 0;
  background: linear-gradient(180deg, #111c35 0%, #162542 100%);
  color: #fff;
}

.preview-tag,
.metric-pill,
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.preview-tag {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy-soft);
}

.metric-pill {
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-strong);
}

.badge {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.preview-search {
  margin: 0 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  color: #748198;
}

.preview-banner-large {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  margin: 0 16px;
  border-radius: 26px;
  background: linear-gradient(180deg, #dde9fb 0%, #bed5f6 100%);
  display: grid;
  align-items: end;
}

.preview-banner-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-banner-copy {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.42));
  color: #fff;
}

.preview-banner-copy h4 {
  margin: 12px 0 8px;
  font-size: 30px;
}

.preview-banner-dots {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

.preview-banner-dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
}

.preview-banner-dots span.active {
  width: 28px;
  background: #fff;
}

.preview-banner-list {
  display: grid;
  gap: 12px;
  margin: 0 16px 16px;
}

.preview-banner-card,
.preview-product-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.preview-banner-card img,
.preview-product-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 16px;
  background: var(--surface-muted);
}

.dashboard-preview-nav {
  padding: 18px 16px 14px;
  background: linear-gradient(180deg, #111c35 0%, #162542 100%);
  color: #fff;
  text-align: center;
}

.dashboard-preview-nav-title {
  font-size: 18px;
  font-weight: 700;
}

.dashboard-preview-content {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.dashboard-preview-brand-row,
.dashboard-preview-search-card,
.dashboard-preview-section-head,
.dashboard-preview-hero-top,
.dashboard-preview-hero-footer,
.dashboard-preview-region-top,
.dashboard-preview-featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-preview-brand {
  font-size: 26px;
  font-weight: 800;
  color: #111827;
}

.dashboard-preview-search-card,
.dashboard-preview-section,
.dashboard-preview-ranking-entry,
.dashboard-preview-hero-card,
.dashboard-preview-region-card,
.dashboard-preview-featured-card {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.dashboard-preview-search-card,
.dashboard-preview-section,
.dashboard-preview-hero-card,
.dashboard-preview-region-card,
.dashboard-preview-featured-card {
  border-radius: 20px;
}

.dashboard-preview-search-card {
  padding: 14px;
}

.dashboard-preview-search {
  flex: 1;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #94a3b8;
  background: #fff;
}

.dashboard-preview-search-btn {
  flex-shrink: 0;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff7a5c 0%, #ff6247 100%);
  color: #fff;
  font-weight: 700;
}

.dashboard-preview-banner {
  margin: 0;
  min-height: 260px;
}

.dashboard-preview-ranking-grid,
.dashboard-preview-featured-grid {
  display: grid;
  gap: 12px;
}

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

.dashboard-preview-ranking-entry {
  padding: 14px;
  border-radius: 20px;
}

.dashboard-preview-ranking-thumb {
  height: 88px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #eef4ff;
}

.dashboard-preview-ranking-thumb img,
.dashboard-preview-hero-image img,
.dashboard-preview-region-image img,
.dashboard-preview-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-preview-ranking-peach {
  background: linear-gradient(180deg, #fff1eb 0%, #ffe1d7 100%);
}

.dashboard-preview-ranking-blue {
  background: linear-gradient(180deg, #edf6ff 0%, #dbeafe 100%);
}

.dashboard-preview-ranking-purple {
  background: linear-gradient(180deg, #f5efff 0%, #ebe1ff 100%);
}

.dashboard-preview-ranking-title,
.dashboard-preview-featured-title,
.dashboard-preview-hero-title {
  color: #0f172a;
  font-weight: 800;
}

.dashboard-preview-ranking-title {
  font-size: 16px;
}

.dashboard-preview-ranking-subtitle,
.dashboard-preview-hero-meta,
.dashboard-preview-featured-meta {
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.dashboard-preview-ranking-metric {
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.dashboard-preview-ranking-metric-peach {
  background: #ffefe7;
  color: #f97316;
}

.dashboard-preview-ranking-metric-blue {
  background: #e8f0ff;
  color: #2563eb;
}

.dashboard-preview-ranking-metric-purple {
  background: #efe8ff;
  color: #7c3aed;
}

.dashboard-preview-section {
  padding: 14px;
}

.dashboard-preview-section-head {
  margin-bottom: 12px;
}

.dashboard-preview-section-head strong {
  color: #0f172a;
  font-size: 16px;
}

.dashboard-preview-more,
.dashboard-preview-action {
  color: #2563eb;
  font-weight: 700;
}

.dashboard-preview-hero-card,
.dashboard-preview-region-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.dashboard-preview-hero-image,
.dashboard-preview-region-image {
  height: 112px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-muted);
}

.dashboard-preview-hero-body,
.dashboard-preview-region-body {
  display: grid;
  gap: 8px;
}

.dashboard-preview-rank-badge,
.dashboard-preview-region-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-preview-rank-badge {
  background: #ffefe7;
  color: #f97316;
}

.dashboard-preview-region-tag {
  background: #eef2ff;
  color: #4f46e5;
}

.dashboard-preview-price {
  color: #f59e0b;
  font-size: 16px;
  font-weight: 800;
}

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

.dashboard-preview-sku-row {
  display: grid;
  gap: 10px;
}

.dashboard-preview-sku-pill {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f7ff 100%);
  border: 1px solid #dce6f5;
}

.dashboard-preview-sku-pill strong {
  color: #1d4ed8;
}

.dashboard-preview-featured-card {
  padding: 12px;
}

.dashboard-preview-featured-image {
  height: 128px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-muted);
  margin-bottom: 10px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

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

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

.span-two {
  grid-column: span 2;
}

.editor-split,
.product-layout {
  display: grid;
  gap: 20px;
}

.product-layout {
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
}

.editor-hero {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  margin-bottom: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #f8fbff 0%, #eff5ff 100%);
}

.editor-hero-cover {
  width: 112px;
  height: 112px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-muted);
  display: grid;
  place-items: center;
  color: #8da0bc;
  font-weight: 700;
}

.editor-hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editor-hero-meta {
  display: grid;
  gap: 8px;
}

.editor-hero-meta h4 {
  margin: 0;
  font-size: 24px;
}

.editor-hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.editor-health {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 118px;
}

.health-ring {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--brand) calc(var(--score, 0) * 1%), #edf2fa 0);
  padding: 7px;
}

.health-ring::after {
  content: attr(data-score) "%";
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--navy-soft);
}

.stepper-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.editor-sticky-shell {
  position: sticky;
  top: 14px;
  z-index: 10;
  margin: 18px 0 20px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(201, 214, 235, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 38px rgba(17, 28, 53, 0.08);
}

.editor-sticky-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.editor-sticky-copy {
  display: grid;
  gap: 4px;
}

.editor-sticky-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.editor-sticky-copy strong {
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
}

.sticky-summary-chip {
  min-height: 30px;
  font-size: 12px;
  font-weight: 800;
}

.sticky-summary-chip.pending {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.sticky-summary-chip.live {
  color: #0f766e;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.sticky-summary-chip.draft {
  color: #9a3412;
  background: #fff7ed;
  border-color: #fed7aa;
}

.sticky-summary-chip.score {
  color: #315ea8;
  background: #eef4ff;
  border-color: #d7e4ff;
}

.editor-sticky-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.editor-stepper-row {
  margin-bottom: 0;
}

.step-chip {
  border: 1px solid rgba(216, 226, 242, 0.92);
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  color: #5b6c84;
  border-radius: 999px;
  min-height: 42px;
  padding: 10px 16px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.step-chip.is-active {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  border-color: transparent;
}

.step-panel {
  display: none;
  padding-top: 6px;
}

.step-panel.is-active {
  display: block;
}

.workspace-switch {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px;
  border-radius: 12px;
  background: #f4f6fb;
  border: 1px solid var(--line);
}

.workspace-chip {
  border: 1px solid transparent;
  background: transparent;
  color: #475467;
  font-weight: 700;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 10px;
}

.workspace-chip.is-active {
  background: #fff;
  color: #1d4ed8;
  border-color: #c9d9ff;
  box-shadow: none;
}

.product-workspace {
  display: none;
  gap: 20px;
}

.product-workspace.is-active {
  display: grid;
}

.import-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.import-guide-card {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.import-guide-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy-soft);
}

.field-map-card {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed var(--line);
  background: linear-gradient(180deg, #fdfefe 0%, #f7fbff 100%);
}

.field-map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  color: #53657f;
  font-weight: 600;
}

.import-result-stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.invite-top-grid {
  align-items: start;
}

.invite-stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

.invite-summary-card .stat-value {
  font-size: 30px;
}

.invite-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
}

.invite-card-strong {
  padding: 18px;
  box-shadow: 0 12px 28px rgba(17, 28, 53, 0.06);
}

.invite-code-stack {
  display: grid;
  gap: 8px;
}

.invite-code-input {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.invite-card-grid-strong {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.invite-card-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.invite-import-meta {
  display: grid;
  gap: 12px;
}

.chip-warn {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.editor-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e7eef8;
}

.editor-footer-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.publish-summary {
  display: grid;
  gap: 14px;
}

.publish-stage-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 248, 240, 0.96) 0%, rgba(248, 251, 255, 0.98) 100%);
  border: 1px solid #ead8c9;
}

.publish-stage-card p {
  margin: 8px 0 0;
}

.publish-stage-score {
  min-width: 136px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #dfe7f4;
  text-align: center;
}

.publish-stage-score strong {
  display: block;
  font-size: 28px;
  color: var(--navy-soft);
}

.publish-stage-score span {
  display: block;
  margin-top: 6px;
  color: #6f7f98;
  font-size: 12px;
}

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

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

.publish-summary-card {
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.publish-impact-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 244, 240, 0.96) 100%);
  border: 1px solid rgba(223, 228, 238, 0.96);
}

.publish-impact-card.warn {
  background: linear-gradient(180deg, #fff8ef 0%, #fffbf5 100%);
  border-color: #f5d7b8;
}

.publish-impact-card strong {
  display: block;
  font-size: 16px;
  color: #1f2530;
}

.publish-impact-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: auto;
}

.publish-summary-card strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
  color: var(--navy-soft);
}

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

.publish-risk-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}

.batch-sku-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fcfdff 0%, #f4f8ff 100%);
  margin-bottom: 16px;
}

.publish-checklist {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.publish-checklist li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.publish-check-detail {
  margin-top: 6px;
  color: #72829a;
  font-size: 12px;
  line-height: 1.6;
}

.status-ok {
  color: #0f766e;
  font-weight: 700;
}

.status-info {
  color: #2754a6;
  font-weight: 700;
}

.status-pending {
  color: #b45309;
  font-weight: 700;
}

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

.publish-advice-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.filter-stack {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.product-list {
  max-height: 880px;
  overflow: auto;
  padding-right: 4px;
}

.product-card {
  padding: 14px;
  display: grid;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: #c8d8f4;
  box-shadow: 0 14px 30px rgba(17, 28, 53, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.product-card.is-selected {
  border-color: #94b4ef;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08), 0 18px 34px rgba(37, 99, 235, 0.10);
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  position: relative;
}

.product-card.is-selected::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff7a59 0%, #325caa 100%);
}

.product-card-top,
.product-card-meta,
.banner-card-top,
.inventory-card-head,
.invite-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.product-card-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 4px;
}

.product-card-top {
  align-items: flex-start;
}

.product-card-top strong,
.inventory-card-head strong,
.invite-card-head strong {
  font-size: 16px;
}

.product-card-top strong {
  line-height: 1.3;
  font-size: 17px;
  font-weight: 800;
}

.product-card-thumb {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-muted);
  display: grid;
  place-items: center;
  color: #8da0bc;
  font-size: 12px;
  flex: 0 0 68px;
}

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

.product-card-meta,
.banner-card-top,
.inventory-card-head,
.invite-card-head {
  align-items: center;
}

.product-card-meta {
  margin-top: 2px;
}

.product-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.product-publish-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 72px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.product-publish-badge.draft {
  color: #9a3412;
  background: #fff7ed;
  border-color: #fed7aa;
}

.product-publish-badge.pending {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.product-publish-badge.live {
  color: #0f766e;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.product-publish-badge.draft,
.product-publish-badge.pending,
.product-publish-badge.live {
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.product-card-code,
.subtle-copy {
  color: #6b7b94;
  font-size: 13px;
}

.product-card-code {
  color: #45556f;
  font-size: 12px;
  font-weight: 700;
}

.product-card-highlights {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.product-card-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef4ff;
  border: 1px solid #d7e4ff;
  color: #315ea8;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.product-card-tag.muted {
  background: #f7f9fc;
  border-color: #e1e8f2;
  color: #6f8099;
}

.product-card-tags {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.product-card-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  color: #60718a;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.product-card-price {
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.editor-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.file-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(255, 102, 72, 0.22);
  border: 1px solid transparent;
}

.file-trigger::before {
  content: "+";
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}

.file-trigger.small-btn {
  padding: 10px 14px;
  border-radius: 12px;
}

.file-trigger.ghost-btn {
  background: #fff7f2;
  color: var(--brand-strong);
  border-color: #ffd6ca;
  box-shadow: none;
}

.accent-action-btn {
  background: #fff7f2;
  color: var(--brand-strong);
  border-color: #ffd6ca;
  box-shadow: 0 10px 24px rgba(255, 122, 89, 0.12);
}

.accent-action-btn:hover {
  background: #ffefe8;
  border-color: #ffb9a4;
}

.file-trigger input,
.upload-dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

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

.gallery-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-soft);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery-item button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(17, 28, 53, 0.68);
  color: #fff;
}

.gallery-item-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 122, 89, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.gallery-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px;
}

.link-btn {
  background: transparent;
  border: 0;
  color: var(--brand-strong);
  font-weight: 700;
  padding: 0;
}

.sku-row {
  padding: 14px;
  display: grid;
  gap: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.sku-row-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr 0.9fr 1fr auto;
  gap: 10px;
  align-items: center;
}

.sku-row-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.sku-table-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr 0.9fr 1fr auto;
  gap: 10px;
  padding: 0 6px 10px;
  color: #71829d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.sku-head-cell {
  padding: 0 6px;
}

.banner-card {
  padding: 16px;
  display: grid;
  gap: 16px;
}

.banner-card-body {
  display: grid;
  grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.banner-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 375 / 624;
  border-radius: 24px;
  overflow: hidden;
  min-height: 0;
  background: linear-gradient(180deg, #f7f2eb 0%, #efe6d8 100%);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.06), 0 18px 36px rgba(17, 24, 39, 0.08);
  justify-self: start;
}

.banner-cover-media,
.banner-video-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--banner-focus-x, 50%) var(--banner-focus-y, 50%);
  display: block;
}

.banner-cover-contain .banner-cover-media,
.banner-cover-contain .banner-video-shell img {
  object-fit: contain;
}

.banner-cover-focusable {
  cursor: crosshair;
  user-select: none;
}

.banner-focus-indicator {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: rgba(17, 17, 17, 0.18);
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.14);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.banner-focus-indicator::before,
.banner-focus-indicator::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.banner-focus-indicator::before {
  width: 10px;
  height: 2px;
}

.banner-focus-indicator::after {
  width: 2px;
  height: 10px;
}

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

.banner-focus-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.media-preview-hint {
  margin-top: 10px;
}

.cropper-modal-card {
  width: min(1040px, calc(100vw - 28px));
  padding: 24px 24px 22px;
  border-radius: 28px;
  border: 1px solid rgba(214, 223, 237, 0.9);
  background:
    radial-gradient(circle at top left, rgba(250, 246, 240, 0.92) 0%, rgba(255, 255, 255, 0) 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.cropper-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.cropper-modal-copy {
  min-width: 0;
}

.cropper-modal-copy h3 {
  margin: 0;
  color: #1d2736;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.cropper-modal-copy .muted-text {
  margin: 6px 0 0;
  max-width: 220px;
  color: #7a869a;
  line-height: 1.4;
  font-size: 11px;
}

.cropper-close-btn {
  width: 40px;
  min-width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
  border: 1px solid rgba(212, 221, 236, 0.96);
  color: #2f4da3;
  box-shadow: none;
}

.cropper-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.cropper-stage-panel {
  min-width: 0;
}

.cropper-stage-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.cropper-stage-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f5f7fb;
  color: #6a7689;
  font-size: 10px;
  font-weight: 700;
}

.cropper-stage-note {
  display: none;
}

.cropper-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cropper-stage-shell {
  position: relative;
  border-radius: 26px;
  padding: 16px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at bottom left, rgba(88, 108, 154, 0.16) 0%, rgba(88, 108, 154, 0) 38%),
    linear-gradient(180deg, #10141c 0%, #1b2330 52%, #222b38 100%);
  border: 1px solid rgba(52, 64, 86, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03),
    0 22px 42px rgba(10, 15, 24, 0.22);
}

.cropper-stage-shell::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 20px;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.035) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.035) 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 18px 30px rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.cropper-stage-shell::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 20%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 58%);
  pointer-events: none;
}

.cropper-viewport {
  position: relative;
  width: min(100%, 720px);
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: grab;
  touch-action: none;
}

.cropper-viewport:active {
  cursor: grabbing;
}

.cropper-viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}

.cropper-viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      transparent calc(50% - 0.5px),
      rgba(255, 255, 255, 0.16) calc(50% - 0.5px),
      rgba(255, 255, 255, 0.16) calc(50% + 0.5px),
      transparent calc(50% + 0.5px)
    ),
    linear-gradient(
      180deg,
      transparent calc(50% - 0.5px),
      rgba(255, 255, 255, 0.16) calc(50% - 0.5px),
      rgba(255, 255, 255, 0.16) calc(50% + 0.5px),
      transparent calc(50% + 0.5px)
    );
  pointer-events: none;
  z-index: 2;
}

.cropper-preview-image {
  position: absolute;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
  transform: translate3d(0, 0, 0);
}

.cropper-side-panel {
  display: grid;
  grid-template-columns: auto minmax(220px, 280px) auto;
  align-items: center;
  gap: 10px 14px;
  padding: 0;
  border: 0;
  background: transparent;
}

.cropper-control-block {
  display: grid;
  gap: 5px;
}

.cropper-control-block .field-label {
  margin: 0;
  font-size: 11px;
  color: #7d889c;
}

.cropper-zoom-range {
  width: 100%;
  accent-color: var(--brand-strong);
}

.cropper-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
  justify-content: flex-end;
}

.cropper-modal-actions .ghost-btn,
.cropper-modal-actions .primary-btn {
  width: auto;
  min-width: 0;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: none;
}

.cropper-modal-actions .ghost-btn {
  background: #ffffff;
  border-color: rgba(214, 223, 237, 0.96);
  color: #536179;
}

.cropper-modal-actions .primary-btn {
  padding-inline: 14px;
  box-shadow: 0 10px 24px rgba(22, 93, 255, 0.18);
}

.cropper-side-panel .focus-hint-pill {
  min-height: 24px;
  padding: 0 8px;
  background: rgba(95, 63, 47, 0.06);
  color: #7a665c;
  font-size: 10px;
}

.cropper-side-panel .cropper-meta-row {
  align-self: center;
}

.banner-sort-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px dashed #c6d3eb;
  color: #66748c;
  font-weight: 700;
}

.banner-card.dragging {
  opacity: 0.55;
}

.banner-card.is-drop-target,
.ranking-config-card.is-drop-target,
.featured-selected-card.is-drop-target {
  border-color: #8cb0ff;
  box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.14);
}

.featured-list {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.featured-selection-shell {
  display: grid;
  gap: 14px;
}

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

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

.featured-selected-card.is-dragging,
.ranking-config-card.is-dragging {
  opacity: 0.58;
}

.featured-selected-card-head,
.drag-feedback-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.featured-item-selected {
  border: 1px solid #d8e4fb;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
}

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

.ranking-config-list {
  display: grid;
  gap: 14px;
}

.ranking-config-card {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.ranking-config-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  min-height: 0;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #f7f2eb 0%, #efe6d8 100%);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.06), 0 18px 36px rgba(17, 24, 39, 0.06);
}

.ranking-config-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ranking-sort-handle {
  width: 42px;
  min-width: 42px;
}

.ranking-config-body {
  display: grid;
  gap: 12px;
}

.banner-video-shell {
  position: relative;
  width: 100%;
  height: 100%;
}

.preview-video-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.78);
  color: #fff8f2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.dashboard-preview-stage {
  min-height: 400px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(160deg, #efe3d4 0%, #dbc4aa 48%, #b89c7f 100%);
}

.dashboard-preview-banner-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-preview-stage-copy {
  position: absolute;
  inset: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(18, 14, 12, 0.16) 0%, rgba(18, 14, 12, 0.74) 100%);
  color: #fff9f3;
}

.dashboard-preview-brand-row {
  align-items: flex-start;
}

.dashboard-preview-brand {
  color: #fff8ef;
  font-size: 30px;
  font-family: Baskerville, "Times New Roman", serif;
}

.preview-tag {
  background: rgba(255, 249, 241, 0.92);
  color: #5f4b3a;
  border-color: rgba(255, 255, 255, 0.3);
}

.dashboard-preview-slogan-cn {
  margin-top: 18px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
}

.dashboard-preview-slogan-en {
  margin-top: 10px;
  color: rgba(255, 243, 229, 0.8);
  font-size: 13px;
  line-height: 1.7;
}

.dashboard-preview-note {
  margin-top: 10px;
  max-width: 72%;
  color: rgba(255, 243, 229, 0.72);
  font-size: 12px;
  line-height: 1.8;
}

.dashboard-preview-stage-copy .preview-badges {
  margin-top: 18px;
}

.dashboard-preview-stage-copy h4 {
  margin: 14px 0 8px;
  font-size: 34px;
}

.dashboard-preview-search-overlay {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  padding: 12px;
  background: rgba(255, 251, 246, 0.92);
  backdrop-filter: blur(14px);
}

.dashboard-preview-content {
  gap: 18px;
  padding: 16px;
  background: linear-gradient(180deg, #fbf6ef 0%, #f3eadf 100%);
}

.featured-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.featured-item-media {
  width: 88px;
  min-width: 88px;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #f7f2eb 0%, #efe6d8 100%);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.06);
}

.featured-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inventory-card {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.inventory-sku-table {
  display: grid;
  gap: 10px;
}

.inventory-sku-row {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.8fr 0.8fr 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid #e3ebf8;
}

.upload-dropzone {
  display: grid;
  gap: 10px;
  justify-items: center;
  position: relative;
  overflow: hidden;
  padding: 36px 24px;
  text-align: center;
  border-style: dashed;
  border-radius: 22px;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
}

.table-wrap {
  overflow: auto;
  border-radius: 20px;
  border: 1px solid #dde5f2;
  background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.table-wrap th,
.table-wrap td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf2fa;
  text-align: left;
  font-size: 13px;
}

.table-wrap tbody tr:hover td {
  background: #fbfdff;
}

.pagination-shell {
  margin-top: 16px;
}

.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e4ebf5;
  border-radius: 16px;
  background: #fbfcfe;
}

.pagination-summary {
  color: #76859a;
  font-size: 12px;
}

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

.pagination-page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid #d8e1ef;
  background: #fff;
  color: #3f4c62;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.pagination-page-btn.is-active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.home-save-history-list {
  display: grid;
  gap: 12px;
}

.home-save-history-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #e2e8f3;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  display: grid;
  gap: 10px;
}

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

.home-save-history-head strong {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #314154;
}

.empty-state,
.small-empty {
  display: grid;
  place-items: center;
  min-height: 120px;
  border-radius: 18px;
  border: 1px dashed var(--line);
  color: #8a97ab;
  background: var(--surface-soft);
  text-align: center;
  padding: 16px;
}

.empty-state::before,
.small-empty::before {
  content: "◇";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0 auto 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #dde5f1;
  color: #7b8ba2;
  font-size: 18px;
  font-weight: 800;
}

.small-empty {
  min-height: 80px;
}

@media (max-width: 960px) {
  .pagination-bar,
  .home-save-history-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .pagination-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

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

.invite-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 50;
}

.modal-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(17, 28, 53, 0.2);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(17, 28, 53, 0.94);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 60;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1280px) {
  .panel-grid.two-up,
  .home-grid,
  .product-layout,
  .editor-split,
  .dashboard-preview-ranking-grid,
  .dashboard-preview-featured-grid,
  .ranking-config-card {
    grid-template-columns: 1fr;
  }

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

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

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

  .inventory-detail-layout {
    grid-template-columns: 1fr;
  }

  .inventory-list-table-head,
  .inventory-row {
    grid-template-columns: minmax(240px, 2fr) repeat(4, minmax(70px, 0.7fr)) minmax(88px, 0.8fr) minmax(120px, 1fr) minmax(150px, 1.1fr);
  }
}

@media (max-width: 960px) {
  html,
  body {
    height: auto;
    overflow: auto;
  }

  .admin-shell {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    gap: 16px;
    padding: 18px 16px;
  }

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

  .module-sidebar {
    display: none;
  }

  .shell-main {
    padding: 18px 16px 30px;
    height: auto;
    overflow: visible;
  }

  .shell-header,
  .view-headline,
  .panel-header,
  .panel-subheader,
  .editor-footer,
  .editor-footer-right,
  .banner-card-top,
  .inventory-card-head,
  .invite-card-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions,
  .toolbar-actions,
  .view-toolbar-stack {
    width: 100%;
  }

  .stats-grid,
  .order-stats-grid,
  .view-meta-strip,
  .home-action-grid,
  .quick-grid,
  .publish-summary-grid,
  .publish-impact-grid,
  .publish-stage-card,
  .editor-hero,
  .form-grid.two-col,
  .form-grid.three-col,
  .invite-card-grid,
  .sku-row-grid,
  .inventory-sku-row,
  .inventory-row,
  .banner-card-body,
  .ranking-config-card,
  .catalog-config-visual-row,
  .dashboard-preview-hero-card,
  .dashboard-preview-region-card {
      grid-template-columns: 1fr;
    }

    .inventory-list-table-head {
      display: none;
    }

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

    .span-two {
      grid-column: span 1;
    }

    .publish-stage-card {
      align-items: flex-start;
    }
  }


.product-card-copy > strong,
.product-card-copy > .product-card-code,
.product-card-copy > .subtle-copy {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card-copy > .subtle-copy {
  margin-top: 0;
  font-size: 12px;
}


.panel-card {
  backdrop-filter: blur(14px);
}

.quick-grid {
  gap: 16px;
}

.quick-link {
  min-height: 112px;
  padding: 18px;
  border-radius: 22px;
  border-color: rgba(220, 226, 238, 0.95);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 246, 242, 0.96) 100%);
}

.quick-link-copy strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  color: #1d2433;
}

.quick-link-copy span {
  color: #697285;
  line-height: 1.6;
}

.quick-link-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8e7df 0%, #efe6df 100%);
  color: #9a5c46;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(201, 152, 130, 0.18);
}

.timeline-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  gap: 14px;
}

.timeline-list li {
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  gap: 12px 14px;
  padding: 14px 0 0;
  position: relative;
}

.timeline-list li::before {
  content: counter(list-item, decimal-leading-zero);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1c2432 0%, #3a3240 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(28, 36, 50, 0.16);
}

.timeline-list li::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 52px;
  bottom: -10px;
  width: 2px;
  background: linear-gradient(180deg, rgba(201, 123, 99, 0.28) 0%, rgba(221, 229, 242, 0) 100%);
}

.timeline-list li:last-child::after {
  display: none;
}

.timeline-list li strong,
.timeline-list li span {
  grid-column: 2;
}

.timeline-list li strong {
  color: #1d2433;
}

.control-grid,
.workspace-stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.control-card,
.workspace-stat-card {
  display: grid;
  gap: 12px;
  min-height: 152px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(223, 228, 238, 0.96);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 244, 240, 0.96) 100%);
  box-shadow: 0 16px 30px rgba(17, 28, 53, 0.05);
}

.control-card-head,
.workspace-stat-card strong {
  display: grid;
  gap: 4px;
}

.control-card-head strong,
.workspace-stat-card strong {
  font-size: 18px;
  color: #1f2530;
}

.control-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.control-pill {
  min-height: 28px;
}

.workspace-stat-label {
  color: #8a7368;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workspace-stat-card.emphasis {
  background: linear-gradient(135deg, #1b1b23 0%, #2c2430 100%);
  color: #fff;
  border-color: transparent;
}

.workspace-stat-card.emphasis strong,
.workspace-stat-card.emphasis .subtle-copy,
.workspace-stat-card.emphasis .workspace-stat-label {
  color: rgba(255, 255, 255, 0.92);
}

.access-guide-card,
.network-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.access-guide-card {
  padding: 6px 0 0;
}

.view-headline {
  align-items: center;
}

.product-command-deck {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
}

.product-top-actions {
  padding: 8px;
  border-radius: 20px;
  border: 1px solid rgba(219, 229, 244, 0.96);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 249, 255, 0.94) 100%);
  box-shadow: 0 12px 24px rgba(17, 28, 53, 0.05);
}

.product-top-actions .ghost-btn,
.product-top-actions .primary-btn {
  min-height: 44px;
}

.product-command-panel {
  padding-top: 18px;
  padding-bottom: 18px;
}

#view-products .product-command-panel {
  padding: 12px 14px;
  border-radius: 14px;
}

.compact-header {
  margin-bottom: 14px;
}

#view-products .compact-header {
  margin-bottom: 8px;
}

.product-list-shell,
.product-editor-shell {
  display: grid;
  gap: 18px;
}

#view-products .product-list-shell {
  gap: 12px;
}

#view-product-detail .product-editor-shell {
  max-width: 1280px;
}

.product-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 4px 0 2px;
}

.product-status-tab {
  min-height: 52px;
  min-width: 128px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid #dbe3f1;
  background: #fff;
  display: grid;
  gap: 4px;
  justify-items: start;
  color: #475467;
}

.product-status-tab strong {
  font-size: 15px;
}

.product-status-tab span {
  font-size: 13px;
  color: #6b7280;
}

.product-status-tab.is-active {
  border-color: #bed0ff;
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.08);
}

.product-layout {
  grid-template-columns: minmax(320px, 372px) minmax(0, 1fr);
  align-items: start;
}

.product-workspace[data-product-workspace-panel="manage"] .product-list-card,
.product-workspace[data-product-workspace-panel="catalog"] .panel-card,
.product-workspace[data-product-workspace-panel="import"] .panel-card {
  border-radius: 24px;
}

.product-list-card {
  position: sticky;
  top: 20px;
  align-self: start;
}

.product-list-card,
.product-editor-card {
  border-radius: 28px;
}

.product-card {
  padding: 16px;
  border-radius: 22px;
}

.product-list-wide {
  display: grid;
  gap: 0;
}

.product-workspace[data-product-workspace-panel="manage"] .product-list-card {
  position: static;
}

.product-filter-actions {
  justify-content: flex-start;
  margin-top: 10px;
}

#view-products .product-list-card {
  padding: 14px 16px;
  border-radius: 14px;
}

#view-products .product-list-card .panel-subheader {
  margin-bottom: 10px;
  padding-bottom: 10px;
}

#view-products .product-list-card .panel-subheader h4 {
  font-size: 15px;
}

#view-products .product-list-card .panel-subheader .muted-text {
  font-size: 12px;
  line-height: 1.45;
}

#view-products .filter-stack {
  grid-template-columns: minmax(260px, 1.5fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr);
  gap: 10px;
  margin-bottom: 10px;
}

#view-products .product-list-card .text-input,
#view-products .product-list-card select.text-input {
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 10px;
}

#view-products .product-filter-actions {
  gap: 8px;
  margin-top: 0;
}

#view-products .product-filter-actions .ghost-btn,
#view-products .product-filter-actions .primary-btn {
  min-height: 34px;
  padding: 8px 12px;
}

.product-bulk-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 4px 0;
}

.product-bulk-summary {
  display: grid;
  gap: 4px;
}

.product-list-table {
  border: 1px solid #dfe5f2;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.product-list-table-head,
.product-row {
  display: grid;
  grid-template-columns: 32px minmax(300px, 2.1fr) minmax(92px, 0.7fr) minmax(92px, 0.7fr) minmax(120px, 0.8fr) minmax(150px, 0.95fr) minmax(150px, 0.95fr);
  gap: 12px;
  align-items: center;
}

.product-list-table-head {
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e5eaf4;
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.product-list-table-body {
  display: grid;
}

.inventory-list-table {
  border: 1px solid #dfe5f2;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.inventory-log-table th,
.inventory-log-table td,
.order-detail-table th,
.order-detail-table td {
  white-space: nowrap;
  vertical-align: top;
}

.inventory-log-table td:nth-child(2),
.inventory-log-table td:nth-child(6),
.order-detail-table td:nth-child(1) {
  white-space: normal;
}

.inventory-detail-log-table td:nth-child(2) {
  min-width: 96px;
}

.inventory-detail-log-table td:nth-child(3) {
  min-width: 170px;
}

.inventory-detail-log-table td:nth-child(5) {
  min-width: 180px;
}

.order-list-table {
  border: 1px solid #dfe5f2;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.inventory-list-table-head,
.order-list-table-head,
.inventory-row {
  display: grid;
  grid-template-columns: minmax(280px, 2.2fr) 92px 78px 88px 88px 88px 98px 148px 180px;
  gap: 12px;
  align-items: center;
}

.inventory-list-table-head {
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e5eaf4;
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.order-list-table-head {
  grid-template-columns: minmax(260px, 2.2fr) 120px 98px 120px minmax(180px, 1.4fr) 120px;
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e5eaf4;
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.inventory-list-table-body {
  display: grid;
}

.order-list-table-body {
  display: grid;
}

.inventory-row {
  padding: 16px 18px;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
}

.order-list-row {
  display: grid;
  grid-template-columns: minmax(260px, 2.2fr) 120px 98px 120px minmax(180px, 1.4fr) 120px;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
}

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

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

.inventory-row:hover {
  background: #f8fbff;
}

.order-list-row:hover {
  background: #f8fbff;
}

.inventory-row.is-target {
  background: #f2f7ff;
  box-shadow: inset 3px 0 0 #2b63f6;
}

.order-list-row.is-target {
  background: #f2f7ff;
  box-shadow: inset 3px 0 0 #2b63f6;
}

.inventory-row-main {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.order-list-main,
.order-list-cell,
.order-list-actions {
  display: grid;
  gap: 6px;
}

.inventory-row-copy,
.inventory-row-metric,
.inventory-row-updated,
.inventory-row-actions {
  display: grid;
  gap: 6px;
}

.inventory-row-copy strong,
.inventory-row-updated strong,
.inventory-row-metric strong,
.order-list-main strong,
.order-list-cell strong {
  color: var(--navy);
}

.inventory-row-metric span,
.inventory-row-updated span,
.order-list-cell span {
  color: #7b8798;
  font-size: 12px;
}

.inventory-row-actions {
  justify-items: start;
}

.order-list-actions {
  justify-items: start;
}

.inventory-row-actions .ghost-btn,
.inventory-row-actions .primary-btn {
  min-width: 92px;
}

.inventory-log-table thead th,
.order-detail-table thead th {
  background: #f7f9fc;
}

.inventory-log-row:hover td,
.order-detail-item-row:hover td {
  background: #f8fbff;
}

#inventoryDetailLogsSection .panel-subheader {
  align-items: flex-start;
}

#inventoryDetailLogsSection .muted-text {
  font-size: 12px;
  line-height: 1.7;
}

.order-list-actions .ghost-btn {
  min-width: 92px;
}

.order-list-audit-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-list-audit-cell span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 10px;
  background: #f4f7fb;
  color: #5f6e84;
  font-size: 11px;
  font-weight: 600;
}

.order-summary-table-head,
.order-summary-row {
  grid-template-columns: minmax(280px, 2.3fr) 96px 120px 96px 96px minmax(220px, 1.5fr);
}

.product-row {
  padding: 18px;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
  cursor: pointer;
}

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

.product-row:hover {
  background: #f8fbff;
}

.product-row.is-selected {
  background: #f2f7ff;
}

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

.table-check {
  display: inline-grid;
  place-items: center;
}

.table-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.table-check span {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #fff;
  display: inline-grid;
  place-items: center;
}

.table-check input:checked + span {
  background: #2563eb;
  border-color: #2563eb;
}

.table-check input:checked + span::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

.product-row-thumb {
  width: 72px;
  height: 92px;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f5f8;
  display: grid;
  place-items: center;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 700;
}

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

.product-row-copy,
.product-row-price,
.product-row-stock,
.product-row-stage,
.product-row-updated,
.product-row-actions {
  display: grid;
  gap: 6px;
}

.product-row-copy strong,
.product-row-updated strong,
.product-row-stock strong {
  color: var(--navy);
}

.product-row-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-row-code {
  color: #667085;
  font-size: 13px;
}

.product-row-actions {
  justify-items: start;
}

.product-row-actions .ghost-btn {
  min-width: 86px;
}

.text-link-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: #2563eb;
  font-weight: 600;
}

.product-list-footer {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  color: #667085;
  font-size: 13px;
}

.product-card.is-selected::before {
  background: linear-gradient(180deg, #b87963 0%, #1f2432 100%);
}

.editor-sticky-shell {
  top: 18px;
  padding: 16px;
  border-radius: 24px;
}

.editor-sticky-top {
  align-items: flex-start;
}

.editor-sticky-actions {
  align-self: center;
  gap: 8px;
}

.workspace-switch {
  padding: 4px;
  border-radius: 12px;
  background: #f4f6fb;
  border-color: var(--line);
}

.workspace-chip {
  min-width: 108px;
}

.workspace-chip.is-active {
  background: #fff;
  color: #1d4ed8;
  box-shadow: none;
}

.sticky-preview {
  display: grid;
  align-content: start;
  gap: 14px;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.preview-device {
  width: min(100%, 360px);
  padding: 14px 12px 18px;
  border-radius: 40px;
  border: 1px solid rgba(13, 18, 29, 0.08);
  background:
    linear-gradient(180deg, #0f1727 0%, #1b2232 100%);
  box-shadow:
    0 32px 70px rgba(17, 28, 53, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.preview-device-screen {
  display: flex;
  flex-direction: column;
  height: min(78vh, 820px);
  min-height: 0;
  border-radius: 30px;
  background: linear-gradient(180deg, #f8f2ec 0%, #fcfbf9 100%);
}

.home-preview {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(28, 36, 50, 0.22) transparent;
}

.home-preview::-webkit-scrollbar {
  width: 6px;
}

.home-preview::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(28, 36, 50, 0.22);
}

.dashboard-preview-content {
  gap: 16px;
  padding: 16px;
}

.dashboard-preview-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, #161922 0%, #221f2a 100%);
}

.dashboard-preview-brand {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.dashboard-preview-slogan-cn {
  font-size: 24px;
  line-height: 1.24;
}

.dashboard-preview-slogan-en {
  max-width: 260px;
}

.dashboard-preview-search-card,
.dashboard-preview-section,
.dashboard-preview-hero-card,
.dashboard-preview-region-card,
.dashboard-preview-featured-card,
.dashboard-preview-ranking-entry {
  border-radius: 24px;
  box-shadow: 0 14px 28px rgba(25, 30, 40, 0.05);
}

.dashboard-preview-stage {
  min-height: 480px;
  border-radius: 30px;
  overflow: hidden;
}

.dashboard-preview-stage-copy {
  padding: 28px;
  background: linear-gradient(180deg, rgba(13, 18, 29, 0.08) 0%, rgba(13, 18, 29, 0.48) 55%, rgba(13, 18, 29, 0.7) 100%);
}

.dashboard-preview-stage-copy .dashboard-preview-brand,
.dashboard-preview-stage-copy .dashboard-preview-slogan-cn,
.dashboard-preview-stage-copy .dashboard-preview-slogan-en {
  color: #fff;
}

.dashboard-preview-stage-copy .dashboard-preview-slogan-cn {
  margin-top: 18px;
}

.dashboard-preview-stage-copy .dashboard-preview-slogan-en {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
}

.dashboard-preview-stage-copy .primary-btn {
  background: rgba(255, 255, 255, 0.94);
  color: #1d2433;
  box-shadow: none;
}

/* Refined visual pass */
body {
  font-size: 14px;
  line-height: 1.5;
}

.shell-header h1 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.view-headline h3 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.panel-header h3,
.panel-subheader h4 {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.muted-text,
.subtle-copy,
.inline-note,
.secondary-nav-copy em,
.quick-link-copy span,
.panel-header p,
.panel-subheader p,
.view-headline p,
.shell-header p {
  font-size: 13px;
  line-height: 1.55;
}

.eyebrow,
.panel-eyebrow {
  min-height: 24px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.field-label {
  margin: 14px 0 7px;
  font-size: 12px;
  letter-spacing: 0.01em;
}

.text-input,
.textarea-input,
select.text-input {
  border-radius: 12px;
  padding: 12px 14px;
}

.primary-btn {
  min-height: 42px;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(43, 99, 246, 0.18);
}

.ghost-btn,
.quick-link,
.nav-item,
.icon-btn {
  min-height: 40px;
  padding: 10px 14px;
  box-shadow: 0 4px 12px rgba(17, 28, 53, 0.04);
}

.small-btn {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 10px;
}

.chip,
.save-status-chip,
.step-chip,
.stat-badge,
.priority-count,
.order-list-stats-bar span {
  border-radius: 12px;
}

.chip {
  padding: 8px 12px;
  font-size: 12px;
}

.save-status-chip {
  min-height: 38px;
}

.step-chip {
  min-height: 38px;
  padding: 8px 14px;
}

.nav-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  flex-basis: 34px;
  font-size: 10px;
}

.secondary-nav-list {
  gap: 6px;
}

.secondary-nav-item {
  border-radius: 12px;
  padding: 10px 12px;
  grid-template-columns: 32px minmax(0, 1fr);
}

.secondary-nav-index {
  width: 32px;
  min-height: 32px;
  border-radius: 10px;
  font-size: 10px;
}

.secondary-nav-copy {
  gap: 3px;
}

.secondary-nav-copy span {
  font-size: 13px;
}

.secondary-nav-copy em {
  font-size: 11px;
  letter-spacing: 0.04em;
}

.shell-main {
  position: relative;
  padding: 24px 26px 30px;
  background: linear-gradient(180deg, #f5f7fb 0%, #f7f9fc 100%);
  scroll-padding-top: 116px;
  overscroll-behavior: contain;
}

.shell-header {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  overflow: hidden;
  isolation: isolate;
  z-index: 20;
}

.shell-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 251, 255, 0.95) 100%);
  z-index: -1;
}

.shell-header::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 1px;
  background: rgba(217, 225, 238, 0.9);
}

.view-headline {
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
}

.view-headline::before {
  width: 3px;
}

.view-meta-strip {
  gap: 12px;
}

.view-meta-card {
  min-height: 92px;
  padding: 14px 16px;
  border-radius: 14px;
}

.create-readiness-panel {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #dfe5f2;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

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

.create-readiness-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  background: #f2f5fb;
  color: #35506f;
  font-size: 13px;
  font-weight: 800;
}

.create-readiness-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.product-create-section-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.product-create-section-chip {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #dee6f3;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  color: #334155;
  text-align: left;
}

.product-create-section-chip.is-active {
  border-color: #cddafe;
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.08);
}

.product-create-section-index {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: #f4f7fc;
  color: #718198;
  font-size: 11px;
  font-weight: 800;
}

.product-create-section-chip.is-active .product-create-section-index {
  background: #1d4ed8;
  color: #fff;
}

.product-create-section-copy {
  display: grid;
  gap: 3px;
}

.product-create-section-copy strong {
  font-size: 14px;
  color: #1f2937;
}

.product-create-section-copy em {
  font-style: normal;
  font-size: 11px;
  color: #718198;
}

.create-readiness-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e3e9f4;
  background: #fbfcfe;
}

.create-readiness-item strong {
  display: block;
  font-size: 12px;
  color: var(--navy-soft);
}

.create-readiness-item span:last-child {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #6b7b94;
}

.create-readiness-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  background: #fff7ed;
  color: #c2410c;
}

.create-readiness-item.is-done .create-readiness-dot {
  background: #ecfdf5;
  color: #0f766e;
}

.inventory-log-filter-grid {
  align-items: end;
}

.inventory-log-filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.view-meta-card strong {
  font-size: 18px;
}

#productPulseSection {
  padding-top: 14px;
  padding-bottom: 14px;
}

#productPulseSection .panel-header {
  margin-bottom: 10px;
  padding-bottom: 10px;
}

#productPulseSection .panel-eyebrow {
  min-height: 22px;
  padding: 0 9px;
}

#productPulseSection .workspace-stat-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

#productPulseSection .workspace-stat-card {
  min-height: auto;
  padding: 12px 14px;
  border-radius: 14px;
  gap: 6px;
  box-shadow: none;
}

#productPulseSection .workspace-stat-card strong {
  font-size: 16px;
}

#productPulseSection .workspace-stat-label,
#productPulseSection .workspace-stat-card .subtle-copy {
  font-size: 11px;
  line-height: 1.45;
}

#productPulseSection .workspace-stat-card.emphasis {
  background: linear-gradient(180deg, #2b2e37 0%, #353744 100%);
}

#view-products #productPulseSection .panel-header h3 {
  font-size: 16px;
}

#view-products #productPulseSection .panel-header {
  margin-bottom: 8px;
  padding-bottom: 8px;
}

#view-products #productPulseSection .workspace-stat-row {
  gap: 8px;
}

#view-products #productPulseSection .workspace-stat-card {
  padding: 10px 12px;
  border-radius: 12px;
  gap: 4px;
}

#view-products #productPulseSection .workspace-stat-card strong {
  font-size: 15px;
}

#view-products #productPulseSection .workspace-stat-label,
#view-products #productPulseSection .workspace-stat-card .subtle-copy {
  font-size: 10px;
  line-height: 1.35;
}

#view-products .product-workspace {
  gap: 12px;
}

#view-products .panel-card {
  padding: 16px 18px;
}

.create-readiness-panel.detail-side-panel {
  box-shadow: none;
}

.create-readiness-panel.detail-side-panel .panel-subheader {
  border-bottom: 0;
  padding-bottom: 0;
}

.panel-card {
  padding: 20px;
  border-radius: 16px;
}

.panel-header,
.panel-subheader {
  margin-bottom: 16px;
  padding-bottom: 14px;
}

.stat-card {
  min-height: 126px;
  padding: 16px 18px;
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(17, 28, 53, 0.04);
}

.stat-card::after {
  right: -10px;
  top: -14px;
  width: 68px;
  height: 68px;
}

.stat-badge {
  padding: 5px 9px;
  font-size: 10px;
}

.stat-value,
.invite-summary-card .stat-value {
  font-size: 26px;
}

.quick-grid {
  gap: 12px;
}

.quick-link {
  min-height: 88px;
  padding: 14px 16px;
  border-radius: 16px;
}

.quick-link-copy strong {
  margin-bottom: 4px;
  font-size: 15px;
}

.quick-link-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.priority-card {
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
}

.priority-top {
  gap: 6px;
}

.priority-top strong,
.workspace-stat-card strong,
.control-card-head strong {
  font-size: 16px;
}

.priority-count {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  font-size: 12px;
}

.workspace-stat-card {
  min-height: 128px;
  padding: 16px 18px;
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(17, 28, 53, 0.04);
}

.order-status-tabs,
.order-scenario-chips {
  gap: 10px;
  margin-bottom: 16px;
}

.order-status-tab,
.order-scenario-chip {
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 14px;
}

.order-status-tab strong,
.order-scenario-chip strong {
  font-size: 14px;
}

.order-status-tab span,
.order-scenario-chip span {
  font-size: 16px;
}

.order-list-stats-bar span {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.table-wrap {
  border-radius: 16px;
}

.table-wrap thead th {
  font-size: 11px;
  letter-spacing: 0.04em;
  background: #f7f9fc;
}

.table-wrap th,
.table-wrap td {
  padding: 12px 14px;
  font-size: 13px;
}

.empty-state,
.small-empty {
  min-height: 108px;
  border-radius: 14px;
  padding: 18px;
}

.empty-state::before,
.small-empty::before {
  width: 30px;
  height: 30px;
  margin-bottom: 6px;
  border-radius: 10px;
}

.panel-eyebrow,
.chip,
.save-status-chip,
.step-chip,
.stat-badge,
.priority-count,
.order-list-stats-bar span,
.focus-hint-pill,
.focus-hint-tag,
.product-card-mini,
.product-publish-badge,
.preview-tag,
.metric-pill,
.badge {
  border-radius: 10px;
}

.chip,
.focus-hint-tag,
.product-card-mini,
.product-publish-badge,
.order-list-stats-bar span,
.preview-tag,
.metric-pill,
.badge {
  min-height: 26px;
  padding: 4px 9px;
  font-size: 11px;
}

.save-status-chip,
.step-chip {
  min-height: 34px;
  padding: 6px 10px;
}

.toolbar-actions .ghost-btn,
.toolbar-actions .primary-btn,
.toolbar-actions .small-btn {
  min-height: 34px;
  padding: 8px 12px;
}

.view-headline {
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.view-headline h3,
.panel-header h3,
.panel-subheader h4 {
  font-size: 20px;
  line-height: 1.3;
}

.workspace-intro-card {
  padding: 14px 16px;
  border-radius: 14px;
}

.workspace-stat-card,
.panel-card,
.control-card,
.product-list-card {
  border-radius: 16px;
}

.invite-manage-table {
  border: 1px solid #dde5f2;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.invite-manage-head,
.invite-manage-summary {
  display: grid;
  grid-template-columns: minmax(260px, 2.1fr) minmax(180px, 1.2fr) minmax(200px, 1.2fr) minmax(200px, 1.2fr);
  gap: 12px;
  align-items: center;
}

.invite-manage-head {
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e6edf6;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.invite-manage-row {
  border-bottom: 1px solid #edf2fa;
  background: #fff;
}

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

.invite-manage-row[open] {
  background: #fbfdff;
}

.invite-manage-summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
}

.invite-manage-summary::-webkit-details-marker {
  display: none;
}

.invite-manage-main,
.invite-manage-cell {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.invite-manage-main strong,
.invite-manage-cell strong {
  font-size: 14px;
  color: #243246;
}

.invite-manage-status-row,
.invite-manage-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.invite-manage-detail {
  padding: 0 16px 16px;
  border-top: 1px solid #eef3fa;
}

.invite-manage-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 14px;
  padding-top: 14px;
}

.invite-manage-form-grid .field-label {
  margin-top: 0;
}

.invite-manage-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #edf2fa;
}

.invite-code-input {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (max-width: 1280px) {
  .security-grid,
  .create-readiness-list,
  .product-create-section-strip,
  .control-grid,
  .workspace-stat-row {
    grid-template-columns: 1fr;
  }

  #view-products .filter-stack {
    grid-template-columns: 1fr;
  }

  .invite-manage-head,
  .invite-manage-summary {
    grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(0, 1fr));
  }

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

  .inventory-detail-overview-grid {
    grid-template-columns: 1fr;
  }

  .inventory-list-table-head,
  .inventory-row,
  .order-list-table-head,
  .order-list-row,
  .order-summary-table-head,
  .order-summary-row {
    grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .product-command-deck {
    width: 100%;
    justify-content: flex-start;
  }

  .product-top-actions,
  .preview-toolbar {
    width: 100%;
    justify-content: flex-start;
  }

  .inventory-log-filter-actions,
  .create-readiness-head {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .product-list-card {
    position: static;
  }

  .preview-device-screen {
    height: 720px;
  }

  .control-grid,
  .workspace-stat-row {
    grid-template-columns: 1fr;
  }

  .invite-manage-head {
    display: none;
  }

  .invite-manage-summary,
  .invite-manage-form-grid,
  .invite-manage-foot {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .inventory-list-table-head,
  .order-list-table-head,
  .order-summary-table-head {
    display: none;
  }

  .inventory-row,
  .order-list-row,
  .order-summary-row {
    grid-template-columns: 1fr;
  }
}

.preview-device-screen {
  background: #ffffff;
}

.mini-home-preview {
  min-height: 100%;
  background: #ffffff;
}

.mini-home-preview-nav {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 18px 16px 14px;
  background: linear-gradient(180deg, #111c35 0%, #162542 100%);
  color: #ffffff;
  text-align: center;
}

.mini-home-preview-nav-title {
  font-size: 18px;
  font-weight: 700;
}

.mini-home-preview-body {
  display: grid;
  gap: 18px;
  padding: 0 16px 22px;
  background: #ffffff;
}

.mini-home-topbar {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
}

.mini-home-topbar-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 3;
}

.mini-home-topbar-plain {
  padding-top: 10px;
}

.mini-home-search-trigger,
.mini-home-topbar-spacer {
  width: 32px;
  height: 32px;
}

.mini-home-search-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-home-search-icon {
  position: relative;
  width: 14px;
  height: 14px;
  border: 2px solid #ffffff;
  border-radius: 999px;
}

.mini-home-search-icon::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transform: rotate(45deg);
}

.mini-home-search-icon-dark {
  border-color: #111111;
}

.mini-home-search-icon-dark::after {
  background: #111111;
}

.mini-home-topbar-title {
  text-align: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-family: Baskerville, "Times New Roman", serif;
}

.mini-home-topbar-title-dark {
  color: #111111;
}

.mini-home-hero {
  position: relative;
  margin-top: 10px;
}

.mini-home-hero-media {
  position: relative;
  aspect-ratio: 375 / 624;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #f7f2eb 0%, #efe6d8 100%);
}

.mini-home-hero-image,
.mini-home-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mini-home-hero-media-contain .mini-home-hero-image,
.mini-home-hero-media-contain .mini-home-hero-video {
  object-fit: contain;
}

.mini-home-hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.13) 34%, rgba(0, 0, 0, 0.36) 100%);
}

.mini-home-hero-copy {
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 17px;
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.12);
}

.mini-home-hero-kicker-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.mini-home-hero-kicker,
.mini-home-hero-rank {
  min-height: 17px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.mini-home-hero-kicker {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.mini-home-hero-rank {
  background: rgba(255, 255, 255, 0.92);
  color: #111111;
}

.mini-home-hero-title {
  max-width: 72%;
  font-size: 30px;
  line-height: 1.06;
  font-weight: 700;
  font-family: Baskerville, "Times New Roman", serif;
}

.mini-home-hero-subtitle {
  max-width: 72%;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  line-height: 1.65;
}

.mini-home-hero-action {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.94);
  color: #111111;
  font-size: 12px;
  font-weight: 700;
}

.mini-home-manifesto {
  padding: 5px 0 9px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.mini-home-manifesto-kicker,
.mini-home-section-kicker {
  color: #8d8d8d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.mini-home-manifesto-title,
.mini-home-section-title,
.mini-home-ranking-title,
.mini-home-list-title,
.mini-home-featured-title,
.mini-home-callout-title {
  color: #111111;
  font-family: Baskerville, "Times New Roman", serif;
}

.mini-home-manifesto-title {
  margin-top: 5px;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
}

.mini-home-manifesto-text,
.mini-home-callout-text,
.mini-home-featured-note {
  margin-top: 5px;
  color: #727272;
  font-size: 12px;
  line-height: 1.55;
}

.mini-home-manifesto-text {
  max-width: 92%;
}

.mini-home-ranking-entry-grid,
.mini-home-featured-grid,
.mini-home-stats-grid {
  display: grid;
  gap: 6px;
}

.mini-home-ranking-entry-grid,
.mini-home-featured-grid,
.mini-home-stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-home-ranking-entry.is-lead,
.mini-home-featured-card.is-lead {
  grid-column: 1 / -1;
}

.mini-home-ranking-thumb-wrap {
  position: relative;
  height: 140px;
  overflow: hidden;
  background: #f2f2f2;
}

.mini-home-ranking-entry.is-lead .mini-home-ranking-thumb-wrap {
  height: 180px;
}

.mini-home-ranking-thumb,
.mini-home-featured-image,
.mini-home-list-image,
.mini-home-sku-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mini-home-ranking-entry.is-lead .mini-home-ranking-thumb {
  object-position: 50% 36%;
  transform: scale(1.03);
  transform-origin: center;
}

.mini-home-ranking-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.03) 10%, rgba(0, 0, 0, 0.44) 100%);
}

.mini-home-ranking-copy {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 9px;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.14);
}

.mini-home-ranking-head,
.mini-home-section-head,
.mini-home-list-topline,
.mini-home-list-footer,
.mini-home-sku-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.mini-home-ranking-label {
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.mini-home-ranking-arrow,
.mini-home-section-more,
.mini-home-list-action,
.mini-home-featured-action {
  color: #111111;
  font-size: 12px;
  font-weight: 700;
}

.mini-home-ranking-arrow {
  color: #ffffff;
}

.mini-home-section-title {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.mini-home-ranking-title {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.32;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.mini-home-list-meta,
.mini-home-featured-meta,
.mini-home-stats-summary,
.mini-home-sku-subtitle {
  margin-top: 3px;
  color: #8a8a8a;
  font-size: 11px;
  line-height: 1.45;
}

.mini-home-ranking-subtitle {
  margin-top: 3px;
  min-height: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  line-height: 1.45;
}

.mini-home-ranking-metric,
.mini-home-list-badge {
  margin-top: 5px;
  display: inline-flex;
  align-items: center;
  min-height: 16px;
  padding: 0 5px;
  background: #111111;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
}

.mini-home-region-badge {
  background: #111111;
}

.mini-home-callout {
  padding: 22px 20px 20px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  text-align: center;
}

.mini-home-callout-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.mini-home-callout-button {
  margin-top: 16px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111111;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.mini-home-section {
  padding: 18px 0 0;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.mini-home-list-card {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.mini-home-list-card.is-lead {
  display: grid;
  grid-template-columns: minmax(132px, 148px) minmax(0, 1fr);
}

.mini-home-list-image-wrap {
  width: 124px;
  height: 124px;
  background: #efefef;
  flex-shrink: 0;
  overflow: hidden;
}

.mini-home-list-card.is-lead .mini-home-list-image-wrap {
  width: 100%;
  height: 180px;
}

.mini-home-list-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mini-home-list-title,
.mini-home-featured-title {
  margin-top: 10px;
  font-size: 22px;
  line-height: 1.28;
  font-weight: 700;
}

.mini-home-list-pieces,
.mini-home-sku-bottom,
.mini-home-featured-price,
.mini-home-list-price {
  color: #111111;
  font-size: 12px;
  font-weight: 700;
}

.mini-home-list-price,
.mini-home-featured-price,
.mini-home-stat-value {
  font-family: Baskerville, "Times New Roman", serif;
}

.mini-home-sku-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.mini-home-sku-track::-webkit-scrollbar {
  display: none;
}

.mini-home-sku-card {
  width: 150px;
  flex: 0 0 auto;
}

.mini-home-sku-card.is-lead {
  width: 180px;
}

.mini-home-sku-image-wrap {
  height: 124px;
  overflow: hidden;
  background: #efefef;
}

.mini-home-sku-card.is-lead .mini-home-sku-image-wrap {
  height: 160px;
}

.mini-home-sku-title,
.mini-home-featured-kicker {
  margin-top: 12px;
  color: #9a9a9a;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.mini-home-featured-card {
  display: block;
}

.mini-home-featured-image-wrap {
  height: 158px;
  background: #efefef;
  overflow: hidden;
}

.mini-home-featured-card.is-lead .mini-home-featured-image-wrap {
  height: 220px;
}

.mini-home-featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.mini-home-stat-card {
  padding: 16px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: #ffffff;
}

.mini-home-stat-label {
  color: #8d8d8d;
  font-size: 11px;
}

.mini-home-stat-value {
  margin-top: 10px;
  color: #111111;
  font-size: 28px;
  font-weight: 700;
}

.mini-home-empty-panel,
.mini-home-ranking-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  background: #f7f7f7;
  color: #999999;
  font-size: 12px;
  text-align: center;
}

.mini-home-ranking-empty {
  height: 100%;
}

@media (max-width: 900px) {
  .cropper-modal-card {
    width: min(100vw - 24px, 760px);
    padding: 20px;
  }

  .cropper-modal-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cropper-modal-head {
    margin-bottom: 16px;
  }

  .cropper-stage-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .cropper-stage-shell {
    padding: 14px;
  }

  .cropper-stage-shell::before {
    inset: 14px;
  }

  .cropper-viewport {
    width: min(100%, 420px);
  }

  .cropper-side-panel {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cropper-modal-actions {
    grid-template-columns: 1fr;
  }

  .cropper-modal-actions .ghost-btn,
  .cropper-modal-actions .primary-btn {
    min-width: 0;
  }
}


