:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef6f5;
  --ink: #1e2428;
  --muted: #66737f;
  --line: #d8dee6;
  --line-strong: #aeb9c5;
  --teal: #087f8c;
  --green: #248a3d;
  --amber: #b7791f;
  --red: #c2410c;
  --blue: #2c6cb0;
  --violet: #7255a0;
  --shadow: 0 10px 24px rgba(27, 36, 43, 0.08);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #fbfcfd 0, var(--bg) 280px),
    var(--bg);
}

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

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  transition: grid-template-columns 0.18s ease;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 72px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 18px 14px;
  background:
    radial-gradient(circle at 14% 8%, rgba(35, 211, 238, 0.1) 0, transparent 32%),
    linear-gradient(180deg, #121a1e 0%, #152125 38%, #1b282d 72%, #3a4147 100%);
  color: #f8fafb;
  border-right: 1px solid #0c1113;
  min-width: 0;
  overflow: hidden;
}

.sidebar-toggle {
  position: absolute;
  top: 22px;
  right: 8px;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafb;
  font-size: 22px;
  line-height: 1;
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
}

.brand {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 72px;
  padding: 4px 28px 14px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand.brand-mark-only {
  grid-template-columns: 78px;
  justify-content: start;
  min-height: 92px;
  padding: 8px 42px 16px 4px;
}

.brand-logo {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.24));
}

.brand-logo-showcase {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow:
    0 14px 26px rgba(4, 12, 22, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.16);
}

.brand-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.brand-title {
  position: relative;
  display: inline-block;
  width: max-content;
  max-width: 100%;
  overflow: visible;
  font-family: "Arial Black", "Segoe UI Black", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-weight: 900;
  font-size: 29px;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  color: #f8fafc;
  background: linear-gradient(102deg, #ffffff 0%, #e0f7ff 26%, #38bdf8 53%, #22e6c8 78%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.22)) drop-shadow(0 8px 14px rgba(34, 211, 238, 0.22));
}

.brand-title::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 4px;
  bottom: -7px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb 0%, #22d3ee 48%, #2dd4bf 100%);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.42);
  opacity: 0.92;
}

.brand-subtitle {
  display: block;
  overflow: hidden;
  color: #f8fbfd;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  overflow-wrap: anywhere;
  white-space: nowrap;
}

.nav {
  display: grid;
  flex: 1 1 auto;
  align-content: start;
  gap: 4px;
  margin-top: 12px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.sidebar-footer {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 16px;
}

.sidebar-identity-preview {
  display: grid;
  gap: 5px;
  flex: 0 0 auto;
  margin-top: 12px;
  padding: 9px;
  border: 1px solid rgba(218, 236, 244, 0.28);
  border-radius: 8px;
  background: rgba(14, 23, 28, 0.56);
  color: #ecf6fa;
  font-size: 11px;
  font-weight: 720;
  box-shadow: 0 8px 18px rgba(7, 12, 14, 0.16);
}

.sidebar-identity-preview select {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0 7px;
  border: 1px solid rgba(218, 236, 244, 0.34);
  border-radius: 6px;
  outline: 0;
  background: rgba(10, 18, 22, 0.74);
  color: #ffffff;
  font-size: 11px;
  font-weight: 760;
}

.sidebar-scroll-controls {
  display: grid;
  grid-template-columns: repeat(2, 34px);
  justify-content: end;
  gap: 6px;
  width: 100%;
}

.sidebar-settings-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(226, 244, 249, 0.34);
  border-radius: 50%;
  background: rgba(12, 22, 27, 0.62);
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(7, 12, 14, 0.18);
}

.sidebar-settings-button:hover,
.sidebar-settings-button:focus-visible,
.sidebar-settings-button.active {
  border-color: rgba(167, 243, 239, 0.72);
  outline: 0;
  background: rgba(8, 127, 140, 0.48);
  color: #d8fffc;
}

.sidebar-scroll-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(226, 244, 249, 0.34);
  border-radius: 8px;
  background: rgba(12, 22, 27, 0.62);
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(7, 12, 14, 0.18);
}

.sidebar-scroll-button:hover,
.sidebar-scroll-button:focus-visible {
  border-color: rgba(167, 243, 239, 0.7);
  outline: 0;
  background: rgba(8, 127, 140, 0.45);
  color: #d8fffc;
}

.nav-button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 38px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #dce5ea;
  background: transparent;
  font-size: 15px;
  text-align: left;
}

.nav-entry {
  min-width: 0;
}

.nav-label {
  font-weight: 780;
}

.nav-parent {
  display: block;
}

.nav-entry.has-submenu .nav-parent {
  display: block;
}

.nav-entry.has-submenu .nav-button {
  grid-template-columns: 26px minmax(0, 1fr) auto auto;
  border-radius: 8px;
}

.nav-chevron {
  display: inline-grid;
  place-items: center;
  color: inherit;
  font-size: 19px;
  font-weight: 760;
  line-height: 1;
}

.nav-chevron {
  width: 30px;
  height: 26px;
  color: rgba(220, 229, 234, 0.68);
}

.nav-arrow {
  display: inline-block;
  transform-origin: 50% 50%;
}

.nav-arrow-right {
  transform: rotate(0deg);
}

.nav-arrow-down {
  transform: rotate(90deg);
}

.nav-arrow-up {
  transform: rotate(-90deg);
}

.nav-button.active .nav-chevron {
  color: #60707a;
}

/* Expanded active menus use one shared card so the arrow area cannot split on hover. */
.nav-entry.active.has-submenu .nav-parent {
  border-radius: 8px;
  background: #f7fbfc;
  box-shadow: inset 0 0 0 1px #f7fbfc;
}

.nav-entry.active.has-submenu .nav-button,
.nav-entry.active.has-submenu:hover .nav-button {
  border-color: transparent;
  background: transparent;
}

.nav-button:focus-visible,
.nav-submenu-button:focus-visible {
  outline: 2px solid rgba(167, 243, 239, 0.88);
  outline-offset: -2px;
}

.nav-submenu {
  display: grid;
  gap: 2px;
  margin: 2px 0 3px 41px;
  padding: 0;
}

.nav-submenu-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 28px;
  padding: 3px 8px 3px 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #c7d4da;
  font-size: 15px;
  font-weight: 560;
  text-align: left;
}

.nav-submenu-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-submenu-button.active {
  border-color: transparent;
  background: transparent;
  color: #ffffff;
  font-weight: 780;
}

.nav-submenu-button.active:hover {
  background: transparent;
}

.nav-submenu-count {
  color: inherit;
  opacity: 0.68;
  font-size: 11px;
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-button.active {
  background: #f7fbfc;
  color: #132025;
  border-color: #f7fbfc;
}

.sidebar-external-link {
  text-decoration: none;
}

.sidebar-external-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-external-link .nav-icon {
  background: rgba(8, 127, 140, 0.2);
  color: #a7f3ef;
}

.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 750;
}

.nav-button.active .nav-icon {
  background: #d7f0ef;
  color: var(--teal);
}

.nav-count {
  color: inherit;
  opacity: 0.64;
  font-size: 12px;
}

.sidebar-collapsed .sidebar {
  padding: 16px 10px;
}

.sidebar-collapsed .sidebar-toggle {
  top: 18px;
  right: 16px;
}

.sidebar-collapsed .brand {
  justify-items: center;
  grid-template-columns: 1fr;
  min-height: 76px;
  padding: 44px 0 12px;
}

.sidebar-collapsed .brand.brand-mark-only {
  min-height: 76px;
  padding: 44px 0 12px;
}

.sidebar-collapsed .brand-logo {
  width: 34px;
  height: 34px;
}

.sidebar-collapsed .brand-logo-showcase {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.sidebar-collapsed .brand-title,
.sidebar-collapsed .brand-subtitle,
.sidebar-collapsed .brand-copy,
.sidebar-collapsed .nav-label,
.sidebar-collapsed .nav-count,
.sidebar-collapsed .nav-chevron,
.sidebar-collapsed .nav-submenu {
  display: none;
}

.sidebar-collapsed .nav-parent {
  display: block;
}

.sidebar-collapsed .nav {
  justify-items: center;
  gap: 8px;
}

.sidebar-collapsed .nav-entry {
  width: 40px;
}

.sidebar-collapsed .nav-button {
  grid-template-columns: 1fr;
  justify-items: center;
  width: 40px;
  min-height: 40px;
  height: 40px;
  padding: 0;
  border-radius: 8px;
}

.sidebar-collapsed .nav-entry.has-submenu .nav-button,
.sidebar-collapsed .nav-button.active {
  grid-template-columns: 1fr;
  border-radius: 8px;
}

.sidebar-collapsed .sidebar-identity-preview {
  display: none;
}

.sidebar-collapsed .sidebar-footer {
  grid-template-columns: 1fr;
  justify-items: center;
}

.sidebar-collapsed .sidebar-scroll-controls {
  grid-template-columns: repeat(2, 24px);
  justify-content: center;
  gap: 4px;
}

.sidebar-collapsed .sidebar-scroll-button {
  width: 24px;
  height: 32px;
  font-size: 18px;
}

.main {
  min-width: 0;
  padding: 18px 22px 28px;
}

.main.product-wide-main {
  --product-table-min-width: 1840px;
  width: 100%;
  min-width: 0;
  overflow-x: visible;
}

.main.product-wide-main.reviews-wide-main {
  --product-table-min-width: 1920px;
}

.main.product-wide-main > .topbar,
.main.product-wide-main > #view-root,
.main.product-wide-main > #view-root > .metrics,
.main.product-wide-main > #view-root > .workspace-full,
.main.product-wide-main .product-panel,
.main.product-wide-main .seller-list.product-list {
  width: max(100%, var(--product-table-min-width));
  min-width: max(100%, var(--product-table-min-width));
}

.main.product-wide-main > #view-root,
.main.product-wide-main > #view-root > .workspace-full,
.main.product-wide-main .product-panel,
.main.product-wide-main .seller-list.product-list {
  max-width: max(100%, var(--product-table-min-width));
}

.topbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(226px, 248px) repeat(4, auto);
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  min-width: 0;
}

.search {
  position: relative;
  min-width: 0;
  width: 100%;
  max-width: none;
}

.search input {
  width: 100%;
  min-height: 42px;
  padding: 0 42px 0 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.search input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 127, 140, 0.12);
}

.search-mark {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 15px;
}

.exchange-widget {
  display: grid;
  gap: 2px;
  min-width: 226px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.exchange-row {
  display: grid;
  grid-template-columns: 76px minmax(96px, 1fr) 28px;
  gap: 5px;
  align-items: center;
}

.exchange-input,
.exchange-direction,
.exchange-refresh {
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
}

.exchange-input {
  min-width: 0;
  padding: 0 7px;
  font-weight: 700;
}

.exchange-direction {
  min-width: 0;
  padding: 0 4px;
  font-size: 12px;
}

.exchange-refresh {
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--teal);
  font-weight: 800;
}

.exchange-refresh:hover {
  border-color: var(--teal);
  background: #eefafa;
}

.exchange-input:focus,
.exchange-direction:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(8, 127, 140, 0.1);
}

.exchange-result {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}

