:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --line: #d9dee8;
  --text: #1f2937;
  --muted: #667085;
  --brand: #005bff;
  --danger: #b42318;
  --warn: #b54708;
  --ok: #027a48;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
  font-size: 14px;
}
a { color: var(--brand); text-decoration: none; }
h1, h2, h3 { letter-spacing: 0; overflow-wrap: anywhere; }
.app-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  max-height: 70px;
  min-height: 52px;
  padding: 7px 16px;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 160ms ease, min-height 160ms ease, padding 160ms ease, opacity 120ms ease, transform 160ms ease;
}
.brand {
  display: grid;
  gap: 1px;
  min-width: 96px;
  color: var(--text);
  line-height: 1;
}
.brand span {
  font-weight: 800;
  letter-spacing: 0;
}
.brand small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
.primary-nav {
  display: flex;
  min-width: 0;
  gap: 4px;
  overflow-x: auto;
  padding: 2px;
}
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 82px;
  min-height: 36px;
  padding: 8px 11px;
  color: var(--text);
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
}
.nav-item:hover,
.settings-link:hover {
  border-color: #b2ccff;
  background: #f5f8ff;
}
.nav-item.active {
  border-color: #84caff;
  background: #eff8ff;
  color: #175cd3;
  box-shadow: inset 0 0 0 1px #84caff;
}
.nav-label {
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}
.nav-label-short {
  display: none;
}
.nav-badge {
  position: absolute;
  top: 5px;
  right: 6px;
  min-width: 20px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #f04438;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}
.account-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.settings-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 10px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  white-space: nowrap;
}
.settings-link.active {
  border-color: #84caff;
  color: #175cd3;
  background: #eff8ff;
}
.logout { margin: 0; }
.section-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 16px 7px 130px;
  transition: padding 160ms ease;
}
.section-nav a {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 6px 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  line-height: 1.15;
  white-space: nowrap;
}
.section-nav a:hover {
  color: var(--brand);
  border-color: #b2ccff;
  background: #f5f8ff;
}
.section-nav a.active {
  color: #175cd3;
  border-color: #84caff;
  background: #eff8ff;
}
.app-header.is-condensed .topbar {
  max-height: 0;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}
