:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --line: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --danger: #dc2626;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}

body.admin-auth-required {
  overflow: hidden;
}

.admin-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 36px;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.admin-header-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-header h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.admin-account-text {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
}

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

.overview-item {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.overview-item--wide {
  background: #f9fbff;
}

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

.overview-item strong {
  font-size: 24px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--text);
}

.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.04);
  padding: 16px;
  margin-bottom: 12px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f2f5;
}

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

.catalog-workspace {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 14px;
  min-height: 720px;
}

.catalog-sidebar {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfbfc;
  padding: 12px;
}

.catalog-sidebar-head {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef0f3;
}

.catalog-sidebar-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.catalog-sidebar-tip {
  font-size: 12px;
  color: var(--muted);
}

.category-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.sidebar-add-btn {
  width: 100%;
  margin-top: 12px;
  justify-content: center;
}

.sidebar-delete-btn {
  width: 100%;
  margin-top: 8px;
  justify-content: center;
}

.category-nav-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-align: left;
}

.category-nav-item.active {
  border-color: rgba(37, 99, 235, 0.28);
  background: #f5f9ff;
}

.category-nav-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.category-nav-meta {
  font-size: 11px;
  color: var(--muted);
}

.catalog-content {
  min-width: 0;
}

.series-manager {
  margin-top: 14px;
}

.series-manager-card {
  border: 1px solid #eef0f3;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

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

.series-manager-head h4 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.series-manager-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.series-manager-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 76px;
  padding: 12px 14px;
  border: 1px solid #dfe6f3;
  border-radius: 12px;
  background: #fff;
}

.series-manager-item strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}

.series-manager-item small {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
}

.catalog-content-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 12px;
}

.catalog-content-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.catalog-content-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.source-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: #3157b7;
  font-size: 10px;
  font-weight: 700;
}

.source-chip--muted {
  background: #f3f4f6;
  color: #6b7280;
}

.toolbar-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  background: #fafafa;
}

.toolbar-label {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.panel-head h2 {
  margin: 0;
  font-size: 17px;
}

.panel-tip {
  color: var(--muted);
  font-size: 12px;
}

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

.ecosystem-card,
.category-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}