.exchange-result strong {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.select,
.toggle,
.segmented {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.history-controls {
  display: inline-grid;
  grid-template-columns: repeat(2, 34px);
  gap: 6px;
}

.history-button {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: #40505d;
  font-size: 20px;
  line-height: 1;
}

.history-button:hover:not(:disabled) {
  border-color: var(--teal);
  background: #eefafa;
  color: var(--teal);
}

.history-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.select {
  min-width: 132px;
  padding: 0 12px;
  color: var(--ink);
}

.owner-select {
  min-width: 148px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  color: var(--ink);
  white-space: nowrap;
}

.toggle input {
  accent-color: var(--teal);
}

.segmented {
  display: inline-flex;
  overflow: hidden;
  padding: 3px;
}

.segment {
  min-width: 56px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 7px 10px;
}

.segment.active {
  background: var(--teal);
  color: #ffffff;
}

.toolbar-button,
.icon-button {
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  min-width: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.toolbar-button {
  grid-auto-flow: column;
  gap: 8px;
  padding: 0 12px;
}

.workbook-import-input {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.workbook-import-button {
  border-color: #7bc8a4;
  color: #11784e;
}

.workbook-import-button:hover:not(:disabled) {
  border-color: #38a875;
  background: #effaf4;
}

.workbook-import-button:disabled {
  cursor: wait;
  color: #6b7b74;
  background: #f1f5f3;
}

.workbook-import-backdrop {
  z-index: 90;
}

.workbook-import-dialog {
  width: min(560px, 94vw);
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(18, 34, 48, 0.28);
}

.workbook-import-dialog-body {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.workbook-import-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.workbook-import-progress-head strong {
  font-size: 17px;
}

.workbook-import-progress-head span {
  color: var(--teal);
  font-size: 18px;
  font-weight: 800;
}

.workbook-import-progress {
  height: 12px;
}

.workbook-import-progress > span {
  background: #118b91;
  transition: width 180ms ease;
}

.workbook-import-dialog-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.workbook-import-warnings {
  max-height: 150px;
  overflow: auto;
  padding: 12px;
  border: 1px solid #efd38b;
  border-radius: 6px;
  background: #fff9e8;
}

.workbook-import-warnings ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.workbook-import-keep-open {
  margin-right: auto;
  color: var(--muted);
  font-size: 13px;
}

.product-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #f7fafc;
}

.product-auto-load-status {
  color: #0f7f8c;
  font-weight: 700;
}

.product-load-more.loading .product-auto-load-status::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 7px;
  border: 2px solid #9fd4d9;
  border-top-color: #0f7f8c;
  border-radius: 50%;
  vertical-align: -2px;
  animation: product-auto-load-spin 0.7s linear infinite;
}

@keyframes product-auto-load-spin {
  to { transform: rotate(360deg); }
}

.icon-button:hover,
.toolbar-button:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(142px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  min-width: 0;
}

.dashboard-metrics {
  grid-template-columns: repeat(7, minmax(142px, 1fr));
}

.metric {
  position: relative;
  min-height: 94px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.metric-label {
  color: var(--muted);
  font-size: 12px;
}

.metric-value {
  font-size: 26px;
  line-height: 1;
  font-weight: 760;
}

.metric-value-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  min-height: 28px;
  margin-top: 8px;
  gap: 8px;
}

.metric-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.metric.metric-pending {
  border-color: #fecaca;
  background: #fff5f5;
}

.metric.metric-pending.metric-pending-blue {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.metric.metric-pending.metric-pending-yellow {
  border-color: #fde68a;
  background: #fffbeb;
}

.metric-pending-value {
  color: #991b1b;
  font-size: 28px;
  font-weight: 860;
  line-height: 1;
  white-space: nowrap;
}

.metric-pending-blue .metric-pending-value {
  color: #1d4ed8;
}

.metric-pending-yellow .metric-pending-value {
  color: #c2410c;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
  align-items: start;
  min-width: 0;
}

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

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  min-width: 0;
}

.product-panel {
  overflow: visible;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.panel-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  margin-left: auto;
}

.coupang-inventory-sync-status {
  max-width: min(520px, 34vw);
  overflow: hidden;
  color: #60727d;
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-presence {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
  color: #5f7781;
  font-size: 11px;
  white-space: nowrap;
}

.table-presence[hidden] {
  display: none;
}

.table-presence-viewers {
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.table-presence-viewer {
  max-width: 96px;
  overflow: hidden;
  padding: 3px 7px;
  border: 1px solid #b9e3cb;
  border-radius: 999px;
  background: #effbf3;
  color: #147941;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
}

.cell-presence-editing {
  position: relative;
  border-color: #e34242 !important;
  box-shadow: inset 0 0 0 1px #e34242 !important;
}

.cell-presence-layer {
  position: fixed;
  z-index: 1400;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.cell-presence-badge {
  position: fixed;
  display: block;
  max-width: 140px;
  min-height: 17px;
  overflow: hidden;
  padding: 1px 5px;
  border-radius: 1px;
  background: #d83b3b;
  box-shadow: 0 1px 2px rgba(78, 14, 14, 0.22);
  color: #fff;
  font-size: 11px;
  font-weight: 760;
  line-height: 15px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-title {
  margin: 0;
  font-size: 15px;
  font-weight: 760;
}

.panel-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.panel-title-group.with-rule-button {
  padding-left: 0;
}

.panel-title-copy {
  min-width: 0;
}

.panel-title-tools {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.sku-filter-control {
  position: relative;
  display: inline-grid;
}

.table-rule-button,
.table-sku-filter-button,
.table-coupang-sync-button {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #bfcbd7;
  border-radius: 8px;
  background: #ffffff;
  color: #23313d;
  font-size: 17px;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(23, 36, 48, 0.05);
}

.table-rule-button:hover,
.table-rule-button:focus-visible,
.table-sku-filter-button:hover,
.table-sku-filter-button:focus-visible,
.table-sku-filter-button.active,
.table-coupang-sync-button:hover,
.table-coupang-sync-button:focus-visible {
  border-color: #7fb5d9;
  background: #eef7ff;
  color: #155f98;
  outline: none;
}

.table-coupang-sync-button {
  font-size: 22px;
  font-weight: 700;
}

.table-coupang-sync-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.coupang-sync-glyph {
  display: inline-block;
  line-height: 1;
}

.table-coupang-sync-button.is-syncing .coupang-sync-glyph {
  animation: coupang-sync-spin 0.8s linear infinite;
}

@keyframes coupang-sync-spin {
  to {
    transform: rotate(360deg);
  }
}

.table-sku-filter-button {
  position: relative;
  grid-template-columns: 1fr;
  font-size: 13px;
  font-weight: 820;
}

.filter-glyph {
  position: relative;
  width: 15px;
  height: 15px;
}

.filter-glyph::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 2px;
  width: 13px;
  height: 8px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 62% 100%, 38% 100%);
}

.filter-glyph::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 9px;
  width: 3px;
  height: 4px;
  border-radius: 0 0 1px 1px;
  background: currentColor;
}

.table-sku-filter-status {
  position: absolute;
  right: -5px;
  bottom: -5px;
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 1px solid #ffffff;
  border-radius: 999px;
  background: #087f8c;
  color: #ffffff;
  font-size: 10px;
  line-height: 1;
}

.table-sku-filter-status.sku-filter-status-y {
  border-color: #ffffff;
  background: #16a34a;
  color: #ffffff;
}

.table-sku-filter-status.sku-filter-status-c {
  border-color: #ffffff;
  background: #f59e0b;
  color: #111827;
}

.table-sku-filter-status.sku-filter-status-n {
  border-color: #ffffff;
  background: #dc2626;
  color: #ffffff;
}

.sku-filter-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 160;
  display: grid;
  grid-template-columns: repeat(4, 34px);
  gap: 5px;
  padding: 7px;
  border: 1px solid #cbd5df;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
}

.sku-filter-menu-item {
  display: inline-grid;
  place-items: center;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 780;
}

.sku-filter-menu-item:hover,
.sku-filter-menu-item:focus-visible,
.sku-filter-menu-item.active {
  border-color: #7fb5d9;
  background: #eef7ff;
  color: #155f98;
  outline: none;
}

.sku-filter-menu-item.sku-filter-y.active {
  border-color: #15803d;
  background: #16a34a;
  color: #ffffff;
}

.sku-filter-menu-item.sku-filter-c.active {
  border-color: #d97706;
  background: #f59e0b;
  color: #111827;
}

.sku-filter-menu-item.sku-filter-n.active {
  border-color: #b91c1c;
  background: #dc2626;
  color: #ffffff;
}

.panel-subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.tools-panel {
  overflow: hidden;
}

.tools-panel-header {
  min-height: 68px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbfc 100%);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  padding: 16px;
}

.tool-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 14px;
  border: 1px solid #d9e3ea;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(20, 33, 41, 0.03);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.tool-card:hover {
  transform: translateY(-1px);
  border-color: #8dd4d8;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(8, 127, 140, 0.12);
}

.tool-card-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #e2f5f4;
  color: #087f8c;
  font-size: 14px;
  font-weight: 820;
}

.tool-card-body {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.tool-card-title {
  overflow: hidden;
  color: #14232a;
  font-size: 15px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-card-desc {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.tool-card-open {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #edf7f8;
  color: #087f8c;
  font-weight: 800;
}

.tool-card-button {
  width: 100%;
  margin: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sales-status-panel {
  overflow: hidden;
}

.sales-status-header {
  min-height: 78px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbfc 100%);
}

.sales-status-header > div:first-child {
  display: grid;
  gap: 2px;
}

.sales-status-back {
  width: max-content;
  margin: 0 0 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #087f8c;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.sales-status-back:hover {
  color: #075f69;
  text-decoration: underline;
}

.sales-status-security-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 16px 0;
  padding: 11px 13px;
  border: 1px solid #cce8e7;
  border-radius: 8px;
  background: #effafa;
  color: #36565d;
  font-size: 12px;
  line-height: 1.55;
}

.sales-status-security-note strong {
  flex: 0 0 auto;
  color: #087f8c;
}

.sales-status-status {
  min-height: 38px;
  margin: 10px 16px 0;
  padding: 9px 12px;
  border: 1px solid #d9e3ea;
  border-radius: 7px;
  background: #f8fafb;
  color: #526871;
  font-size: 12px;
}

.sales-status-status.error {
  border-color: #efb7b7;
  background: #fff4f4;
  color: #a13333;
}

.sales-status-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 16px;
  padding: 16px;
}

.sales-status-id-section,
.sales-status-control-section {
  min-width: 0;
  padding: 15px;
  border: 1px solid #d9e3ea;
  border-radius: 9px;
  background: #fff;
}

.sales-status-control-section {
  display: grid;
  align-content: start;
  gap: 15px;
}

.sales-status-auto-match {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid #b8dce0;
  border-radius: 8px;
  background: #f2fbfc;
}

.sales-status-auto-match strong {
  color: #0b6872;
  font-size: 13px;
}

.sales-status-auto-match span {
  color: #58727a;
  font-size: 11px;
  line-height: 1.45;
}

.sales-status-field-heading,
.sales-status-results-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.sales-status-field-heading label,
.sales-status-field > span {
  color: #1c3038;
  font-size: 13px;
  font-weight: 800;
}

.sales-status-field > span b {
  color: #bf3434;
}

.sales-status-count {
  color: #527079;
  font-size: 12px;
  font-weight: 750;
}

.sales-status-count.invalid {
  color: #b13a3a;
}

.sales-status-textarea {
  width: 100%;
  border: 1px solid #ccd9e0;
  border-radius: 7px;
  background: #fff;
  color: #18272e;
  font: inherit;
  font-size: 13px;
  outline: none;
}

.sales-status-textarea {
  display: block;
  padding: 10px 11px;
  resize: vertical;
  line-height: 1.55;
}

.sales-status-textarea {
  min-height: 258px;
  margin-top: 9px;
  font-family: Consolas, "SFMono-Regular", monospace;
}

.sales-status-textarea:focus {
  border-color: #56b7bd;
  box-shadow: 0 0 0 3px rgba(8, 127, 140, 0.1);
}

.sales-status-id-tools {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.sales-status-id-tools span,
.sales-status-field small {
  color: #71838a;
  font-size: 11px;
  line-height: 1.45;
}

.sales-status-validation {
  min-height: 20px;
  margin-top: 6px;
  color: #71838a;
  font-size: 11px;
}

.sales-status-validation.error {
  color: #ae3636;
}

.sales-status-field {
  display: grid;
  gap: 7px;
}

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

.sales-status-action {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sales-status-action strong {
  font-size: 13px;
}

.sales-status-action span {
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 11px;
  opacity: 0.72;
}

.sales-status-action.resume {
  border-color: #9fd9c3;
  background: #edf9f3;
  color: #176b4e;
}

.sales-status-action.stop {
  border-color: #efb3b3;
  background: #fff1f1;
  color: #9c3030;
}

.sales-status-action:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(25, 57, 67, 0.1);
}

.sales-status-action:disabled {
  cursor: not-allowed;
  filter: grayscale(0.45);
  opacity: 0.52;
}

.sales-status-warning {
  padding: 10px 11px;
  border-left: 3px solid #d99b33;
  background: #fff9ed;
  color: #795c2b;
  font-size: 11px;
  line-height: 1.55;
}

.sales-status-progress {
  display: grid;
  gap: 7px;
  padding: 11px 12px;
  border: 1px solid #c7dce1;
  border-radius: 8px;
  background: #f8fbfc;
}

.sales-status-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #526d76;
  font-size: 12px;
}

.sales-status-progress strong {
  color: #087f8c;
}

.sales-status-progress.complete .progress > span {
  background: #21a05a;
}

.sales-status-results {
  margin: 0;
  border: 1px solid #d9e3ea;
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
}

.sales-status-results-header {
  min-height: 58px;
  padding: 10px 13px;
  border-bottom: 1px solid #e2e9ed;
  background: #f8fbfc;
}

.sales-status-results-header > div {
  display: grid;
  gap: 3px;
}

.sales-status-results-header strong {
  color: #20343c;
  font-size: 13px;
}

.sales-status-results-header span {
  color: #687d85;
  font-size: 11px;
}

.sales-status-result-table-wrap {
  max-height: 330px;
  overflow: auto;
}

.sales-status-result-table {
  min-width: 0;
}

.sales-status-result-head,
.sales-status-result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 8px 13px;
}

.sales-status-result-head {
  border-bottom: 1px solid #dce5ea;
  background: #f2f6f8;
  color: #657981;
  font-size: 11px;
  font-weight: 800;
}

.sales-status-result-row {
  border-bottom: 1px solid #edf1f3;
  color: #3b5058;
  font-size: 12px;
}

.sales-status-result-row:last-child {
  border-bottom: 0;
}

.sales-status-result-detail {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sales-status-result-detail strong {
  color: #2b424b;
  font-size: 12px;
}

.sales-status-result-detail span {
  overflow: hidden;
  color: #6c8088;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-status-result-badge {
  display: inline-flex;
  justify-content: center;
  width: 54px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eaf6ef;
  color: #21704f;
  font-size: 11px;
  font-weight: 800;
}

.sales-status-result-row.failed .sales-status-result-badge {
  background: #fff0f0;
  color: #a53535;
}

@media (max-width: 980px) {
  .sales-status-form-grid {
    grid-template-columns: 1fr;
  }

  .sales-status-textarea {
    min-height: 210px;
  }
}

@media (max-width: 620px) {
  .sales-status-header,
  .sales-status-security-note,
  .sales-status-field-heading,
  .sales-status-id-tools,
  .sales-status-results-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .sales-status-actions {
    grid-template-columns: 1fr;
  }
}

.api-management-panel {
  overflow: hidden;
}

.api-management-header {
  min-height: 72px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbfc 100%);
}

.api-management-autosave-indicator {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid #a8d7dc;
  border-radius: 999px;
  background: #eefafb;
  color: #087983;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.api-management-security-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 16px 0;
  padding: 10px 12px;
  border: 1px solid #b9dce0;
  border-radius: 8px;
  background: #eefafb;
  color: #35545a;
  font-size: 12px;
}

.api-management-security-note strong {
  color: #087983;
  white-space: nowrap;
}

.api-management-tabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-top: 14px;
  padding: 0 16px;
  border-bottom: 2px solid #2583ff;
}

.api-management-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #cbd8e3;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #eef3f7;
  color: #435565;
  cursor: pointer;
  font-weight: 760;
}

.api-management-tab span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ffffff;
  color: #617180;
  font-size: 11px;
}

.api-management-tab.active {
  border-color: #2583ff;
  background: #ffffff;
  color: #095f8d;
}

.api-management-status {
  min-height: 34px;
  padding: 9px 16px 7px;
  color: #647481;
  font-size: 12px;
}

.api-management-status.error {
  color: #bd312b;
}

.api-management-status.saving {
  color: #087983;
}

.api-management-section {
  padding: 0 16px 18px;
}

.api-management-section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.api-management-section-toolbar > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.api-management-section-toolbar span {
  color: var(--muted);
  font-size: 12px;
}

.api-management-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.api-management-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #cbd7e0;
  border-radius: 8px;
  background: #ffffff;
}

.api-management-table {
  width: 100%;
}

.api-management-table.coupang {
  min-width: 1520px;
}

.api-management-table.provider {
  min-width: 1040px;
}

.api-management-table-head,
.api-management-row {
  display: grid;
  align-items: start;
}

.api-management-table-head.coupang,
.api-management-row.coupang {
  grid-template-columns: 110px 160px 140px minmax(220px, 1.2fr) 180px minmax(240px, 1.3fr) 180px 150px 72px;
}

.api-management-table-head.provider,
.api-management-row.provider {
  grid-template-columns: 170px minmax(260px, 1.3fr) 220px minmax(220px, 1fr) 150px 72px;
}

.api-management-table-head {
  min-height: 42px;
  color: #4a5c6c;
  background: #edf4fb;
  font-size: 12px;
  font-weight: 780;
}

.api-management-table-head > span,
.api-management-row > div {
  min-width: 0;
  padding: 8px;
  border-left: 1px solid #d5dfe7;
}

.api-management-table-head > span:first-child,
.api-management-row > div:first-child {
  border-left: 0;
}

.api-management-table-head > span {
  display: grid;
  min-height: 42px;
  align-content: center;
}

.api-management-row {
  min-height: 60px;
  border-top: 1px solid #d7e0e7;
  background: #ffffff;
}

.api-management-row:nth-child(odd) {
  background: #fbfcfd;
}

.api-management-input {
  width: 100%;
  min-width: 0;
  height: 34px;
  border: 1px solid #c9d5df;
  border-radius: 6px;
  outline: 0;
  background: #ffffff;
  color: #17232c;
  padding: 0 9px;
  font-size: 12px;
}

.api-management-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(16, 137, 145, 0.12);
}

.api-management-input[readonly] {
  background: #f1f5f7;
  color: #536572;
}

.api-management-secret-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 6px;
}

.api-management-secret-toggle {
  min-width: 0;
  height: 34px;
  padding: 0 5px;
  border: 1px solid #8fc5cf;
  border-radius: 6px;
  background: #ffffff;
  color: #087983;
  cursor: pointer;
  font-size: 11px;
  font-weight: 760;
}

.api-management-secret-toggle:disabled {
  cursor: wait;
  opacity: 0.64;
}

.api-management-expiry-cell {
  display: grid;
  gap: 5px;
}

.api-expiry-status {
  justify-self: start;
  padding: 2px 7px;
  border-radius: 999px;
  background: #edf1f4;
  color: #62717d;
  font-size: 10px;
  line-height: 1.35;
}

.api-expiry-status.valid {
  background: #e3f7ea;
  color: #16713b;
}

.api-expiry-status.warning {
  background: #fff1cc;
  color: #9a6200;
}

.api-expiry-status.expired {
  background: #ffe4e2;
  color: #bd312b;
}

.api-management-row-actions {
  display: grid;
  place-items: start center;
}

.api-management-delete {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #efaaa6;
  border-radius: 6px;
  background: #fff5f4;
  color: #bd312b;
  cursor: pointer;
}

.api-management-empty,
.api-management-loading,
.api-management-error {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 180px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.api-management-loading,
.api-management-error {
  min-height: 320px;
}

.staff-settings-panel {
  overflow: hidden;
}

.staff-settings-header {
  min-height: 74px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbfc 100%);
}

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

.staff-permission-toolbar-selects {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.staff-readonly-badge {
  padding: 6px 10px;
  border: 1px solid #cbd7e0;
  border-radius: 999px;
  background: #f4f7f9;
  color: #61717e;
  font-size: 12px;
  font-weight: 740;
}

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

.staff-header-actions label,
.staff-inline-select {
  color: #536675;
  font-size: 12px;
  font-weight: 720;
}

.staff-header-actions .staff-input,
.staff-inline-select .staff-input {
  min-width: 190px;
}

.staff-security-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 16px 0;
  padding: 11px 12px;
  border: 1px solid #e3c878;
  border-radius: 8px;
  background: #fff8df;
  color: #665425;
  font-size: 12px;
  line-height: 1.5;
}

.staff-security-note strong {
  color: #8b6500;
  white-space: nowrap;
}

.staff-tabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-top: 14px;
  padding: 0 16px;
  border-bottom: 2px solid #2583ff;
}

.staff-tab {
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid #cbd8e3;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #eef3f7;
  color: #435565;
  font-weight: 760;
}

.staff-tab.active {
  border-color: #2583ff;
  background: #ffffff;
  color: #095f8d;
}

.staff-status {
  min-height: 34px;
  padding: 9px 16px 7px;
  color: #647481;
  font-size: 12px;
}

.staff-status.error {
  color: #bd312b;
}

.staff-settings-body {
  padding: 0 16px 18px;
}

.staff-section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.staff-section-toolbar > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.staff-section-toolbar span {
  color: var(--muted);
  font-size: 12px;
}

.staff-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #cbd7e0;
  border-radius: 8px;
  background: #ffffff;
}

.staff-employee-table {
  min-width: 1450px;
}

.staff-permission-table {
  min-width: 680px;
}

.staff-activity-table {
  min-width: 1080px;
}

.staff-table-head,
.staff-table-row {
  display: grid;
  align-items: center;
}

.staff-table-head.employee,
.staff-table-row.employee {
  grid-template-columns: 170px 160px 180px 200px 245px minmax(220px, 1fr) 190px;
}

.staff-table-head.permission,
.staff-table-row.permission {
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 280px);
}

.staff-table-head.activity,
.staff-table-row.activity {
  grid-template-columns: 180px 160px 130px 200px minmax(260px, 1fr) 90px;
}

.staff-table-head {
  min-height: 42px;
  background: #edf4fb;
  color: #4a5c6c;
  font-size: 12px;
  font-weight: 780;
}

.staff-table-row {
  min-height: 54px;
  border-top: 1px solid #d7e0e7;
  background: #ffffff;
  font-size: 12px;
}

.staff-table-row:nth-child(odd) {
  background: #fbfcfd;
}

.staff-table-head > span,
.staff-table-row > div,
.staff-table-row.activity > span,
.staff-table-row.activity > strong,
.staff-table-row.permission > strong,
.staff-table-row.permission > label,
.staff-table-row.permission > select {
  min-width: 0;
  padding: 8px 10px;
}

.staff-table-head > span + span,
.staff-table-row > div + div,
.staff-table-row.activity > * + *,
.staff-table-row.permission > * + * {
  border-left: 1px solid #d5dfe7;
}

.staff-input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 9px;
  border: 1px solid #c9d5df;
  border-radius: 6px;
  outline: 0;
  background: #ffffff;
  color: #17232c;
  font-size: 12px;
}

.staff-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(16, 137, 145, 0.12);
}

.staff-input[readonly],
.staff-input:disabled {
  background: #f1f5f7;
  color: #536572;
}

.staff-row-actions {
  display: grid;
  place-items: center;
}

.staff-delete-button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #efaaa6;
  border-radius: 6px;
  background: #fff5f4;
  color: #bd312b;
}

.staff-owner-badge,
.staff-activity-result {
  display: inline-grid;
  justify-self: start;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e3f7ea;
  color: #16713b;
  font-size: 11px;
  font-weight: 760;
}

.staff-security-details {
  display: grid;
  gap: 4px;
  color: #536675;
  line-height: 1.35;
}

.staff-security-meta {
  display: inline-block;
  margin-top: 6px;
  color: #60717f;
}

.staff-default-password {
  color: #9a6200;
  font-weight: 760;
}

.staff-system-permission-readonly {
  color: #536675;
  font-weight: 650;
}

.staff-table-row.permission label,
.staff-system-permission {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #405260;
  font-weight: 700;
}

.staff-table-row.permission > select {
  margin: 8px 10px;
  width: calc(100% - 20px);
}

.add-staff-account-dialog {
  width: min(520px, 94vw);
}

.staff-account-dialog-body {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.staff-account-dialog-body > :nth-last-child(-n + 2) {
  grid-column: 1 / -1;
}

.staff-account-dialog-note {
  padding: 10px;
  border: 1px solid #d5e0e7;
  border-radius: 7px;
  background: #f6f9fb;
  color: #61717d;
  font-size: 12px;
  line-height: 1.5;
}

.module-readonly-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #e3c878;
  border-radius: 8px;
  background: #fff8df;
  color: #665425;
  font-size: 12px;
}

.module-readonly-banner strong {
  color: #8b6500;
}

.module-readonly input:disabled,
.module-readonly textarea:disabled,
.module-readonly select:disabled,
.module-readonly button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.permission-denied-panel {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 260px;
  padding: 28px;
  color: #647481;
  text-align: center;
}