.app-header.is-condensed .section-nav {
  padding-top: 7px;
  padding-left: 16px;
}
.container { max-width: 1280px; margin: 0 auto; padding: 24px; }
.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: start;
  gap: 10px;
  min-width: 0;
  padding: 12px 12px 12px 14px;
  border: 1px solid #b2ccff;
  border-radius: 8px;
  background: #eef4ff;
  color: #175cd3;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.16);
  line-height: 1.35;
  pointer-events: auto;
  animation: toast-in 160ms ease-out;
}
.toast span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.toast.success {
  border-color: #abefc6;
  background: #ecfdf3;
  color: var(--ok);
}
.toast.error {
  border-color: #fecdca;
  background: #fffbfa;
  color: var(--danger);
}
.toast.warning {
  border-color: #fedf89;
  background: #fffaeb;
  color: var(--warn);
}
.toast-close {
  width: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: currentColor;
  font-size: 20px;
  line-height: 1;
}
.toast-close:hover {
  background: rgba(16, 24, 40, 0.08);
}
.toast.is-hiding {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}
.scroll-top-button {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 250;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #b2ccff;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.18);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease, background 140ms ease, border-color 140ms ease;
}
.scroll-top-button.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top-button:hover {
  border-color: #84caff;
  background: #eff8ff;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-head, .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.page-head {
  margin: 0 0 16px;
}
.page-head h1 {
  margin: 0;
  line-height: 1.15;
}
.page-head p {
  margin: 7px 0 0;
  line-height: 1.35;
}
.page-head + .stats,
.page-head + .supplier-grid,
.page-head + .panel,
.page-head + .message {
  margin-top: 0;
}
.panel, .auth-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin: 16px 0;
}
.danger-zone {
  border-color: #fecdca;
  background: #fffbfa;
}
.danger-zone h2 { color: var(--danger); }
.auth-panel { max-width: 420px; margin: 48px auto; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stats div,
.stats a.stat-link {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 92px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.stats a.stat-link { color: inherit; text-decoration: none; }
.stats a.stat-link.active {
  border-color: #84caff;
  background: #eff8ff;
  box-shadow: inset 0 0 0 1px #84caff;
}
.stats strong { display: block; font-size: 28px; line-height: 1; }
.stats span, .muted { color: var(--muted); }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.panel { min-width: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.data-table th, .data-table td { padding: 9px 10px; vertical-align: middle; }
.data-table tbody tr:hover { background: #f9fafb; }
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.table-wrap table { min-width: 860px; }
.grid .table-wrap table { min-width: 100%; }
.table-wrap th, .table-wrap td { border-bottom: 1px solid var(--line); }
.table-wrap tr:last-child td { border-bottom: 0; }
.sku-cell { max-width: 240px; overflow-wrap: anywhere; }
.title-cell { max-width: 420px; overflow-wrap: anywhere; }
.error-cell { max-width: 360px; overflow-wrap: anywhere; }
.ozon-card-head,
.ozon-card-cell {
  width: auto;
}
.ozon-card-head {
  white-space: normal;
}
.column-sorts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 400;
}
.column-sorts a {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.ozon-card-cell {
  min-width: 0;
}
.ozon-card-title {
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.25;
}
.ozon-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}
.ozon-card-meta span {
  overflow-wrap: anywhere;
}
.ozon-card-meta strong {
  color: var(--muted);
  font-weight: 700;
}
.center-cell { text-align: center; }
.date-cell {
  width: 86px;
  min-width: 86px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
}
.jobs-table .sku-cell { max-width: 210px; }
#jobs-table,
#products-table,
#ozon-table {
  scroll-margin-top: 150px;
}
.jobs-stats div {
  min-height: 96px;
}
.jobs-live-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid #b2ccff;
  border-radius: 8px;
  background: #eef4ff;
}
.jobs-live-strip div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.jobs-live-strip strong {
  color: #175cd3;
}
.jobs-live-strip span {
  color: var(--muted);
  line-height: 1.3;
}
.jobs-refresh-state {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  white-space: nowrap;
}
.jobs-refresh-state.is-error {
  color: var(--danger);
  background: #fffbfa;
}
.job-pipeline-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.job-pipeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.job-pipeline-head h2 {
  margin: 0 0 4px;
  font-size: 18px;
}
.job-pipeline-head p {
  margin: 0;
  max-width: 980px;
  line-height: 1.35;
}
.job-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.job-pipeline-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-areas:
    "icon value"
    "icon label";
  align-items: center;
  gap: 2px 8px;
  min-height: 62px;
  padding: 10px 12px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfcfd;
}
.job-pipeline-step:hover {
  border-color: #b2ccff;
  background: #f9fbff;
}
.job-pipeline-step span {
  grid-area: icon;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--brand);
  background: #eef4ff;
  font-weight: 700;
}
.job-pipeline-step strong {
  grid-area: value;
  display: block;
  font-size: 22px;
  line-height: 1;
}
.job-pipeline-step em {
  grid-area: label;
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.25;
}
.job-pipeline-step.active {
  border-color: #fedf89;
  background: #fffcf5;
}
.job-pipeline-step.active span {
  color: #b54708;
  background: #fffaeb;
}
.job-pipeline-step.done span {
  color: var(--ok);
  background: #ecfdf3;
}
.job-pipeline-step.problem {
  border-color: #fecdca;
  background: #fffbfa;
}
.job-pipeline-step.problem span {
  color: var(--danger);
  background: #fef3f2;
}
.job-batch-progress {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #b2ccff;
  border-radius: 8px;
  background: #f5f8ff;
}
.batch-detail-progress {
  margin-bottom: 16px;
}
.batch-detail-stats {
  margin-bottom: 20px;
}
.job-batch-progress.active {
  border-color: #fedf89;
  background: #fffcf5;
}
.job-batch-progress.done {
  border-color: #abefc6;
  background: #f6fef9;
}
.job-batch-progress.error {
  border-color: #fecdca;
  background: #fffbfa;
}
.job-batch-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.job-batch-progress-head div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.job-batch-progress-head strong {
  line-height: 1.2;
}
.job-batch-progress-head span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}
.progress-percent {
  flex: 0 0 auto;
  min-width: 76px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  font-size: 26px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px var(--line);
}
.job-progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e7ec;
}
.job-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 260ms ease;
}
.job-batch-progress.active .job-progress-track span {
  background: #f79009;
}
.job-batch-progress.done .job-progress-track span {
  background: var(--ok);
}
.job-batch-progress.error .job-progress-track span {
  background: var(--danger);
}
.job-batch-message {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  line-height: 1.3;
}
.job-batch-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}
.job-batch-summary > div {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  line-height: 1.3;
}
.batch-summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--brand);
  font-weight: 700;
}
.job-batch-progress.done .batch-summary-icon {
  color: var(--ok);
  background: #ecfdf3;
}
.job-batch-progress.error .batch-summary-icon {
  color: var(--danger);
  background: #fef3f2;
}
.job-batch-mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.job-batch-mini span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}
.job-batch-mini b {
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}
.job-batch-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.job-batch-stage {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.job-batch-stage.active {
  border-color: #fedf89;
  background: #fffcf5;
}
.job-batch-stage.done {
  border-color: #abefc6;
  background: #f6fef9;
}
.job-batch-stage.problem {
  border-color: #fecdca;
  background: #fffbfa;
}
.stage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--brand);
  font-weight: 700;
}
.job-batch-stage.done .stage-icon {
  color: var(--ok);
  background: #ecfdf3;
}
.job-batch-stage.active .stage-icon {
  color: var(--warn);
  background: #fffaeb;
}
.job-batch-stage.problem .stage-icon {
  color: var(--danger);
  background: #fffbfa;
}
.job-batch-stage > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.job-batch-stage strong {
  line-height: 1.2;
}
.job-batch-stage em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}
.job-batch-stage dl {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}
.job-batch-stage dt,
.job-batch-stage dd {
  margin: 0;
  min-width: 0;
}
.job-batch-stage dt {
  grid-row: 2;
  color: var(--muted);
  font-size: 11px;
}
.job-batch-stage dd {
  grid-row: 1;
  font-weight: 700;
  line-height: 1.1;
}
.batch-report {
  display: grid;
  gap: 14px;
}
.batch-report-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid #b2ccff;
  border-radius: 8px;
  background: #f5f8ff;
}
.batch-report-hero.done {
  border-color: #abefc6;
  background: #f6fef9;
}
.batch-report-hero.active {
  border-color: #fedf89;
  background: #fffcf5;
}
.batch-report-hero.error {
  border-color: #fecdca;
  background: #fffbfa;
}
.batch-report-hero > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.batch-report-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--brand);
  font-weight: 800;
}
.batch-report-hero.done .batch-report-icon {
  color: var(--ok);
  background: #ecfdf3;
}
.batch-report-hero.active .batch-report-icon {
  color: var(--warn);
  background: #fffaeb;
}
.batch-report-hero.error .batch-report-icon {
  color: var(--danger);
  background: #fef3f2;
}
.batch-report-hero h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}
.batch-report-hero p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.3;
}
.batch-report-hero strong {
  flex: 0 0 auto;
  min-width: 74px;
  text-align: right;
  font-size: 28px;
  line-height: 1;
}
.batch-report-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.batch-report-meta span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  line-height: 1.2;
}
.batch-report-meta b {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.batch-report-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.batch-report-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.batch-report-step.done {
  border-color: #abefc6;
  background: #f6fef9;
}
.batch-report-step.active {
  border-color: #fedf89;
  background: #fffcf5;
}
.batch-report-step.problem {
  border-color: #fecdca;
  background: #fffbfa;
}
.batch-report-step-head {
  display: grid;
  gap: 3px;
}
.batch-report-step h4 {
  margin: 0;
  font-size: 16px;
  line-height: 1.15;
}
.batch-report-step-head strong {
  color: var(--muted);
  font-size: 14px;
}
.batch-report-step dl {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 4px 0 0;
}
.batch-report-step dt,
.batch-report-step dd {
  margin: 0;
  min-width: 0;
}
.batch-report-step dt {
  grid-row: 2;
  color: var(--muted);
  font-size: 12px;
}
.batch-report-step dd {
  grid-row: 1;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}
.batch-report-note {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #b2ccff;
  border-radius: 8px;
  background: #f5f8ff;
  color: var(--muted);
  line-height: 1.35;
}
.batch-report-note strong {
  color: var(--text);
}
.job-pipeline-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}
.job-pipeline-note span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f9fafb;
}
.jobs-results-panel {
  border-color: #abefc6;
}
.jobs-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 0.8fr) minmax(220px, 1.1fr) minmax(150px, 0.75fr) 44px;
  align-items: end;
}
.jobs-table {
  table-layout: fixed;
  min-width: 1180px;
}
.jobs-table th:nth-child(1),
.jobs-table td:nth-child(1) { width: 64px; }
.jobs-table th:nth-child(2),
.jobs-table td:nth-child(2) { width: 150px; }
.jobs-table th:nth-child(3),
.jobs-table td:nth-child(3) { width: 280px; }
.jobs-table th:nth-child(4),
.jobs-table td:nth-child(4) { width: 112px; }
.jobs-table th:nth-child(5),
.jobs-table td:nth-child(5) { width: 112px; }
.jobs-table th:nth-child(6),
.jobs-table td:nth-child(6) { width: 82px; }
.jobs-table th:nth-child(7),
.jobs-table td:nth-child(7),
.jobs-table th:nth-child(8),
.jobs-table td:nth-child(8) { width: 76px; }
.jobs-table th:nth-child(9),
.jobs-table td:nth-child(9) { width: 96px; }
.jobs-table th:nth-child(10),
.jobs-table td:nth-child(10) { width: 116px; }
.load-more-row {
  display: flex;
  justify-content: center;
  padding: 14px 0 2px;
}
.load-more-row button {
  min-width: 220px;
}
.job-action-title {
  display: block;
  line-height: 1.25;
}
.job-product-cell {
  min-width: 0;
}
.sku-link {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.2;
}
.mode-badge {
  display: inline-flex;
  justify-content: center;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
}
.mode-badge.read {
  background: #eef4ff;
  color: #175cd3;
}
.mode-badge.write {
  background: #fff6ed;
  color: #b54708;
}
.icon-detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}
.icon-detail-button:hover {
  border-color: #b2ccff;
  color: var(--brand);
  background: #eef4ff;
}
.compact-actions {
  min-width: 0;
}
.compact-actions form {
  margin: 0;
}
.compact-actions form + form {
  margin-top: 6px;
}
.number-cell {
  text-align: center;
  white-space: nowrap;
}
label { display: grid; gap: 6px; margin-bottom: 14px; }
input, select, button, .button {
  min-height: 36px;
  border-radius: 6px;
  border: 1px solid var(--line);
  padding: 8px 10px;
  font: inherit;
}
input[type="hidden"] {
  display: none;
}
button, .button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  cursor: pointer;
  justify-content: center;
  line-height: 1.2;
  text-align: center;
  vertical-align: middle;
}
.text-button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  line-height: 1.3;
}
.text-button:hover { text-decoration: underline; }
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
form.is-loading {
  cursor: wait;
}
.button.secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}
.compact-button {
  min-height: 34px;
  padding: 7px 12px;
  white-space: nowrap;
}
.search { display: flex; gap: 8px; }
.search input { min-width: 320px; }
.filters {
  display: flex;
  width: 100%;
  flex-wrap: nowrap;
  align-items: end;
  gap: 12px;
}
.filters label { flex: 1 1 0; min-width: 0; margin-bottom: 0; }
.filters input, .filters select, .filters button, .filters .button { width: 100%; min-width: 0; }
.action-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: start;
  gap: 12px;
}
.action-form label {
  min-width: 0;
  margin-bottom: 0;
}
.action-form input,
.action-form select {
  width: 100%;
  min-width: 0;
}
.action-form button {
  justify-self: end;
  min-width: 220px;
  max-width: 100%;
  white-space: normal;
}
.product-action-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.product-action-head h2 {
  margin: 0;
}
.product-action-head p {
  margin: 6px 0 0;
  max-width: 760px;
  line-height: 1.35;
}
.product-card-send-form {
  display: grid;
  grid-template-columns: minmax(280px, 740px) minmax(240px, 280px);
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.product-card-send-form label,
.product-commercial-form label {
  min-width: 0;
  margin-bottom: 0;
}
.product-card-send-form input,
.product-commercial-form input {
  width: 100%;
  min-width: 0;
}
.product-card-send-form button,
.product-commercial-form button {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  white-space: normal;
}
.product-commercial-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr)) minmax(240px, 278px);
  align-items: end;
  gap: 14px;
}
.settings-form {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(220px, 1fr) minmax(220px, 1fr);
  grid-template-areas:
    "endpoint api-key api-secret"
    "enabled submit .";
  align-items: start;
  gap: 14px;
  margin-top: 18px;
}
.settings-form label { min-width: 0; margin-bottom: 0; }
.settings-form input { width: 100%; min-width: 0; }
.settings-endpoint { grid-area: endpoint; }
.settings-key { grid-area: api-key; }
.settings-secret { grid-area: api-secret; }
.settings-submit {
  grid-area: submit;
  justify-self: start;
  min-width: 180px;
}
.field-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}
.checkbox-label {
  grid-area: enabled;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
}
.checkbox-label input {
  width: auto;
  min-height: 0;
}
.supplier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 16px;
  margin: 16px 0;
}
.supplier-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.supplier-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.supplier-card h2 { margin: 0 0 6px; }
.supplier-card p { margin: 0; }
.icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
button .icon,
.button .icon {
  flex: 0 0 auto;
  margin-right: 0;
}
.supplier-overview {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(360px, 1.25fr);
  gap: 12px;
  align-items: stretch;
  min-width: 0;
}
.supplier-status-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}
.supplier-status-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafb;
  min-width: 0;
}
.supplier-status-item > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.supplier-status-item strong {
  font-size: 15px;
  line-height: 1.15;
}
.status-glyph,
.metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #eef4ff;
  color: #175cd3;
}
.status-glyph.ok,
.metric-icon.ok {
  background: #ecfdf3;
  color: var(--ok);
}
.status-glyph.warning,
.metric-icon.warning {
  background: #fffaeb;
  color: var(--warn);
}
.status-glyph.error,
.metric-icon.error {
  background: #fffbfa;
  color: var(--danger);
}
.metric-label {
  color: var(--muted);
  font-size: 12px;
}
.metric-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}
.supplier-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}
.supplier-metrics.compact {
  gap: 8px;
}
.supplier-metrics div {
  display: grid;
  grid-template-columns: 30px auto minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  min-height: 58px;
  padding: 8px 10px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
}
.supplier-metrics strong {
  margin-left: 8px;
  font-size: 22px;
  line-height: 1;
}
.supplier-metrics span {
  margin-top: 0;
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.supplier-metrics .metric-icon {
  margin: 0;
}
.supplier-meta-line {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(360px, 1fr) minmax(300px, 0.8fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.supplier-meta-line > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.supplier-meta-line strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  min-width: 0;
}
.supplier-endpoint strong {
  font-weight: 500;
}
.credential-pair {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--ok);
}
.credential-pair .icon {
  margin-right: 6px;
}
.supplier-actions {
  display: grid;
  grid-template-columns: minmax(160px, 0.75fr) repeat(2, minmax(190px, 1fr));
  gap: 10px;
  min-width: 0;
}
.supplier-actions form,
.supplier-actions button {
  width: 100%;
  min-width: 0;
}
.supplier-update-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.supplier-update-panel > * {
  min-width: 0;
}
.supplier-update-stats {
  margin: 0;
}
.supplier-sync-state {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #fedf89;
  border-radius: 8px;
  background: #fffaeb;
}
.supplier-sync-state strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
}
.supplier-sync-state span {
  color: var(--muted);
  line-height: 1.35;
}
.supplier-sync-flags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 190px;
}
.supplier-manual-actions {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.supplier-manual-actions summary {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}
.supplier-manual-actions summary::-webkit-details-marker {
  display: none;
}
.supplier-manual-actions summary::after {
  content: "⌄";
  color: var(--muted);
  font-size: 18px;
}
.supplier-manual-actions[open] summary {
  border-bottom: 1px solid var(--line);
}
.supplier-manual-actions[open] summary::after {
  content: "⌃";
}
.supplier-manual-actions summary strong {
  display: block;
  margin-bottom: 3px;
}
.supplier-manual-actions summary span {
  color: var(--muted);
  line-height: 1.3;
}
.supplier-update-actions {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.6fr);
  align-items: stretch;
  gap: 12px;
  padding: 12px;
}
.supplier-update-note {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #b2ccff;
  border-radius: 8px;
  background: #f5f8ff;
  color: var(--muted);
  line-height: 1.3;
}
.supplier-update-note strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
}
.supplier-action-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.supplier-action-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.supplier-action-card strong {
  line-height: 1.2;
}
.supplier-action-card span {
  min-width: 0;
  color: var(--muted);
  line-height: 1.25;
}
.supplier-action-card button {
  min-width: 126px;
}
.supplier-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--brand);
}
.supplier-action-icon.write {
  background: #ecfdf3;
  color: var(--ok);
}
.supplier-queue-form {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(150px, auto);
  align-items: start;
  gap: 12px 10px;
}
.supplier-queue-form .supplier-action-icon {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}
.supplier-queue-form .supplier-action-copy {
  grid-column: 2;
  grid-row: 1;
}
.supplier-queue-form .supplier-send-controls {
  grid-column: 2 / 4;
  grid-row: 2;
}
.supplier-queue-form > button {
  grid-column: 3;
  grid-row: 1;
  justify-self: stretch;
  align-self: center;
}
.supplier-queue-form label {
  min-width: 0;
  margin-bottom: 0;
}
.supplier-queue-form input {
  width: 100%;
  min-width: 0;
}
.supplier-send-controls {
  display: grid;
  grid-template-columns: max-content max-content minmax(90px, 120px) minmax(160px, 1fr);
  align-items: end;
  gap: 8px;
  min-width: 0;
}
.toggle-chip {
  display: inline-grid;
  min-width: 0;
  margin: 0;
}
.toggle-chip input {
  position: absolute;
  width: 1px;
  min-width: 0;
  height: 1px;
  min-height: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.toggle-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.toggle-chip input:checked + span {
  border-color: #abefc6;
  background: #ecfdf3;
  color: var(--ok);
}
.toggle-chip .icon {
  width: 14px;
  height: 14px;
}
.compact-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.compact-field > span {
  color: var(--muted);
  font-size: 12px;
}
.compact-field input {
  min-height: 36px;
}
.confirmation-field {
  min-width: 120px;
}
.supplier-update-table {
  table-layout: fixed;
  min-width: 100%;
}
.supplier-update-table-wrap {
  min-width: 0;
}
.supplier-update-table th:nth-child(1),
.supplier-update-table td:nth-child(1) { width: 190px; }
.supplier-update-table th:nth-child(3),
.supplier-update-table td:nth-child(3),
.supplier-update-table th:nth-child(4),
.supplier-update-table td:nth-child(4) { width: 120px; }
.supplier-update-table th:nth-child(5),
.supplier-update-table td:nth-child(5) { width: 118px; }
.supplier-update-table th:nth-child(6),
.supplier-update-table td:nth-child(6) { width: 94px; }
.table-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  text-align: left;
}
.table-sort-button:hover {
  color: var(--brand);
}
.table-sort-button::after {
  content: "↕";
  color: #98a2b3;
  font-size: 12px;
}
.table-sort-button.is-asc::after {
  content: "↑";
  color: var(--brand);
}
.table-sort-button.is-desc::after {
  content: "↓";
  color: var(--brand);
}
.reason-cell {
  white-space: nowrap;
}
.reason-icons {
  display: inline-flex;
  justify-content: center;
  gap: 6px;
}
.reason-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f9fafb;
  color: var(--muted);
  cursor: help;
}
.reason-icon .icon {
  width: 14px;
  height: 14px;
}
.reason-icon.ok {
  border-color: #abefc6;
  background: #ecfdf3;
  color: var(--ok);
}
.reason-icon.warning {
  border-color: #fedf89;
  background: #fffaeb;
  color: var(--warn);
}
.reason-icon.error {
  border-color: #fecdca;
  background: #fffbfa;
  color: var(--danger);
}
.supplier-catalog-details {
  padding: 0;
  overflow: hidden;
}
.supplier-catalog-details summary {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}
.supplier-catalog-details summary::-webkit-details-marker {
  display: none;
}
.supplier-catalog-details summary::after {
  content: "Показать";
  justify-self: end;
  min-width: 78px;
  color: var(--brand);
  font-weight: 600;
}
.supplier-catalog-details[open] summary::after {
  content: "Скрыть";
}
.supplier-catalog-details summary > span:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.supplier-catalog-details summary strong {
  font-size: 16px;
}
.supplier-catalog-details summary em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.25;
}
.supplier-catalog-details summary .status {
  justify-self: end;
}
.supplier-catalog-table-wrap {
  margin: 0 16px 16px;
  width: calc(100% - 32px);
}
.supplier-stop-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(500px, 0.58fr);
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #fecdca;
  border-radius: 8px;
  background: #fffbfa;
}
.supplier-stop-copy {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.supplier-stop-copy strong {
  display: block;
  margin-bottom: 3px;
  color: var(--danger);
}
.supplier-stop-copy span {
  color: var(--muted);
  line-height: 1.3;
}
.supplier-stop-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 230px;
  grid-template-areas:
    "label label"
    "input button";
  align-items: center;
  gap: 6px 12px;
  min-width: 0;
}
.supplier-stop-label {
  grid-area: label;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}