.ecosystem-head,
.category-head,
.item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ecosystem-card h3,
.category-card h3,
.item-main strong {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.ecosystem-card p,
.category-card p,
.item-main small {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

.ecosystem-head {
  align-items: stretch;
  border-bottom: 1px solid #f2f4f7;
  padding-bottom: 10px;
}

.category-head {
  padding-bottom: 10px;
  border-bottom: 1px solid #f2f4f7;
}

.ecosystem-summary h3 {
  font-size: 24px;
  line-height: 1;
}

.ecosystem-meta {
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
}

.ecosystem-actions {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  min-width: 96px;
}

.ecosystem-actions .primary-btn,
.ecosystem-actions .secondary-btn {
  width: 100%;
}

.actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

button {
  border: 0;
  cursor: pointer;
  transition: transform 0.16s ease, opacity 0.16s ease, background 0.16s ease;
}

button:hover {
  transform: translateY(-1px);
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
}

select.ghost-btn {
  appearance: none;
  border-radius: 999px;
  padding: 8px 28px 8px 12px;
  font-size: 12px;
  font-weight: 700;
  background:
    linear-gradient(45deg, transparent 50%, #667085 50%) right 12px center / 8px 8px no-repeat,
    rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  color: var(--text);
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
}

.secondary-btn {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
}

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

.danger-btn {
  background: rgba(220, 38, 38, 0.08);
  color: var(--danger);
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-card {
  padding: 14px;
}

.category-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

.category-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.item-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 10px;
}

.item-table {
  margin-top: 10px;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.item-table-head {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) 128px 172px;
  gap: 12px;
  padding: 9px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #eef0f3;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
}

.item-table-head--simple {
  grid-template-columns: minmax(0, 1.9fr) 172px 196px;
}

.item-table-head--brand {
  grid-template-columns: minmax(0, 1.6fr) 128px 172px 196px;
}

.item-table-head--batch {
  grid-template-columns: 48px minmax(0, 1.9fr) 172px 196px;
}

.item-table-head--batch-brand {
  grid-template-columns: 48px minmax(0, 1.6fr) 128px 172px 196px;
}

.ecosystem-item-list {
  gap: 8px;
}

.item-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fafafa;
}

.item-row--table {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) 128px 172px;
  gap: 12px;
  align-items: start;
  border: 0;
  border-bottom: 1px solid #eef0f3;
  border-radius: 0;
  padding: 10px 12px;
  background: #fff;
}

.item-row--simple {
  grid-template-columns: minmax(0, 1.9fr) 172px 196px;
}

.item-row--brand {
  grid-template-columns: minmax(0, 1.6fr) 128px 172px 196px;
}

.item-row--batch {
  grid-template-columns: 48px minmax(0, 1.9fr) 172px 196px;
}

.item-row--batch-brand {
  grid-template-columns: 48px minmax(0, 1.6fr) 128px 172px 196px;
}

.item-cell--select {
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-cell--select input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

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

.series-divider {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 14px 12px 8px;
  border-top: 10px solid #f2f5fa;
  border-bottom: 1px solid #dbe7ff;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.series-divider-line {
  display: none;
}

.series-divider-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid #c7d8ff;
  border-radius: 8px;
  background: #eaf2ff;
  color: #173b8f;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.item-row--series-break {
  margin-top: 0;
  border-top: 0;
  box-shadow: none;
}

.ecosystem-item-row {
  background: #f9fafb;
  align-items: center;
}

.item-cell {
  min-width: 0;
  display: grid;
  gap: 2px;
  align-content: start;
}

.item-cell--main strong {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.linkish-btn {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  cursor: pointer;
  text-align: left;
}

.item-name-btn:hover {
  color: #2563eb;
}

.item-cell-label {
  display: none;
  font-size: 11px;
  color: var(--muted);
}

.item-cell-value {
  font-size: 13px;
  line-height: 1.4;
  color: #111827;
}

.inline-price {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.inline-price-prefix {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

.inline-price-input {
  width: 96px;
  min-width: 0;
  height: 32px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0 8px;
  font-size: 13px;
  color: #111827;
  outline: none;
  background: #fff;
}

.inline-price-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.inline-save-btn {
  padding: 6px 12px;
  font-size: 11px;
  white-space: nowrap;
}

.item-cell--actions .actions {
  justify-content: flex-start;
}

.item-main {
  min-width: 0;
}

.item-main small {
  display: block;
  font-size: 12px;
}

.item-series {
  color: #4b5563;
  font-weight: 600;
}

.item-series-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.item-series-spacer {
  height: 4px;
  margin-top: 0;
}

.item-series-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid #dbe7ff;
  border-radius: 999px;
  background: #f5f9ff;
  color: #3157b7;
  font-size: 12px;
  font-weight: 700;
}

.item-series-note {
  color: #6b7280;
  font-size: 12px;
}

.item-desc {
  color: #6b7280;
  margin-top: 2px;
}

.item-meta {
  color: #4b5563;
  font-weight: 600;
  font-size: 12px;
}

.item-actions {
  min-width: 0;
  flex-direction: row;
  justify-content: flex-start;
}

.pill {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.1);
  color: #c2410c;
  font-size: 10px;
  font-weight: 700;
}

.pill--soft {
  background: #f3f4f6;
  color: #6b7280;
  font-weight: 600;
}

.empty {
  color: var(--muted);
  font-size: 12px;
  padding: 10px 0 2px;
}

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

.quote-section {
  display: grid;
  gap: 8px;
}

#quoteSearchInput {
  min-width: 260px;
}

.quote-section + .quote-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e6edf7;
}

.quote-section-title {
  padding: 0 12px;
  color: #1f2937;
  font-size: 15px;
  font-weight: 800;
}

.quote-table-head,
.quote-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 1.15fr) minmax(240px, auto);
  gap: 12px;
  align-items: center;
}

.quote-table-head {
  padding: 0 12px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.quote-row {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.quote-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.quote-select-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.quote-select-line input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.quote-main strong {
  font-size: 14px;
  line-height: 1.35;
}

.quote-main small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.quote-fees {
  display: grid;
  grid-template-columns: repeat(2, minmax(96px, 1fr)) minmax(126px, auto);
  gap: 8px;
  align-items: end;
}

.quote-fees label,
.quote-total {
  display: grid;
  gap: 4px;
}

.quote-fees label span,
.quote-total span {
  color: var(--muted);
  font-size: 11px;
}

.quote-total strong {
  font-size: 13px;
}

.quote-fee-input {
  height: 34px;
}

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

.field-dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  width: min(860px, calc(100% - 24px));
  padding: 0;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.16);
}

.field-dialog::backdrop {
  background: rgba(15, 23, 42, 0.4);
}

.admin-login-screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.72));
}

.admin-login-screen[hidden] {
  display: none;
}