.permission-denied-panel strong {
  color: #bd312b;
  font-size: 18px;
}

.staff-table-row.permission input,
.staff-system-permission input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}

.staff-permission-system-title {
  padding: 10px;
  border-top: 1px solid #d7e0e7;
  background: #f7fafc;
  color: #334b5b;
  font-size: 12px;
  font-weight: 800;
}

.staff-system-permission {
  min-height: 42px;
  padding: 8px 10px;
  border-top: 1px solid #e1e8ee;
}

.staff-empty,
.staff-loading,
.staff-error {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 240px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow: auto;
}

.dashboard-workflow-table {
  width: 100%;
  min-width: 1440px;
  table-layout: fixed;
}

.dashboard-workflow-table .dashboard-product-column {
  width: 220px;
}

.dashboard-workflow-stage {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.dashboard-workflow-stage > div:first-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 6px;
}

.dashboard-workflow-stage strong {
  color: #38515c;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.dashboard-workflow-stage span,
.dashboard-workflow-stage small {
  color: #72838c;
  font-size: 11px;
}

.dashboard-workflow-substep {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #506773;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.25;
}

.dashboard-workflow-substep-light {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #aebdc7;
  box-shadow: 0 0 0 3px #edf2f5;
}

.dashboard-workflow-substep.is-complete .dashboard-workflow-substep-light {
  background: #21a05a;
  box-shadow: 0 0 0 3px #e4f7eb, 0 0 7px rgba(33, 160, 90, 0.42);
}

.dashboard-workflow-substep.is-in-progress .dashboard-workflow-substep-light {
  background: #e99a25;
  box-shadow: 0 0 0 3px #fff3dc;
}

.dashboard-workflow-substep.is-complete > span:last-child {
  color: #197844;
}

.dashboard-workflow-substep.is-in-progress > span:last-child {
  color: #a85b08;
}

.dashboard-workflow-stage small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-workflow-stage.is-complete .progress span {
  background: #21a05a;
}

.dashboard-workflow-stage.is-in-progress .progress span,
.dashboard-workflow-overall.is-in-progress .progress span {
  background: #e99a25;
}

button.dashboard-workflow-stage {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
}

.dashboard-workflow-stage.is-clickable {
  cursor: pointer;
}

.dashboard-workflow-stage.is-clickable:hover strong,
.dashboard-workflow-stage.is-clickable:focus-visible strong {
  color: #087f8c;
}

.dashboard-workflow-stage.is-clickable:hover .progress,
.dashboard-workflow-stage.is-clickable:focus-visible .progress {
  box-shadow: 0 0 0 3px rgba(8, 127, 140, 0.12);
}

.dashboard-workflow-stage.is-clickable:focus-visible {
  outline: 2px solid #54aeb5;
  outline-offset: 4px;
  border-radius: 5px;
}

.dashboard-workflow-lamp {
  display: grid;
  gap: 6px;
  min-width: 112px;
  padding-top: 2px;
}

.dashboard-workflow-lamp > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dashboard-workflow-light {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #aebdc7;
  box-shadow: 0 0 0 3px #edf2f5;
}

.dashboard-workflow-lamp.is-complete .dashboard-workflow-light {
  background: #21a05a;
  box-shadow: 0 0 0 3px #e4f7eb, 0 0 8px rgba(33, 160, 90, 0.52);
}

.dashboard-workflow-lamp strong {
  color: #38515c;
  font-size: 12px;
}

.dashboard-workflow-lamp-toggle,
.dashboard-workflow-action-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.dashboard-workflow-lamp-toggle:hover strong,
.dashboard-workflow-lamp-toggle:focus-visible strong,
.dashboard-workflow-action-toggle:hover strong,
.dashboard-workflow-action-toggle:focus-visible strong {
  color: #087f8c;
}

.dashboard-workflow-lamp-toggle:focus-visible,
.dashboard-workflow-action-toggle:focus-visible {
  outline: 2px solid #54aeb5;
  outline-offset: 3px;
  border-radius: 4px;
}

.dashboard-workflow-lamp select,
.dashboard-workflow-owner-row select {
  width: 100%;
  min-width: 0;
  height: 26px;
  padding: 2px 5px;
  border: 1px solid #cddbe2;
  border-radius: 5px;
  background: #ffffff;
  color: #38515c;
  font: inherit;
  font-size: 11px;
}

.dashboard-workflow-lamp select:focus,
.dashboard-workflow-owner-row select:focus {
  outline: none;
  border-color: #56b7bd;
  box-shadow: 0 0 0 2px rgba(8, 127, 140, 0.1);
}

.dashboard-workflow-lamp small {
  display: block;
  overflow: hidden;
  color: #72838c;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-workflow-meta {
  display: grid;
  gap: 1px;
  min-width: 0;
  margin-top: 2px;
  color: #72838c;
  font-size: 10px;
  line-height: 1.35;
}

.dashboard-workflow-meta span {
  display: block;
  overflow: hidden;
  color: inherit;
  font-size: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-workflow-owner-row .dashboard-workflow-meta {
  margin-top: 0;
}

/* 运营队列表格内将负责人、更新时间固定分两行展示，完整信息可换行。 */
.dashboard-workflow-stage-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  gap: 2px;
  margin-top: 3px;
  line-height: 1.5;
}

.dashboard-workflow-lamp > .dashboard-workflow-stage-meta {
  display: grid;
  align-items: stretch;
}

.dashboard-workflow-stage-meta span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

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

.product-master-table {
  min-width: 930px;
}

.product-master-table th,
.product-master-table td {
  padding-left: 10px;
  padding-right: 10px;
}

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

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f4f7f8;
  color: #4b5863;
  font-size: 12px;
  font-weight: 720;
}

td {
  font-size: 13px;
  color: var(--ink);
}

tr {
  transition: background 0.12s ease;
}

tbody tr:hover,
tbody tr.selected {
  background: #eef7f7;
}