.supplier-stop-input {
  grid-area: input;
  width: 100%;
  min-width: 0;
  height: 44px;
  min-height: 44px;
}
.supplier-stop-form button {
  grid-area: button;
  width: 230px;
  height: 44px;
  min-height: 44px;
  padding: 0 14px;
  background: var(--danger);
  border-color: var(--danger);
  white-space: nowrap;
  justify-self: end;
}
.supplier-stop-form button span {
  white-space: nowrap;
}
.value-stack {
  display: grid;
  gap: 2px;
  justify-items: center;
  line-height: 1.2;
}
.value-stack span {
  color: var(--muted);
  font-size: 12px;
}
.supplier-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  min-height: 18px;
}
.automation-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  min-width: 0;
  padding: 14px 16px;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.automation-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}
.automation-title {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.automation-title > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.automation-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--brand);
}
.automation-icon.ok {
  background: #ecfdf3;
  color: var(--ok);
}
.automation-icon.warning {
  background: #fffaeb;
  color: var(--warn);
}
.automation-strip strong {
  font-size: 16px;
}
.automation-strip span,
.automation-strip p {
  margin: 0;
  line-height: 1.3;
}
.automation-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
  min-width: 0;
}
.automation-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 64px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafb;
}
.automation-card.highlight {
  border-color: #b2ccff;
  background: #f5f8ff;
}
.automation-card > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.automation-card span {
  color: var(--muted);
  font-size: 12px;
}
.automation-card strong {
  font-size: 14px;
  line-height: 1.15;
}
.automation-card em {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.automation-headline > .button {
  flex: 0 0 auto;
  white-space: nowrap;
}
.automation-form .info-box {
  grid-column: 1 / -1;
}
.toggle-field {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.toggle-field input {
  justify-self: center;
}
.toggle-field span {
  display: grid;
  gap: 3px;
}
.toggle-field strong {
  font-weight: 700;
}
.toggle-field em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.35;
}
.checkbox-stack {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.checkbox-stack .checkbox-label {
  grid-area: auto;
  display: inline-grid;
  grid-template-columns: 18px auto;
  justify-content: start;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  margin: 0;
  white-space: nowrap;
}
.field-caption {
  color: var(--muted);
  font-size: 13px;
}
.compact-warning {
  padding: 10px 12px;
}
.pricing-rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.pricing-rule-card {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.pricing-rule-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  min-width: 0;
}
.pricing-rule-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--brand);
}
.pricing-rule-head .status {
  margin-top: 1px;
  white-space: nowrap;
}
.pricing-rule-card h2 {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.2;
}
.pricing-rule-card p {
  margin: 0;
  line-height: 1.25;
}
.pricing-rule-card button {
  align-self: end;
  justify-self: end;
  min-width: 190px;
  margin-top: 2px;
}
.pricing-rule-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.pricing-rule-metrics div {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafb;
}
.pricing-rule-metrics span,
.pricing-rule-facts span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}
.pricing-rule-metrics strong,
.pricing-rule-facts strong {
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.pricing-rule-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.pricing-rule-facts.single-row {
  grid-template-columns: 1fr;
}
.pricing-rule-facts div {
  display: grid;
  grid-template-columns: minmax(112px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.pricing-rule-facts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.pricing-rule-facts .icon {
  width: 14px;
  height: 14px;
  color: var(--brand);
}
.compact-dl {
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 6px 10px;
  margin: 0;
  font-size: 13px;
}
.compact-dl dt,
.compact-dl dd {
  line-height: 1.25;
}
.price-rule-form .form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 14px 16px;
}
.price-rule-form .info-box {
  padding: 10px 12px;
}
.price-rule-form .info-box span {
  max-width: 920px;
}
.price-rule-form .form-grid label {
  align-content: start;
  gap: 7px;
}
.price-rule-form .form-grid input,
.price-rule-form .form-grid select {
  width: 100%;
  min-height: 44px;
}
.price-rule-form .field-note {
  min-height: 32px;
  max-width: 320px;
}
.price-rule-form .modal-checkbox {
  grid-area: auto;
}
.modal-form {
  display: grid;
  gap: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.form-grid label {
  min-width: 0;
  margin-bottom: 0;
  align-content: start;
}
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  min-width: 0;
}
.form-grid textarea {
  min-height: 132px;
  resize: vertical;
}
.telegram-form-grid {
  align-items: start;
}
.telegram-form-grid textarea {
  min-height: 92px;
}
.telegram-events-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.telegram-events-grid .field-caption {
  grid-column: 1 / -1;
}
.telegram-events-grid .checkbox-label {
  grid-area: auto;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-height: 0;
  margin: 0;
  line-height: 1.25;
}
.telegram-events-grid .checkbox-label input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 1px 0 0;
}
.telegram-events-grid .checkbox-label span {
  min-width: 0;
}
.telegram-test-result {
  max-height: 180px;
  overflow: auto;
}
.form-grid input[type="checkbox"],
.form-grid input[type="radio"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  margin: 0;
}
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.info-box {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #b2ccff;
  border-radius: 8px;
  background: #eef4ff;
  line-height: 1.35;
}
.info-box strong {
  color: var(--text);
}
.info-box span {
  color: var(--muted);
}
.modal-checkbox {
  grid-area: auto;
  margin: 0;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 4px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  background: #fff;
}
.icon-button {
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 20px;
  text-decoration: none;
  line-height: 1;
}
.icon-button:hover { color: var(--brand); border-color: #b2ccff; background: #eef4ff; }
.issue-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #fecdca;
  background: #fffbfa;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
  cursor: help;
}
.sort-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
}
.sort-link:hover { color: var(--brand); }
.centered-sort {
  justify-content: center;
  width: 100%;
}
.product-table {
  table-layout: fixed;
  min-width: 100%;
}
.product-table th:nth-child(1),
.product-table td:nth-child(1) { width: 190px; }
.product-table th:nth-child(2),
.product-table td:nth-child(2) { width: 120px; }
.product-table th:nth-child(4),
.product-table td:nth-child(4) { width: 92px; }
.product-table th:nth-child(5),
.product-table td:nth-child(5) { width: 86px; }
.product-table th:nth-child(6),
.product-table td:nth-child(6) { width: 120px; }
.product-table th:nth-child(7),
.product-table td:nth-child(7),
.product-table th:nth-child(8),
.product-table td:nth-child(8) { width: 84px; }
.product-table .sku-cell {
  font-size: 13px;
  line-height: 1.2;
}
.auto-cell {
  text-align: center;
}
.auto-cell .mini {
  justify-content: center;
}
.ozon-catalog-table {
  table-layout: fixed;
  min-width: 100%;
}
.ozon-catalog-table th:nth-child(1),
.ozon-catalog-table td:nth-child(1) { width: 190px; }
.ozon-catalog-table th:nth-child(2),
.ozon-catalog-table td:nth-child(2) { width: 112px; }
.ozon-catalog-table th:nth-child(3),
.ozon-catalog-table td:nth-child(3) { width: auto; }
.ozon-catalog-table th:nth-child(4),
.ozon-catalog-table td:nth-child(4) { width: 124px; }
.ozon-catalog-table th:nth-child(5),
.ozon-catalog-table td:nth-child(5) { width: 90px; }
.ozon-catalog-table th:nth-child(6),
.ozon-catalog-table td:nth-child(6) { width: 86px; }
.ozon-catalog-table th:nth-child(7),
.ozon-catalog-table td:nth-child(7) { width: 92px; }
.ozon-catalog-table .sku-cell {
  font-size: 13px;
  line-height: 1.2;
}
.ozon-catalog-table .status {
  max-width: 100%;
  justify-content: center;
  white-space: nowrap;
}
.product-info-cell {
  min-width: 0;
}
.product-title-link {
  display: block;
  color: var(--text);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.product-title-link:hover {
  color: var(--brand);
}
.product-type-line {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}
.status-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #d0d5dd;
  background: #f9fafb;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
}
.status-icon.ok {
  border-color: #abefc6;
  background: #ecfdf3;
  color: var(--ok);
}
.status-icon.warning,
.status-icon.pending {
  border-color: #fedf89;
  background: #fffaeb;
  color: var(--warn);
}
.status-icon.error {
  border-color: #fecdca;
  background: #fffbfa;
  color: var(--danger);
}
.floating-tooltip {
  position: fixed;
  z-index: 250;
  width: min(420px, 72vw);
  max-height: 240px;
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.14);
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  pointer-events: none;
}
.page-subtitle {
  max-width: 820px;
}
.small-button {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 13px;
}
.import-upload-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: 18px;
}
.import-upload-panel h2 {
  margin: 0 0 8px;
}
.import-upload-panel p {
  margin: 0;
}
.import-upload-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}
.import-upload-form label {
  margin-bottom: 0;
}
.import-upload-form input {
  width: 100%;
}
.file-control {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.visually-hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.file-button {
  flex: 0 0 auto;
}
.file-name {
  min-width: 0;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.imports-table {
  table-layout: fixed;
  min-width: 100%;
}
.imports-table th:nth-child(1),
.imports-table td:nth-child(1) { width: 64px; }
.imports-table th:nth-child(3),
.imports-table td:nth-child(3),
.imports-table th:nth-child(4),
.imports-table td:nth-child(4),
.imports-table th:nth-child(5),
.imports-table td:nth-child(5) { width: 118px; }
.imports-table th:nth-child(6),
.imports-table td:nth-child(6) { width: 96px; }
.imports-table th:nth-child(7),
.imports-table td:nth-child(7) { width: 138px; }
.bulk-filters-panel .panel-head {
  margin-bottom: 14px;
}
.bulk-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(220px, 1fr) minmax(220px, 1fr) minmax(160px, 0.8fr) 44px;
  align-items: end;
}
.bulk-reset {
  width: 44px;
}
.bulk-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.bulk-flow div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.bulk-flow strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--brand);
}
.bulk-flow span {
  min-width: 0;
  color: var(--text);
  line-height: 1.25;
}
.bulk-stats div {
  min-height: 104px;
}
.bulk-stats .stat-ok {
  border-color: #abefc6;
}
.bulk-stats .stat-warning {
  border-color: #fedf89;
}
.bulk-stats .stat-danger {
  border-color: #fecdca;
}
.bulk-stats .stat-primary {
  border-color: #b2ccff;
}
.bulk-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.bulk-action-card {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 14px;
  margin: 0;
}
.bulk-check-card {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1fr) minmax(260px, auto);
  align-items: center;
  gap: 14px 18px;
}
.bulk-check-card .bulk-action-head {
  align-items: center;
}
.bulk-check-card .bulk-action-steps {
  padding-left: 0;
}
.bulk-check-card .bulk-action-state {
  grid-column: 1 / 3;
  padding-left: 42px;
}
.bulk-check-card .bulk-action-form {
  grid-column: 3;
  grid-row: 1 / 3;
  padding-left: 0;
}
.bulk-check-card .bulk-action-form button {
  width: 100%;
  min-width: 250px;
}
.bulk-action-head {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}
.bulk-action-head h2 {
  margin: 0 0 5px;
}
.bulk-action-head p {
  margin: 0;
  line-height: 1.35;
}
.bulk-action-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #ecfdf3;
  color: var(--ok);
  font-weight: 700;
}
.bulk-action-mark.danger {
  background: #fffbfa;
  color: var(--danger);
}
.bulk-action-mark.stream {
  background: #eef4ff;
  color: var(--brand);
}
.bulk-action-steps {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0 0 0 42px;
  color: var(--muted);
  line-height: 1.35;
}
.bulk-action-steps.numbered {
  padding-left: 58px;
}
.bulk-action-state {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-left: 42px;
}
.bulk-scope-note {
  display: grid;
  gap: 4px;
  margin-left: 42px;
  padding: 10px 12px;
  border: 1px solid #fedf89;
  border-radius: 8px;
  background: #fffaeb;
}
.bulk-scope-note strong {
  color: var(--warn);
}
.bulk-scope-note span {
  color: var(--muted);
  line-height: 1.35;
}
.bulk-stream-card {
  border-color: #b2ccff;
  background: #f9fbff;
}
.bulk-stream-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-left: 42px;
}
.bulk-stream-summary div {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 70px;
  padding: 10px;
  border: 1px solid #d1e0ff;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}
.bulk-stream-summary strong {
  font-size: 20px;
  line-height: 1.1;
}
.bulk-stream-summary span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}
.bulk-action-form {
  display: flex;
  justify-content: flex-end;
  padding-left: 42px;
}
.bulk-action-form button {
  min-width: 240px;
}
.bulk-send-form {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(190px, 1fr);
  align-items: end;
  gap: 12px;
  margin-left: 42px;
}
.bulk-send-form label {
  margin-bottom: 0;
}
.bulk-send-form input {
  width: 100%;
}
.bulk-send-form button {
  grid-column: 1 / -1;
  justify-self: end;
  min-width: 240px;
}
.bulk-stream-form {
  grid-template-columns: minmax(190px, 1fr) minmax(210px, auto);
}
.bulk-stream-form button {
  grid-column: auto;
}
@media (max-width: 1100px) {
  .bulk-check-card {
    grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
  }
  .bulk-check-card .bulk-action-head,
  .bulk-check-card .bulk-action-steps,
  .bulk-check-card .bulk-action-state {
    grid-column: 1;
    padding-left: 0;
  }
  .bulk-check-card .bulk-action-form {
    grid-column: 2;
    grid-row: 1 / 4;
  }
}
.bulk-table {
  table-layout: fixed;
  min-width: 100%;
}
.bulk-table th:nth-child(1),
.bulk-table td:nth-child(1) { width: 190px; }
.bulk-table th:nth-child(3),
.bulk-table td:nth-child(3) { width: 132px; }
.bulk-table th:nth-child(4),
.bulk-table td:nth-child(4),
.bulk-table th:nth-child(5),
.bulk-table td:nth-child(5) { width: 82px; }
.bulk-table th:nth-child(6),
.bulk-table td:nth-child(6) { width: 96px; }
.bulk-table .sku-cell {
  font-size: 13px;
  line-height: 1.2;
}
.bulk-table .status {
  justify-content: center;
  max-width: 100%;
  white-space: nowrap;
}
.bulk-table .issue-icon {
  width: 26px;
  height: 26px;
}
.fulfillment-status-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.fulfillment-mode-card {
  display: grid;
  align-content: start;
  gap: 8px;
  margin: 0;
}
.fulfillment-mode-card .status {
  justify-self: start;
}
.fulfillment-mode-card h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}
.fulfillment-mode-card p {
  margin: 0;
  line-height: 1.35;
}
.fulfillment-sync-form {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(260px, 1.6fr) minmax(120px, 0.7fr) minmax(190px, auto);
}
.fulfillment-filters {
  display: grid;
  grid-template-columns: minmax(280px, 1.6fr) minmax(180px, 0.8fr) minmax(180px, 0.8fr) 44px;
}
.fulfillment-table {
  table-layout: fixed;
  min-width: 100%;
}
.fulfillment-table th:nth-child(1),
.fulfillment-table td:nth-child(1) { width: 170px; }
.fulfillment-table th:nth-child(3),
.fulfillment-table td:nth-child(3) { width: 112px; }
.fulfillment-table th:nth-child(4),
.fulfillment-table td:nth-child(4) { width: 74px; }
.fulfillment-table th:nth-child(5),
.fulfillment-table td:nth-child(5) { width: 86px; }
.fulfillment-table th:nth-child(6),
.fulfillment-table td:nth-child(6) { width: 150px; }
.fulfillment-table th:nth-child(7),
.fulfillment-table td:nth-child(7) { width: 108px; }
.fulfillment-table th:nth-child(8),
.fulfillment-table td:nth-child(8) { width: 70px; }
.small-text {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.25;
}
.detail-list {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0 0 14px;
}
.detail-list dt,
.detail-list dd {
  margin: 0;
  min-width: 0;
}
.detail-list dt {
  color: var(--muted);
}
.detail-list dd {
  overflow-wrap: anywhere;
}
.issue-modal-content h3 {
  margin: 18px 0 8px;
  font-size: 16px;
}
.fulfillment-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.fulfillment-action-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.fulfillment-action-card h4 {
  margin: 0 0 6px;
  font-size: 16px;
}
.fulfillment-action-card p {
  margin: 0 0 12px;
  line-height: 1.35;
}
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #eef4ff;
  color: #175cd3;
  font-weight: 700;
}
.inline-confirm-form {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.inline-confirm-form input,
.inline-confirm-form button {
  min-height: 40px;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.row-actions {
  min-width: 72px;
}
.row-actions form {
  margin: 0 0 6px;
}
.row-actions button {
  min-height: 30px;
  padding: 5px 8px;
}
.messages { display: grid; gap: 8px; margin-bottom: 16px; }
.message { padding: 10px 12px; border-radius: 6px; background: #eef4ff; border: 1px solid #b2ccff; }
.message.error { background: #fffbfa; border-color: #fecdca; color: var(--danger); }
.message.success { background: #ecfdf3; border-color: #abefc6; color: var(--ok); }
.form-error {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #fecdca;
  background: #fffbfa;
  color: var(--danger);
}
.login-note { margin: 14px 0 0; }
.status { display: inline-flex; padding: 3px 8px; border-radius: 999px; background: #eef4ff; color: #175cd3; }
.status.ok { background: #ecfdf3; color: var(--ok); }
.status.warning { background: #fffaeb; color: var(--warn); }
.status.error { background: #fffbfa; color: var(--danger); }
.status.new { background: #eef4ff; color: #175cd3; }
.status.processing { background: #fffaeb; color: var(--warn); }
.status.done { background: #ecfdf3; color: var(--ok); }
.status.cancelled { background: #f2f4f7; color: var(--muted); }
.mini {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  background: #f2f4f7;
  color: var(--muted);
}
.mini.on { background: #ecfdf3; color: var(--ok); }
.mini.off { background: #fffbfa; color: var(--danger); }
dl { display: grid; grid-template-columns: 160px 1fr; gap: 8px 12px; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
pre {
  overflow: auto;
  background: #101828;
  color: #f2f4f7;
  border-radius: 8px;
  padding: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.code-block {
  max-height: 460px;
}
.code-block-small {
  max-width: 560px;
  max-height: 300px;
}
.issues { margin: 8px 0 0; padding-left: 20px; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 24, 40, 0.45);
}
.modal-backdrop[hidden] { display: none; }
.modal {
  width: min(1040px, 96vw);
  max-height: 90vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 20px 42px rgba(16, 24, 40, 0.22);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 { margin: 0; font-size: 18px; }
.modal-close {
  flex-basis: 36px;
  width: 36px;
  min-height: 34px;
  font-size: 22px;
}
.modal-body {
  min-height: 0;
  overflow: auto;
  padding: 16px;
}
.modal-body pre { margin: 0; max-height: none; }
@media (max-width: 800px) {
  .stats, .grid { grid-template-columns: 1fr; }
  .app-header {
    position: static;
  }
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 8px 12px;
  }
  .brand { min-width: 0; }
  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow-x: visible;
  }
  .nav-item {
    min-width: 0;
    min-height: 38px;
    padding: 7px 8px;
  }
  .nav-label {
    font-size: 13px;
    white-space: normal;
  }
  .nav-label-full {
    display: none;
  }
  .nav-label-short {
    display: inline;
  }
  .account-actions {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
  }
  .settings-link {
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .section-nav {
    flex-wrap: wrap;
    overflow-x: visible;
    padding: 0 12px 10px;
  }
  .container { padding: 16px; }
  .page-head, .panel-head { align-items: flex-start; flex-direction: column; }
  .search, .actions { align-items: stretch; flex-direction: column; }
  .filters { flex-direction: column; align-items: stretch; }
  .filters label { flex: 1 1 auto; width: 100%; }
  .icon-button { width: 100%; }
  .jobs-filters {
    display: flex;
    flex-direction: column;
  }
  .jobs-live-strip {
    align-items: stretch;
    flex-direction: column;
  }
  .job-pipeline-head,
  .job-pipeline-note,
  .job-batch-progress-head {
    align-items: stretch;
    flex-direction: column;
  }
  .job-pipeline-grid {
    grid-template-columns: 1fr;
  }
  .job-batch-stages {
    grid-template-columns: 1fr;
  }
  .job-batch-summary {
    align-items: stretch;
    flex-direction: column;
  }
  .job-batch-mini,
  .batch-report-meta,
  .batch-report-steps {
    grid-template-columns: 1fr;
  }
  .batch-report-hero {
    align-items: stretch;
    flex-direction: column;
  }
  .batch-report-hero strong {
    text-align: left;
  }
  .jobs-refresh-state {
    align-self: flex-start;
  }
  .bulk-filters {
    display: flex;
    flex-direction: column;
  }
  .bulk-reset {
    width: 100%;
  }
  .bulk-flow,
  .bulk-actions-grid {
    grid-template-columns: 1fr;
  }
  .fulfillment-status-panel,
  .fulfillment-sync-form,
  .fulfillment-filters,
  .fulfillment-action-grid,
  .inline-confirm-form {
    grid-template-columns: 1fr;
  }
  .import-upload-panel,
  .import-upload-form {
    grid-template-columns: 1fr;
  }
  .import-upload-form button {
    width: 100%;
  }
  .file-control {
    align-items: stretch;
    flex-direction: column;
  }
  .file-button {
    width: 100%;
  }
  .bulk-action-card {
    grid-template-columns: 1fr;
  }
  .bulk-check-card {
    grid-column: auto;
  }
  .bulk-check-card .bulk-action-head,
  .bulk-check-card .bulk-action-steps,
  .bulk-check-card .bulk-action-state,
  .bulk-check-card .bulk-action-form {
    grid-column: auto;
    grid-row: auto;
  }
  .bulk-action-head {
    grid-template-columns: 32px minmax(0, 1fr);
  }
  .bulk-action-steps,
  .bulk-action-steps.numbered,
  .bulk-action-state,
  .bulk-scope-note,
  .bulk-stream-summary,
  .bulk-action-form,
  .bulk-send-form {
    margin-left: 0;
    padding-left: 0;
  }
  .bulk-action-form,
  .bulk-action-form button {
    width: 100%;
  }
  .bulk-send-form {
    grid-template-columns: 1fr;
  }
  .bulk-stream-summary {
    grid-template-columns: 1fr;
  }
  .bulk-stream-form button {
    width: 100%;
  }
  .action-form { grid-template-columns: 1fr; }
  .action-form button { justify-self: stretch; width: 100%; }
  .product-action-head {
    flex-direction: column;
  }
  .product-card-send-form,
  .product-commercial-form {
    grid-template-columns: 1fr;
  }
  .settings-form {
    grid-template-columns: 1fr;
    grid-template-areas:
      "endpoint"
      "api-key"
      "api-secret"
      "enabled"
      "submit";
  }
  .settings-form button { justify-self: stretch; width: 100%; }
  .supplier-grid { grid-template-columns: 1fr; }
  .supplier-card {
    padding: 14px;
    overflow: hidden;
  }
  .supplier-card-head { align-items: flex-start; flex-direction: column; }
  .supplier-overview,
  .supplier-status-list,
  .supplier-meta-line {
    grid-template-columns: 1fr;
  }
  .supplier-overview,
  .supplier-status-list,
  .supplier-status-item,
  .supplier-meta-line,
  .supplier-meta-line > span,
  .supplier-actions,
  .supplier-actions form,
  .supplier-actions button {
    min-width: 0;
  }
  .supplier-metrics {
    grid-template-columns: 1fr;
  }
  .supplier-meta-line strong,
  .supplier-endpoint strong,
  .credential-pair {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
  }
  .credential-pair {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 4px;
  }
  .pricing-rules-grid,
  .pricing-rule-card,
  .automation-strip,
  .automation-headline,
  .automation-title,
  .automation-cards,
  .price-rule-form .form-grid {
    grid-template-columns: 1fr;
  }
  .automation-headline {
    display: grid;
  }
  .automation-headline > .button {
    width: 100%;
  }
  .pricing-rule-card button {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
  }
  .pricing-rule-head {
    grid-template-columns: 34px minmax(0, 1fr);
  }
  .pricing-rule-head .status {
    grid-column: 2;
    justify-self: start;
  }
  .pricing-rule-metrics,
  .pricing-rule-facts {
    grid-template-columns: 1fr;
  }
  .pricing-rule-facts div {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .supplier-health,
  .supplier-metrics,
  .supplier-actions,
  .supplier-sync-state,
  .supplier-manual-actions summary,
  .supplier-update-actions,
  .supplier-queue-form,
  .supplier-action-card,
  .supplier-send-controls,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .supplier-sync-flags {
    justify-content: flex-start;
    min-width: 0;
  }
  .supplier-action-card button {
    width: 100%;
  }
  .supplier-queue-form .supplier-action-icon,
  .supplier-queue-form .supplier-action-copy,
  .supplier-queue-form .supplier-send-controls,
  .supplier-queue-form > button {
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
  }
  .supplier-send-controls {
    align-items: stretch;
  }
  .toggle-chip span {
    justify-content: flex-start;
  }
  .supplier-catalog-details summary {
    grid-template-columns: 30px minmax(0, 1fr);
  }
  .supplier-catalog-details summary .status,
  .supplier-catalog-details summary::after {
    grid-column: 2;
    justify-self: start;
  }
  .supplier-stop-panel,
  .supplier-stop-copy,
  .supplier-stop-form {
    grid-template-columns: 1fr;
  }
  .supplier-stop-form {
    grid-template-areas:
      "label"
      "input"
      "button";
  }
  .supplier-stop-form button {
    width: 100%;
  }
  .span-2,
  .span-3 { grid-column: auto; }
  .supplier-actions form,
  .supplier-actions button,
  .modal-actions button {
    width: 100%;
  }
  .modal-actions {
    flex-direction: column-reverse;
  }
  .search input, .filters label, .filters input, .filters select, .filters button, .filters .button {
    min-width: 0;
    width: 100%;
  }
  .actions form, .actions button, .actions .button { width: 100%; }
  dl { grid-template-columns: 1fr; }
  dt { font-weight: 600; }
  .table-wrap table { min-width: 760px; }
  .modal-backdrop { padding: 12px; }
  .modal { width: 100%; max-height: 90vh; }
}