.admin-login-card {
  width: min(440px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
}

.admin-login-copy h2 {
  margin: 0;
  font-size: 28px;
}

.admin-login-copy p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.admin-login-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.admin-login-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.admin-login-submit {
  justify-content: center;
  min-height: 44px;
}

.field-form {
  padding: 12px;
}

.field-form-head,
.field-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.field-form-head h3 {
  margin: 0;
  font-size: 16px;
}

.field-form-foot {
  justify-content: flex-end;
  margin-top: 10px;
}

.field-form-body {
  margin-top: 8px;
  max-height: min(64vh, 620px);
  overflow: auto;
  padding-right: 2px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-row {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.field-row--line {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f2f5;
}

.field-row label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 0;
  color: #344054;
  padding-top: 8px;
}

.field-row .hint {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}

.field-row-input {
  min-width: 0;
}

.field-input,
.field-select {
  width: 100%;
  border: 1px solid #cfd7e6;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
}

.field-textarea {
  min-height: 64px;
  resize: vertical;
}

.field-input:focus,
.field-select:focus {
  border-color: #6d28d9;
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.16);
}

.field-grid {
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

.field-grid--product .field-row--line {
  grid-template-columns: 84px minmax(0, 1fr);
}

.field-grid--product .field-row:nth-child(5),
.field-grid--product .field-row:nth-child(6),
.field-grid--product .field-row:nth-child(8),
.field-grid--product .field-row:nth-child(9) {
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .admin-shell {
    width: min(100%, calc(100% - 20px));
    padding-top: 20px;
  }

  .admin-overview {
    grid-template-columns: 1fr 1fr;
  }

  .admin-header,
  .panel-head,
  .ecosystem-head,
  .category-head,
  .item-row {
    flex-direction: column;
    align-items: stretch;
  }

  .ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .panel-tools {
    justify-content: flex-start;
  }

  .catalog-workspace {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .item-table-head {
    display: none;
  }

  .item-row--table {
    grid-template-columns: 1fr;
  }

  .quote-table-head {
    display: none;
  }

  .quote-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .quote-fees {
    grid-template-columns: 1fr;
  }

  .quote-actions {
    justify-content: flex-start;
  }

  .item-cell-label {
    display: block;
  }

  .item-cell--actions .actions {
    justify-content: flex-start;
  }

  .toolbar-group {
    width: 100%;
    justify-content: space-between;
  }

  .ecosystem-actions {
    flex-direction: row;
    min-width: 0;
  }

  .ecosystem-actions .primary-btn,
  .ecosystem-actions .secondary-btn {
    width: auto;
  }

  .item-actions {
    flex-direction: row;
    min-width: 0;
  }

  .field-form {
    padding: 14px;
  }

  .field-grid--product {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .field-row--line {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  .admin-overview {
    grid-template-columns: 1fr;
  }

  .overview-item strong {
    font-size: 20px;
  }
}

/* Import Preview Dialog */
.import-preview-dialog {
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
  width: min(840px, calc(100% - 40px));
  max-height: 85vh;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.import-preview-dialog::backdrop {
  background: rgba(17, 24, 39, 0.4);
  backdrop-filter: blur(8px);
}

.import-preview-shell {
  display: flex;
  flex-direction: column;
  height: 85vh;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
}

.import-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.import-preview-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  background: #f8fafc;
}

.import-preview-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.preview-stat {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
}

.preview-stat strong {
  display: block;
  font-size: 24px;
  color: var(--accent);
}

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

.import-preview-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.preview-item--new { border-left: 4px solid #10b981; }
.preview-item--update { border-left: 4px solid #3b82f6; }
.preview-item--deactivate { border-left: 4px solid #f59e0b; opacity: 0.7; }
.preview-item--skip { border-left: 4px solid #9ca3af; color: #9ca3af; }

.preview-item-type {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.preview-item--new .preview-item-type { background: #dcfce7; color: #166534; }
.preview-item--update .preview-item-type { background: #dbeafe; color: #1e40af; }
.preview-item--deactivate .preview-item-type { background: #fef3c7; color: #92400e; }
.preview-item--skip .preview-item-type { background: #f3f4f6; color: #4b5563; }

.preview-item-info { flex: 1; min-width: 0; }
.preview-item-name { display: block; font-weight: 700; font-size: 14px; }
.preview-item-meta { font-size: 12px; color: var(--muted); }

.import-preview-foot {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 24px;
  background: #fff;
  border-top: 1px solid var(--line);
}