.product-cell {
  display: grid;
  grid-template-columns: 58px 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

/* 运营队列：登品店铺紧邻在产品图片左侧，读取产品主档的店铺字段。 */
.dashboard-listing-store {
  min-height: 48px;
  padding: 5px 4px;
  border-color: var(--line);
  background: #fbfcfd;
}

.dashboard-product-head {
  display: grid;
  grid-template-columns: 58px 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.dashboard-listing-store-head,
.dashboard-product-heading {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.2;
}

.dashboard-listing-store-head {
  grid-column: 1;
  text-align: center;
}

.dashboard-product-heading {
  grid-column: 3;
  text-align: center;
}

.dashboard-product-thumb-heading {
  grid-column: 2;
}

.dashboard-listing-store.store-marker strong {
  font-size: 22px;
  font-weight: 820;
  line-height: 1;
}

.dashboard-product-code {
  display: flex;
  align-items: center;
  min-height: 48px;
  min-width: 0;
  color: #152b3a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thumb {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #f8fafb;
}

.thumb-lg {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: #f8fafb;
}

.fallback-thumb {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 760;
}

.truncate {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f8fafb;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.badge.green {
  border-color: #b7dfbf;
  background: #ecf8ee;
  color: var(--green);
}

.badge.amber {
  border-color: #ebd2a7;
  background: #fff7e8;
  color: var(--amber);
}

.badge.red {
  border-color: #efc4b3;
  background: #fff0ea;
  color: var(--red);
}

.badge.blue {
  border-color: #bed4ee;
  background: #edf5ff;
  color: var(--blue);
}

.progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ebf0;
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.seller-list {
  display: grid;
  overflow-x: auto;
  overflow-y: visible;
}

.product-panel .seller-list {
  overflow: visible;
}

.seller-head,
.seller-row {
  display: grid;
  grid-template-columns: 44px 28px minmax(380px, 1.75fr) minmax(94px, 0.5fr) minmax(104px, 0.55fr) minmax(116px, 0.55fr) minmax(128px, 0.65fr) minmax(92px, 0.45fr) minmax(148px, 0.6fr);
  gap: 12px;
  align-items: center;
  min-width: 1220px;
}

.product-list .seller-head,
.product-list .seller-row {
  grid-template-columns: 44px 28px minmax(470px, 1.6fr) minmax(180px, 250px) minmax(110px, 150px) minmax(110px, 150px) minmax(86px, 116px) minmax(78px, 104px) minmax(170px, 234px);
  width: 100%;
  min-width: var(--product-table-min-width);
}

.product-list {
  --product-thumb-size: clamp(64px, 3.4vw, 76px);
  --product-store-width: clamp(76px, 4vw, 92px);
  --product-rocket-col: clamp(20px, 1.4vw, 28px);
  --product-rocket-size: clamp(54px, 3.1vw, 68px);
  --listing-sku-info-min: 430px;
}

.seller-head {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: #f4f7f8;
  color: #5d6975;
  font-size: 12px;
  font-weight: 720;
  box-shadow: 0 1px 0 var(--line), 0 4px 10px rgba(18, 34, 48, 0.06);
}

.product-list .seller-head {
  top: 0;
  z-index: 60;
}

.product-list .seller-head:not(.product-freeze-head) {
  position: relative;
  top: auto;
  z-index: 2;
}

.product-freeze-head {
  position: fixed;
  top: 0;
  left: var(--freeze-left, 0);
  display: none;
  width: var(--freeze-width, 100vw) !important;
  min-width: 0;
  z-index: 120;
  border: 1px solid var(--line);
  border-top: 0;
  box-shadow: 0 8px 20px rgba(18, 34, 48, 0.16);
  pointer-events: none;
}

.product-freeze-head.visible {
  display: grid;
}

.product-freeze-head .frozen-head-icons {
  color: #5575ff;
}

.product-freeze-head .product-head-actions,
.product-freeze-head .head-action-button,
.product-freeze-head .history-controls,
.product-freeze-head .history-button {
  pointer-events: auto;
}

.product-list .seller-head > span,
.product-list .option-head > span {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.seller-head-title {
  grid-column: 3;
}

.product-head-title-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.product-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
}

.product-head-history {
  grid-template-columns: repeat(2, 28px);
  gap: 5px;
}

.product-head-history .history-button {
  min-width: 28px;
  min-height: 26px;
  border-radius: 6px;
  font-size: 16px;
}

.head-action-button {
  display: inline-grid;
  place-items: center;
  min-height: 26px;
  border: 1px solid #bdd4da;
  border-radius: 6px;
  background: #ffffff;
  color: #1d6570;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.head-action-button:hover:not(:disabled) {
  border-color: #108991;
  background: #eaf8f9;
}

.head-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.delete-product-button {
  color: #bb453b;
  border-color: #efc2bc;
}

.delete-product-button:hover:not(:disabled) {
  border-color: #d95043;
  background: #fff0ee;
}

.add-naver-button {
  border-color: #14a44d;
  background: #14a44d;
  color: #ffffff;
}

.add-naver-button:hover:not(:disabled) {
  border-color: #0f8f41;
  background: #0f8f41;
  color: #ffffff;
}

.sku-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: max-content;
}

.sku-head-actions .head-action-button {
  min-height: 22px;
  padding: 0 8px;
  font-size: 11px;
}

.delete-sku-button {
  color: #bb453b;
  border-color: #efc2bc;
}

.delete-sku-button:hover:not(:disabled) {
  border-color: #d95043;
  background: #fff0ee;
}

.product-list .seller-head > span:nth-child(4),
.product-list .seller-head > span:nth-child(6),
.product-list .seller-head > span:nth-child(9) {
  padding-left: 12px;
  border-left: 1px solid #c8d1d9;
}

.product-list.module-reviews .seller-head .review-comments-head {
  grid-column: 4;
}

.product-list.module-reviews .seller-head .review-count-head {
  grid-column: 5;
}

.product-list.module-reviews .seller-head .review-current-head {
  grid-column: 6;
}

.product-list.module-reviews .seller-head .review-total-head {
  grid-column: 7;
}

.product-list.module-reviews .seller-head .review-brushed-head {
  grid-column: 8;
}

.product-list.module-reviews .seller-head .review-returned-head {
  grid-column: 9;
}

.product-list.module-reviews .seller-head .review-deposit-head {
  grid-column: 10;
  padding-left: 12px;
  border-left: 1px solid #c8d1d9;
}

.product-list.module-reviews .seller-head .review-vat-head {
  grid-column: 11;
}

.product-list.module-reviews .seller-head .review-sales-fee-head {
  grid-column: 12;
}

.product-list.module-reviews .seller-head .review-total-fee-head {
  grid-column: 13;
}

.head-expand {
  width: 30px;
  height: 30px;
}

.head-expand-control {
  width: 44px;
}

.head-check input {
  margin: 0;
}

.seller-product {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.product-list .seller-product {
  border-bottom: 2px solid #c9d3dc;
}

@supports (content-visibility: auto) {
  .product-list > .seller-product {
    content-visibility: auto;
    contain-intrinsic-size: auto 260px;
  }

  .product-list > .seller-product.open {
    contain-intrinsic-size: auto 640px;
  }
}

.product-list .seller-product.open {
  border-bottom: 4px solid #8f9ca8;
  box-shadow: 0 2px 0 rgba(36, 49, 60, 0.08);
}

.seller-product.selected > .seller-row {
  background: #ffffff;
}

.sheet-product.selected > .seller-row {
  box-shadow: inset 3px 0 0 var(--teal);
}

.seller-row {
  position: relative;
  padding: 18px 16px;
  background: #ffffff;
}

.product-list > .seller-product > .seller-row {
  align-items: start;
}

.product-list > .seller-product > .seller-row > * {
  align-self: start;
}

.product-list > .seller-product > .seller-row > .seller-advice,
.product-list > .seller-product > .seller-row > .seller-promotion,
.product-list > .seller-product > .seller-row > .seller-extra-link,
.product-list > .seller-product > .seller-row > .seller-extra-small,
.product-list > .seller-product > .seller-row > .seller-ops-note {
  display: grid;
  align-self: stretch;
  align-content: start;
}

.product-list > .seller-product > .seller-row > .seller-ops-note {
  grid-column: 4 / -1;
  grid-row: 1;
  align-self: end;
  align-content: start;
  margin-top: 0;
  padding-left: 0;
  border-left: 0;
  z-index: 1;
}

.product-list .seller-product-info {
  grid-template-columns: var(--product-store-width) var(--product-thumb-size) minmax(0, 1fr);
  gap: 5px 14px;
  align-items: start;
}

.product-list .seller-product-actions {
  grid-column: 4 / -1;
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 250px) minmax(110px, 150px) minmax(110px, 150px) minmax(86px, 116px) minmax(78px, 104px) minmax(170px, 234px);
  gap: 8px 12px;
  align-self: start;
  min-width: 0;
  width: 100%;
  padding-left: 12px;
}

/* 产品主档将促销信息并入运营备注，余下五列等宽使用原有空间。 */
.product-list.module-products .seller-head,
.product-list.module-products .seller-row {
  grid-template-columns:
    44px
    28px
    minmax(470px, 1.6fr)
    minmax(260px, 1.3fr)
    minmax(220px, 1.05fr)
    minmax(220px, 1.05fr)
    minmax(100px, 0.45fr)
    minmax(96px, 0.45fr);
}

.product-list.module-products .seller-product-actions {
  grid-template-columns: minmax(260px, 1.3fr) minmax(220px, 1.05fr) minmax(220px, 1.05fr) minmax(100px, 0.45fr) minmax(96px, 0.45fr);
  grid-template-columns: subgrid;
  padding-left: 0;
}

.product-list.module-products .seller-product-actions > .seller-advice {
  padding-left: 12px;
}

.product-list.module-products .seller-product-actions > .seller-ops-note {
  padding-left: 12px;
}

.product-list.module-products .seller-head > span:last-child,
.product-list.module-products .seller-product-actions > .seller-promotion {
  display: none;
}

.product-list.module-reviews .seller-head,
.product-list.module-reviews .seller-row {
  grid-template-columns: 44px 28px minmax(470px, 1.15fr) minmax(330px, 1fr) minmax(82px, 100px) minmax(82px, 100px) minmax(82px, 100px) minmax(78px, 94px) minmax(78px, 94px) minmax(90px, 108px) minmax(90px, 108px) minmax(104px, 126px) minmax(104px, 126px);
}

.product-list.module-ads .seller-head,
.product-list.module-ads .seller-row {
  grid-template-columns: 44px 28px minmax(470px, 1fr) minmax(58px, 74px) minmax(58px, 74px) minmax(78px, 90px) minmax(78px, 90px) minmax(330px, 1fr);
}

.product-list.module-inventory .seller-head,
.product-list.module-inventory .seller-row {
  grid-template-columns: 44px 28px minmax(380px, 380px) minmax(180px, 250px) minmax(280px, 1fr) minmax(110px, 150px) minmax(86px, 116px) minmax(78px, 104px) minmax(170px, 234px);
}

.product-list.module-inventory .seller-product-actions {
  grid-template-columns: minmax(180px, 250px) minmax(280px, 1fr) minmax(110px, 150px) minmax(86px, 116px) minmax(78px, 104px) minmax(170px, 234px);
}

.product-list .seller-product-actions::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-left: 1px solid #c8d1d9;
}

.product-list .seller-product-actions > .seller-advice,
.product-list .seller-product-actions > .seller-promotion,
.product-list .seller-product-actions > .seller-extra-link,
.product-list .seller-product-actions > .seller-extra-small,
.product-list .seller-product-actions > .seller-listing-top,
.product-list .seller-product-actions > .seller-listing-line,
.product-list .seller-product-actions > .seller-ops-note,
.product-list .seller-product-actions > .review-comments-panel,
.product-list .seller-product-actions > .ads-traffic-tool-cell,
.product-list .seller-product-actions > .ads-library-cell,
.product-list .seller-product-actions > .ads-campaign-cell {
  display: grid;
  align-content: start;
  min-width: 0;
}

.product-list.module-reviews .seller-product-actions.review-product-actions {
  grid-template-columns: minmax(330px, 1fr) minmax(82px, 100px) minmax(82px, 100px) minmax(82px, 100px) minmax(78px, 94px) minmax(78px, 94px) minmax(90px, 108px) minmax(90px, 108px) minmax(104px, 126px) minmax(104px, 126px);
  align-items: start;
}

.product-list.module-ads .seller-product-actions.ads-product-actions {
  grid-template-columns: minmax(58px, 74px) minmax(58px, 74px) minmax(72px, 88px) minmax(72px, 88px) minmax(330px, 1fr);
  align-items: start;
}

.product-list.module-reviews .seller-head .review-count-head,
.product-list.module-reviews .seller-head .review-current-head,
.product-list.module-reviews .seller-head .review-total-head,
.product-list.module-reviews .seller-head .review-brushed-head,
.product-list.module-reviews .seller-head .review-returned-head,
.product-list.module-reviews .seller-head .review-deposit-head,
.product-list.module-reviews .seller-head .review-vat-head,
.product-list.module-reviews .seller-head .review-sales-fee-head,
.product-list.module-reviews .seller-head .review-total-fee-head {
  display: grid;
  place-items: center;
  text-align: center;
}

.product-list.module-ads .seller-head .ads-library-head,
.product-list.module-ads .seller-head .ads-current-review-head,
.product-list.module-ads .seller-head .ads-brush-total-head,
.product-list.module-ads .seller-head .ads-campaign-head {
  display: grid;
  place-items: center;
  text-align: center;
}

.product-list.module-reviews .review-product-actions > .review-extra-value {
  justify-items: center;
  align-content: start;
  text-align: center;
}

.product-list.module-reviews .review-product-actions > .review-financial-start {
  padding-left: 12px;
  border-left: 1px solid #c8d1d9;
}

.product-list.module-ads .ads-product-actions > .ads-review-value {
  justify-items: center;
  align-content: start;
  text-align: center;
}

.product-list.module-ads .ads-product-actions > .ads-library-cell {
  justify-items: center;
  align-content: start;
  text-align: center;
}

.product-list.module-ads .ads-product-actions > .ads-traffic-tool-cell {
  min-height: 1px;
}

.ads-head-title-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ads-head-left-actions {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
}

.ad-traffic-tool-link {
  min-height: 26px;
  padding: 0 10px;
  color: #087983;
  text-decoration: none;
  white-space: nowrap;
}

.ad-library-open-button {
  min-width: 48px;
  height: 26px;
  padding: 0 8px;
}

.ads-library-count {
  margin-top: 6px;
  color: #5f727d;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.2;
  white-space: nowrap;
}

.ad-campaign-name-input {
  width: 100%;
  min-width: 0;
  min-height: 28px;
}

.ad-campaign-grid {
  display: grid;
  grid-template-columns: minmax(88px, 0.72fr) minmax(78px, 0.76fr) minmax(88px, 0.92fr) minmax(88px, 0.82fr) minmax(108px, 1fr);
  gap: 4px;
  width: 100%;
  min-width: 0;
  align-items: start;
}

.ad-campaign-preview {
  min-height: 28px;
  margin-top: 6px;
  padding: 5px 10px;
  border: 1px solid #d5e0ea;
  border-radius: 6px;
  background: #f8fafc;
  color: #111827;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-campaign-preview-block {
  display: grid;
  justify-items: start;
  gap: 4px;
}

.ad-campaign-preview-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.ad-campaign-copy-button {
  min-width: 48px;
}

.ad-campaign-add-button {
  min-width: 48px;
  border-color: #f6c7bd;
  color: #b45309;
  background: #fff7ed;
}

.ad-campaign-add-button:hover:not(:disabled) {
  background: #ffedd5;
}

.ad-campaign-readonly {
  color: #1f2933;
  background: #f8fafc;
  cursor: default;
}

.ad-campaign-management {
  padding: 14px;
  display: grid;
  gap: 12px;
  background: #f8fafc;
}

.ad-campaign-record-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.ad-campaign-record-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.ad-campaign-record-group-title span:last-child {
  margin-left: auto;
  color: #64748b;
  font-size: 12px;
}

.ad-campaign-record-table {
  overflow-x: auto;
}

.ad-campaign-record-row {
  min-width: 1120px;
  display: grid;
  grid-template-columns: 52px minmax(320px, 2fr) 100px 100px 120px minmax(140px, 1fr) 120px 150px 130px;
  align-items: center;
  min-height: 44px;
}

.ad-campaign-record-row.header {
  min-height: 38px;
  background: #e8f2fc;
  color: #334155;
  font-weight: 700;
}

.ad-campaign-record-row + .ad-campaign-record-row {
  border-top: 1px solid var(--line);
}

.ad-campaign-record-cell {
  min-width: 0;
  padding: 8px 10px;
  border-left: 1px solid var(--line);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-campaign-record-cell:first-child {
  border-left: 0;
  text-align: center;
}

.ad-campaign-record-name {
  font-weight: 700;
  color: #111827;
}

.ad-campaign-record-actions {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.ad-campaign-delete-button {
  border: 1px solid #fecaca;
  color: #dc2626;
  background: #fff7f7;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ad-campaign-delete-button:hover {
  background: #fee2e2;
}

.ad-campaign-empty {
  padding: 28px;
  text-align: center;
  color: #64748b;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.product-list.module-reviews .review-extra-value .review-metric-stack {
  justify-items: center;
}

.product-list.module-reviews .review-product-actions > .review-shared-promo-slot {
  position: absolute;
  grid-column: 3 / 4;
  grid-row: 1;
  align-self: start;
  justify-items: center;
  align-content: start;
  min-height: 28px;
  top: 78px;
  left: 0;
  right: 0;
  margin-top: 0;
  z-index: 2;
}

.review-shared-open-link {
  display: inline-grid;
  justify-items: center;
  min-width: 0;
}

.review-shared-open-link .sku-listing-open-button {
  min-width: 64px;
}

.review-shared-promo-empty {
  display: grid;
  place-items: center;
  min-height: 24px;
  border: 1px dashed #c9d6df;
  border-radius: 6px;
  background: #fbfcfd;
  color: #8a98a6;
  font-size: 12px;
  font-weight: 720;
}

.review-comments-editor {
  display: grid;
  min-width: 0;
}

.review-comment-rows {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.review-comment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px 42px;
  gap: 4px;
  min-width: 0;
}

.review-comment-row .required-field-shell,
.review-metric-stack .required-field-shell,
.product-list.module-reviews .review-keyword-input + .required-field-note,
.product-list.module-reviews .review-keyword-input {
  min-width: 0;
}

.review-comment-row .required-field-note,
.review-metric-stack .required-field-note,
.product-list.module-reviews .review-keyword-input + .required-field-note {
  right: 4px;
  bottom: 2px;
  font-size: 12px;
}

.review-comment-input {
  width: 100%;
  min-width: 0;
  min-height: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 7px;
  font-size: 12px;
  font-weight: 650;
  outline: 0;
}

.review-comment-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(16, 137, 145, 0.1);
}

.review-comment-copy-button {
  min-height: 22px;
  padding: 0 6px;
  font-size: 11px;
}

.review-comment-view-button {
  min-height: 22px;
  height: 22px;
  padding: 0 8px;
  font-size: 11px;
}

.review-metric-value {
  min-height: 28px;
  display: grid;
  align-items: center;
  justify-items: center;
  text-align: center;
  color: var(--ink);
  font-size: 15px;
  font-weight: 880;
  line-height: 1;
  overflow-wrap: anywhere;
}

.review-purple-metric {
  justify-items: center;
  border: 1px solid #8b5cf6;
  border-radius: 6px;
  background: #f3e8ff;
  color: #4c1d95;
  padding: 0 8px;
}

.review-metric-stack {
  display: grid;
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.review-pending-metric {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 18px;
  color: #d92323;
  font-size: 12px;
  font-weight: 820;
  line-height: 1;
}

.review-pending-metric strong {
  justify-self: center;
  color: #d92323;
  font-size: 12px;
  font-weight: 900;
}

.review-exception-metric {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 18px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 820;
  line-height: 1;
}

.review-exception-metric strong {
  justify-self: center;
  color: inherit;
  font-size: 12px;
  font-weight: 900;
}

.review-exception-negative {
  color: #d97706;
}

.review-exception-positive {
  color: #065f46;
}

.review-metric-stack.complete .review-pending-metric,
.review-metric-stack.complete .review-pending-metric strong {
  color: var(--ink);
}

.review-metric-input.review-metric-input-complete {
  border-color: #22c55e;
  background: #dcfce7;
  color: #166534;
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.35);
}

.review-metric-input {
  width: 100%;
  min-width: 0;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 8px;
  font-size: 15px;
  font-weight: 880;
  line-height: 1;
  text-align: center;
  outline: 0;
}

.review-metric-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(16, 137, 145, 0.1);
}

.review-current-count-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.review-current-count-cell .review-metric-input {
  min-width: 0;
}

.review-count-refresh-button {
  height: 28px;
  min-width: 44px;
  border: 1px solid #8fd0d7;
  border-radius: 6px;
  background: #f2fbfc;
  color: #087f8c;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
}

.review-count-refresh-button:hover:not(:disabled) {
  background: #e2f7fa;
  border-color: #39aeb8;
}

.review-count-refresh-button:disabled {
  cursor: not-allowed;
  color: var(--muted);
  border-color: var(--line);
  background: #f7fafc;
}

.product-list .seller-product-actions > .seller-listing-line,
.product-list .seller-product-actions > .seller-ops-note {
  grid-column: 1 / -1;
}

.product-list .listing-product-row .seller-product-actions {
  align-self: stretch;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  align-content: start;
}

.product-list .listing-product-row .seller-advice,
.product-list .listing-product-row .seller-promotion,
.product-list .listing-product-row .seller-extra-link,
.product-list .listing-product-row .seller-extra-small {
  display: none;
}

.product-list .listing-product-row .seller-listing-line,
.product-list .listing-product-row .seller-ops-note {
  grid-column: 1 / -1;
}

.product-list .listing-product-row .seller-product-actions > .seller-ops-note {
  align-self: end;
}

.product-list .listing-product-row .seller-product-actions > .seller-ops-note .operation-note-input {
  min-height: 28px;
  height: 28px;
}

.listing-line-field {
  display: grid;
  grid-template-columns: 98px auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.listing-line-field > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.listing-line-field > input {
  grid-column: 3;
  grid-row: 1;
}

.listing-line-field > .required-field-shell {
  grid-column: 3;
  grid-row: 1;
}

.listing-line-field > .listing-export-line-value {
  grid-column: 3;
  grid-row: 1;
}

.listing-line-field > .listing-line-copy-button {
  grid-column: 2;
  grid-row: 1;
}

.listing-top-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.listing-top-field > span {
  display: none;
}

.listing-top-field select.operation-note-input {
  cursor: pointer;
}

.listing-readonly-value {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #d7e0e8;
  border-radius: 6px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listing-readonly-value.listing-export-value {
  justify-content: center;
  padding: 0 2px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.listing-export-line-value {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 28px;
  padding: 0 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listing-line-copy-button {
  display: inline-grid;
  place-items: center;
  height: 22px;
  border: 1px solid #9ecfd5;
  border-radius: 6px;
  background: #f4fbfc;
  color: #087983;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 720;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.listing-line-copy-button:hover:not(:disabled) {
  border-color: var(--teal);
  background: #e8f7f8;
}

.listing-line-copy-button.copied {
  border-color: #6fbd89;
  background: #e7f8ec;
  color: #1f8b45;
}

.listing-line-copy-button:disabled {
  border-color: #d7e0e8;
  background: #f8fafc;
  color: #a6b1bd;
  cursor: default;
}

.product-list.module-listing .seller-head > span:nth-child(4) {
  grid-column: 4 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-left: 12px;
  font-size: 0;
  min-width: 0;
  align-items: center;
  border-left: 1px solid #c8d1d9;
}

.product-list.module-listing .seller-head > span:nth-child(4) > span {
  display: block;
  color: #4d5b67;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.25;
  white-space: nowrap;
  overflow-wrap: normal;
}

.product-list.module-listing .seller-head > span:nth-child(4) > span:nth-child(n+2) {
  padding-left: 12px;
  border-left: 1px solid #c8d1d9;
}

.product-list.module-listing .seller-head > span:nth-child(n+5) {
  display: none;
}

.expand-button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #5575ff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.expand-button:hover {
  background: #eef3ff;
}

.expand-control {
  display: inline-grid;
  grid-template-columns: repeat(2, 20px);
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 44px;
}

.expand-control .expand-button,
.expand-control .head-expand {
  width: 20px;
  height: 30px;
  border-radius: 6px;
  font-size: 17px;
}

.expand-control .expand-all-skus {
  font-size: 13px;
}

.double-arrow-icon {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0;
  line-height: 0.62;
}

.double-arrow-icon span {
  display: block;
}

.expand-control .expand-button.active {
  background: #e8efff;
  color: #385cff;
}

.seller-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.seller-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

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

.seller-source-stack {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.store-marker {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0;
  min-width: 0;
  min-height: 54px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  text-align: center;
}

.store-marker.editable {
  grid-template-rows: 1fr;
}

.store-marker > span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}

.store-marker strong {
  width: 100%;
  overflow: hidden;
  color: #26323d;
  font-size: 22px;
  font-weight: 820;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.option-row .store-marker strong,
.sheet-sku-row .store-marker strong {
  display: block;
  width: auto;
  font-size: 22px;
}

.option-row > .store-marker,
.sheet-sku-row > .store-marker {
  display: flex;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  padding: 0;
  text-align: center;
}

.store-marker.editable {
  position: relative;
  border-color: var(--line);
  background: #ffffff;
}

.store-marker.editable.store-danger {
  border-color: #ff5a4f;
  background-color: #ffe2dd;
  box-shadow: inset 0 0 0 1px rgba(255, 90, 79, 0.24);
}

.store-marker.editable.store-danger input {
  color: #d91f16;
}

.store-marker input {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 22px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #26323d;
  font: inherit;
  font-size: 22px;
  font-weight: 820;
  line-height: 1;
  text-align: center;
}

.store-marker:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(16, 137, 145, 0.12);
}

.owner-marker {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
  text-align: center;
}

.owner-marker > span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}

.owner-marker strong {
  width: 100%;
  overflow: hidden;
  color: #26323d;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-marker.editable {
  background: #ffffff;
}

.owner-marker input,
.owner-marker select {
  width: 100%;
  min-width: 0;
  height: 18px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #26323d;
  font: inherit;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.1;
  text-align: center;
}

.owner-marker select {
  cursor: pointer;
  appearance: none;
  padding: 0 12px 0 3px;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    right 5px center,
    right 1px center;
  background-repeat: no-repeat;
  background-size: 4px 4px;
}

.owner-marker select:disabled {
  cursor: not-allowed;
  color: #94a3b8;
}

.owner-marker:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(16, 137, 145, 0.12);
}

.product-list > .seller-product > .seller-row > .owner-marker {
  position: absolute;
  left: 28px;
  top: calc(18px + var(--product-thumb-size) - 17px);
  width: 76px;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  z-index: 3;
}

.product-list > .seller-product > .seller-row > .owner-marker > span {
  height: 13px;
  line-height: 13px;
}

.product-list > .seller-product > .seller-row > .owner-marker input,
.product-list > .seller-product > .seller-row > .owner-marker select,
.product-list > .seller-product > .seller-row > .owner-marker strong {
  display: grid;
  place-items: center;
  width: 76px;
  height: 21px;
  min-height: 21px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #ffffff;
  font-size: 11px;
}

.product-list > .seller-product > .seller-row > .owner-marker strong {
  background: #fbfcfd;
}

.product-list > .seller-product > .seller-row > .owner-marker:focus-within {
  box-shadow: none;
}

.product-list > .seller-product > .seller-row > .owner-marker:focus-within input {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(16, 137, 145, 0.12);
}

.product-list > .seller-product > .seller-row > .owner-marker:focus-within select {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(16, 137, 145, 0.12);
}

.execute-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  width: 100%;
}

.product-execute-selector {
  grid-template-columns: repeat(3, 1fr);
}

.option-store-cell {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  width: 100%;
  min-height: 64px;
}

.option-store-cell .store-marker {
  width: 100%;
  min-height: auto;
  padding: 0;
}

.option-store-cell .execute-selector {
  width: 100%;
}

.product-list .option-store-cell .sku-execute-selector {
  margin-top: calc(var(--product-thumb-size) - 83px);
}

.execute-selector.readonly .execute-chip,
.sku-execute-selector.readonly .execute-chip {
  pointer-events: none;
  cursor: default;
}

.execute-chip {
  display: grid;
  place-items: center;
  min-height: 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #ffffff;
  color: #73808c;
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
}

.execute-chip.active.execute-y {
  border-color: #15803d;
  background: #16a34a;
  color: #ffffff;
}

.execute-chip.active.execute-c {
  border-color: #d97706;
  background: #f59e0b;
  color: #111827;
}

.execute-chip.active.execute-n {
  border-color: #b91c1c;
  background: #dc2626;
  color: #ffffff;
}

.product-execute-selector .execute-chip.active.execute-n {
  border-color: #b91c1c;
  background: #dc2626;
  color: #ffffff;
}

.readonly-product-row .seller-source-stack .store-marker {
  border-color: var(--line);
  background: #fbfcfd;
}

.readonly-product-row .seller-source-stack .store-marker.store-danger {
  border-color: #ff5a4f;
  background: #ffe2dd;
  box-shadow: inset 0 0 0 1px rgba(255, 90, 79, 0.16);
}

.readonly-product-row .seller-source-stack .store-marker.store-danger strong {
  color: #d91f16;
}

.readonly-product-row .readonly-cell,
.readonly-product-row .promotion-activity-input {
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.readonly-product-row .readonly-multiline {
  min-height: 0;
}

.readonly-product-row .product-extra-stack {
  gap: 2px;
}

.readonly-product-row .readonly-cell .muted {
  color: transparent;
}

.seller-thumb,
.option-thumb {
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 4px;
  object-fit: cover;
  background: #f8fafb;
}

.image-upload-slot {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  min-width: 64px;
}

.image-preview-box {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  cursor: zoom-in;
}

.image-upload-slot:hover .seller-thumb,
.image-upload-slot:hover .option-thumb {
  border-color: var(--teal);
}

.image-corner-button {
  position: absolute;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  background: rgba(55, 65, 75, 0.72);
  color: #ffffff;
  font-size: 12px;
  line-height: 0;
  box-shadow: 0 1px 4px rgba(18, 34, 48, 0.18);
}

.image-corner-button:hover {
  background: rgba(55, 65, 75, 0.9);
  color: #ffffff;
}

.pencil-icon {
  display: block;
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.image-edit-corner {
  left: 4px;
  bottom: 4px;
}

.product-list .image-upload-slot,
.product-list .image-preview-box,
.product-list .seller-thumb,
.product-list .option-thumb {
  width: var(--product-thumb-size);
  height: var(--product-thumb-size);
  min-width: var(--product-thumb-size);
}

.product-list .store-marker {
  min-height: calc(var(--product-thumb-size) - 6px);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(19, 31, 42, 0.36);
}

.dashboard-detail-backdrop {
  overflow-y: auto;
}

.dashboard-detail-dialog {
  width: min(820px, 100%);
  max-height: calc(100vh - 40px);
  margin: auto;
  overflow: auto;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(18, 34, 48, 0.22);
}

.dashboard-detail-dialog .detail {
  position: static;
  top: auto;
}

.dashboard-workflow-backdrop {
  overflow-y: auto;
}

.dashboard-workflow-dialog {
  width: min(610px, 94vw);
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.dashboard-workflow-dialog-body {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.dashboard-workflow-overall,
.dashboard-workflow-action {
  display: grid;
  gap: 8px;
}

.dashboard-workflow-overall {
  padding: 13px;
  border: 1px solid #bedfe2;
  border-radius: 8px;
  background: #f3fbfc;
}

.dashboard-workflow-overall > div:first-child,
.dashboard-workflow-action-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-workflow-overall strong,
.dashboard-workflow-action strong {
  color: #29434c;
  font-size: 13px;
}

.dashboard-workflow-overall span,
.dashboard-workflow-action-head span {
  color: #607882;
  font-size: 12px;
}

.dashboard-workflow-action-toggle strong {
  color: #29434c;
}

.dashboard-workflow-owner-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 10px;
}

.dashboard-workflow-owner-row small {
  min-width: 0;
}

.dashboard-workflow-overall small,
.dashboard-workflow-action small {
  color: #74858d;
  font-size: 11px;
}

.dashboard-workflow-overall.is-complete .progress span {
  background: #21a05a;
}

.dashboard-workflow-action-list {
  display: grid;
  gap: 10px;
}

.dashboard-workflow-action {
  padding: 12px 13px;
  border: 1px solid #d9e4e9;
  border-radius: 8px;
  background: #ffffff;
}

.dashboard-workflow-action.is-complete {
  border-color: #b8e3c7;
  background: #fbfffc;
}

.dashboard-workflow-action.is-complete .dashboard-workflow-light {
  background: #21a05a;
  box-shadow: 0 0 0 3px #e4f7eb, 0 0 8px rgba(33, 160, 90, 0.52);
}

.dashboard-workflow-empty {
  min-height: 110px;
}

.image-dialog {
  width: min(520px, 94vw);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(18, 34, 48, 0.22);
}

.image-preview-dialog {
  width: min(640px, 94vw);
}

body.image-preview-open {
  overflow: hidden;
}

#image-preview-root:empty,
#image-preview-root[hidden] {
  display: none;
}

.inbound-code-dialog {
  width: min(420px, 94vw);
}

.inbound-label-dialog {
  width: min(760px, 94vw);
}

.review-comments-dialog {
  width: min(760px, 94vw);
}

.rule-settings-dialog {
  width: min(900px, 94vw);
  max-height: calc(100vh - 44px);
  overflow: hidden;
}

.rule-settings-body {
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 170px);
  overflow: auto;
  padding: 16px;
  background: #f7f9fb;
}

.rule-settings-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 16px 0;
  border-top: 1px solid #e2e8ef;
  background: #ffffff;
}

.rule-settings-tab {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  border-radius: 6px 6px 0 0;
  background: transparent;
  color: #5a6b79;
  font-size: 13px;
  font-weight: 760;
}

.rule-settings-tab:hover {
  color: #127f87;
  background: #f4f9fa;
}

.rule-settings-tab.active {
  border-color: #d7e2e9;
  border-bottom-color: #0f8b95;
  background: #f7fbfc;
  color: #0c747b;
}

.import-reference-intro {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid #b9dce0;
  border-radius: 8px;
  background: #edf9fa;
}

.import-reference-intro strong {
  color: #126d74;
  font-size: 13px;
}

.import-reference-intro span,
.import-reference-sheet-head span {
  color: #526574;
  font-size: 12px;
  line-height: 1.55;
}

.import-reference-sheets {
  display: grid;
  gap: 12px;
}

.import-reference-sheet-head {
  display: grid;
  gap: 4px;
}

.import-reference-sheet h3 {
  color: #0b737b;
  font-size: 14px;
}

.import-reference-list .rule-list-item {
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
}

.rule-settings-section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d5dde6;
  border-radius: 8px;
  background: #ffffff;
}

.rule-settings-section h3 {
  margin: 0;
  color: #1f2d38;
  font-size: 13px;
  font-weight: 780;
}

.rule-parameter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.rule-parameter-card {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.rule-parameter-card span {
  color: #3f5364;
  font-size: 12px;
  font-weight: 720;
}

.rule-parameter-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  border: 1px solid #cdd7e1;
  border-radius: 6px;
  background: #f5f8fb;
  overflow: hidden;
}

.rule-parameter-card[data-rule-accent="red"] .rule-parameter-input-row {
  border-color: #ef4444;
  background: #fff1f2;
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.12);
}

.rule-parameter-card[data-rule-accent="blue"] .rule-parameter-input-row {
  border-color: #0ea5e9;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.12);
}

.rule-parameter-card[data-rule-accent="yellow"] .rule-parameter-input-row {
  border-color: #eab308;
  background: #fefce8;
  box-shadow: inset 0 0 0 1px rgba(234, 179, 8, 0.16);
}

.rule-parameter-card input {
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #17242f;
  font-size: 13px;
  font-weight: 760;
  outline: 0;
}

.rule-parameter-input-row:focus-within {
  border-color: #0f8b95;
  box-shadow: 0 0 0 2px rgba(16, 137, 145, 0.12);
}

.rule-parameter-card input.is-invalid {
  color: #b91c1c;
  background: #fee2e2;
}

.rule-parameter-input-row strong {
  display: grid;
  align-items: center;
  align-self: stretch;
  padding: 0 10px;
  border-left: 1px solid #d8e1ea;
  background: #edf2f7;
  color: #506272;
  font-size: 12px;
  font-weight: 780;
}

.rule-parameter-card[data-rule-accent="red"] .rule-parameter-input-row strong {
  border-left-color: rgba(239, 68, 68, 0.3);
  background: #ffe4e6;
  color: #7f1d1d;
}

.rule-parameter-card[data-rule-accent="blue"] .rule-parameter-input-row strong {
  border-left-color: rgba(14, 165, 233, 0.32);
  background: #dbeafe;
  color: #075985;
}

.rule-parameter-card[data-rule-accent="yellow"] .rule-parameter-input-row strong {
  border-left-color: rgba(234, 179, 8, 0.36);
  background: #fef3c7;
  color: #713f12;
}

.rule-parameter-card em {
  color: #72808d;
  font-size: 11px;
  font-style: normal;
}

.coupang-snapshot-settings {
  gap: 12px;
  border-color: #b9dce0;
  background: #fbfefe;
}

.coupang-snapshot-settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.coupang-snapshot-settings-head > div {
  display: grid;
  gap: 4px;
}

.coupang-snapshot-settings-head span {
  color: #607483;
  font-size: 12px;
  line-height: 1.45;
}

.coupang-snapshot-settings-head > strong {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid #b7dce0;
  border-radius: 999px;
  background: #eaf8f9;
  color: #0b747c;
  font-size: 11px;
  font-weight: 780;
}

.coupang-snapshot-settings-status {
  padding: 8px 10px;
  border-radius: 6px;
  background: #eef4f7;
  color: #506574;
  font-size: 12px;
  line-height: 1.45;
}

.coupang-snapshot-settings-status.is-success {
  background: #ecfdf3;
  color: #166534;
}

.coupang-snapshot-settings-status.is-error {
  background: #fff1f2;
  color: #b91c1c;
}

.coupang-snapshot-settings input:disabled {
  cursor: wait;
  opacity: 0.7;
}

.listing-brand-settings {
  gap: 12px;
}

.listing-brand-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.listing-brand-add-row input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #cdd7e1;
  border-radius: 7px;
  background: #f8fafc;
  color: #17242f;
  font-size: 13px;
  font-weight: 720;
  outline: 0;
}

.listing-brand-add-row input:focus {
  border-color: #0f8b95;
  box-shadow: 0 0 0 2px rgba(16, 137, 145, 0.12);
}

.listing-brand-add-row input.is-invalid {
  border-color: #dc2626;
  background: #fff1f2;
}

.listing-brand-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.listing-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid #cfe0ea;
  border-radius: 999px;
  background: #f3f8fb;
  color: #263746;
  font-size: 12px;
  font-weight: 760;
}

.listing-brand-pill button {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: #dbe7ef;
  color: #475a68;
  line-height: 1;
  cursor: pointer;
}

.listing-brand-pill button:hover,
.listing-brand-pill button:focus-visible {
  background: #fee2e2;
  color: #b91c1c;
  outline: none;
}

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

.rule-list-item {
  display: grid;
  grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid #e0e7ee;
  border-radius: 6px;
  background: #fbfcfd;
}

.rule-list-item strong {
  color: #1c2b36;
  font-size: 12px;
  font-weight: 780;
}

.rule-list-item span {
  color: #405463;
  font-size: 12px;
  line-height: 1.55;
}

.rule-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.rule-chip-list span {
  padding: 5px 9px;
  border: 1px solid #d6e0ea;
  border-radius: 999px;
  background: #f3f7fb;
  color: #314453;
  font-size: 12px;
  font-weight: 680;
}

.add-product-dialog {
  width: min(420px, 94vw);
}

.add-product-dialog-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.add-product-count-label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
}

.add-product-count-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: #ffffff;
  color: var(--ink);
  font-size: 18px;
  font-weight: 780;
}

.add-product-count-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(16, 137, 145, 0.12);
}

.add-product-count-input.invalid {
  border-color: #d95043;
  box-shadow: 0 0 0 3px rgba(217, 80, 67, 0.1);
}

.add-product-dialog-help {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.add-product-dialog-error {
  min-height: 18px;
  color: #c73b32;
  font-size: 12px;
  font-weight: 720;
}

.image-dialog-head,
.image-dialog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.image-dialog-foot {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.inbound-label-foot {
  justify-content: space-between;
}

.inbound-label-left-actions,
.inbound-label-downloads {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.image-dialog-head h2 {
  margin: 0;
  font-size: 15px;
}

.image-dialog-head span {
  color: var(--muted);
  font-size: 12px;
}

.inbound-code-body {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.inbound-code-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.inbound-code-value {
  min-height: 46px;
  display: grid;
  align-items: center;
  border: 1px solid #b9d5dc;
  border-radius: 8px;
  background: #f5fbfc;
  color: #0f2d3a;
  padding: 10px 12px;
  font-size: 18px;
  font-weight: 820;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  user-select: all;
}

.inbound-code-value.empty {
  color: #8a98a6;
  font-size: 14px;
  font-weight: 700;
}

.inbound-label-preview-wrap {
  display: grid;
  place-items: center;
  padding: 18px;
  background: #f8fafb;
}

.inbound-label-preview {
  width: min(680px, 100%);
  aspect-ratio: 5 / 3;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(18, 34, 48, 0.12);
}

.inbound-label-thumb-button {
  display: inline-grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  max-width: 108px;
  height: 52px;
  padding: 3px;
  border: 1px solid #cbd7e2;
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
}

.inbound-label-thumb-button:hover {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(16, 137, 145, 0.1);
}

.inbound-label-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
  background: #ffffff;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font-size: 20px;
}

.image-dialog-body {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
}

.review-comments-dialog-body {
  padding: 14px;
}

.review-comments-dialog-textarea {
  width: 100%;
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  outline: 0;
}

.review-comments-dialog-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(16, 137, 145, 0.12);
}

.ad-library-dialog {
  width: min(1160px, 96vw);
}

.ad-library-fill-palette {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 0 18px 0 12px;
}

.ad-library-fill-button {
  width: 38px;
  height: 38px;
  box-sizing: border-box;
  border: 3px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.48);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, filter 0.12s ease;
}

.ad-library-fill-button.ad-library-fill-clear {
  display: inline-grid;
  place-items: center;
  border: 2px solid #cbd5e1;
  border-radius: 9px;
  background: linear-gradient(135deg, #ffffff, #f1f5f9);
  color: #64748b;
}

.ad-library-clear-fill-icon {
  width: 21px;
  height: 21px;
}

.ad-library-fill-button.ad-library-fill-clear:hover,
.ad-library-fill-button.ad-library-fill-clear:focus-visible {
  border-color: #168c98;
  background: #ecfeff;
  color: #087681;
  outline: none;
}

.ad-library-fill-button.fill-red {
  border-color: #e11d48;
  background: linear-gradient(145deg, #fecdd3 0%, #fb7185 100%);
}

.ad-library-fill-button.fill-yellow {
  border-color: #ca8a04;
  background: linear-gradient(145deg, #fde68a 0%, #facc15 100%);
}

.ad-library-fill-button.fill-green {
  border-color: #15803d;
  background: linear-gradient(145deg, #86efac 0%, #22c55e 52%, #16a34a 100%);
}

.ad-library-fill-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14);
  filter: saturate(1.08);
}

.ad-library-dialog-body {
  max-height: min(70vh, 640px);
  padding: 14px;
  overflow: auto;
  background: #f8fafb;
}

.ad-library-sheet {
  min-width: 900px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.ad-library-sheet-row {
  display: grid;
  grid-template-columns: 46px minmax(170px, 1.2fr) minmax(150px, 1fr) minmax(120px, 0.75fr) minmax(110px, 0.7fr) minmax(220px, 1.4fr);
  border-bottom: 1px solid #e2e8f0;
}

.ad-library-sheet-row:last-child {
  border-bottom: 0;
}

.ad-library-sheet-row > span {
  display: grid;
  align-items: center;
  min-height: 32px;
  padding: 0 8px;
  border-left: 1px solid #edf2f7;
  color: #334155;
  font-size: 12px;
  font-weight: 780;
}

.ad-library-sheet-row > span:first-child {
  justify-items: center;
  border-left: 0;
}

.ad-library-sheet-head {
  background: #e8f2fc;
}

.ad-library-sortable-head {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.ad-library-copy-head {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.ad-library-copy-terms-button {
  display: inline-grid;
  place-items: center;
  height: 22px;
  padding: 0 7px;
  border: 1px solid #b9d5df;
  border-radius: 5px;
  background: #ffffff;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.ad-library-copy-terms-button:hover,
.ad-library-copy-terms-button.copied {
  border-color: var(--teal);
  background: #eaf8f9;
}

.ad-library-sort-buttons {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.ad-library-sort-button {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid #b9d5df;
  border-radius: 4px;
  background: #ffffff;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.ad-library-sort-button:hover {
  border-color: var(--teal);
  background: #eaf8f9;
}

.ad-library-cell-input {
  min-width: 0;
  min-height: 32px;
  border: 0;
  border-left: 1px solid #edf2f7;
  background: #ffffff;
  color: var(--ink);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
  outline: 0;
}

.ad-library-cell-input:focus {
  background: #f3fbfc;
  box-shadow: inset 0 0 0 2px rgba(16, 137, 145, 0.18);
}

.ad-library-cell-input.selected {
  background: #e8f7ff;
  box-shadow: inset 0 0 0 2px #18a8f2;
}

.ad-library-cell-input.selected:focus {
  background: #e8f7ff;
  box-shadow: inset 0 0 0 2px #0891b2;
}

.ad-library-cell-input.fill-red {
  background: #ffe4e6;
}

.ad-library-cell-input.fill-yellow {
  background: #fef3c7;
}

.ad-library-cell-input.fill-green {
  background: #c7f5d6;
}

.ad-library-cell-input.selected.fill-red,
.ad-library-cell-input.selected.fill-red:focus {
  background: #ffe4e6;
}

.ad-library-cell-input.selected.fill-yellow,
.ad-library-cell-input.selected.fill-yellow:focus {
  background: #fef3c7;
}

.ad-library-cell-input.selected.fill-green,
.ad-library-cell-input.selected.fill-green:focus {
  background: #a7ebbd;
}

.ad-library-foot {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px 8px;
  background: #eef1f4;
}

.ad-library-root-tabs {
  display: grid;
  flex: 1 1 0;
  min-width: 0;
  grid-template-columns: repeat(8, minmax(88px, 1fr));
  align-items: end;
  gap: 4px;
}

.ad-library-root-field {
  display: grid;
  min-width: 0;
  gap: 0;
}

.ad-library-root-input {
  width: 100%;
  min-width: 0;
  height: 32px;
  box-sizing: border-box;
  border: 1px solid #b9c4ce;
  border-radius: 5px 5px 0 0;
  padding: 0 8px;
  background: #e8edf2;
  color: #344250;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.ad-library-root-input.active {
  border-color: #aebbc6;
  border-bottom-color: #0f8b95;
  background: #ffffff;
  box-shadow: inset 0 -3px 0 #0f8b95;
  color: #0a6973;
  font-weight: 720;
}

.ad-library-root-cn-input {
  height: 26px;
  border-width: 1px;
  border-top: 0;
  border-color: #b9c4ce;
  border-radius: 0 0 4px 4px;
  background: #ffffff;
  color: #64748b;
  font-size: 11px;
  font-weight: 550;
}

.ad-library-root-field.active .ad-library-root-cn-input {
  border-color: #aebbc6;
  border-top: 0;
  background: #f7fffd;
}

.ad-library-root-input:focus {
  outline: 0;
  position: relative;
  z-index: 1;
  border-color: #0f8b95;
  box-shadow: 0 0 0 2px rgba(15, 139, 149, 0.16);
}

.ad-library-root-input.active:focus {
  box-shadow: inset 0 -3px 0 #0f8b95, 0 0 0 2px rgba(15, 139, 149, 0.16);
}

.ad-library-root-cn-input:focus {
  box-shadow: 0 0 0 2px rgba(15, 139, 149, 0.14);
}

.ad-library-foot-actions .toolbar-button {
  min-height: 32px;
  border-radius: 4px;
  box-shadow: none;
}

.ad-library-root-tabs-placeholder {
  flex: 1 1 auto;
}

.ad-library-foot-actions {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

@media (max-width: 820px) {
  .ad-library-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .ad-library-root-tabs {
    grid-template-columns: repeat(4, minmax(88px, 1fr));
  }

  .ad-library-foot-actions {
    justify-content: flex-end;
  }
}

.image-dialog-preview {
  display: grid;
  place-items: center;
}

.image-capture-zone {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 150px;
  border: 1px dashed #b9c8d4;
  border-radius: 8px;
  background: #f8fafb;
  color: #40515f;
  outline: 0;
}

.image-capture-zone span {
  color: var(--muted);
  font-size: 12px;
}

.image-capture-notice {
  min-height: 18px;
  padding: 0 12px;
  color: #5d707a;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.image-capture-notice.active {
  color: #087983;
  font-weight: 760;
}

.image-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.image-capture-zone:focus-visible,
.image-capture-zone.drag-over {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(16, 137, 145, 0.12);
}

.image-preview-large {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 16px;
  background: #f8fafb;
}

.image-preview-large img {
  opacity: 0;
  max-width: 100%;
  max-height: 70vh;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: contain;
  background: #ffffff;
  transition: opacity 120ms ease;
}

.image-preview-large img.loaded {
  opacity: 1;
}

.image-preview-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  color: #667485;
  font-size: 13px;
}

.image-preview-loading.failed {
  color: #b42318;
}

.image-preview-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #d8e1e8;
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: image-preview-spin 700ms linear infinite;
}

@keyframes image-preview-spin {
  to {
    transform: rotate(360deg);
  }
}

.screen-crop-backdrop {
  z-index: 70;
}

.screen-crop-dialog {
  width: min(1180px, 96vw);
  max-height: 94vh;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(18, 34, 48, 0.24);
}

.screen-crop-body {
  display: grid;
  place-items: center;
  max-height: calc(94vh - 116px);
  padding: 14px;
  overflow: auto;
  background: #18212a;
}

.screen-crop-stage {
  position: relative;
  display: inline-block;
  cursor: crosshair;
  user-select: none;
}

.screen-crop-stage img {
  display: block;
  max-width: calc(96vw - 48px);
  max-height: calc(94vh - 150px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  object-fit: contain;
}

.screen-crop-selection {
  position: absolute;
  display: none;
  border: 2px solid #16c8d2;
  background: rgba(22, 200, 210, 0.18);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.36);
  pointer-events: none;
}

.seller-title-block {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.product-list .seller-product-info > .seller-title-block {
  display: grid;
  grid-column: 3;
  align-self: start;
  width: 100%;
  min-width: 0;
}

.product-list .seller-product-info > .seller-title-block > .seller-title,
.product-list .seller-product-info > .seller-title-block > .seller-subtitle,
.product-list .seller-product-info > .seller-title-block > .product-identity-editor,
.product-list .seller-product-info > .seller-title-block > .listing-meta-editor {
  grid-column: 1;
  min-width: 0;
}

.product-list .seller-product-info > .seller-title-block > .korean-name-input-wrap {
  grid-column: 1;
  position: relative;
  left: calc(-1 * (var(--product-thumb-size) + 14px));
  top: -2px;
  width: calc(100% + var(--product-thumb-size) + 14px);
  max-width: none;
  min-width: 0;
}

.seller-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 15px;
  line-height: 1.35;
}

.product-identity-editor {
  display: grid;
  gap: 6px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.product-identity-editor label,
.korean-name-input-wrap {
  display: grid;
  grid-template-columns: 56px minmax(76px, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.product-identity-editor label {
  width: 100%;
  max-width: 100%;
}

.product-identity-editor label.wide {
  width: 100%;
  max-width: 100%;
}

.product-identity-editor label.unified-product-code-field {
  grid-template-columns: 84px minmax(76px, 1fr);
}

.korean-name-input-wrap {
  justify-content: start;
  grid-template-columns: 56px minmax(90px, 1fr);
  width: 100%;
  max-width: 100%;
}

.korean-name-input-wrap.copyable-korean-title {
  grid-template-columns: 112px minmax(90px, 1fr);
}

.product-list .seller-title-block .korean-name-input-wrap {
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
}

.product-list .seller-title-block .korean-name-input-wrap > span {
  min-width: 0;
  text-align: left;
}

.product-list .seller-title-block .korean-name-input-wrap.copyable-korean-title {
  grid-template-columns: minmax(92px, max-content) minmax(0, 1fr);
}

.listing-meta-editor {
  display: grid;
  grid-template-columns: minmax(126px, 1fr) minmax(126px, 1fr);
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
  width: 100%;
}

.listing-meta-editor label,
.sku-meta-editor label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.listing-meta-editor input,
.sku-meta-editor input {
  width: 100%;
  min-width: 0;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background-color: #ffffff;
  color: var(--ink);
  padding: 0 8px;
  font-weight: 650;
  outline: 0;
}

.listing-meta-editor input:focus,
.sku-meta-editor input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(16, 137, 145, 0.12);
}

.sku-meta-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 100%;
}

.korean-title-copy-button {
  display: inline-grid;
  place-items: center;
  height: 24px;
  border: 1px solid #9ecfd5;
  border-radius: 6px;
  background: #f4fbfc;
  color: #087983;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 720;
  cursor: pointer;
  white-space: nowrap;
}

.korean-title-copy-button:hover:not(:disabled) {
  border-color: var(--teal);
  background: #e8f7f8;
}

.korean-title-copy-button.copied {
  border-color: #6fbd89;
  background: #e7f8ec;
  color: #1f8b45;
}

.korean-title-copy-button:disabled {
  border-color: #d7e0e8;
  background: #f8fafc;
  color: #a6b1bd;
  cursor: default;
}

.product-identity-editor span,
.korean-name-input-wrap span {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.korean-name-input-wrap .korean-title-label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.product-list .seller-title-block .korean-name-input-wrap.copyable-korean-title .korean-title-label {
  justify-content: flex-start;
  text-align: left;
}

.product-identity-editor input,
.korean-name-input-wrap input {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 7px;
  font-size: 12px;
  font-weight: 720;
  outline: 0;
}

.readonly-cell {
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  min-height: 22px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fbfcfd;
  color: var(--ink);
  padding: 0 7px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-identity-editor .readonly-cell,
.korean-name-input-wrap .readonly-cell {
  height: 26px;
}

.readonly-multiline {
  align-items: flex-start;
  min-height: 74px;
  padding: 6px 8px;
  overflow: hidden;
  white-space: pre-wrap;
}

.product-identity-editor label:first-child input {
  width: 100%;
}

.korean-name-input-wrap input {
  width: 100%;
}

.product-identity-editor input:focus,
.korean-name-input-wrap input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(16, 137, 145, 0.12);
}

.seller-subtitle,
.seller-meta,
.seller-stat span,
.seller-price span,
.seller-status span,
.seller-stock span {
  color: var(--muted);
  font-size: 12px;
}

.seller-stat,
.seller-price,
.seller-status,
.seller-stock {
  display: grid;
  gap: 5px;
}

.seller-method {
  font-weight: 720;
  color: #394550;
}

.status-selling {
  color: #d6381c;
}

.status-paused {
  color: var(--muted);
}

.seller-actions {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) 38px;
  align-items: center;
}

.sheet-summary-cell {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.sheet-summary-value {
  min-width: 0;
  font-weight: 720;
  color: #28333d;
}

.sheet-summary-value .truncate {
  max-width: 100%;
}

.sheet-summary-value .keyword-list {
  max-height: 56px;
  overflow: hidden;
}

.seller-action-button,
.seller-more-button {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
}

.seller-action-button {
  border-radius: 8px 0 0 8px;
  font-weight: 720;
}

.seller-more-button {
  border-left: 0;
  border-radius: 0 8px 8px 0;
  font-size: 20px;
}

.option-panel {
  min-width: var(--product-table-min-width);
  width: 100%;
  background: #f5f7f9;
  border-top: 1px solid var(--line);
  box-shadow: inset 0 1px 0 #edf1f4;
}

.option-group + .option-group {
  border-top: 1px solid var(--line);
}

.option-head,
.option-row {
  display: grid;
  grid-template-columns: 76px 82px minmax(250px, 340px) minmax(82px, 98px) minmax(108px, 128px) minmax(216px, 240px) minmax(68px, 82px) minmax(108px, 122px) minmax(108px, 122px) minmax(74px, 84px) minmax(112px, 132px) minmax(98px, 112px) minmax(90px, 104px);
  gap: 12px;
  align-items: start;
  width: 100%;
  min-width: var(--product-table-min-width);
}

.product-list .option-head,
.product-list .option-row {
  grid-template-columns: var(--product-rocket-col) var(--product-store-width) minmax(360px, 1fr) minmax(82px, 98px) minmax(108px, 128px) minmax(216px, 240px) minmax(68px, 82px) minmax(108px, 122px) minmax(108px, 122px) minmax(74px, 84px) minmax(112px, 132px) minmax(98px, 112px) minmax(90px, 104px);
  gap: 10px;
  width: 100%;
  min-width: var(--product-table-min-width);
}

.product-list .option-head {
  padding-left: 36px;
}

.product-list .option-row {
  padding: 14px 16px 8px 36px;
  --option-row-pad-left: 36px;
  --option-row-pad-top: 14px;
  --option-row-pad-bottom: 8px;
  --option-row-gap: 10px;
}

.option-head {
  padding: 10px 16px 10px 136px;
  color: #4d5b67;
  font-size: 12px;
  font-weight: 720;
  border-bottom: 1px solid var(--line);
  background: #eef2f5;
}

.option-head-self {
  background: #eaf4ff;
}

.option-head-rocket {
  background: #fff2df;
}

.option-head span:first-child {
  font-weight: 760;
}

.option-head span:nth-child(2) {
  text-align: center;
}

.option-row {
  position: relative;
  isolation: isolate;
  padding: 18px 16px 18px 136px;
  border-bottom: 1px solid var(--line);
  --option-row-pad-left: 136px;
  --option-row-pad-top: 18px;
  --option-row-pad-bottom: 18px;
  --option-row-gap: 12px;
  background: #eef2f5;
}

.option-row > * {
  position: relative;
  z-index: 1;
}

.product-list .option-head > span:nth-child(n+4),
.product-list .option-row > :nth-child(n+4) {
  padding-left: 10px;
  border-left: 1px solid #c8d1d9;
}

.product-list .option-head > span:nth-child(11),
.product-list .option-row > :nth-child(11) {
  padding-left: 0;
  border-left: 0;
}

/* 库存表的入库码紧接 SKU 信息展示，不再绘制一条过长的分隔线。 */
.product-list.module-inventory .option-head > span:nth-child(4),
.product-list.module-inventory .option-row > :nth-child(4) {
  border-left: 1px solid #c8d1d9;
}

.product-list .sku-option-actions {
  grid-column: 4 / -1;
  display: grid;
  grid-template-columns: minmax(82px, 98px) minmax(108px, 128px) minmax(216px, 240px) minmax(68px, 82px) minmax(108px, 122px) minmax(108px, 122px) minmax(74px, 84px) minmax(112px, 132px) minmax(98px, 112px) minmax(90px, 104px);
  gap: 6px 10px;
  min-width: 0;
  width: 100%;
  background: #eef2f5;
}

.product-list .sku-option-actions > :nth-child(n+2) {
  padding-left: 10px;
  border-left: 1px solid #c8d1d9;
}

.product-list .sku-option-actions > :nth-child(8),
.product-list .sku-option-actions > .sku-ops-note-cell {
  padding-left: 0;
  border-left: 0;
}

.product-list .sku-ops-note-cell {
  grid-column: 1 / -1;
  display: grid;
  min-width: 0;
}

/* 产品主档的 SKU 第二行：促销价格、截止日期与简短运营备注各占一个业务列。 */
.product-list.module-products .sku-option-actions > .sku-promotion-deadline-cell,
.product-list.module-products .sku-option-actions > .sku-promotion-price-cell,
.product-list.module-products .sku-option-actions > .sku-product-ops-note-cell {
  display: grid;
  grid-row: 2;
  min-width: 0;
  align-self: start;
}

.product-list.module-products .sku-option-actions > .sku-promotion-price-cell {
  grid-column: 1 / span 2;
  padding-left: 0;
  border-left: 0;
}

.product-list.module-products .sku-option-actions > .sku-promotion-deadline-cell {
  grid-column: 3;
  padding-left: 0;
  border-left: 0;
}

.product-list.module-products .sku-option-actions > .sku-product-ops-note-cell {
  grid-column: 4 / -1;
  padding-left: 10px;
  border-left: 1px solid #c8d1d9;
}

.product-list.module-products .sku-product-ops-note-cell .sku-secondary-field,
.product-list.module-products .sku-product-ops-note-cell .sku-metric-input,
.product-list.module-products .seller-product-actions > .seller-ops-note .operation-note-input {
  width: 100%;
  min-width: 0;
}

.sku-secondary-field {
  display: grid;
  grid-template-rows: auto 28px;
  gap: 3px;
  min-width: 0;
}

.sku-secondary-field > span {
  color: #566e80;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.15;
}

.sku-secondary-field .sku-metric-input {
  min-height: 28px;
  padding: 0 7px;
  font-size: 12px;
}

.sku-promotion-date-input {
  color-scheme: light;
  width: 100%;
}

.sku-promotion-price-cell.is-active .sku-promotion-price-input {
  border-color: #2eaa55;
  background: #ddf6e4;
  color: #08642d;
  font-weight: 780;
}

.sku-promotion-price-cell.is-expired .sku-promotion-price-input {
  border-color: #ef4444;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 820;
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.28);
}

.product-list .sheet-sku-actions {
  grid-column: 4 / -1;
  display: grid;
  gap: 6px 10px;
  align-items: start;
  min-width: 0;
  width: 100%;
  background: #eef2f5;
}

.product-list .sheet-sku-row > .sheet-sku-actions {
  /* The parent owns the first separator; the subgrid begins on that same line. */
  padding-left: 0;
}

.product-list .sheet-sku-actions > .sheet-sku-value:first-child {
  padding-left: 10px;
}

.product-list .sheet-sku-actions > .sheet-sku-value:nth-child(n+2) {
  padding-left: 10px;
  border-left: 1px solid #c8d1d9;
}

.product-list .sheet-sku-actions > .sku-ops-note-cell {
  grid-column: 1 / -1;
  padding-left: 0;
  border-left: 0;
}

.product-list.module-listing .sheet-sku-actions > .sku-ops-note-cell {
  grid-column: 4 / -1;
  padding-left: 10px;
}

.product-list.module-reviews .sheet-sku-head,
.product-list.module-reviews .sheet-sku-row {
  column-gap: 8px;
}

.product-list.module-reviews .sheet-sku-actions {
  gap: 6px 8px;
}

.product-list.module-ads .sheet-sku-actions {
  gap: 6px 10px;
  padding-left: 0;
}

.product-list.module-ads .sheet-sku-actions > .sheet-sku-value:first-child,
.product-list.module-ads .sheet-sku-actions > .sku-ops-note-cell {
  padding-left: 10px;
}

.product-list .listing-sku-head,
.product-list .listing-sku-row {
  column-gap: 10px;
}

.product-list.module-listing .listing-sku-head,
.product-list.module-listing .listing-sku-row {
  padding-left: 14px;
  --option-row-pad-left: 14px;
}

.product-list .listing-sku-row .option-info {
  min-width: 0;
}

.product-list .listing-sku-row .option-info > div {
  min-width: 0;
}

.product-list .listing-sku-row .sku-meta-line {
  display: block;
  width: 100%;
  max-width: 100%;
}

.product-list .listing-sku-row .sku-meta-editor label {
  min-width: 0;
}

.product-list .listing-sku-row .sku-meta-editor input {
  width: 100%;
  min-width: 0;
}

.option-row.option-warning {
  background: #fff5f5;
}

.option-row.review-reference-row {
  box-shadow: inset 4px 0 0 #22aef0;
}

.option-row.sku-pair-selected {
  box-shadow: inset 4px 0 0 rgba(8, 127, 140, 0.42);
}

.rocket-slot {
  display: grid;
  place-items: center;
  min-height: 64px;
}

.sku-pair-selector {
  width: 18px;
  height: 18px;
  border: 2px solid #96a3af;
  border-radius: 50%;
  background: #ffffff;
  padding: 0;
}

.sku-pair-selector:hover {
  border-color: #087f8c;
  background: #edfafa;
}

.sku-pair-selector.active {
  border-color: #087f8c;
  background:
    radial-gradient(circle at 50% 50%, #087f8c 0 5px, transparent 6px),
    #ffffff;
}

.review-reference-selector {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1.5px solid #8a97a8;
  border-radius: 4px;
  background: #ffffff;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.06);
}

.review-reference-selector::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-radius: 999px;
  background: #111827;
  opacity: 0;
  transition: width 0.12s ease, height 0.12s ease, opacity 0.12s ease;
}

.review-reference-selector:hover {
  border-color: #4b5563;
  background: #f8fafc;
}

.review-reference-selector.active::after {
  width: 7px;
  height: 7px;
  opacity: 1;
}

.rocket-badge {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 0;
  border: 0;
  background: transparent;
}

.rocket-badge img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.rocket-badge.is-fallback::after {
  content: "🚀";
  font-size: 28px;
  line-height: 1;
}

.option-section-label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.product-list .option-section-label {
  flex-wrap: nowrap;
}

.option-section-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 104px;
  min-width: 104px;
}

.rocket-badge-mini {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

.rocket-badge-mini img {
  width: 100%;
  height: 100%;
}

.rocket-badge-mini.is-fallback::after {
  font-size: 16px;
}

.product-list .rocket-slot {
  min-height: var(--product-thumb-size);
}

.product-list .rocket-badge {
  width: var(--product-rocket-size);
  height: var(--product-rocket-size);
}

.product-list .rocket-badge img {
  width: 100%;
  height: 100%;
}

.product-list .option-head .rocket-badge-mini,
.sheet-sku-head .rocket-badge-mini {
  width: 20px;
  height: 20px;
  min-width: 20px;
}

.product-list .option-head .rocket-badge-mini img,
.sheet-sku-head .rocket-badge-mini img {
  width: 100%;
  height: 100%;
}

.option-info {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.product-list .option-info {
  grid-template-columns: var(--product-thumb-size) minmax(0, 1fr);
  gap: 14px;
}

.product-list .option-info > div {
  gap: 3px;
}

.product-list .option-info .sku-name-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.product-list .option-info .sku-name-editor label {
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
}

.product-list .option-info .sku-name-editor input {
  width: 100%;
  min-width: 0;
}

.option-name-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
}

.option-name-line > strong {
  min-width: 0;
}

.sku-name-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.sku-name-editor {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.sku-name-editor label {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 4px;
}

.sku-name-editor span,
.sku-name-readonly {
  color: var(--muted);
  font-size: 11px;
  font-weight: 620;
}

.sku-name-editor input {
  width: 10em;
  max-width: 100%;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 6px;
  font-size: 12px;
  font-weight: 720;
  outline: 0;
}

.sku-name-editor input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(16, 137, 145, 0.12);
}

.option-info div,
.option-price,
.option-stock {
  display: grid;
  gap: 5px;
}

.option-info .option-name-line {
  display: flex;
}

.option-info .sku-name-line {
  display: flex;
}

.option-info .sku-name-editor {
  display: inline-flex;
}

.sku-meta-line {
  display: block;
  width: max-content;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.product-list .sku-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 5px;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.sku-meta-sep {
  color: #8ba0b2;
}

.sku-inbound-button {
  display: inline-grid;
  place-items: center;
  min-height: 20px;
  border: 1px solid #9ecfd5;
  border-radius: 999px;
  background: #f5fbfc;
  color: #087983;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
  cursor: pointer;
}

.sku-inbound-button:hover {
  border-color: var(--teal);
  background: #e7f7f8;
}

.seller-advice,
.seller-extra-link,
.seller-extra-small,
.seller-promotion,
.seller-ops-note {
  min-width: 0;
}

.product-list > .seller-product > .seller-row > .seller-advice,
.product-list > .seller-product > .seller-row > .seller-extra-link:nth-child(6),
.product-list > .seller-product > .seller-row > .seller-promotion {
  align-self: start;
  padding-left: 12px;
  border-left: 1px solid #c8d1d9;
}

.product-list .seller-product-actions > .seller-extra-link:nth-child(3),
.product-list .seller-product-actions > .seller-promotion {
  padding-left: 12px;
  border-left: 1px solid #c8d1d9;
}

.product-extra-input {
  width: 100%;
  min-width: 0;
  min-height: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 7px;
  font-size: 12px;
  outline: 0;
}

.product-extra-stack {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.product-link-row {
  display: grid;
  grid-template-columns: minmax(48px, 1fr) 42px;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.product-link-input,
.product-link-readonly {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-copy-button {
  display: inline-grid;
  place-items: center;
  min-width: 0;
  height: 22px;
  border: 1px solid #9ecfd5;
  border-radius: 6px;
  background: #f4fbfc;
  color: #087983;
  font-size: 11px;
  font-weight: 720;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.link-copy-button:hover:not(:disabled) {
  border-color: var(--teal);
  background: #e8f7f8;
}

.link-copy-button.copied {
  border-color: #6fbd89;
  background: #e7f8ec;
  color: #1f8b45;
}

.link-copy-button:disabled {
  border-color: #d7e0e8;
  background: #f8fafc;
  color: #a6b1bd;
  cursor: default;
}

.product-extra-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(16, 137, 145, 0.12);
}

.option-advice {
  min-width: 0;
}

.sales-advice-box {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.sales-advice-box textarea {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.25;
  outline: 0;
}

.sales-advice-box textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(16, 137, 145, 0.12);
}

.sales-advice-box span {
  color: #3b6570;
  font-size: 12px;
  line-height: 1.35;
}

.sales-advice-box .required-field-note {
  color: #dc2626 !important;
  font-size: 13px;
  line-height: 1;
}

.product-sales-advice textarea {
  min-height: 74px;
}

.promotion-activity-input {
  width: 100%;
  min-width: 0;
  min-height: 74px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.25;
  outline: 0;
}

.promotion-activity-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(16, 137, 145, 0.12);
}

.customs-info-editor {
  display: grid;
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.customs-info-editor label {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.customs-info-editor input {
  width: 100%;
  min-width: 0;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 7px;
  font-size: 12px;
  font-weight: 720;
  outline: 0;
}

.customs-info-editor input.readonly-like {
  background: #fbfcfd;
  color: var(--ink);
  cursor: default;
}

.customs-info-editor input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(16, 137, 145, 0.12);
}

.operation-note-input {
  width: 100%;
  min-width: 0;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 8px;
  font-size: 12px;
  line-height: 1.25;
  outline: 0;
}

.operation-note-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(16, 137, 145, 0.12);
}

.product-list textarea {
  resize: none;
}

.product-list input:not([type="checkbox"]):not([readonly]) {
  background-image: none;
}

.required-field-shell {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

.required-field-shell input,
.required-field-shell textarea {
  width: 100%;
  padding-right: 18px;
}

.required-field-note {
  position: absolute;
  right: 6px;
  bottom: 2px;
  color: #dc2626 !important;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
}

.required-field-shell:has(input:not(:placeholder-shown)) .required-field-note,
.required-field-shell:has(textarea:not(:placeholder-shown)) .required-field-note {
  display: none;
}

.sku-dimension-inputs .required-field-note {
  right: 4px;
  bottom: 1px;
  font-size: 11px;
  font-weight: 780;
}

.sku-dimension-inputs .required-field-shell input,
.sku-name-editor .required-field-shell input {
  padding-right: 14px;
}

.sku-name-editor .required-field-note {
  right: 4px;
  bottom: 1px;
  font-size: 11px;
}

.product-list input.optional-field-input:not([type="checkbox"]):not([readonly]),
.product-list textarea.optional-field-input:not([readonly]) {
  background-color: #f3f5f7;
  background-image: none;
  padding-right: 10px;
}

.product-list .store-marker input,
.product-list .store-marker.editable input,
.product-list .owner-marker input,
.product-list .option-store-cell .store-marker input {
  background-image: none !important;
  background-position: initial;
  background-size: initial;
  padding: 0 !important;
  text-align: center;
}

.product-list .owner-marker input::placeholder {
  text-align: center;
}

.product-sales-advice span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.option-info span,
.option-price span,
.option-stock span {
  color: var(--muted);
  font-size: 12px;
}

.option-stock span {
  color: #d6381c;
}

.sku-metric-cell,
.sku-dimension-cell {
  min-width: 0;
}

.sku-metric-input {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 9px;
  font-size: 13px;
  font-weight: 720;
  outline: 0;
}

.sku-platform-estimate-cell .sku-metric-input {
  background: #f8fafc;
  color: #475569;
}

.sku-platform-estimate-cell .sku-metric-input[readonly] {
  cursor: default;
}

.sku-platform-actual-cell .sku-metric-input:not(:placeholder-shown) {
  border-color: #fb923c;
  background: #fff7ed;
  color: #7c2d12;
  box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.16);
}

.sku-platform-actual-cell .sku-metric-input:not(:placeholder-shown):focus {
  border-color: #f97316;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.16);
}

.sku-dimension-inputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(64px, 1fr));
  gap: 6px;
  min-width: 0;
}

.sku-dimension-inputs .sku-metric-input {
  min-width: 64px;
  padding: 0 7px;
  font-size: 12px;
  font-weight: 700;
}

.sku-metric-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(16, 137, 145, 0.12);
}

.sku-operation-note-input {
  min-height: 28px;
}

.sku-calculated-cell {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 36px;
  border: 1px solid #dfe6ed;
  border-radius: 6px;
  background: #ffffff;
  color: #26323d;
  padding: 0 9px;
  font-size: 13px;
  font-weight: 760;
  text-align: right;
}

.sku-calculated-cell.sku-profit-cell {
  border-color: #8fd99f;
  background: #dff6e5;
}

.sku-calculated-cell.sku-profit-cell.delivery-review-required {
  border-color: #fca5a5;
  background: #fee2e2;
  color: #991b1b;
}

.sku-calculated-cell.sku-ad-cell {
  border-color: #e7c868;
  background: #fff3bf;
}

.delivery-review-required-text {
  color: #b91c1c;
  font-weight: 820;
}

.option-price input,
.option-stock input,
.option-status select,
.option-ship select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 10px;
  text-align: right;
}

.option-status select,
.option-ship select {
  text-align: left;
}

.option-status {
  display: flex;
  align-items: center;
}

.option-ship {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.sheet-sku-panel {
  width: 100%;
  min-width: var(--product-table-min-width);
}

.sheet-sku-head,
.sheet-sku-row {
  width: 100%;
  min-width: var(--product-table-min-width);
}

.sheet-sku-head-with-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.manual-barcode-link {
  display: inline-grid;
  place-items: center;
  min-height: 20px;
  padding: 0 5px;
  border: 1px solid #8fc5cf;
  border-radius: 5px;
  background: #ffffff;
  color: #087983;
  font-size: 10px;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.manual-barcode-link:hover {
  border-color: var(--teal);
  background: #eaf8f9;
}

.inventory-subnav {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 100%;
  min-height: 48px;
  padding: 8px 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid #cfd8e3;
  background: linear-gradient(180deg, #f7f9fb 0%, #eef3f7 100%);
}

.inventory-subnav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #2f78ff;
}

.inventory-subnav-button,
.purchase-order-filter,
.purchase-order-add-button {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  border: 1px solid #cfd9e2;
  border-radius: 7px;
  background: #ffffff;
  color: #35505f;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.inventory-subnav-button:hover,
.purchase-order-filter:hover,
.purchase-order-add-button:hover {
  border-color: var(--teal);
  background: #eaf8f9;
}

.inventory-subnav-button.active,
.purchase-order-filter.active,
.purchase-order-add-button.active {
  border-color: #087f8c;
  background: #087f8c;
  color: #ffffff;
}

.inventory-subnav-button span,
.purchase-order-filter span {
  min-width: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  padding: 1px 6px;
  font-size: 11px;
}

.inventory-subnav-button {
  position: relative;
  z-index: 1;
  min-height: 34px;
  border-color: #ccd5df;
  border-bottom-color: #cfd8e3;
  border-radius: 10px 10px 0 0;
  background: #e6ebf0;
  color: #3d4c5b;
  padding: 0 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.inventory-subnav-button:hover {
  border-color: #bac7d4;
  background: #f1f5f8;
}

.inventory-subnav-button.active {
  z-index: 2;
  border-color: #cbd5df;
  border-bottom-color: #ffffff;
  background: #ffffff;
  color: #12202c;
  transform: translateY(1px);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.85), 0 1px 0 #ffffff;
}

.inventory-subnav-button.active:hover {
  background: #ffffff;
}

.inventory-subnav-button span {
  border: 1px solid #d3dde7;
  background: #f4f7fa;
  color: #4c5d6d;
}

.inventory-subnav-button.active span {
  border-color: #9ecfd5;
  background: #eaf8f9;
  color: #087983;
}

.purchase-order-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 0;
}

.purchase-order-panel {
  overflow: visible;
}

.purchase-order-sticky {
  position: sticky;
  top: 0;
  z-index: 90;
  background: #fff;
  border-bottom: 1px solid #d7e2ec;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.purchase-order-sticky .panel-header {
  border-bottom: 1px solid #d7e2ec;
}

.purchase-order-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.logistics-query-button {
  height: 32px;
  padding: 0 14px;
  border: 1px solid #8dd4df;
  border-radius: 7px;
  background: #f4fcfd;
  color: #087887;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.logistics-query-button:hover {
  background: #e8f8fa;
  border-color: #4fb6c4;
}

.purchase-order-list {
  display: grid;
  gap: 10px;
  padding: 12px 16px 16px;
}

.purchase-order-empty {
  display: grid;
  place-items: center;
  min-height: 120px;
  border: 1px dashed #cbd7e1;
  border-radius: 8px;
  background: #fbfdfe;
  color: var(--muted);
  font-size: 14px;
}

.purchase-order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  border: 1px solid #cfdbe5;
  border-left: 4px solid #087f8c;
  border-radius: 8px;
  background: #f8fbfc;
  overflow: hidden;
  min-width: 0;
}

.purchase-order-card.archived {
  border-left-color: #8795a1;
  background: #f3f6f8;
  opacity: 0.92;
}

.purchase-order-product-context {
  min-width: 0;
  overflow-x: auto;
  border-bottom: 1px solid #cfdbe5;
}

.purchase-order-product-context .seller-row {
  border-bottom: 0;
}

.purchase-order-product-context .purchase-order-product-row .seller-product-info {
  grid-column: 1 / 4;
}

/* 在办工单只保留由产品主档同步的采购链接，避免展示无关竞品数据。 */
.purchase-order-product-context .purchase-order-product-row .seller-extra-link:nth-child(3),
.purchase-order-product-context .purchase-order-product-row .seller-extra-small {
  display: none;
}

.purchase-order-product-context .purchase-order-product-row .seller-product-actions {
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.25fr) minmax(170px, 234px);
}

.purchase-order-sku-context {
  min-width: 0;
  overflow-x: auto;
  border-bottom: 1px solid #cfdbe5;
  background: #f8fbfc;
}

.purchase-order-sku-context .sheet-sku-panel {
  min-width: var(--product-table-min-width);
}

.purchase-order-self-option-id {
  display: block;
  margin-top: 3px;
  color: #537087;
  font-size: 11px;
  line-height: 1.25;
}

.purchase-order-execution {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fbfdfe;
}

.purchase-order-execution-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.purchase-order-execution-head > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.purchase-order-execution-head strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.purchase-order-execution-head span {
  color: #657b8d;
  font-size: 12px;
}

.purchase-order-main {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.purchase-order-thumb .thumb,
.purchase-order-thumb .image-shell {
  width: 72px;
  height: 72px;
}

.purchase-order-info {
  display: grid;
  gap: 4px;
  align-content: start;
  min-width: 0;
  color: #536879;
  font-size: 12px;
}

.purchase-order-info strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 820;
}

.purchase-order-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.purchase-order-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
  min-width: 0;
}

.purchase-order-field {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #5d7080;
  font-size: 11px;
  font-weight: 700;
}

.purchase-order-field input,
.purchase-order-field select,
.purchase-order-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
  outline: 0;
}

.purchase-order-field textarea {
  min-height: 64px;
  resize: vertical;
  padding-top: 7px;
}

.purchase-order-field input:focus,
.purchase-order-field select:focus,
.purchase-order-field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(16, 137, 145, 0.12);
}

.purchase-order-feedback-split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(180px, 0.8fr) minmax(180px, 0.8fr);
  gap: 10px;
  min-width: 0;
}

.purchase-order-feedback textarea {
  min-height: 44px;
  height: 44px;
}

.purchase-order-shipping-date input {
  min-height: 44px;
  height: 44px;
}

.purchase-order-tracking-no input {
  min-height: 44px;
  height: 44px;
}

.purchase-order-actions {
  display: grid;
  align-content: start;
  justify-items: end;
  min-width: 78px;
}

.sheet-sku-value {
  display: grid;
  align-content: center;
  min-width: 0;
  overflow: hidden;
  min-height: 40px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
}

.inventory-recent-sales,
.inventory-stock-status,
.inventory-purchase-info,
.inventory-product-profit {
  display: grid;
  gap: 5px;
  width: 100%;
  min-width: 0;
  padding: 2px 0;
}

.inventory-recent-sales-row,
.inventory-stock-status-row,
.inventory-purchase-info-row,
.inventory-product-profit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.2;
}

.inventory-recent-sales-row strong,
.inventory-stock-status-row strong,
.inventory-purchase-info-row strong,
.inventory-product-profit-row strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}

.inventory-product-profit-row strong {
  color: #065f46;
}

.inventory-product-profit.delivery-review-required .inventory-product-profit-row strong {
  color: #b91c1c;
}

.inventory-purchase-info-row strong {
  font-size: 13px;
}

.inventory-purchase-info-row {
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
}

.inventory-purchase-info-row > span {
  white-space: nowrap;
}

.inventory-purchase-info-input {
  justify-self: end;
  width: 100%;
  max-width: 132px;
  min-height: 25px;
  height: 25px;
  padding: 0 6px;
  font-size: 12px;
  text-align: right;
}

.inventory-purchase-info-input.optional-field-input {
  background: #f3f5f7;
  border-color: #d8e0e8;
  color: #1f2937;
}

.inventory-purchase-info-input.optional-field-input:focus {
  background: #ffffff;
}

.inventory-carton-inputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(52px, 1fr));
  gap: 3px;
  justify-self: end;
  width: 100%;
  max-width: 210px;
}

.inventory-carton-inputs .inventory-purchase-info-input {
  width: 100%;
  padding: 0 3px;
  text-align: center;
}

.inventory-stock-status-row.inventory-stock-status-planned,
.inventory-stock-status-row.inventory-stock-status-planned strong {
  color: #c52b2b;
}

.inventory-stock-status-row.inventory-stock-status-planned strong {
  font-size: 18px;
  line-height: 1;
}

.listing-display-price-value,
.listing-pre-coupon-value,
.listing-inbound-code-value {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 36px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 760;
}

.sku-listing-copy-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.sku-listing-copy-cell-with-open {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.sku-listing-copy-button {
  width: 44px;
  height: 24px;
  padding: 0;
  flex: 0 0 auto;
}

.sku-listing-open-button {
  width: 44px;
}

.sku-promo-link-input,
.sku-listing-field-input {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 720;
  outline: 0;
}

.sku-promo-link-input:focus,
.sku-listing-field-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(16, 137, 145, 0.12);
}

.review-keyword-input {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 720;
  outline: 0;
}

.review-keyword-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(16, 137, 145, 0.12);
}

.listing-promo-link-value {
  min-width: 0;
}

.sku-inbound-input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 5px;
  font-size: 12px;
  font-weight: 720;
  outline: 0;
}

.sku-inbound-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(16, 137, 145, 0.12);
}

.sku-inbound-readonly {
  display: flex;
  align-items: center;
  min-height: 36px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 12px;
  font-weight: 720;
}

.product-list.module-inventory .sheet-sku-value:has(.sku-inbound-input),
.product-list.module-inventory .sheet-sku-value:has(.sku-inbound-readonly) {
  justify-items: stretch;
}

.product-list.module-inventory .sku-inbound-input + .required-field-note,
.product-list.module-inventory .sku-metric-input + .required-field-note {
  right: 4px;
  bottom: 3px;
  font-size: 12px;
}

.sheet-sku-value:has(.inbound-label-thumb-button) {
  justify-items: start;
}

.sheet-sku-value .truncate {
  max-width: 100%;
}

.sheet-sku-value .keyword-list {
  max-height: 56px;
  overflow: hidden;
}

.sheet-sku-value .mini-bars {
  min-width: 120px;
}

.sheet-option-panel {
  padding: 0 16px 18px 88px;
}

.sheet-detail-head {
  display: grid;
  grid-template-columns: 32px 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  color: #5d6975;
  font-size: 12px;
  font-weight: 720;
}

.sheet-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  padding-left: 32px;
}

.sheet-field {
  display: grid;
  gap: 6px;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.sheet-field > span {
  color: var(--muted);
  font-size: 12px;
}

.sheet-field-value {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
}

.sheet-field-value .keyword-list {
  align-items: flex-start;
}

.detail {
  position: sticky;
  top: 18px;
}

.detail-panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.detail-body {
  padding: 14px;
}

.detail-head {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.detail-title {
  font-weight: 780;
  line-height: 1.25;
}

.detail-id {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.field {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.field-label {
  color: var(--muted);
  font-size: 11px;
}

.field-value {
  margin-top: 4px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.stage-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.stage {
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 30px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
}

.stage-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.stage.done .stage-mark {
  background: var(--green);
}

.forms {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.forms label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.forms input,
.forms textarea,
.forms select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 8px 10px;
  outline: none;
}

.forms textarea {
  resize: vertical;
  min-height: 72px;
}

.formula-editor {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  overflow: hidden;
}

.formula-editor summary {
  padding: 11px 12px;
  font-weight: 760;
  cursor: pointer;
  background: #eef6f5;
  border-bottom: 1px solid var(--line);
}

.formula-note {
  padding: 10px 12px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.calc-form {
  padding: 0 12px 12px;
}

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

.form-section-title {
  margin-top: 14px;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
}

.formula-rules {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.formula-rule {
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-size: 12px;
  line-height: 1.45;
}

.formula-rule span {
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 12px;
}

.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
}

.danger {
  border-color: #efc4b3;
  color: var(--red);
}

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

.wide-table th:nth-child(1),
.wide-table td:nth-child(1) {
  width: 108px;
}

.wide-table th:nth-child(2),
.wide-table td:nth-child(2) {
  width: 280px;
}

.keyword-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mini-bars {
  display: grid;
  gap: 8px;
}

.mini-bar {
  display: grid;
  grid-template-columns: 112px minmax(90px, 1fr) 48px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

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

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

.assessment {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}

.assessment .panel {
  min-height: 100%;
}

.assessment-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.risk-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 80px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1180px) {
  .workspace,
  .assessment {
    grid-template-columns: 1fr;
  }

  .detail {
    position: static;
  }
}

@media (max-width: 1500px) {
  .product-list {
    --listing-sku-info-min: 390px;
  }

  .product-list .seller-head,
  .product-list .seller-row {
    grid-template-columns: 44px 28px minmax(430px, 1.45fr) minmax(160px, 210px) minmax(96px, 122px) minmax(96px, 122px) minmax(76px, 96px) minmax(72px, 90px) minmax(150px, 208px);
  }

  .option-head,
  .option-row {
    grid-template-columns: 68px 74px minmax(220px, 290px) minmax(74px, 86px) minmax(96px, 112px) minmax(216px, 240px) minmax(60px, 72px) minmax(96px, 108px) minmax(96px, 108px) minmax(68px, 78px) minmax(100px, 116px) minmax(86px, 98px) minmax(82px, 94px);
  }

  .product-list .option-head,
  .product-list .option-row {
    grid-template-columns: 68px 74px minmax(320px, 370px) minmax(74px, 86px) minmax(96px, 112px) minmax(216px, 240px) minmax(60px, 72px) minmax(96px, 108px) minmax(96px, 108px) minmax(68px, 78px) minmax(100px, 116px) minmax(86px, 98px) minmax(82px, 94px);
  }

  .product-list .sku-option-actions {
    grid-template-columns: minmax(74px, 86px) minmax(96px, 112px) minmax(216px, 240px) minmax(60px, 72px) minmax(96px, 108px) minmax(96px, 108px) minmax(68px, 78px) minmax(100px, 116px) minmax(86px, 98px) minmax(82px, 94px);
  }
}

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

  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav {
    grid-template-columns: repeat(4, minmax(132px, 1fr));
    overflow: visible;
    padding-right: 0;
  }

  .sidebar-footer {
    display: none;
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .search,
  .exchange-widget {
    max-width: none;
    width: 100%;
    min-width: 0;
  }

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

  .main {
    padding: 14px;
  }

  .staff-employee-table {
    min-width: 0;
  }

  .staff-table-head.employee {
    display: none;
  }

  .staff-table-row.employee {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 8px;
  }

  .staff-table-row.employee > div {
    display: grid;
    gap: 6px;
    min-height: 0;
    padding: 8px;
    border: 0;
  }

  .staff-table-row.employee > div::before {
    content: attr(data-staff-cell);
    color: #687a88;
    font-size: 11px;
    font-weight: 760;
  }

  .staff-row-actions {
    place-items: start;
  }
}

@media (max-width: 560px) {
  .metrics,
  .detail-grid,
  .form-grid,
  .stage-list {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding: 12px;
  }

  .brand {
    padding-bottom: 10px;
  }

  .nav {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-button {
    min-width: 138px;
  }

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

  .dashboard-listing-store {
    min-height: 40px;
  }

  .dashboard-product-head {
    grid-template-columns: 52px 40px minmax(0, 1fr);
  }

  .dashboard-listing-store.store-marker strong {
    font-size: 20px;
  }

  .dashboard-product-code {
    min-height: 40px;
  }

  .thumb {
    width: 40px;
    height: 40px;
  }

  .staff-table-row.employee {
    grid-template-columns: 1fr;
  }
}
.erp-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 140, 44, 0.2), transparent 34%),
    linear-gradient(145deg, #101622, #1d2939);
}

.erp-auth-card {
  width: min(420px, 100%);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.erp-auth-logo {
  display: block;
  width: auto;
  max-width: 170px;
  height: 44px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 24px;
}

.erp-auth-heading h1 {
  margin: 0;
  color: #182230;
  font-size: 27px;
}

.erp-auth-heading p {
  margin: 8px 0 24px;
  color: #667085;
  line-height: 1.55;
}

.erp-auth-form {
  display: grid;
  gap: 16px;
}

.erp-auth-form label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 14px;
  font-weight: 650;
}

.erp-auth-form input {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  outline: none;
  color: #101828;
  background: #fff;
  font: inherit;
}

.erp-auth-form input:focus {
  border-color: #2377d9;
  box-shadow: 0 0 0 3px rgba(35, 119, 217, 0.16);
}

.erp-auth-form button {
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #1976d2;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.erp-auth-form button:hover {
  background: #125fb1;
}

.erp-auth-form button:active {
  background: #0d4d91;
}

.erp-auth-form button:focus-visible {
  outline: 3px solid rgba(35, 119, 217, 0.32);
  outline-offset: 2px;
}

.erp-auth-form button:disabled {
  cursor: wait;
  opacity: 0.66;
}

.erp-auth-error {
  min-height: 20px;
  color: #b42318;
  font-size: 13px;
  line-height: 1.45;
}

.erp-auth-remember {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-height: 24px;
  cursor: pointer;
  font-weight: 600 !important;
}

.erp-auth-remember input {
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 0;
  accent-color: #1976d2;
}

.erp-auth-status {
  position: fixed;
  top: 10px;
  right: 18px;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  padding: 4px 6px 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #fff;
  background: rgba(16, 24, 40, 0.86);
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.2);
  backdrop-filter: blur(8px);
  font-size: 12px;
}

.erp-auth-status button {
  padding: 5px 9px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  font: inherit;
}

.erp-auth-status button:hover {
  background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 600px) {
  .erp-auth-overlay {
    align-items: start;
    overflow-y: auto;
    padding: 16px;
  }

  .erp-auth-card {
    width: 100%;
    margin: 24px 0;
    padding: 26px 22px;
    border-radius: 18px;
  }

  .erp-auth-status {
    right: 8px;
  }
}

/* Mobile responsive V1: presentation-only overrides. */
.mobile-app-header,
.mobile-bottom-nav,
.mobile-menu-backdrop,
.mobile-drawer-close,
.mobile-page-nav {
  display: none;
}

@media (max-width: 900px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body[data-erp-page="main"] {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }

  .app-shell,
  .app-shell.sidebar-collapsed {
    display: block;
    min-height: 100dvh;
  }

  .sidebar,
  .app-shell.sidebar-collapsed .sidebar {
    position: fixed;
    z-index: 2100;
    inset: 0 auto 0 0;
    width: min(86vw, 320px);
    height: 100dvh;
    padding: 14px;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 180ms ease;
    box-shadow: 18px 0 48px rgba(3, 10, 14, 0.28);
  }

  .app-shell.mobile-menu-open .sidebar {
    transform: translateX(0);
  }

  .mobile-menu-backdrop {
    position: fixed;
    z-index: 2050;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(6, 15, 20, 0.54);
    backdrop-filter: blur(2px);
  }

  .app-shell.mobile-menu-open .mobile-menu-backdrop {
    display: block;
  }

  .mobile-drawer-close {
    position: absolute;
    top: max(12px, env(safe-area-inset-top, 0px));
    right: 12px;
    z-index: 2;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
  }

  .app-shell.mobile-menu-open .mobile-drawer-close {
    display: grid;
  }

  .sidebar-toggle {
    display: none;
  }

  .sidebar .brand,
  .app-shell.sidebar-collapsed .brand {
    grid-template-columns: 42px minmax(0, 1fr);
    justify-items: start;
    min-height: 68px;
    padding: max(4px, env(safe-area-inset-top, 0px)) 54px 12px 2px;
  }

  .app-shell.sidebar-collapsed .brand-logo {
    width: 38px;
    height: 38px;
  }

  .app-shell.sidebar-collapsed .brand-copy,
  .app-shell.sidebar-collapsed .brand-title,
  .app-shell.sidebar-collapsed .nav-label,
  .app-shell.sidebar-collapsed .nav-count,
  .app-shell.sidebar-collapsed .nav-chevron,
  .app-shell.sidebar-collapsed .nav-submenu {
    display: initial;
  }

  .app-shell.sidebar-collapsed .brand-copy {
    display: grid;
  }

  .nav,
  .app-shell.sidebar-collapsed .nav {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 4px;
    margin-top: 12px;
    padding: 0 0 8px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-entry,
  .app-shell.sidebar-collapsed .nav-entry {
    width: 100%;
  }

  .nav-button,
  .app-shell.sidebar-collapsed .nav-button,
  .nav-entry.has-submenu .nav-button {
    grid-template-columns: 30px minmax(0, 1fr) auto auto;
    justify-items: stretch;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    height: auto;
    padding: 8px 10px;
    border-radius: 9px;
    font-size: 15px;
  }

  .nav-submenu {
    margin-left: 45px;
  }

  .nav-submenu-button {
    min-height: 42px;
    padding: 8px 10px 8px 0;
  }

  .sidebar-identity-preview,
  .app-shell.sidebar-collapsed .sidebar-identity-preview {
    display: grid;
  }

  .sidebar-identity-preview select {
    min-height: 42px;
    font-size: 16px;
  }

  .sidebar-footer,
  .app-shell.sidebar-collapsed .sidebar-footer {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  }

  .sidebar-settings-button {
    width: 44px;
    height: 44px;
  }

  .sidebar-scroll-controls,
  .app-shell.sidebar-collapsed .sidebar-scroll-controls {
    grid-template-columns: repeat(2, 44px);
  }

  .sidebar-scroll-button,
  .app-shell.sidebar-collapsed .sidebar-scroll-button {
    width: 44px;
    height: 44px;
  }

  .main,
  .main.product-wide-main,
  .main.product-wide-main.reviews-wide-main {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 10px;
    overflow-x: hidden;
  }

  .mobile-app-header {
    position: sticky;
    z-index: 1200;
    top: 0;
    display: grid;
    grid-template-columns: 44px 32px auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 56px;
    margin: -10px -10px 12px;
    padding: max(6px, env(safe-area-inset-top, 0px)) 10px 6px;
    border-bottom: 1px solid #d7e0e7;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 5px 16px rgba(20, 35, 45, 0.08);
    backdrop-filter: blur(10px);
  }

  .mobile-app-header img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .mobile-app-header strong {
    color: #18323b;
    font-size: 15px;
    white-space: nowrap;
  }

  .mobile-app-header > span {
    min-width: 0;
    overflow: hidden;
    color: #687983;
    font-size: 12px;
    font-weight: 720;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-menu-trigger {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #cbd6df;
    border-radius: 10px;
    background: #ffffff;
    color: #17313b;
    font-size: 22px;
  }

  .mobile-bottom-nav,
  .mobile-page-nav {
    position: fixed;
    z-index: 1900;
    inset: auto 0 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    min-height: 64px;
    padding: 5px 5px max(5px, env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #ccd7df;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -8px 28px rgba(20, 35, 45, 0.1);
    backdrop-filter: blur(12px);
  }

  .mobile-bottom-nav-button,
  .mobile-page-nav a {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    min-width: 0;
    min-height: 52px;
    padding: 4px 2px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #62737d;
    font-size: 18px;
    text-decoration: none;
  }

  .mobile-bottom-nav-button strong,
  .mobile-page-nav a {
    font-size: 11px;
    font-weight: 760;
  }

  .mobile-page-nav a span {
    font-size: 18px;
  }

  .mobile-bottom-nav-button.active,
  .mobile-page-nav a.active {
    background: #eaf6f5;
    color: var(--teal);
  }

  .main.product-wide-main > .topbar,
  .main.product-wide-main > #view-root,
  .main.product-wide-main > #view-root > .metrics,
  .main.product-wide-main > #view-root > .workspace-full,
  .main.product-wide-main .product-panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 12px;
  }

  .topbar > *,
  .search,
  .exchange-widget,
  .select,
  .owner-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .search input,
  .select,
  .owner-select,
  .toggle {
    min-height: 44px;
  }

  .history-controls {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }

  .history-button {
    min-height: 44px;
  }

  .metrics,
  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
  }

  .metric {
    min-height: 88px;
    padding: 11px;
  }

  .metric-value,
  .metric-pending-value {
    font-size: 22px;
  }

  .workspace,
  .workspace-full,
  .assessment {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .panel-header {
    align-items: flex-start;
    flex-wrap: wrap;
    min-height: 0;
    padding: 12px;
  }

  .panel-title-group {
    flex-wrap: wrap;
  }

  .panel-header-actions,
  .purchase-order-header-actions {
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    padding-bottom: 3px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .toolbar-button,
  .icon-button,
  .head-action-button,
  .inventory-subnav-button {
    min-height: 44px;
  }

  .product-panel {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
  }

  .main.product-wide-main .seller-list.product-list {
    width: max-content;
    min-width: var(--product-table-min-width);
    max-width: none;
  }

  .product-panel > .panel-header,
  .product-panel > .inventory-subnav,
  .product-panel > .product-load-more {
    position: sticky;
    left: 0;
    width: min(calc(100vw - 20px), 100%);
    min-width: min(calc(100vw - 20px), 100%);
  }

  .inventory-subnav {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .inventory-subnav-button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .table-wrap,
  .staff-table-wrap,
  .api-management-table-wrap,
  .sales-status-result-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
  }

  .staff-settings-header,
  .staff-section-toolbar,
  .staff-header-actions,
  .staff-permission-toolbar-selects {
    align-items: stretch;
    flex-direction: column;
  }

  .staff-settings-body {
    padding: 0 10px 12px;
  }

  .staff-security-note {
    margin: 10px 10px 0;
  }

  .staff-tabs {
    gap: 2px;
    padding: 0 10px;
    overflow-x: auto;
  }

  .staff-tab {
    min-width: max-content;
    min-height: 44px;
    padding: 0 13px;
  }

  .staff-permission-table,
  .staff-activity-table {
    min-width: 0;
  }

  .staff-table-head.activity {
    display: none;
  }

  .staff-table-row.activity {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px;
  }

  .staff-table-row.activity > * {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px;
    padding: 8px !important;
    border: 0 !important;
    overflow-wrap: anywhere;
  }

  .staff-table-row.activity > *::before {
    color: #687a88;
    font-size: 11px;
    font-weight: 760;
  }

  .staff-table-row.activity > :nth-child(1)::before { content: "时间"; }
  .staff-table-row.activity > :nth-child(2)::before { content: "操作人"; }
  .staff-table-row.activity > :nth-child(3)::before { content: "模块"; }
  .staff-table-row.activity > :nth-child(4)::before { content: "动作"; }
  .staff-table-row.activity > :nth-child(5)::before { content: "说明"; }
  .staff-table-row.activity > :nth-child(6)::before { content: "结果"; }

  .modal-backdrop {
    align-items: end;
    padding: max(10px, env(safe-area-inset-top, 0px)) 8px calc(76px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
  }

  .modal-backdrop > *,
  .dashboard-detail-dialog,
  .dashboard-workflow-dialog,
  .workbook-import-dialog,
  .add-staff-account-dialog {
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - 96px - env(safe-area-inset-bottom, 0px));
    margin: auto 0 0;
    overflow: auto;
    border-radius: 14px 14px 8px 8px;
  }

  .form-grid,
  .staff-account-dialog-body,
  .detail-grid,
  .stage-list {
    grid-template-columns: 1fr;
  }

  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    max-width: 100%;
    font-size: 16px;
  }

  .erp-auth-status {
    z-index: 1800;
    top: auto;
    right: 8px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 16px);
  }

  .erp-auth-status > span {
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .permission-denied-panel {
    min-height: 220px;
    padding: 22px 14px;
  }

  .truncate,
  .panel-subtitle,
  .field-value,
  .detail-title {
    overflow-wrap: anywhere;
    white-space: normal;
  }
}

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

  .erp-auth-overlay {
    align-items: center;
    padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px));
  }

  .erp-auth-card {
    margin: 0;
    padding: 24px 18px;
  }

  .erp-auth-logo {
    max-width: 142px;
    height: 40px;
    margin-bottom: 18px;
  }

  .erp-auth-heading h1 {
    font-size: 24px;
  }

  .erp-auth-heading p {
    margin-bottom: 18px;
  }
}
