:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-muted: #f8faff;
  --text: #172033;
  --text-soft: #667085;
  --text-faint: #98a2b3;
  --line: #e7ebf2;
  --line-strong: #d8deea;
  --primary: #1265ff;
  --primary-dark: #0a4dd8;
  --primary-soft: #edf4ff;
  --violet: #7956f6;
  --cyan: #13b9e6;
  --green: #16a66a;
  --green-soft: #e9f9f1;
  --orange: #f79009;
  --orange-soft: #fff5e6;
  --red: #e44848;
  --red-soft: #fff0f0;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 5px rgba(16, 24, 40, 0.03);
  --shadow-md: 0 12px 30px rgba(31, 45, 84, 0.09);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --sidebar-width: 248px;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

.auth-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-content: center;
  padding: 32px 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 15%, rgba(19, 185, 230, 0.2), transparent 30%),
    radial-gradient(circle at 85% 80%, rgba(121, 86, 246, 0.22), transparent 34%),
    linear-gradient(145deg, #f7faff 0%, #eef4ff 48%, #f7f5ff 100%);
}

.auth-shell::before,
.auth-shell::after {
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(18, 101, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.auth-shell::before {
  top: -190px;
  right: -90px;
}

.auth-shell::after {
  bottom: -220px;
  left: -90px;
}

.auth-brand,
.auth-card,
.auth-security-note {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto 20px;
}

.auth-brand strong,
.auth-brand small {
  display: block;
}

.auth-brand strong {
  color: #13203b;
  font-size: 19px;
  letter-spacing: 0.04em;
}

.auth-brand small {
  margin-top: 1px;
  color: var(--text-faint);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.auth-card {
  margin: 0 auto;
  padding: 34px;
  border: 1px solid rgba(216, 222, 234, 0.86);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(31, 45, 84, 0.14);
  backdrop-filter: blur(16px);
}

.auth-card-header {
  margin-bottom: 25px;
}

.auth-card-header .eyebrow {
  margin-bottom: 8px;
}

.auth-card-header h1 {
  margin: 0;
  color: #172033;
  font-size: 27px;
  line-height: 1.25;
}

.auth-card-header p {
  margin: 9px 0 0;
  color: var(--text-soft);
}

.auth-form {
  display: grid;
  gap: 17px;
}

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

.auth-field > span {
  color: #344054;
  font-size: 13px;
  font-weight: 600;
}

.auth-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(18, 101, 255, 0.1);
}

.auth-field small {
  color: var(--text-faint);
  font-size: 11px;
}

.auth-submit {
  min-height: 46px;
  margin-top: 3px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #6754ed);
  box-shadow: 0 9px 20px rgba(18, 101, 255, 0.22);
  cursor: pointer;
  font-weight: 700;
}

.auth-submit:hover {
  background: linear-gradient(135deg, var(--primary-dark), #5441d7);
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.auth-error {
  padding: 11px 13px;
  border: 1px solid #ffd0d0;
  border-radius: 9px;
  color: #b42318;
  background: var(--red-soft);
  font-size: 12px;
}

.auth-error:empty {
  display: none;
}

.auth-loading-state {
  display: grid;
  min-height: 215px;
  place-items: center;
  align-content: center;
  gap: 9px;
  text-align: center;
}

.auth-loading-state small {
  color: var(--text-faint);
}

.auth-spinner {
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
  border: 3px solid var(--primary-soft);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: auth-spin 0.8s linear infinite;
}

.auth-security-note {
  margin: 18px auto 0;
  color: var(--text-faint);
  font-size: 11px;
  text-align: center;
}

.filing-link {
  color: inherit;
  text-decoration: none;
}

.filing-link:hover,
.filing-link:focus-visible {
  color: var(--primary);
  text-decoration: underline;
}

.auth-security-note .filing-link {
  display: block;
  margin-top: 6px;
}

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

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

button {
  color: inherit;
}

button,
a,
input,
select {
  outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(18, 101, 255, 0.18);
  outline-offset: 2px;
}

.is-preview-action {
  cursor: not-allowed !important;
  opacity: 0.58;
}

a.is-preview-action {
  pointer-events: none;
}

button.is-preview-action::after {
  content: "预览";
  margin-left: 0.4em;
  padding: 1px 4px;
  border-radius: 999px;
  color: #667085;
  background: #eef1f6;
  font-size: 9px;
  font-weight: 700;
}

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

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #fff;
  transition: transform 0.25s ease;
}

.brand {
  display: flex;
  height: 70px;
  flex: 0 0 70px;
  align-items: center;
  gap: 11px;
  padding: 0 20px;
  border-bottom: 1px solid #f0f2f6;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(145deg, #1169ff 10%, #744cff 85%);
  box-shadow: 0 7px 16px rgba(18, 101, 255, 0.25);
}

.brand-mark span {
  position: absolute;
  width: 5px;
  border-radius: 9px;
  background: #fff;
  transform: rotate(32deg);
}

.brand-mark span:nth-child(1) {
  height: 12px;
  left: 9px;
  top: 15px;
  opacity: 0.75;
}

.brand-mark span:nth-child(2) {
  height: 21px;
  left: 15px;
  top: 8px;
}

.brand-mark span:nth-child(3) {
  height: 14px;
  left: 22px;
  top: 7px;
  opacity: 0.88;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  letter-spacing: 0.06em;
}

.brand small {
  margin-top: -1px;
  color: var(--text-faint);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.workspace-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 13px 6px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
  cursor: pointer;
}

.workspace-switcher:hover {
  border-color: #cbd6ea;
  background: #f4f7fd;
}

.workspace-avatar,
.profile-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, #1ba4a1, #1169ff);
}

.workspace-avatar {
  width: 32px;
  height: 32px;
  font-weight: 700;
}

.workspace-copy,
.profile-copy {
  min-width: 0;
  flex: 1;
  text-align: left;
}

.workspace-copy strong,
.workspace-copy small,
.profile-copy strong,
.profile-copy small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.workspace-copy strong {
  font-size: 13px;
}

.workspace-copy small,
.profile-copy small {
  color: var(--text-faint);
  font-size: 11px;
}

.chevron {
  color: var(--text-faint);
}

.nav-groups {
  flex: 1;
  overflow-y: auto;
  padding: 3px 12px 18px;
  scrollbar-width: thin;
  scrollbar-color: #d7dce6 transparent;
}

.nav-group {
  margin-top: 17px;
}

.nav-group p {
  margin: 0 10px 6px;
  color: #a0a8b7;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.nav-item {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  color: #4c566a;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: 0.16s ease;
}

.nav-item:hover {
  color: var(--text);
  background: #f5f7fb;
}

.nav-item.is-active {
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 650;
}

.nav-icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  border-radius: 6px;
  color: #7c879b;
  font-size: 16px;
  font-weight: 500;
}

.is-active .nav-icon {
  color: var(--primary);
}

.nav-badge {
  margin-left: auto;
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--primary);
  background: #dce9ff;
  font-size: 8px;
  font-weight: 800;
}

.nav-count {
  display: grid;
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--red);
  font-size: 10px;
  font-weight: 700;
}

.sidebar-footer {
  flex: 0 0 auto;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.sidebar-filing-link {
  display: block;
  margin: 8px 4px 0;
  color: var(--text-faint);
  font-size: 10px;
  text-align: center;
}

.plan-usage {
  margin: 0 4px 8px;
  padding: 10px 9px 9px;
  border-radius: 9px;
  background: linear-gradient(140deg, #f7f9ff, #f1f6ff);
}

.plan-usage > div:first-child {
  display: flex;
  justify-content: space-between;
  color: var(--text-soft);
  font-size: 11px;
}

.plan-usage strong {
  color: var(--primary);
}

.usage-track {
  height: 5px;
  margin: 7px 0 5px;
  overflow: hidden;
  border-radius: 5px;
  background: #dbe5f6;
}

.usage-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--violet));
}

.plan-usage small {
  color: var(--text-faint);
  font-size: 10px;
}

.sidebar-scrim {
  position: fixed;
  inset: 0 0 0 var(--sidebar-width);
  z-index: 45;
  display: none;
  border: 0;
  background: rgba(10, 18, 36, 0.48);
  backdrop-filter: blur(2px);
}

.app-main {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(14px);
}

.topbar-left,
.topbar-actions {
  display: flex;
  align-items: center;
}

.topbar-left {
  gap: 12px;
}

.topbar-actions {
  gap: 9px;
}

.breadcrumb small,
.breadcrumb strong {
  display: block;
}

.breadcrumb small {
  color: var(--text-faint);
  font-size: 10px;
}

.breadcrumb strong {
  margin-top: 1px;
  font-size: 16px;
  line-height: 1.2;
}

.global-search {
  display: flex;
  width: min(330px, 30vw);
  height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text-faint);
  background: #f8f9fc;
}

.global-search:focus-within {
  border-color: #9bbcff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(18, 101, 255, 0.08);
}

.global-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  color: var(--text);
  background: transparent;
}

.global-search input::placeholder {
  color: #adb4c1;
}

.global-search kbd {
  padding: 1px 5px;
  border: 1px solid #dfe3eb;
  border-radius: 4px;
  color: #98a0ae;
  background: #fff;
  box-shadow: 0 1px 1px #e7eaf0;
  font: 10px/1.5 inherit;
}

.icon-button,
.profile-button {
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.icon-button {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  color: #667085;
}

.icon-button:hover,
.profile-button:hover {
  background: #f8f9fc;
}

.notification-button > span {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: var(--red);
}

.profile-button {
  display: flex;
  min-width: 136px;
  height: 42px;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 5px;
  border-radius: 10px;
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(145deg, #49576f, #1d2939);
}

.profile-copy strong {
  font-size: 12px;
}

.mobile-menu,
.mobile-search-button {
  display: none;
}

.mobile-menu span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 2px 0;
  border-radius: 3px;
  background: #596477;
}

.page-content {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 24px 28px 44px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.page-heading p {
  margin: 6px 0 0;
  color: var(--text-soft);
}

.page-actions,
.toolbar-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: #475467;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: 0.15s ease;
}

.button:hover {
  border-color: #b8c2d2;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.button.primary {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
  box-shadow: 0 7px 14px rgba(18, 101, 255, 0.18);
}

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

.button.soft {
  border-color: #dce8ff;
  color: var(--primary);
  background: var(--primary-soft);
}

.button.danger {
  border-color: #ffd4d4;
  color: var(--red);
  background: var(--red-soft);
}

.button.small {
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 12px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.hero-strip {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
  gap: 26px;
  min-height: 180px;
  margin-bottom: 18px;
  padding: 28px 30px;
  overflow: hidden;
  border: 1px solid #dfe9ff;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 72% -20%, rgba(122, 84, 246, 0.25), transparent 38%),
    radial-gradient(circle at 95% 110%, rgba(19, 185, 230, 0.22), transparent 40%),
    linear-gradient(135deg, #f9fbff, #edf4ff 60%, #f4efff);
  box-shadow: var(--shadow-sm);
}

.hero-strip::after {
  position: absolute;
  right: 23%;
  bottom: -95px;
  width: 190px;
  height: 190px;
  border: 28px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  content: "";
}

.hero-copy,
.hero-insight {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.eyebrow::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  content: "";
  box-shadow: 0 0 0 4px rgba(18, 101, 255, 0.1);
}

.hero-copy h2 {
  margin: 9px 0 5px;
  font-size: clamp(22px, 2.5vw, 30px);
  letter-spacing: -0.03em;
}

.hero-copy p {
  max-width: 640px;
  margin: 0 0 18px;
  color: #526079;
}

.hero-insight {
  align-self: center;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 25px rgba(63, 79, 120, 0.08);
  backdrop-filter: blur(10px);
}

.hero-insight > small {
  color: var(--text-faint);
}

.insight-value {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 4px 0 9px;
}

.insight-value strong {
  font-size: 25px;
}

.insight-value span {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.mini-bars {
  display: flex;
  height: 43px;
  align-items: end;
  gap: 5px;
}

.mini-bars i {
  flex: 1;
  min-width: 5px;
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(180deg, #5b8cff, #1265ff);
  opacity: 0.82;
}

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

.stat-card,
.panel,
.module-card,
.integration-card,
.automation-card,
.article-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.stat-card {
  position: relative;
  min-width: 0;
  padding: 18px;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.stat-card::after {
  position: absolute;
  right: -20px;
  bottom: -35px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--tint, #eef4ff);
  content: "";
}

.stat-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-soft);
}

.stat-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: var(--accent, var(--primary));
  background: var(--tint, var(--primary-soft));
  font-size: 17px;
  font-weight: 700;
}

.stat-card h3 {
  position: relative;
  z-index: 1;
  margin: 13px 0 3px;
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.stat-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-faint);
  font-size: 11px;
}

.trend-up {
  color: var(--green);
  font-weight: 700;
}

.trend-down {
  color: var(--red);
  font-weight: 700;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 18px;
  margin-bottom: 18px;
}

.panel {
  min-width: 0;
  border-radius: var(--radius-md);
}

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

.panel-title h2,
.panel-title h3 {
  margin: 0;
  font-size: 15px;
}

.panel-title p {
  margin: 2px 0 0;
  color: var(--text-faint);
  font-size: 11px;
}

.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background: #f1f3f7;
}

.segmented button {
  padding: 4px 9px;
  border: 0;
  border-radius: 6px;
  color: var(--text-soft);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
}

.segmented button.is-active {
  color: var(--text);
  background: #fff;
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.08);
  font-weight: 600;
}

.chart-wrap {
  padding: 10px 15px 15px;
}

.chart-legend {
  display: flex;
  gap: 18px;
  margin: 3px 4px 8px;
  color: var(--text-soft);
  font-size: 11px;
}

.chart-legend span::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--legend-color);
  content: "";
}

.chart-svg {
  display: block;
  width: 100%;
  min-height: 220px;
}

.channel-list {
  display: grid;
  gap: 3px;
  padding: 10px 16px 16px;
}

.channel-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px 1px;
  border-bottom: 1px solid #f0f2f6;
}

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

.channel-logo,
.table-thumb,
.store-logo {
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--logo-bg, #1265ff);
  font-size: 11px;
  font-weight: 800;
}

.channel-logo {
  width: 36px;
  height: 36px;
}

.channel-name strong,
.channel-name small {
  display: block;
}

.channel-name strong {
  font-size: 12px;
}

.channel-name small {
  color: var(--text-faint);
  font-size: 10px;
}

.channel-metric {
  text-align: right;
}

.channel-metric strong,
.channel-metric small {
  display: block;
}

.channel-metric small {
  color: var(--green);
  font-size: 10px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 15px;
}

.quick-action {
  display: flex;
  min-height: 80px;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.quick-action:hover {
  border-color: #b9cef8;
  background: #f8fbff;
  transform: translateY(-1px);
}

.quick-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 11px;
  color: var(--quick-color, var(--primary));
  background: var(--quick-bg, var(--primary-soft));
  font-size: 17px;
}

.quick-action strong,
.quick-action small {
  display: block;
}

.quick-action strong {
  font-size: 12px;
}

.quick-action small {
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 10px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.toolbar-filters {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-wrap: wrap;
  gap: 8px;
}

.field,
.select-field {
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
}

.field {
  min-width: 210px;
  padding: 7px 10px;
}

.select-field {
  min-width: 130px;
  padding: 6px 28px 6px 10px;
  cursor: pointer;
}

.field::placeholder {
  color: var(--text-faint);
}

.field:focus,
.select-field:focus {
  border-color: #8eb2ff;
  box-shadow: 0 0 0 3px rgba(18, 101, 255, 0.08);
}

.table-panel {
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf0f4;
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: #7c8798;
  background: #fafbfc;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.data-table td {
  color: #475467;
  font-size: 12px;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #fbfcff;
}

.product-cell {
  display: grid;
  grid-template-columns: 42px minmax(160px, 1fr);
  align-items: center;
  gap: 10px;
  max-width: 360px;
}

.table-thumb {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), transparent),
    var(--thumb-bg, #6f8fcf);
  font-size: 16px;
}

.product-thumbnail-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.product-thumbnail img {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f5f7fa;
}

.product-thumbnail img[hidden],
.product-thumbnail.is-fallback img {
  display: none;
}

.product-copy strong,
.product-copy small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.product-copy strong {
  color: #344054;
  font-size: 12px;
}

.product-copy small {
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 10px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 12px;
  color: var(--status-color, #475467);
  background: var(--status-bg, #f2f4f7);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.status::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status.success {
  --status-color: var(--green);
  --status-bg: var(--green-soft);
}

.status.warning {
  --status-color: #d97706;
  --status-bg: var(--orange-soft);
}

.status.danger {
  --status-color: var(--red);
  --status-bg: var(--red-soft);
}

.status.info {
  --status-color: var(--primary);
  --status-bg: var(--primary-soft);
}

.table-actions {
  display: flex;
  gap: 5px;
  white-space: nowrap;
}

.link-button {
  padding: 4px;
  border: 0;
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  font-weight: 600;
}

.link-button:hover {
  text-decoration: underline;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  border-top: 1px solid #eef0f4;
  color: var(--text-soft);
  font-size: 11px;
}

.pagination {
  display: flex;
  gap: 5px;
}

.pagination button {
  display: grid;
  min-width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.pagination button.is-active {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}

.module-grid,
.integration-grid,
.automation-grid,
.article-grid,
.store-grid {
  display: grid;
  gap: 14px;
}

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

.module-card {
  position: relative;
  min-height: 190px;
  padding: 20px;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.module-card::after {
  position: absolute;
  right: -30px;
  bottom: -45px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--module-tint, #edf4ff);
  content: "";
}

.module-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  color: var(--module-color, var(--primary));
  background: var(--module-tint, #edf4ff);
  font-size: 20px;
}

.module-card h3 {
  position: relative;
  z-index: 1;
  margin: 14px 0 6px;
  font-size: 16px;
}

.module-card p {
  position: relative;
  z-index: 1;
  min-height: 39px;
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: 12px;
}

.module-card .button {
  position: relative;
  z-index: 1;
}

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

.store-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.store-card-head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.store-logo {
  width: 42px;
  height: 42px;
}

.store-card-copy {
  min-width: 0;
  flex: 1;
}

.store-card-copy strong,
.store-card-copy small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.store-card-copy small {
  color: var(--text-faint);
  font-size: 10px;
}

.store-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 15px 0;
}

.store-metric {
  padding: 9px 7px;
  border-radius: 8px;
  background: #f7f8fb;
  text-align: center;
}

.store-metric strong,
.store-metric small {
  display: block;
}

.store-metric strong {
  font-size: 13px;
}

.store-metric small {
  margin-top: 1px;
  color: var(--text-faint);
  font-size: 9px;
}

.store-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.backend-store-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.store-card-add {
  display: grid;
  min-height: 230px;
  place-items: center;
  border-style: dashed;
  color: var(--text-soft);
  text-align: center;
  cursor: pointer;
}

.store-card-add strong,
.store-card-add small {
  display: block;
}

.store-card-add small {
  max-width: 220px;
  margin-top: 5px;
  color: var(--text-faint);
}

.store-binding-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.store-binding-details > div {
  min-width: 0;
  padding: 9px;
  border-radius: 8px;
  background: #f7f9fc;
}

.store-binding-details dt {
  color: var(--text-faint);
  font-size: 9px;
}

.store-binding-details dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 10px;
}

.store-profile-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.store-profile-heading small {
  color: var(--text-faint);
}

.capability-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

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

.automation-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: start;
  gap: 13px;
  padding: 17px;
  border-radius: var(--radius-md);
}

.automation-copy h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.automation-copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
}

.automation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 9px;
  color: var(--text-faint);
  font-size: 10px;
}

.switch {
  position: relative;
  width: 38px;
  height: 22px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #ced4df;
  cursor: pointer;
  transition: 0.2s ease;
}

.switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.22);
  content: "";
  transition: 0.2s ease;
}

.switch.is-on {
  background: var(--primary);
}

.switch.is-on::after {
  left: 19px;
}

.visual-workbench {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
}

.dropzone {
  display: grid;
  min-height: 320px;
  place-items: center;
  padding: 30px;
  border: 1.5px dashed #a9bce3;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 50% 38%, rgba(18, 101, 255, 0.09), transparent 32%),
    #f8fbff;
  text-align: center;
}

.dropzone-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 18px;
  color: var(--primary);
  background: #e8f1ff;
  font-size: 27px;
}

.dropzone h3 {
  margin: 0 0 6px;
}

.dropzone p {
  max-width: 340px;
  margin: 0 auto 16px;
  color: var(--text-soft);
  font-size: 12px;
}

.visual-tools {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
}

.visual-tool {
  min-height: 152px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.visual-tool:hover {
  border-color: #b7ccf6;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.visual-tool h3 {
  margin: 13px 0 4px;
  font-size: 14px;
}

.visual-tool p {
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
}

.sku-ai-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.7fr);
  align-items: center;
  gap: 28px;
  margin-bottom: 18px;
  padding: 28px 30px;
  overflow: hidden;
  border: 1px solid #d8e8e4;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 0%, rgba(24, 133, 103, 0.17), transparent 34%),
    radial-gradient(circle at 58% 115%, rgba(19, 167, 210, 0.13), transparent 36%),
    linear-gradient(135deg, #fbfffe 0%, #eff9f6 58%, #edf7ff 100%);
  box-shadow: var(--shadow-sm);
}

.sku-ai-hero::after {
  position: absolute;
  right: 29%;
  bottom: -94px;
  width: 170px;
  height: 170px;
  border: 28px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  content: "";
}

.sku-ai-hero-copy,
.sku-ai-provider-cards {
  position: relative;
  z-index: 1;
}

.sku-ai-hero-copy h2 {
  max-width: 700px;
  margin: 8px 0 9px;
  color: #143c34;
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.sku-ai-hero-copy p {
  max-width: 720px;
  margin: 0;
  color: #527068;
  font-size: 12px;
  line-height: 1.75;
}

.sku-ai-provider-cards {
  display: grid;
  gap: 10px;
}

.sku-ai-provider-cards article {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 24px rgba(32, 87, 73, 0.08);
  backdrop-filter: blur(8px);
}

.sku-ai-provider-cards article > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: #16866a;
  font-weight: 800;
}

.sku-ai-provider-cards article.is-missing > span {
  background: #98a2b3;
}

.sku-ai-provider-cards article strong,
.sku-ai-provider-cards article small {
  display: block;
}

.sku-ai-provider-cards article strong {
  color: #163f36;
  font-size: 12px;
}

.sku-ai-provider-cards article small {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 9px;
}

.sku-ai-provider-cards article > b {
  padding: 4px 7px;
  border-radius: 999px;
  color: #147258;
  background: #e4f7ef;
  font-size: 9px;
}

.sku-ai-provider-cards article.is-missing > b {
  color: #9a6700;
  background: #fff5dd;
}

.sku-ai-composer {
  margin-bottom: 20px;
  overflow: hidden;
}

.sku-ai-form-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(2, minmax(180px, 0.8fr));
  gap: 14px;
  padding: 18px;
}

.sku-ai-form-grid .form-group {
  align-content: start;
  min-width: 0;
}

.sku-ai-form-grid .form-group > span,
.sku-ai-form-grid .form-group > label,
.sku-ai-output-roles legend,
.sku-ai-visual-modes legend {
  color: #344054;
  font-size: 11px;
  font-weight: 700;
}

.sku-ai-form-grid .form-group > small {
  color: var(--text-faint);
  font-size: 11px;
  line-height: 1.5;
}

.sku-ai-store-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.sku-ai-store-control select {
  min-width: 0;
}

.sku-ai-store-control .button {
  min-height: 38px;
  white-space: nowrap;
}

.sku-ai-store-sync-status[data-tone="success"] {
  color: #147258;
}

.sku-ai-store-sync-status[data-tone="warning"] {
  color: #9a6700;
}

.sku-ai-store-sync-status[data-tone="danger"] {
  color: #b42318;
}

.sku-ai-sku-field {
  grid-column: span 1;
}

.sku-ai-output-roles,
.sku-ai-visual-modes {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.sku-ai-output-roles legend,
.sku-ai-visual-modes legend {
  grid-column: 1 / -1;
  margin-bottom: -2px;
}

.sku-ai-output-roles label,
.sku-ai-visual-modes label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfe;
  cursor: pointer;
}

.sku-ai-output-roles label:has(input:checked) {
  border-color: #87bcae;
  background: #eff9f6;
  box-shadow: 0 0 0 2px rgba(22, 134, 106, 0.08);
}

.sku-ai-visual-modes label:has(input:checked) {
  border-color: #8db2fb;
  background: #f1f6ff;
  box-shadow: 0 0 0 2px rgba(18, 101, 255, 0.08);
}

.sku-ai-output-roles input,
.sku-ai-visual-modes input {
  accent-color: #16866a;
}

.sku-ai-output-roles b,
.sku-ai-output-roles small,
.sku-ai-visual-modes b,
.sku-ai-visual-modes small {
  display: block;
}

.sku-ai-output-roles b,
.sku-ai-visual-modes b {
  color: var(--text);
  font-size: 11px;
}

.sku-ai-output-roles small,
.sku-ai-visual-modes small {
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 9px;
}

.sku-ai-brief-field {
  grid-column: 1 / -1;
}

.sku-ai-composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-top: 1px solid #edf1f0;
  background: #fbfdfc;
}

.sku-ai-composer-foot p {
  max-width: 850px;
  margin: 0;
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.6;
}

.sku-ai-run-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.sku-ai-auto-replace-warning {
  line-height: 1.65;
}

.sku-ai-workflow-section {
  margin: 20px 0;
  overflow-anchor: none;
}

.sku-ai-quality-status {
  display: grid;
  gap: 3px;
  margin: 12px 16px 0;
  line-height: 1.5;
}

.sku-ai-quality-status span {
  font-size: 10px;
}

.sku-ai-workflow-section > .section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 11px;
}

.sku-ai-workflow-section > .section-heading h2 {
  margin: 0;
  font-size: 17px;
}

.sku-ai-workflow-section > .section-heading p {
  margin: 3px 0 0;
  color: var(--text-faint);
  font-size: 10px;
}

.sku-ai-workflow-list {
  display: grid;
  gap: 12px;
}

.sku-ai-workflow-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.sku-ai-workflow-card > header,
.sku-ai-workflow-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
}

.sku-ai-workflow-card > header {
  border-bottom: 1px solid #eff1f5;
}

.sku-ai-workflow-card > header > div {
  min-width: 0;
}

.sku-ai-workflow-card > header h3 {
  margin: 3px 0;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sku-ai-workflow-card > header p,
.sku-ai-workflow-card > footer > small {
  margin: 0;
  color: var(--text-faint);
  font-size: 9px;
}

.sku-ai-stages {
  display: grid;
  grid-template-columns: auto minmax(20px, 1fr) auto minmax(20px, 1fr) auto minmax(20px, 1fr) auto minmax(20px, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  background: #fbfcfd;
}

.ozon-visual-catalog {
  display: grid;
  gap: 16px;
}

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

.ozon-visual-mode-summary article {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #dce6fb;
  border-radius: 10px;
  background: #f7faff;
}

.ozon-visual-mode-summary strong,
.ozon-visual-mode-summary small,
.ozon-visual-mode-summary b {
  display: block;
}

.ozon-visual-mode-summary small {
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.5;
}

.ozon-visual-mode-summary b {
  color: var(--primary);
  font-size: 10px;
}

.ozon-visual-catalog-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.ozon-visual-catalog-toolbar .form-group {
  flex: 1;
  margin: 0;
}

.ozon-visual-rule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ozon-visual-rule-head > small {
  color: var(--text-faint);
  font-size: 10px;
  text-align: right;
}

.ozon-visual-library {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.ozon-visual-library > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.ozon-visual-library strong {
  width: 100%;
}

.ozon-visual-library span {
  padding: 4px 7px;
  border-radius: 999px;
  color: #245cae;
  background: #edf4ff;
  font-size: 9px;
}

.sku-ai-stages > i {
  height: 2px;
  border-radius: 2px;
  background: #e1e6ed;
}

.sku-ai-stages > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-faint);
}

.sku-ai-stages b {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid #d5dbe5;
  border-radius: 50%;
  background: #fff;
  font-size: 9px;
}

.sku-ai-stages small {
  font-size: 9px;
  white-space: nowrap;
}

.sku-ai-stages .is-complete {
  color: #167458;
}

.sku-ai-stages .is-complete b {
  border-color: #9ad5c3;
  color: #147258;
  background: #e9f8f2;
}

.sku-ai-stages .is-active {
  color: var(--primary);
  font-weight: 700;
}

.sku-ai-stages .is-active b {
  border-color: #92b5fa;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(18, 101, 255, 0.09);
}

.sku-ai-stages .is-failed {
  color: var(--red);
}

.sku-ai-stages .is-failed b {
  border-color: #f7aaaa;
  color: #fff;
  background: var(--red);
}

.sku-ai-blocker {
  display: block;
  margin: 12px 16px 0;
  line-height: 1.55;
}

.sku-ai-blocker .link-button {
  margin-left: 6px;
}

.sku-ai-source-cover {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  margin: 12px 16px 0;
  padding: 10px;
  border: 1px solid #cfe6dd;
  border-radius: 10px;
  background: #f2fbf7;
}

.sku-ai-source-cover > div {
  display: grid;
  width: 68px;
  height: 68px;
  overflow: hidden;
  place-items: center;
  border: 1px solid #dce7e2;
  border-radius: 9px;
  color: #167458;
  background: #fff;
  font-size: 10px;
}

.sku-ai-source-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sku-ai-source-cover p,
.sku-ai-source-cover strong,
.sku-ai-source-cover small {
  display: block;
  margin: 0;
}

.sku-ai-source-cover strong {
  color: #155f4b;
  font-size: 10px;
}

.sku-ai-source-cover small {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 9px;
  line-height: 1.55;
}

.sku-ai-results-empty {
  display: grid;
  min-height: 128px;
  place-items: center;
  align-content: center;
  gap: 4px;
  margin: 12px 16px;
  border: 1px dashed #d5dce7;
  border-radius: 10px;
  color: var(--text-faint);
  background: #fbfcfe;
  text-align: center;
}

.sku-ai-results-empty > span {
  font-size: 22px;
}

.sku-ai-results-empty strong {
  color: var(--text-soft);
  font-size: 11px;
}

.sku-ai-results-empty small {
  max-width: 560px;
  font-size: 9px;
  line-height: 1.6;
}

.sku-ai-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  padding: 14px 16px;
}

.sku-ai-result-card {
  position: relative;
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f5f7fa;
}

.sku-ai-result-card.is-selectable {
  cursor: pointer;
}

.sku-ai-result-card:has(input:checked) {
  border-color: #6fb59f;
  box-shadow: 0 0 0 3px rgba(22, 134, 106, 0.1);
}

.sku-ai-result-card > input {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  width: 17px;
  height: 17px;
  accent-color: #16866a;
}

.sku-ai-result-card > img,
.sku-ai-result-placeholder {
  width: 100%;
  aspect-ratio: 1;
}

.sku-ai-result-card > img {
  display: block;
  object-fit: cover;
}

.sku-ai-result-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: var(--text-faint);
  background: linear-gradient(135deg, #eef2f6, #f8fafc);
  font-size: 10px;
}

.sku-ai-result-placeholder small {
  max-width: 120px;
  font-size: 8px;
  text-align: center;
}

.sku-ai-result-meta {
  padding: 8px 9px;
  background: #fff;
}

.sku-ai-result-meta strong,
.sku-ai-result-meta small {
  display: block;
}

.sku-ai-result-meta strong {
  font-size: 10px;
}

.sku-ai-result-meta small {
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 8px;
}

.sku-ai-workflow-card > footer {
  border-top: 1px solid #eff1f5;
  background: #fbfcfd;
}

.sku-admin-log-button {
  border-color: #cad7ec;
  color: #34547c;
  background: #f5f8fd;
}

.modal:has(.sku-admin-log) {
  width: min(820px, calc(100vw - 32px));
}

.sku-admin-log {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.sku-admin-log-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.sku-admin-log-summary > span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #dfe6f0;
  border-radius: 9px;
  background: #f8faff;
}

.sku-admin-log-summary small {
  color: var(--text-faint);
  font-size: 8px;
}

.sku-admin-log-summary strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sku-admin-log-scope {
  display: grid;
  justify-items: start;
  line-height: 1.55;
  white-space: normal;
}

.sku-admin-log-scope::before {
  display: none;
}

.sku-admin-log-timeline {
  display: grid;
  max-height: min(520px, 55vh);
  overflow: auto;
  gap: 0;
  margin: 0;
  padding: 0 4px 0 0;
  list-style: none;
}

.sku-admin-log-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
  padding: 0 0 15px;
}

.sku-admin-log-timeline li:not(:last-child)::before {
  position: absolute;
  top: 12px;
  bottom: -1px;
  left: 5px;
  width: 2px;
  background: #e3e9f2;
  content: "";
}

.sku-admin-log-timeline li > i {
  position: relative;
  z-index: 1;
  display: block;
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #608ccf;
  box-shadow: 0 0 0 1px #b9cae2;
}

.sku-admin-log-timeline li.is-success > i {
  background: #16a66a;
  box-shadow: 0 0 0 1px #8fd1b4;
}

.sku-admin-log-timeline li.is-danger > i {
  background: var(--red);
  box-shadow: 0 0 0 1px #efa0a0;
}

.sku-admin-log-timeline li.is-current > div {
  border-color: #9ebcf4;
  background: #f4f8ff;
}

.sku-admin-log-timeline li > div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e3e8ef;
  border-radius: 9px;
  background: #fff;
}

.sku-admin-log-timeline header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sku-admin-log-timeline header strong {
  font-size: 10px;
}

.sku-admin-log-timeline time,
.sku-admin-log-timeline p {
  color: var(--text-faint);
  font-size: 8px;
}

.sku-admin-log-timeline time {
  flex: 0 0 auto;
}

.sku-admin-log-timeline p {
  margin: 4px 0 0;
}

.sku-admin-log-timeline code {
  display: block;
  margin-top: 6px;
  padding: 6px 7px;
  overflow-wrap: anywhere;
  border-radius: 6px;
  color: #9c2f2f;
  background: #fff2f2;
  font-size: 8px;
  white-space: pre-wrap;
}

.visual-workbench-secondary {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.sku-ai-billing-modal {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.modal:has(.sku-ai-billing-modal) {
  width: min(720px, calc(100vw - 32px));
}

.sku-ai-billing-modal > .status {
  display: grid;
  align-items: start;
  justify-items: start;
  max-width: 100%;
  line-height: 1.55;
  white-space: normal;
  overflow-wrap: anywhere;
}

.sku-ai-billing-modal > .status::before {
  display: none;
}

.sku-ai-readiness-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sku-ai-readiness-list > div {
  display: grid;
  min-width: 0;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.sku-ai-readiness-list > div > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #16a66a;
  font-size: 10px;
}

.sku-ai-readiness-list > div.is-missing > span {
  background: #f79009;
}

.sku-ai-readiness-list p,
.sku-ai-readiness-list strong,
.sku-ai-readiness-list small {
  display: block;
  min-width: 0;
  margin: 0;
}

.sku-ai-readiness-list strong {
  font-size: 10px;
}

.sku-ai-readiness-list small {
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 8px;
  overflow-wrap: anywhere;
}

.sku-ai-start-blockers > div {
  width: 100%;
}

.sku-ai-start-blockers ul {
  display: grid;
  margin: 9px 0 11px;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.sku-ai-start-blockers li {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(150px, auto) minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.sku-ai-start-blockers code {
  max-width: 100%;
  padding: 2px 5px;
  border-radius: 5px;
  color: #9a3412;
  background: rgba(255, 255, 255, 0.72);
  font-size: 8px;
  overflow-wrap: anywhere;
}

.sku-ai-start-blockers li span,
.sku-ai-start-blockers li b,
.sku-ai-start-blockers li small {
  display: block;
  min-width: 0;
}

.sku-ai-start-blockers li small {
  margin-top: 2px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.sku-ai-billing-ack {
  padding: 11px;
  border: 1px solid #dce5e2;
  border-radius: 9px;
  background: #f7fbfa;
}

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

.integration-card {
  padding: 18px;
  border-radius: var(--radius-md);
}

.integration-head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.integration-card h3 {
  margin: 0;
  font-size: 14px;
}

.integration-card p {
  min-height: 38px;
  margin: 11px 0 15px;
  color: var(--text-soft);
  font-size: 11px;
}

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

.article-card {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.article-cover {
  display: flex;
  min-height: 110px;
  align-items: flex-end;
  padding: 15px;
  color: #fff;
  background: var(--cover, linear-gradient(135deg, #1265ff, #7956f6));
}

.article-cover span {
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 9px;
  backdrop-filter: blur(6px);
}

.article-body {
  padding: 15px;
}

.article-body h3 {
  margin: 0 0 5px;
  font-size: 14px;
}

.article-body p {
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: 11px;
}

.empty-state {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 30px;
  text-align: center;
}

.empty-state-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 18px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 24px;
}

.empty-state h3 {
  margin: 0 0 5px;
}

.empty-state p {
  margin: 0 0 15px;
  color: var(--text-soft);
}

.settings-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
}

.settings-nav,
.settings-form {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.settings-nav button {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  color: var(--text-soft);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.settings-nav button.is-active {
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 600;
}

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

.form-group {
  display: grid;
  gap: 6px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  color: #475467;
  font-size: 12px;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
}

.form-group textarea {
  min-height: 90px;
  resize: vertical;
}

.form-hint {
  color: var(--text-faint);
  font-size: 10px;
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: min(360px, calc(100vw - 32px));
  gap: 9px;
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #dfe5ef;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 38px rgba(23, 32, 51, 0.15);
  animation: toast-in 0.25s ease both;
  backdrop-filter: blur(12px);
}

.toast-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 800;
}

.toast.warning .toast-icon {
  background: var(--orange);
}

.toast.error .toast-icon {
  background: var(--red);
}

.toast strong,
.toast small {
  display: block;
}

.toast strong {
  font-size: 12px;
}

.toast small {
  color: var(--text-soft);
  font-size: 10px;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

.modal-root:empty {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 24, 40, 0.54);
  backdrop-filter: blur(4px);
}

.modal {
  width: min(520px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(16, 24, 40, 0.25);
  animation: modal-in 0.22s ease both;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
}

.modal-header {
  position: sticky;
  z-index: 4;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.modal-header h2 {
  margin: 0;
  font-size: 17px;
}

.modal-body {
  padding: 18px;
}

.modal-footer {
  position: sticky;
  z-index: 4;
  bottom: 0;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  background: #fff;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  color: var(--text-soft);
  background: #f4f5f7;
  cursor: pointer;
}

.mobile-cards {
  display: none;
}

.collector-composer,
.api-console {
  margin-bottom: 18px;
  border: 1px solid #dce7fb;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0, rgba(121, 86, 246, 0.09), transparent 34%),
    linear-gradient(145deg, #ffffff, #f7faff);
  box-shadow: var(--shadow-sm);
}

.collector-composer {
  padding: 22px;
}

.collection-methods {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.8fr);
  gap: 14px;
  margin-bottom: 18px;
}

.collection-methods-single {
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 12px;
}

.collection-methods-single .collection-method-card {
  padding: 15px 18px;
}

.collection-methods-single .collection-method-head {
  margin-bottom: 10px;
}

.collection-method-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid #dce7fb;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.collection-method-manual {
  background:
    radial-gradient(circle at 100% 0, rgba(18, 101, 255, 0.09), transparent 38%),
    linear-gradient(145deg, #fff, #f7faff);
}

.collection-method-auto {
  background:
    radial-gradient(circle at 100% 0, rgba(121, 86, 246, 0.10), transparent 36%),
    linear-gradient(145deg, #fff, #faf8ff);
}

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

.method-number,
.method-safety {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #40516d;
  background: #edf2fa;
  font-size: 10px;
  font-weight: 750;
}

.method-safety {
  color: #6046c5;
  background: #f0ebff;
}

.collection-method-manual > h2 {
  margin: 14px 0 6px;
  font-size: 18px;
}

.collection-method-manual > p {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.7;
}

.collection-method-manual > ol {
  margin: 16px 0;
  padding-left: 20px;
  color: #40516d;
  font-size: 11px;
  line-height: 2;
}

.collection-method-card .collector-heading {
  margin-bottom: 12px;
}

.collection-automation-note {
  display: flex;
  gap: 8px;
  margin-top: 13px;
  padding: 10px 12px;
  border: 1px solid #f1d9a7;
  border-radius: 9px;
  color: #805a13;
  background: #fffaf0;
  font-size: 10px;
  line-height: 1.55;
}

.collection-automation-note strong {
  white-space: nowrap;
}

.collection-live-capture {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #d9d5ff;
  border-radius: 11px;
  background: linear-gradient(135deg, #fbfaff, #f2f5ff);
}

.current-collection-task {
  display: grid;
  min-width: 0;
  grid-column: 1 / -1;
  gap: 10px;
  width: 100%;
}

.current-collection-task > header,
.current-collection-task > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.current-collection-task > header > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.current-collection-task > header small,
.current-collection-task > footer > small,
.current-collection-progress small,
.current-collection-metrics small {
  color: var(--text-soft);
  font-size: 9px;
}

.current-collection-task > header strong {
  color: #27354e;
  font-size: 12px;
}

.current-collection-progress {
  display: grid;
  grid-template-columns: minmax(200px, 0.9fr) minmax(240px, 1.1fr);
  align-items: center;
  gap: 14px;
}

.current-collection-progress > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.current-collection-progress > div > span {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e7f1;
  flex: 1;
}

.current-collection-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1265ff, #7956f6);
  transition: width 220ms ease;
}

.current-collection-progress b {
  min-width: 34px;
  color: #6046c5;
  font-size: 11px;
  text-align: right;
}

.current-collection-progress p {
  display: grid;
  min-width: 0;
  gap: 2px;
  margin: 0;
}

.current-collection-progress p > strong,
.current-collection-progress p > small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.current-collection-progress p > strong {
  color: #27354e;
  font-size: 11px;
}

.current-collection-task.is-paused .current-collection-progress p > strong {
  color: #9a650b;
}

.current-collection-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.current-collection-metrics > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.current-collection-metrics b {
  color: #26354d;
  font-size: 12px;
}

.current-collection-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.current-collection-task.is-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.current-collection-task.is-empty > div {
  display: grid;
  gap: 2px;
}

.current-collection-task.is-empty > div small {
  color: var(--text-soft);
  font-size: 9px;
}

.current-collection-task.is-empty .live-sync-state {
  grid-column: 1 / -1;
}

.current-collection-delete-confirm {
  display: grid;
  gap: 12px;
}

.current-collection-delete-confirm .status {
  display: grid;
  gap: 5px;
  white-space: normal;
}

.current-collection-delete-confirm p,
.current-collection-delete-confirm small {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.live-capture-icon {
  display: grid;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #1265ff, #7956f6);
  font-size: 15px;
  font-weight: 800;
  place-items: center;
}

.live-capture-icon.is-pulsing {
  animation: collector-live-pulse 1.6s ease-in-out infinite;
}

.live-capture-icon.is-terminal {
  background: #16a66a;
  animation: none;
}

@keyframes collector-live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(121, 86, 246, 0.2); }
  50% { box-shadow: 0 0 0 7px rgba(121, 86, 246, 0); }
}

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

.live-capture-copy > strong {
  color: #27354e;
  font-size: 12px;
}

.live-capture-copy > small,
.live-sync-state,
.live-capture-counts small,
.live-capture-counts em {
  color: var(--text-soft);
  font-size: 9px;
}

.live-capture-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
}

.live-capture-progress > span,
.automation-task-live-progress > span {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e8f2;
}

.live-capture-progress > span {
  min-width: 70px;
  flex: 1;
}

.live-capture-progress i,
.automation-task-live-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1265ff, #7956f6);
  transition: width 220ms ease;
}

.live-capture-progress b {
  min-width: 34px;
  color: #6046c5;
  font-size: 10px;
  text-align: right;
}

.live-capture-counts {
  display: grid;
  grid-template-columns: repeat(4, auto);
  align-items: center;
  gap: 4px 9px;
}

.live-capture-counts > span {
  display: grid;
  justify-items: center;
}

.live-capture-counts b {
  color: #26354d;
  font-size: 12px;
}

.live-capture-counts em {
  grid-column: 1 / -1;
  font-style: normal;
  text-align: right;
}

.automation-task-live-progress {
  display: grid;
  min-width: 120px;
  grid-template-columns: minmax(58px, 1fr) auto;
  align-items: center;
  gap: 3px 7px;
}

.automation-task-live-progress b {
  color: #6046c5;
  font-size: 10px;
}

.automation-task-live-progress small {
  grid-column: 1 / -1;
  color: var(--text-soft);
  font-size: 9px;
}

.source-chip-static {
  cursor: default;
}

.collection-batch-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.collection-batch-summary small {
  color: var(--text-soft);
}

.collection-batch-detail {
  max-height: 52vh;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.automation-queue-summary {
  display: grid;
  grid-template-columns: minmax(190px, 1.25fr) repeat(3, minmax(92px, 0.55fr)) minmax(250px, 1.5fr);
  gap: 1px;
  margin: 0 18px 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.automation-queue-summary > div {
  min-width: 0;
  padding: 12px 14px;
  background: #fbfcff;
}

.automation-queue-state,
.automation-queue-count,
.automation-queue-next {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.automation-queue-state {
  align-items: flex-start;
}

.automation-queue-summary small {
  color: var(--text-soft);
  font-size: 10px;
}

.automation-queue-summary strong {
  overflow-wrap: anywhere;
  color: #26354d;
  font-size: 11px;
  line-height: 1.45;
}

.automation-queue-count strong {
  font-size: 18px;
}

.automation-batch-list {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
}

.automation-batch-card {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.automation-batch-head,
.automation-batch-progress,
.automation-batch-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.automation-batch-title {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.automation-batch-title strong {
  color: #1c2b43;
  font-size: 13px;
}

.automation-batch-title small {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-batch-progress {
  margin-top: 13px;
}

.automation-batch-progress .task-progress {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 10px;
}

.automation-batch-progress .task-progress > div {
  min-width: 100px;
  flex: 1;
}

.automation-batch-progress .task-progress > small {
  min-width: 78px;
  color: var(--text-soft);
  white-space: nowrap;
}

.automation-batch-progress > strong {
  min-width: 34px;
  color: #40516d;
  font-size: 12px;
  text-align: right;
}

.automation-batch-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(72px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.automation-batch-metrics > span {
  display: flex;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f6f8fc;
  flex-direction: column;
  gap: 3px;
}

.automation-batch-metrics small,
.automation-batch-foot small {
  color: var(--text-soft);
  font-size: 9px;
}

.automation-batch-metrics strong {
  font-size: 13px;
}

.automation-batch-foot {
  align-items: flex-end;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
}

.automation-batch-foot p {
  display: flex;
  min-width: 0;
  margin: 0;
  flex-direction: column;
  gap: 4px;
}

.automation-batch-foot p strong {
  overflow-wrap: anywhere;
  color: #40516d;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.5;
}

.collector-stats-grid {
  gap: 10px;
  margin-bottom: 14px;
}

.collector-stats-grid .stat-card {
  min-height: 108px;
  padding: 13px 14px;
}

.collector-stats-grid .stat-card h3 {
  margin-top: 9px;
  font-size: 22px;
}

.collector-compact-panel > .panel-header {
  min-height: 58px;
  padding: 11px 14px;
}

.collector-compact-panel .panel-title h2 {
  font-size: 14px;
}

.collector-compact-panel .panel-title p {
  margin-top: 2px;
  font-size: 9px;
}

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

.collector-refresh-button {
  min-height: 30px;
  padding: 5px 9px;
}

.data-table-compact th,
.data-table-compact td {
  padding-top: 8px;
  padding-bottom: 8px;
}

.collector-task-table {
  max-height: 286px;
}

.collector-product-table {
  max-height: min(650px, calc(100vh - 190px));
  overflow: auto;
}

.collector-product-table .collected-item-actions {
  align-items: center;
}

.collector-product-table .collected-delete-button {
  padding: 4px 7px;
  border-radius: 6px;
}

.collector-product-table .collected-delete-button:not(:disabled):hover {
  color: #b42318;
  text-decoration: none;
  background: #fff1f0;
}

.collected-delete-confirm {
  display: grid;
  gap: 12px;
}

.collected-delete-confirm .status {
  display: grid;
  justify-items: start;
  gap: 5px;
  white-space: normal;
}

.collected-delete-confirm p,
.collected-delete-confirm small {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.collector-selection-actions {
  flex-wrap: wrap;
}

.collector-selection-actions .button {
  white-space: nowrap;
}

.workbench-draft-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fbfcff;
}

.workbench-draft-filters,
.workbench-draft-selection-actions {
  display: flex;
  align-items: center;
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px;
}

.workbench-draft-filters {
  flex: 1 1 auto;
}

.workbench-draft-filters input,
.workbench-draft-filters select {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
}

.workbench-draft-filters input {
  width: min(330px, 100%);
}

.workbench-draft-filters .result-count {
  color: var(--text-soft);
  font-size: 10px;
  white-space: nowrap;
}

.workbench-draft-selection-actions {
  flex: 0 0 auto;
}

.workbench-draft-table-scroll {
  max-height: min(720px, calc(100vh - 170px));
  overflow: auto;
}

.workbench-draft-table {
  min-width: 1120px;
}

.workbench-draft-table thead {
  position: sticky;
  z-index: 3;
  top: 0;
  background: #f8faff;
}

.workbench-draft-table th:first-child,
.workbench-draft-table td:first-child {
  width: 42px;
  text-align: center;
}

.workbench-draft-checkbox,
#select-all-workbench-drafts {
  accent-color: var(--primary);
}

.collected-bulk-delete-confirm ul {
  display: grid;
  gap: 5px;
  max-height: 210px;
  margin: 0;
  padding: 10px 12px 10px 30px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-soft);
  background: #fafbfc;
  font-size: 11px;
}

.collector-task-table thead,
.collector-product-table thead {
  position: sticky;
  z-index: 2;
  top: 0;
  background: #f9fbfe;
}

.claim-listing-cta {
  min-width: 128px;
  box-shadow: 0 7px 18px rgba(18, 101, 255, 0.18);
}

.claim-listing-cta:disabled {
  box-shadow: none;
}

.collector-compact-panel .automation-queue-summary {
  margin: 0 14px 9px;
}

.collector-compact-panel .automation-queue-summary > div {
  padding: 8px 10px;
}

.collector-compact-panel .automation-batch-list {
  gap: 7px;
  padding: 0 14px 13px;
}

.collector-compact-panel .automation-batch-card {
  padding: 10px 12px;
}

.collector-compact-panel .automation-batch-progress,
.collector-compact-panel .automation-batch-metrics,
.collector-compact-panel .automation-batch-foot {
  margin-top: 8px;
}

.collector-compact-panel .automation-batch-metrics > span {
  padding: 5px 8px;
}

.collector-compact-panel .automation-batch-foot {
  padding-top: 7px;
}

.claim-listing-composer,
.claim-listing-quote,
.claim-listing-result {
  display: grid;
  gap: 14px;
}

.claim-selected-products,
.claim-quote-summary,
.claim-result-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #d8e4fa;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fbff, #f7f4ff);
}

.claim-selected-products > div:first-child strong,
.claim-selected-products > div:first-child small {
  display: block;
}

.claim-selected-products > div:first-child small {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 9px;
}

.claim-selected-products > div:last-child {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.claim-selected-products > div:last-child > span {
  display: grid;
  width: 46px;
  min-width: 0;
  margin-left: -7px;
  justify-items: center;
}

.claim-selected-products .product-thumbnail {
  width: 36px;
  height: 36px;
  border: 2px solid #fff;
  border-radius: 10px;
  box-shadow: 0 2px 7px rgba(16, 24, 40, 0.12);
}

.claim-selected-products > div:last-child small {
  display: none;
}

.claim-selected-products .claim-more-products {
  width: 36px;
  height: 36px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 10px;
  color: #4f46b8;
  background: #ebe8ff;
  font-size: 10px;
  font-weight: 800;
}

.claim-step {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.claim-step > legend {
  padding: 0 7px;
  color: #26354d;
  font-size: 11px;
  font-weight: 800;
}

.claim-step > legend span {
  display: inline-grid;
  width: 21px;
  height: 21px;
  margin-right: 6px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-size: 9px;
}

.claim-platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.claim-platform-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.claim-platform-card:hover,
.claim-platform-card:focus-visible,
.claim-platform-card.is-active {
  border-color: #82a8fa;
  outline: none;
  background: #f2f7ff;
  box-shadow: 0 0 0 3px rgba(18, 101, 255, 0.08);
}

.claim-platform-card > span:last-child,
.claim-platform-card b,
.claim-platform-card small {
  display: block;
  min-width: 0;
}

.claim-platform-card b {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.claim-platform-card small {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 8px;
}

.claim-platform-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 10px;
}

.claim-destination-fields,
.claim-preparation-fields {
  margin-top: 2px;
}

.claim-visual-mode-grid {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}

.claim-quote-summary,
.claim-result-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.claim-quote-summary > span,
.claim-result-summary > span {
  display: grid;
  gap: 3px;
  text-align: center;
}

.claim-quote-summary small,
.claim-result-summary small {
  color: var(--text-soft);
  font-size: 9px;
}

.claim-quote-summary strong,
.claim-result-summary strong {
  color: #1d2c44;
  font-size: 17px;
}

.claim-quote-items,
.claim-result-list {
  display: grid;
  max-height: 320px;
  gap: 7px;
  overflow-y: auto;
}

.claim-quote-item,
.claim-result-row {
  display: grid;
  align-items: start;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.claim-quote-item {
  grid-template-columns: minmax(0, 1fr) auto;
}

.claim-result-row {
  grid-template-columns: auto minmax(0, 1fr);
}

.claim-quote-item b,
.claim-quote-item small,
.claim-result-row strong,
.claim-result-row small {
  display: block;
  overflow-wrap: anywhere;
}

.claim-quote-item small,
.claim-result-row small {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 9px;
  line-height: 1.55;
}

.direct-listing-payload-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.direct-listing-payload-summary > span {
  min-width: 0;
  padding: 7px 8px;
  border-radius: 8px;
  background: #f5f8fd;
}

.direct-listing-payload-summary small,
.direct-listing-payload-summary b {
  display: block;
  overflow-wrap: anywhere;
}

.direct-listing-payload-summary b {
  margin-top: 2px;
  color: #27354e;
  font-size: 9px;
}

.claim-listing-blockers {
  display: grid;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid #f2d4a3;
  border-radius: 9px;
  color: #79520e;
  background: #fff9ed;
}

.claim-result-row .claim-listing-blockers {
  margin-top: 7px;
}

.claim-listing-blockers > strong {
  font-size: 10px;
}

.claim-listing-blockers > span {
  display: grid;
  grid-template-columns: minmax(110px, 0.42fr) minmax(0, 1fr);
  gap: 8px;
  font-size: 9px;
  line-height: 1.45;
}

.claim-listing-blockers b {
  overflow-wrap: anywhere;
}

.claim-visibility-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #cdddfc;
  border-radius: 10px;
  color: #2e4f89;
  background: #f3f7ff;
}

.claim-visibility-notice > span {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
}

.claim-visibility-notice p,
.claim-visibility-notice strong,
.claim-visibility-notice small {
  display: block;
  margin: 0;
}

.claim-visibility-notice small {
  margin-top: 3px;
  color: #5d7194;
  font-size: 9px;
  line-height: 1.55;
}

.claim-result-message {
  justify-content: center;
  padding: 9px 11px;
  text-align: center;
}

.collector-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.collector-heading > div {
  min-width: 0;
  flex: 1;
}

.collector-heading h2,
.api-console h2 {
  margin: 0;
  font-size: 18px;
}

.collector-heading p,
.api-console p {
  margin: 3px 0 0;
  color: var(--text-soft);
  font-size: 12px;
}

.api-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 14px;
  color: #667085;
  background: #f1f3f7;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.api-indicator i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #98a2b3;
  box-shadow: 0 0 0 3px rgba(152, 162, 179, 0.14);
}

.api-indicator.is-online {
  color: var(--green);
  background: var(--green-soft);
}

.api-indicator.is-online i {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 166, 106, 0.14);
}

.api-indicator.is-error {
  color: var(--red);
  background: var(--red-soft);
}

.api-indicator.is-error i {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(228, 72, 72, 0.14);
}

.api-indicator.is-outdated {
  color: #b54708;
  background: #fff4e5;
}

.api-indicator.is-outdated i {
  background: #f79009;
  box-shadow: 0 0 0 3px rgba(247, 144, 9, 0.16);
}

.collector-mode-switch {
  margin-bottom: 12px;
}

.collector-mode-switch button {
  min-height: 31px;
  padding-inline: 13px;
}

.collector-mode-panels,
.collector-mode-panel {
  min-width: 0;
}

.collector-discovery-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px auto;
  align-items: end;
  gap: 10px;
}

.collector-discovery-url,
.collector-discovery-limit {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 700;
}

.collector-discovery-url .field,
.collector-discovery-limit .field {
  min-width: 0;
  min-height: 44px;
  border-color: #cbd8ee;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.9);
}

.collector-discovery-limit > span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}

.collector-discovery-limit b {
  color: var(--text-soft);
  font-size: 10px;
  white-space: nowrap;
}

.collector-discovery-note {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.65;
}

.collector-discovery-note strong {
  color: #5f46bd;
}

.collector-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 10px;
}

.collector-url {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  padding: 12px 13px;
  border: 1px solid #cbd8ee;
  border-radius: 11px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
}

.collector-url:focus {
  border-color: #78a2f7;
  box-shadow: 0 0 0 4px rgba(18, 101, 255, 0.08);
}

.collector-submit {
  min-width: 132px;
  border-radius: 11px;
  font-size: 14px;
}

.collector-submit span {
  font-size: 18px;
}

.collector-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 16px;
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 11px;
}

.collector-options > label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.collector-options .select-field {
  min-width: 118px;
  min-height: 33px;
  padding-block: 4px;
}

.check-option {
  cursor: pointer;
  user-select: none;
}

.check-option input {
  accent-color: var(--primary);
}

.source-strip {
  display: grid;
  grid-template-columns: repeat(9, minmax(84px, 1fr));
  gap: 7px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid #e9eef7;
  overflow-x: auto;
}

.source-chip {
  display: grid;
  min-width: 86px;
  min-height: 82px;
  place-items: center;
  align-content: center;
  gap: 1px;
  padding: 8px 5px;
  border: 1px solid #e4e8ef;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  cursor: pointer;
}

.source-chip:hover {
  border-color: color-mix(in srgb, var(--source-color) 38%, #dbe2ed);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.source-chip > span {
  display: grid;
  width: 27px;
  height: 27px;
  margin-bottom: 3px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--source-color);
  font-size: 9px;
  font-weight: 800;
}

.source-chip strong {
  font-size: 10px;
}

.source-chip small {
  color: var(--text-faint);
  font-size: 8px;
}

.task-progress {
  display: grid;
  grid-template-columns: minmax(74px, 1fr) 28px;
  align-items: center;
  gap: 6px;
  min-width: 116px;
}

.task-progress > div {
  height: 6px;
  overflow: hidden;
  border-radius: 6px;
  background: #e8edf5;
}

.task-progress > div span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--violet));
}

.task-progress small {
  color: var(--text-soft);
  text-align: right;
}

.api-console {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(340px, 1.35fr);
  align-items: center;
  gap: 16px 24px;
  padding: 21px;
}

.api-base-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.api-base-field input {
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid #cbd8ee;
  border-radius: 9px;
  color: var(--text);
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

.api-health {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #e9eef7;
}

.api-health small {
  color: var(--text-faint);
}

.extension-guide code {
  padding: 2px 5px;
  border-radius: 5px;
  color: #40516d;
  background: #f1f4f8;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.collection-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr) auto) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #dce7fb;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.collection-flow > div {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
}

.collection-flow > div > span {
  grid-row: 1 / 3;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: var(--primary);
  background: #edf4ff;
  font-size: 10px;
  font-weight: 800;
}

.collection-flow strong,
.collection-flow small {
  min-width: 0;
}

.collection-flow strong {
  font-size: 11px;
}

.collection-flow small {
  color: var(--text-faint);
  font-size: 9px;
}

.collection-flow > i {
  color: #b3bfd3;
  font-style: normal;
}

.ai-service-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 18px;
}

.ai-service-strip article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.ai-service-strip article > div {
  min-width: 0;
}

.ai-service-strip strong,
.ai-service-strip small {
  display: block;
}

.ai-service-strip strong {
  font-size: 12px;
}

.ai-service-strip small {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 9px;
  line-height: 1.5;
}

.ai-service-strip .button {
  grid-column: 3;
}

.modal.modal-wide {
  width: min(1180px, 100%);
}

.modal.modal-extra-wide {
  width: min(1320px, 100%);
  max-width: calc(100vw - 36px);
}

.product-workbench {
  display: grid;
  gap: 14px;
}

.workbench-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-faint);
  background: #f7f9fc;
  font-size: 10px;
  font-weight: 700;
}

.workbench-flow .is-done {
  color: var(--green);
}

.workbench-flow .is-current {
  color: var(--primary);
}

.workbench-flow i {
  color: #c5cedb;
  font-style: normal;
}

.workbench-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid #dce7fb;
  border-radius: 10px;
  background: #f8fbff;
}

.workbench-summary strong,
.workbench-summary small {
  display: block;
}

.workbench-summary strong {
  font-size: 12px;
}

.workbench-summary small {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 10px;
}

.media-role-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 9px 11px;
  border: 1px solid #dce7fb;
  border-radius: 9px;
  background: #f8fbff;
}

.media-role-counts span {
  padding: 4px 7px;
  border-radius: 999px;
  color: #31557f;
  background: #eaf2ff;
  font-size: 9px;
  white-space: nowrap;
}

.media-role-counts strong {
  color: var(--primary-dark);
  font-size: 10px;
}

.media-role-counts .is-video {
  color: #775b22;
  background: #fff4d9;
}

.media-role-counts.is-compact {
  gap: 4px;
  margin: 5px 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.media-role-counts.is-compact span {
  padding: 2px 5px;
  font-size: 8px;
}

.workbench-main {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 16px;
}

.workbench-gallery,
.workbench-editor {
  min-width: 0;
}

.workbench-gallery {
  display: grid;
  align-content: start;
  gap: 9px;
}

.workbench-main-image {
  display: grid;
  min-height: 330px;
  max-height: 430px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f5f7fa;
}

.workbench-main-image img {
  width: 100%;
  height: 100%;
  max-height: 430px;
  object-fit: contain;
}

.workbench-main-image.is-empty {
  color: var(--text-faint);
}

.workbench-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  max-height: 184px;
  overflow-y: auto;
}

.workbench-thumbs button {
  aspect-ratio: 1;
  padding: 2px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.workbench-thumbs button.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(18, 101, 255, 0.12);
}

.workbench-thumbs img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.workbench-preview-limit {
  margin: 7px 0 0;
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.5;
}

.workbench-asset-note {
  padding: 10px 11px;
  border-radius: 9px;
  color: #255a45;
  background: var(--green-soft);
}

.workbench-asset-note strong,
.workbench-asset-note small {
  display: block;
}

.workbench-asset-note strong {
  font-size: 10px;
}

.workbench-asset-note small {
  margin-top: 2px;
  font-size: 9px;
}

.workbench-ai-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.workbench-details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.workbench-details summary {
  padding: 11px 13px;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.workbench-details[open] summary {
  border-bottom: 1px solid var(--line);
}

.workbench-details > :not(summary) {
  margin: 12px;
}

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

.workbench-kv > div {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f7f8fa;
}

.workbench-kv strong,
.workbench-kv span {
  display: block;
}

.workbench-kv strong {
  color: var(--text-soft);
  font-size: 9px;
}

.workbench-kv span {
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: 10px;
}

.workbench-variant-table td {
  vertical-align: top;
}

.workbench-variant-media,
.workbench-variant-detail {
  min-width: 92px;
}

.workbench-variant-media summary,
.workbench-variant-detail summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.workbench-variant-media summary::-webkit-details-marker,
.workbench-variant-detail summary::-webkit-details-marker {
  display: none;
}

.workbench-variant-media summary img {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 9px;
  object-fit: cover;
  background: #f7f8fa;
}

.workbench-variant-image-grid {
  display: grid;
  grid-template-columns: repeat(4, 58px);
  gap: 7px;
  width: max-content;
  max-width: 310px;
  margin-top: 8px;
  padding: 8px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(19, 33, 58, 0.1);
}

.workbench-variant-image-grid a,
.workbench-variant-image-grid img {
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 8px;
}

.workbench-variant-image-grid img {
  border: 1px solid var(--line);
  object-fit: cover;
  background: #f7f8fa;
}

.workbench-variant-missing {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  color: #a54242;
  background: #fff0f0;
  font-size: 9px;
  font-weight: 700;
}

.workbench-variant-detail pre {
  width: min(460px, 65vw);
  max-height: 280px;
  margin: 8px 0 0;
  padding: 10px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: #f7f8fa;
  font: 10px/1.55 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ozon-draft-sku-details {
  width: min(390px, 36vw);
  margin-top: 8px;
}

.ozon-draft-sku-details > summary {
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.ozon-draft-sku-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  margin-top: 8px;
  padding: 8px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8faff;
}

.ozon-draft-sku-list > article {
  min-width: 0;
  padding: 8px;
  border: 1px solid #dfe7f5;
  border-radius: 9px;
  background: #fff;
}

.ozon-draft-sku-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ozon-draft-sku-head > img,
.ozon-draft-sku-head > span {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 800;
}

.ozon-draft-sku-head > div {
  min-width: 0;
}

.ozon-draft-sku-head strong,
.ozon-draft-sku-head small,
.ozon-draft-sku-list > article > small {
  display: block;
  overflow-wrap: anywhere;
}

.ozon-draft-sku-head strong {
  font-size: 10px;
}

.ozon-draft-sku-head small,
.ozon-draft-sku-list > article > small {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 8px;
}

.ozon-draft-sku-list > article > p {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 9px;
  line-height: 1.5;
}

.workbench-structured-editor .form-grid {
  align-items: start;
}

.workbench-json-editor {
  min-height: 110px;
  tab-size: 2;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  line-height: 1.55;
  resize: vertical;
}

.validation-issues {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.validation-issues li {
  display: grid;
  gap: 2px;
  padding: 6px 7px;
  border: 1px solid #f6d39e;
  border-radius: 7px;
  color: #8a5200;
  background: #fff9ee;
  font-size: 9px;
  line-height: 1.4;
}

.validation-issues li strong,
.validation-issues li span {
  overflow-wrap: anywhere;
}

.listing-readiness {
  display: grid;
  min-width: 240px;
  gap: 7px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfcfe;
}

.readiness-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.readiness-head > strong {
  font-size: 10px;
}

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

.readiness-metrics span {
  padding: 4px 6px;
  border-radius: 6px;
  color: var(--text-soft);
  background: #f0f3f8;
  font-size: 8px;
  overflow-wrap: anywhere;
}

.readiness-metrics strong {
  color: var(--text);
  font-size: 9px;
}

.readiness-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.readiness-list li {
  display: grid;
  gap: 2px;
  padding: 5px 6px;
  border-left: 3px solid #98a2b3;
  border-radius: 5px;
  color: #475467;
  background: #f2f4f7;
  font-size: 8px;
  line-height: 1.4;
}

.readiness-list li strong,
.readiness-list li span {
  overflow-wrap: anywhere;
}

.readiness-list.is-missing li,
.readiness-list.is-blocked li {
  border-left-color: #d92d20;
  color: #8a2922;
  background: #fff2f0;
}

.readiness-list.is-autofilled li {
  border-left-color: #12a36e;
  color: #176b4f;
  background: #edf9f4;
}

.readiness-list.is-review li {
  border-left-color: #f79009;
  color: #8a5200;
  background: #fff8e8;
}

.draft-readiness {
  margin-top: 6px;
}

.draft-target-readiness-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.draft-target-readiness-grid > article {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.draft-target-readiness-grid > article > header {
  display: grid;
  gap: 2px;
  margin-bottom: 7px;
}

.draft-target-readiness-grid > article > header strong {
  font-size: 10px;
}

.draft-target-readiness-grid > article > header small {
  color: var(--text-soft);
  font-size: 9px;
}

.workbench-form-errors {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #f3b5b5;
  border-radius: 9px;
  color: #a42929;
  background: #fff4f4;
  font-size: 10px;
}

.workbench-form-errors ul {
  margin: 6px 0 0 16px;
  padding: 0;
}

.queue-detail-grid {
  display: grid;
  gap: 14px;
}

.queue-block-reasons {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfc;
}

.queue-block-reasons h3 {
  margin: 0;
  font-size: 12px;
}

.queue-detail-actions {
  align-items: center;
}

.empty-inline {
  padding: 16px;
  color: var(--text-faint);
  text-align: center;
  font-size: 10px;
}

.data-table.compact th,
.data-table.compact td {
  padding-block: 8px;
  font-size: 10px;
}

.draft-picker {
  display: grid;
  gap: 8px;
}

.draft-picker button {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.draft-picker button:hover {
  border-color: #9dbcf7;
  background: #f8fbff;
}

.draft-picker strong,
.draft-picker small {
  display: block;
}

.draft-picker small {
  margin-top: 3px;
  color: var(--text-soft);
}

.existing-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px;
  border-radius: 9px;
  background: #f7f9fc;
}

.existing-targets strong {
  width: 100%;
  font-size: 10px;
}

.existing-targets span {
  padding: 5px 8px;
  border-radius: 14px;
  color: var(--primary-dark);
  background: #edf4ff;
  font-size: 9px;
}

.existing-target-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border: 1px solid #e5ebf5;
  border-radius: 8px;
  background: #fff;
}

.existing-target-row span {
  min-width: 0;
  padding: 0;
  overflow-wrap: anywhere;
  background: transparent;
}

.existing-target-row > div {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

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

.link-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.modal:has(.listing-target-editor),
.modal:has(.preparation-composer),
.modal:has(.preparation-quote),
.modal:has(.preparation-review) {
  width: min(940px, 100%);
}

.modal:has(.billing-console) {
  width: min(1180px, 100%);
}

.modal.modal-wide:has(.listing-target-editor) {
  width: min(1280px, 100%);
}

.listing-target-editor,
.preparation-fields {
  max-width: none;
}

.direct-listing-editor {
  gap: 14px;
}

.modal.direct-listing-modal {
  display: grid;
  width: min(1280px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.modal.direct-listing-modal .modal-header,
.modal.direct-listing-modal .modal-footer {
  padding: 12px 16px;
}

.modal.direct-listing-modal .modal-body {
  min-height: 0;
  padding: 12px 16px;
  overflow-y: auto;
}

.direct-listing-single-page {
  display: grid;
  gap: 10px;
}

.direct-listing-single-page > .form-group {
  gap: 0;
}

.direct-listing-single-page .claim-selected-products,
.direct-listing-single-page .direct-listing-product-summary {
  padding: 8px 10px;
}

.direct-listing-single-page .direct-listing-product-summary .table-thumb,
.direct-listing-single-page .direct-listing-product-summary img {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
}

.direct-listing-single-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.direct-listing-single-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1.18fr);
  grid-template-areas:
    "destination visual"
    "translation visual"
    "preflight preflight";
  align-items: stretch;
  gap: 10px;
}

.direct-listing-config-card {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid #dce5f5;
  border-radius: 11px;
  background: #fff;
}

.direct-listing-config-card > header {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 9px;
}

.direct-listing-config-card > header > span {
  display: grid;
  min-width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0 5px;
  border-radius: 8px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 9px;
  font-weight: 800;
}

.direct-listing-config-card > header > div {
  min-width: 0;
  flex: 1;
}

.direct-listing-config-card > header h3,
.direct-listing-config-card > header p {
  margin: 0;
}

.direct-listing-config-card > header h3 {
  color: var(--text);
  font-size: 13px;
}

.direct-listing-config-card > header p {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 9px;
  line-height: 1.4;
}

.direct-listing-destination-card {
  grid-area: destination;
}

.direct-listing-visual-card {
  grid-area: visual;
}

.direct-listing-translation-card {
  grid-area: translation;
}

.direct-listing-preflight-card {
  grid-area: preflight;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  background: linear-gradient(135deg, #f8fbff, #f7fff9);
}

.direct-listing-destination-fields {
  display: grid;
  gap: 7px;
}

.direct-listing-destination-fields .form-group {
  gap: 4px;
}

.direct-listing-destination-fields label {
  font-size: 10px;
}

.direct-listing-destination-fields label b {
  color: var(--primary);
}

.direct-listing-destination-fields select {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 10px;
}

.direct-listing-destination-fields .form-hint {
  font-size: 8px;
  line-height: 1.35;
}

.direct-listing-single-page .direct-listing-visual-modes,
.direct-listing-single-page .direct-listing-translation-modes {
  margin: 0;
  padding: 0;
  border: 0;
  gap: 6px;
}

.direct-listing-single-page .direct-listing-visual-modes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.direct-listing-single-page .direct-listing-translation-modes {
  grid-template-columns: 1fr;
}

.direct-listing-single-page .preparation-mode-grid label {
  gap: 7px;
  padding: 7px 8px;
  border-radius: 8px;
}

.direct-listing-single-page .preparation-mode-grid b {
  font-size: 10px;
}

.direct-listing-single-page .preparation-mode-grid small {
  margin-top: 1px;
  font-size: 8px;
  line-height: 1.35;
}

.direct-listing-output-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 9px;
  border: 1px solid #dce5f5;
  border-radius: 9px;
  background: #f8fbff;
}

.direct-listing-output-count label,
.direct-listing-output-count label b,
.direct-listing-output-count label span {
  display: block;
}

.direct-listing-output-count label b {
  color: var(--text);
  font-size: 10px;
}

.direct-listing-output-count label span {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 8px;
}

.direct-listing-output-count select {
  width: 96px;
  min-height: 34px;
  flex: 0 0 auto;
}

.direct-listing-preflight-card > header {
  align-self: start;
}

.direct-listing-preflight-card > header > .status {
  margin-left: auto;
}

.direct-listing-preflight-selection {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.direct-listing-inline-quote {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 9px;
  border: 1px solid #d8e3f3;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
}

.direct-listing-inline-quote > p,
.direct-listing-inline-quote > strong,
.direct-listing-inline-quote > span {
  margin: 0;
  font-size: 9px;
  line-height: 1.45;
}

.direct-listing-inline-quote.is-loading {
  border-color: #bcd4ff;
  background: #f4f8ff;
}

.direct-listing-inline-quote-head,
.direct-listing-inline-quote-items > article > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.direct-listing-inline-quote-head span,
.direct-listing-inline-quote-head strong,
.direct-listing-inline-quote-head small,
.direct-listing-inline-quote-items > article > header span,
.direct-listing-inline-quote-items > article > header strong,
.direct-listing-inline-quote-items > article > header small {
  display: block;
}

.direct-listing-inline-quote-head strong,
.direct-listing-inline-quote-head > b {
  color: var(--text);
  font-size: 12px;
}

.direct-listing-inline-quote-head small,
.direct-listing-inline-quote-items > article > header small {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 8px;
}

.direct-listing-inline-quote-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.direct-listing-inline-quote-items > article {
  min-width: 0;
  padding: 8px;
  border: 1px solid #e2e9f4;
  border-radius: 9px;
  background: #fff;
}

.direct-listing-inline-quote-items .billing-quote-lines {
  margin-top: 7px;
}

.direct-listing-preflight-selection > span {
  min-width: 0;
  padding: 6px 7px;
  border: 1px solid #e0e8f5;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.direct-listing-preflight-selection small,
.direct-listing-preflight-selection strong {
  display: block;
  min-width: 0;
}

.direct-listing-preflight-selection small {
  color: var(--text-faint);
  font-size: 8px;
}

.direct-listing-preflight-selection strong {
  margin-top: 2px;
  overflow: hidden;
  color: var(--text);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.direct-listing-preflight-card #direct-listing-store-readiness {
  grid-column: 1;
}

.direct-listing-preflight-card #direct-listing-store-readiness .status {
  display: flex;
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 8px;
  line-height: 1.35;
  white-space: normal;
}

.direct-listing-preflight-card #direct-listing-store-readiness .status strong {
  flex: 0 0 auto;
}

.direct-listing-preflight-card .direct-listing-automatic-copy {
  grid-column: 1 / -1;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 8px;
  line-height: 1.4;
}

.direct-listing-preflight-card .direct-listing-automatic-copy strong,
.direct-listing-preflight-card .direct-listing-automatic-copy span {
  display: block;
}

.direct-listing-preflight-card .direct-listing-automatic-copy span {
  margin-top: 2px;
  color: var(--text-soft);
}

.direct-listing-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.direct-listing-stepper li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 7px;
  color: var(--text-faint);
  font-size: 11px;
}

.direct-listing-stepper li:not(:last-child)::after {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: calc(50% + 25px);
  width: calc(100% - 50px);
  height: 2px;
  background: #e3e9f5;
  content: "";
}

.direct-listing-stepper li.is-complete::after {
  background: #9ccdb8;
}

.direct-listing-stepper li > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border: 1px solid #dce3ef;
  border-radius: 50%;
  background: #fff;
  font-size: 10px;
  font-weight: 800;
}

.direct-listing-stepper li.is-active {
  color: var(--primary-dark);
}

.direct-listing-stepper li.is-active > span {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(18, 101, 255, 0.22);
}

.direct-listing-stepper li.is-complete {
  color: #087a4f;
}

.direct-listing-stepper li.is-complete > span {
  border-color: #8dd0b0;
  background: #eaf9f1;
  color: #087a4f;
}

.direct-listing-step-panel {
  display: grid;
  gap: 14px;
}

.direct-listing-step-panel > header {
  padding: 14px 16px;
  border: 1px solid #dce5ff;
  border-radius: 12px;
  background: linear-gradient(135deg, #f7f9ff, #fff);
}

.direct-listing-step-panel > header > span {
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
}

.direct-listing-step-panel > header h3 {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 17px;
}

.direct-listing-step-panel > header p {
  margin: 5px 0 0;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.55;
}

.direct-listing-loading {
  display: grid;
  gap: 18px;
}

.direct-listing-loading .status {
  display: grid;
  justify-content: stretch;
  gap: 5px;
  padding: 20px;
  text-align: center;
}

.direct-listing-loading .status span,
.direct-listing-final-blocked span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.5;
}

.direct-listing-product-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #dce5ff;
  border-radius: 12px;
  background: #f7f9ff;
}

.direct-listing-product-summary .table-thumb,
.direct-listing-product-summary img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 10px;
  object-fit: cover;
}

.direct-listing-product-summary span,
.direct-listing-product-summary strong,
.direct-listing-product-summary small {
  display: block;
  min-width: 0;
}

.direct-listing-product-summary small {
  margin-top: 4px;
  color: var(--text-soft);
}

.direct-listing-automatic-copy {
  padding: 14px 16px;
  border: 1px solid #bfe8d4;
  border-radius: 12px;
  background: linear-gradient(135deg, #f2fcf7, #f7f9ff);
}

.direct-listing-automatic-copy strong {
  display: block;
  color: #087a4f;
}

.direct-listing-automatic-copy ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.55;
}

.direct-listing-confirmation {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.direct-listing-confirmation-head,
.direct-listing-preview-item > header,
.direct-listing-package-warning {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.direct-listing-confirmation-head h3 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 18px;
}

.direct-listing-confirmation-head p {
  margin: 5px 0 0;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.55;
}

.direct-listing-confirmation-selection {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.direct-listing-confirmation-selection > span {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #dce5ff;
  border-radius: 10px;
  background: #f7f9ff;
}

.direct-listing-confirmation-selection small,
.direct-listing-confirmation-selection strong {
  display: block;
  min-width: 0;
}

.direct-listing-confirmation-selection small {
  color: var(--text-faint);
  font-size: 9px;
}

.direct-listing-confirmation-selection strong {
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 11px;
}

.direct-listing-package-warning {
  justify-content: flex-start;
  padding: 12px 14px;
  border: 1px solid #f3c783;
  border-radius: 11px;
  background: #fff8eb;
  color: #8a4b08;
}

.direct-listing-package-warning > b {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 50%;
  background: #f59e0b;
  color: #fff;
}

.direct-listing-package-warning strong,
.direct-listing-package-warning small {
  display: block;
}

.direct-listing-package-warning small {
  margin-top: 4px;
  color: #9a621f;
  font-size: 10px;
  line-height: 1.5;
}

.direct-listing-preview-list {
  display: grid;
  max-height: min(52vh, 560px);
  overflow-y: auto;
  padding-right: 3px;
  gap: 10px;
}

.direct-listing-preview-item {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.direct-listing-preview-item.is-ready {
  border-color: #bfe8d4;
  background: linear-gradient(135deg, #fbfffd, #fff);
}

.direct-listing-preview-item.is-blocked {
  border-color: #f4d39a;
  background: #fffaf2;
}

.direct-listing-preview-item > header > span {
  color: var(--primary-dark);
  font-size: 10px;
  font-weight: 800;
}

.direct-listing-preview-item h3 {
  margin: 7px 0 10px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.direct-listing-preview-item dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  gap: 8px;
}

.direct-listing-preview-item dl > div {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 9px;
  background: #f6f8fb;
}

.direct-listing-preview-item dl > div.full {
  grid-column: 1 / -1;
}

.direct-listing-preview-item dt,
.direct-listing-preview-item dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.direct-listing-preview-item dt {
  color: var(--text-faint);
  font-size: 9px;
}

.direct-listing-preview-item dd {
  margin-top: 3px;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.direct-listing-estimated-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #fff0cf;
  color: #a45108;
  font-size: 9px;
}

.direct-listing-preview-blockers,
.direct-listing-preview-warnings,
.direct-listing-preview-failures {
  display: grid;
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid #f4d39a;
  border-radius: 9px;
  background: #fff8eb;
  gap: 5px;
}

.direct-listing-preview-blockers > strong,
.direct-listing-preview-warnings > strong,
.direct-listing-preview-failures > strong {
  color: #9a4f09;
  font-size: 10px;
}

.direct-listing-preview-blockers > span,
.direct-listing-preview-warnings > span,
.direct-listing-preview-failures > span {
  color: #8a5a25;
  font-size: 9px;
  line-height: 1.45;
}

.direct-listing-preview-blockers b,
.direct-listing-preview-warnings b {
  margin-right: 6px;
}

.direct-listing-preview-failures {
  margin-top: 0;
  border-color: #f1b6b6;
  background: #fff5f5;
}

.direct-listing-preview-failures > strong,
.direct-listing-preview-failures > span {
  color: #a52a2a;
}

.listing-language-choice,
.listing-next-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfc;
}

.listing-language-choice {
  align-items: center;
  flex-wrap: wrap;
}

.listing-language-choice > strong {
  margin-right: auto;
  color: var(--text);
  font-size: 11px;
}

.listing-language-choice label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 10px;
}

.listing-next-step {
  cursor: pointer;
}

.listing-next-step > input,
.listing-language-choice input {
  width: auto;
  margin-top: 2px;
  accent-color: var(--primary);
}

.listing-next-step span,
.listing-next-step b,
.listing-next-step small {
  display: block;
}

.listing-next-step span {
  min-width: 0;
}

.listing-next-step b {
  color: var(--text);
  font-size: 11px;
}

.listing-next-step small {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 9px;
  line-height: 1.55;
}

.ozon-target-section {
  min-width: 0;
  padding: 12px;
  border: 1px solid #cfdcff;
  border-radius: 12px;
  background: linear-gradient(145deg, #f8fbff, #fbfaff);
}

.ozon-target-section[hidden] {
  display: none;
}

.ozon-variant-toolbar,
.ozon-operational-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ozon-variant-toolbar > div:first-child,
.ozon-operational-head > div:first-child {
  min-width: 0;
}

.ozon-variant-toolbar strong,
.ozon-variant-toolbar small,
.ozon-operational-head strong,
.ozon-operational-head small {
  display: block;
}

.ozon-variant-toolbar strong,
.ozon-operational-head strong {
  color: var(--text);
  font-size: 12px;
}

.ozon-variant-toolbar small,
.ozon-operational-head small {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 9px;
  line-height: 1.45;
}

.ozon-variant-toolbar > div:last-child {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.ozon-variant-scroll {
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.ozon-variant-operation-table {
  min-width: 930px;
}

.ozon-variant-operation-table thead {
  position: sticky;
  z-index: 2;
  top: 0;
  background: #f7f9fc;
}

.ozon-variant-operation-table th,
.ozon-variant-operation-table td {
  padding: 8px;
  vertical-align: top;
}

.ozon-variant-product {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
}

.ozon-variant-product > img,
.ozon-variant-product > span {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  object-fit: cover;
  color: #1769ff;
  background: #edf4ff;
  font-weight: 800;
}

.ozon-variant-product strong,
.ozon-variant-product small,
.ozon-variant-operation-table td > small {
  display: block;
}

.ozon-variant-product strong {
  overflow-wrap: anywhere;
  font-size: 10px;
}

.ozon-variant-product small,
.ozon-variant-operation-table td > small {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 8px;
}

.compact-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 10px;
}

.compact-check input {
  width: auto;
  accent-color: var(--primary);
}

.compact-select {
  min-width: 150px;
  min-height: 30px;
  padding: 4px 8px;
  font-size: 9px;
}

.ozon-visual-plan-field {
  display: grid;
  gap: 6px;
}

.ozon-visual-plan-field label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-soft);
  font-size: 9px;
}

.ozon-visual-plan-field input {
  width: 58px;
  min-height: 28px;
  padding: 3px 6px;
}

.ozon-store-scope-note {
  margin-bottom: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  color: #385681;
  background: #edf4ff;
  font-size: 8px;
  line-height: 1.45;
}

.ozon-operational-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 9px;
}

.ozon-operational-stats span {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 8px 9px;
  border-radius: 9px;
  color: var(--text-soft);
  background: #fff;
  font-size: 9px;
}

.ozon-operational-stats b {
  color: #1769ff;
  font-size: 14px;
}

.ozon-warehouse-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.ozon-warehouse-cards article {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.ozon-warehouse-cards article > strong,
.ozon-warehouse-cards article > small,
.ozon-warehouse-cards article > span {
  display: block;
}

.ozon-warehouse-cards article > small,
.ozon-warehouse-cards article > span {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 8px;
}

.ozon-warehouse-cards details,
.ozon-operational-raw {
  margin-top: 7px;
}

.ozon-warehouse-cards summary,
.ozon-operational-raw > summary {
  color: var(--primary);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.ozon-warehouse-cards pre,
.ozon-operational-json-grid pre {
  max-height: 230px;
  margin: 7px 0 0;
  padding: 8px;
  overflow: auto;
  border-radius: 7px;
  color: #d9e5ff;
  background: #182236;
  font-size: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ozon-operational-json-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.ozon-operational-json-grid strong {
  font-size: 9px;
}

.ozon-read-model-actions,
.ozon-read-resource-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.ozon-read-resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.ozon-store-read-modal {
  display: grid;
  min-width: 0;
  max-width: 100%;
  gap: 12px;
  overflow-x: hidden;
}

.ozon-store-read-modal #ozon-store-operations {
  min-width: 0;
  max-width: 100%;
}

.ozon-store-read-modal > .status,
.ozon-store-read-modal #ozon-store-operations > .status {
  display: grid;
  align-items: start;
  justify-items: start;
  max-width: 100%;
  line-height: 1.55;
  white-space: normal;
  overflow-wrap: anywhere;
}

.ozon-read-resource-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.ozon-read-resource-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.ozon-read-resource-card > header strong,
.ozon-read-resource-card > header small {
  display: block;
}

.ozon-read-resource-card > header strong {
  font-size: 11px;
}

.ozon-read-resource-card > header small,
.ozon-read-resource-card .form-hint {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 8px;
  overflow-wrap: anywhere;
}

.ozon-read-resource-card details {
  margin-top: 8px;
}

.ozon-read-resource-card summary {
  color: var(--primary);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.ozon-read-resource-card pre {
  max-height: 260px;
  margin: 7px 0 0;
  padding: 8px;
  overflow: auto;
  border-radius: 7px;
  color: #d9e5ff;
  background: #182236;
  font-size: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.content-compliance-plan-result {
  display: grid;
  gap: 12px;
}

.content-compliance-plan-result > .status {
  display: grid;
  justify-items: start;
  gap: 4px;
  white-space: normal;
}

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

.content-plan-stats span {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text-soft);
  background: #fafbfc;
  font-size: 9px;
}

.content-plan-stats b {
  display: block;
  margin-bottom: 2px;
  color: var(--primary);
  font-size: 16px;
}

.content-compliance-plan-result section {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.content-compliance-plan-result h3,
.content-compliance-plan-result p {
  margin: 0;
}

.content-compliance-plan-result h3 {
  font-size: 11px;
}

.content-compliance-plan-result p {
  margin-top: 5px;
  color: var(--text-soft);
  font-size: 9px;
  line-height: 1.6;
}

.content-plan-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.content-plan-list span {
  display: grid;
  grid-template-columns: minmax(150px, .45fr) minmax(0, 1fr);
  gap: 8px;
  padding: 7px 8px;
  border-radius: 7px;
  color: var(--text-soft);
  background: #f7f9fc;
  font-size: 9px;
}

.content-compliance-plan-result details > summary {
  color: var(--primary);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.content-compliance-plan-result details > pre {
  max-height: 360px;
  margin: 8px 0 0;
  padding: 10px;
  overflow: auto;
  border-radius: 8px;
  color: #d9e5ff;
  background: #182236;
  font-size: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.listing-destination-blockers,
.preparation-blockers,
.preparation-manual-attention {
  display: grid;
  gap: 7px;
  padding: 11px 12px;
  border: 1px solid #f5c7c7;
  border-radius: 10px;
  color: #8a2929;
  background: #fff8f8;
  font-size: 10px;
}

.listing-destination-blockers > span,
.preparation-blockers > span {
  display: grid;
  grid-template-columns: minmax(100px, auto) minmax(0, 1fr);
  gap: 9px;
  align-items: baseline;
}

.listing-destination-blockers b,
.preparation-blockers b {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 8px;
}

.preparation-composer,
.preparation-quote,
.preparation-review,
.billing-console {
  display: grid;
  gap: 15px;
}

.preparation-target-summary,
.billing-wallet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.preparation-target-summary > div,
.billing-wallet-grid > div {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #dce7fb;
  border-radius: 11px;
  background: linear-gradient(145deg, #fff, #f7faff);
}

.preparation-target-summary small,
.preparation-target-summary strong,
.billing-wallet-grid small,
.billing-wallet-grid strong {
  display: block;
}

.preparation-target-summary small,
.billing-wallet-grid small {
  color: var(--text-faint);
  font-size: 9px;
}

.preparation-target-summary strong,
.billing-wallet-grid strong {
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 13px;
}

.billing-wallet-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.billing-wallet-grid strong {
  color: var(--primary-dark);
  font-size: 20px;
}

.preparation-mode-grid,
.preparation-source-assets {
  display: grid;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  gap: 9px;
}

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

.preparation-mode-grid legend,
.preparation-source-assets legend {
  padding: 0 6px;
  color: #475467;
  font-size: 11px;
  font-weight: 700;
}

.preparation-mode-grid label,
.preparation-source-assets label {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.preparation-mode-grid label:has(input:checked),
.preparation-source-assets label:has(input:checked) {
  border-color: #9dbcf7;
  background: #f5f9ff;
  box-shadow: inset 0 0 0 1px rgba(18, 101, 255, 0.08);
}

.preparation-mode-grid label.is-unavailable {
  border-color: #e4e7ec;
  background: #f8fafc;
  cursor: not-allowed;
  opacity: 0.72;
}

.preparation-mode-grid .billing-option-unavailable {
  color: #b54708;
  font-weight: 700;
}

.preparation-mode-grid input,
.preparation-source-assets input {
  width: auto;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--primary);
}

.preparation-mode-grid span,
.preparation-mode-grid b,
.preparation-mode-grid small,
.preparation-source-assets span,
.preparation-source-assets b,
.preparation-source-assets small {
  display: block;
  min-width: 0;
}

.preparation-mode-grid b,
.preparation-source-assets b {
  font-size: 11px;
}

.preparation-mode-grid small,
.preparation-source-assets small {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 9px;
  line-height: 1.45;
}

.preparation-source-assets {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.preparation-source-assets.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.preparation-source-assets .is-unarchived {
  border-color: #f5cf9b;
  background: #fffaf2;
}

.preparation-direct-queue,
.preparation-draft-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--text-soft);
  background: #fafbfc;
  font-size: 9px;
}

.billing-quote-lines {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.billing-quote-lines > div,
.billing-quote-lines footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
}

.billing-quote-lines span,
.billing-quote-lines b,
.billing-quote-lines small {
  display: block;
}

.billing-quote-lines small {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 9px;
}

.billing-quote-lines footer {
  border-bottom: 0;
  color: var(--primary-dark);
  background: #f3f7ff;
  font-size: 13px;
}

.preparation-wallet-check {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preparation-wallet-check > span {
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--text-soft);
  background: #f4f6f9;
  font-size: 9px;
}

.preparation-run-summary {
  display: grid;
  gap: 5px;
}

.preparation-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preparation-manual-attention {
  margin-top: 3px;
}

.preparation-manual-attention > span {
  line-height: 1.5;
}

.preparation-manual-attention .link-button {
  justify-self: start;
}

.preparation-cancel-confirm {
  display: grid;
  gap: 14px;
}

.preparation-cancel-confirm dl {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.preparation-cancel-confirm dl > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 11px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.preparation-cancel-confirm dl > div:last-child {
  border-bottom: 0;
}

.preparation-cancel-confirm dt {
  color: var(--text-soft);
}

.preparation-cancel-confirm dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-weight: 600;
}

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

.preparation-review-asset {
  display: grid;
  grid-template-columns: auto 74px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.preparation-review-asset:has(input:checked) {
  border-color: #9dbcf7;
  background: #f5f9ff;
}

.preparation-review-asset > input {
  width: auto;
  accent-color: var(--primary);
}

.preparation-review-preview {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: var(--primary-dark);
  background: #edf4ff;
}

.preparation-review-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preparation-review-asset > span:last-child,
.preparation-review-asset b,
.preparation-review-asset small {
  display: block;
  min-width: 0;
}

.preparation-review-asset b {
  font-size: 11px;
}

.preparation-review-asset small {
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--text-soft);
  font-size: 8px;
  line-height: 1.45;
}

.preparation-reject-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 10px;
  padding: 12px;
  border: 1px solid #f5c7c7;
  border-radius: 10px;
  background: #fff8f8;
}

.preparation-reject-box label {
  grid-column: 1 / -1;
  color: #8a2929;
  font-size: 10px;
  font-weight: 700;
}

.preparation-reject-box textarea {
  width: 100%;
  min-height: 58px;
  padding: 8px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  resize: vertical;
}

.preparation-reject-box .button {
  align-self: end;
}

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

.billing-section > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.billing-section h3,
.billing-section p {
  margin: 0;
}

.billing-section h3 {
  font-size: 13px;
}

.billing-section p {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 9px;
  line-height: 1.55;
}

.billing-price-list,
.billing-package-list {
  display: grid;
  gap: 7px;
}

.billing-price-row,
.billing-package-row {
  display: grid;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fafbfc;
}

.billing-price-row {
  grid-template-columns: minmax(170px, 1.1fr) minmax(150px, 1fr) auto 90px auto auto;
}

.billing-package-row {
  grid-template-columns: minmax(120px, 0.8fr) minmax(140px, 1fr) 110px 100px auto auto;
}

.billing-price-row input,
.billing-package-row input,
.billing-adjust-grid input,
.billing-adjust-grid select {
  min-width: 0;
  width: 100%;
  padding: 7px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
}

.billing-price-row code {
  overflow-wrap: anywhere;
  color: var(--primary-dark);
  font-size: 9px;
}

.billing-price-row > span,
.billing-price-row > b,
.billing-price-row > label,
.billing-package-row > label {
  color: var(--text-soft);
  font-size: 9px;
  white-space: nowrap;
}

.billing-price-row label,
.billing-package-row label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.billing-price-row label input,
.billing-package-row label input {
  width: auto;
  accent-color: var(--primary);
}

.billing-draft-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px;
  border: 1px solid #cfe0ff;
  border-radius: 11px;
  background: #f4f8ff;
}

.billing-draft-actions label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
  color: var(--text-soft);
  font-size: 9px;
}

.billing-adjust-grid {
  display: grid;
  grid-template-columns: 120px 110px minmax(170px, 1fr) minmax(170px, 1fr) auto;
  gap: 8px;
}

@media (max-width: 1280px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .module-grid,
  .store-grid,
  .integration-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-101%);
    box-shadow: var(--shadow-md);
  }

  body.sidebar-open {
    overflow: hidden;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  body.sidebar-open .sidebar-scrim {
    display: block;
  }

  .app-main {
    margin-left: 0;
  }

  .mobile-menu {
    display: grid;
  }

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

  .hero-strip {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.55fr);
  }

  .visual-workbench {
    grid-template-columns: 1fr;
  }

  .source-strip {
    grid-template-columns: repeat(9, 92px);
  }

  .api-console {
    grid-template-columns: 1fr;
  }

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

  .billing-price-row,
  .billing-package-row {
    grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr) repeat(2, auto);
  }

  .billing-price-row > span,
  .billing-price-row > b {
    display: none;
  }

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

  .billing-adjust-grid .button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: 62px;
    padding: 0 14px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .global-search {
    display: none;
  }

  .mobile-search-button {
    display: grid;
  }

  .profile-button {
    min-width: 0;
    width: 38px;
    height: 38px;
    padding: 2px;
    justify-content: center;
  }

  .profile-avatar {
    width: 30px;
    height: 30px;
  }

  .profile-copy,
  .profile-button .chevron,
  .desktop-only {
    display: none;
  }

  .page-content {
    padding: 18px 14px 34px;
  }

  .page-header {
    display: grid;
    margin-bottom: 15px;
  }

  .page-actions .button {
    flex: 1;
  }

  .hero-strip {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .hero-insight {
    display: none;
  }

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

  .stat-card {
    padding: 14px;
  }

  .stat-card h3 {
    font-size: 21px;
  }

  .stat-top > span:first-child {
    font-size: 11px;
  }

  .quick-grid,
  .module-grid,
  .store-grid,
  .automation-grid,
  .integration-grid,
  .article-grid,
  .visual-tools {
    grid-template-columns: 1fr;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .collector-composer {
    padding: 16px;
  }

  .collector-heading {
    align-items: flex-start;
  }

  .collector-heading .api-indicator {
    display: none;
  }

  .collector-input-row {
    grid-template-columns: 1fr;
  }

  .collector-mode-switch {
    display: flex;
    width: 100%;
  }

  .collector-mode-switch button {
    flex: 1 1 0;
  }

  .collector-discovery-input-row {
    grid-template-columns: minmax(0, 1fr) 118px;
  }

  .collector-discovery-input-row .collector-submit {
    grid-column: 1 / -1;
  }

  .collector-submit {
    min-height: 44px;
  }

  .collector-options {
    align-items: stretch;
  }

  .collector-options > label:not(.check-option) {
    flex: 1 1 150px;
  }

  .collector-options .select-field {
    flex: 1;
  }

  .api-base-field {
    grid-template-columns: 1fr 1fr;
  }

  .api-base-field input {
    grid-column: 1 / -1;
  }

  .toolbar-filters,
  .toolbar-actions {
    width: 100%;
  }

  .field,
  .select-field {
    min-width: 0;
    flex: 1 1 140px;
  }

  .table-footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .settings-nav {
    display: flex;
    overflow-x: auto;
  }

  .settings-nav button {
    width: auto;
    flex: 0 0 auto;
  }

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

  .form-group.full {
    grid-column: auto;
  }

  .preparation-target-summary,
  .preparation-mode-grid,
  .preparation-source-assets,
  .preparation-review-grid,
  .billing-wallet-grid {
    grid-template-columns: 1fr;
  }

  .preparation-direct-queue,
  .billing-section > header,
  .billing-draft-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .preparation-review-asset {
    grid-template-columns: auto 60px minmax(0, 1fr);
  }

  .preparation-review-preview {
    width: 60px;
    height: 60px;
  }

  .preparation-reject-box,
  .billing-price-row,
  .billing-package-row,
  .billing-adjust-grid {
    grid-template-columns: 1fr;
  }

  .preparation-reject-box label,
  .billing-adjust-grid .button {
    grid-column: auto;
  }

  .billing-draft-actions label {
    margin-right: 0;
  }

  .listing-destination-blockers > span,
  .preparation-blockers > span,
  .preparation-cancel-confirm dl > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

@media (max-width: 460px) {
  .auth-shell {
    padding: 24px 14px;
  }

  .auth-card {
    padding: 26px 21px;
    border-radius: 17px;
  }

  .auth-card-header h1 {
    font-size: 24px;
  }

  .breadcrumb small {
    display: none;
  }

  .breadcrumb strong {
    font-size: 14px;
  }

  .topbar-actions .notification-button {
    display: none;
  }

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

  .stat-card {
    min-height: 115px;
  }

  .hero-copy .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-grid {
    padding: 10px;
  }

  .automation-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .automation-card .switch {
    grid-column: 2;
  }

  .toast-region {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 1024px) {
  .collection-methods {
    grid-template-columns: 1fr;
  }

  .sku-ai-hero {
    grid-template-columns: 1fr;
  }

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

  .collection-flow {
    grid-template-columns: repeat(9, max-content);
    justify-content: start;
    overflow-x: auto;
  }

  .ai-service-strip {
    grid-template-columns: 1fr;
  }

  .workbench-main {
    grid-template-columns: 1fr;
  }

  .workbench-main-image {
    min-height: 280px;
  }
}

@media (max-width: 760px) {
  .collection-method-card {
    padding: 16px;
  }

  .collection-method-head,
  .collection-automation-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .sku-ai-hero {
    padding: 21px 18px;
  }

  .sku-ai-form-grid,
  .sku-ai-output-roles,
  .sku-ai-visual-modes,
  .sku-ai-readiness-list {
    grid-template-columns: 1fr;
  }

  .sku-ai-start-blockers li {
    grid-template-columns: 1fr;
  }

  .sku-ai-store-control {
    grid-template-columns: 1fr;
  }

  .sku-ai-store-control .button {
    width: 100%;
  }

  .sku-ai-output-roles,
  .sku-ai-visual-modes,
  .sku-ai-brief-field {
    grid-column: 1;
  }

  .sku-ai-composer-foot,
  .sku-ai-workflow-card > header,
  .sku-ai-workflow-card > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .sku-ai-composer-foot .button,
  .sku-ai-workflow-card > footer .button {
    width: 100%;
  }

  .sku-ai-run-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .sku-ai-stages {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  .ozon-visual-mode-summary,
  .ozon-visual-library {
    grid-template-columns: 1fr;
  }

  .ozon-visual-catalog-toolbar,
  .ozon-visual-rule-head {
    align-items: stretch;
    flex-direction: column;
  }

  .ozon-visual-rule-head > small {
    text-align: left;
  }

  .sku-ai-stages > i {
    display: none;
  }

  .sku-ai-stages > span {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

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

  .modal-backdrop {
    padding: 8px;
  }

  .modal.modal-wide {
    max-height: calc(100vh - 16px);
  }

  .modal.modal-extra-wide {
    max-width: calc(100vw - 16px);
  }

  .workbench-flow {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
  }

  .workbench-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .workbench-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .workbench-kv {
    grid-template-columns: 1fr;
  }

  .workbench-variant-image-grid {
    grid-template-columns: repeat(3, 54px);
    max-width: 220px;
  }

  .workbench-variant-image-grid a,
  .workbench-variant-image-grid img {
    width: 54px;
    height: 54px;
  }

  .draft-target-readiness-grid {
    grid-template-columns: 1fr;
  }

  .workbench-ai-actions .button {
    flex: 1 1 130px;
  }
}

@media (max-width: 1024px) {
  .automation-queue-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .automation-queue-state,
  .automation-queue-next {
    grid-column: span 3;
  }
}

@media (max-width: 760px) {
  .collection-live-capture {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .collection-methods-single .collection-method-card {
    padding: 14px;
  }

  .current-collection-task > header,
  .current-collection-task > footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .current-collection-progress {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .current-collection-progress p > strong,
  .current-collection-progress p > small {
    white-space: normal;
  }

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

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

  .current-collection-actions .button {
    flex: 1 1 72px;
  }

  .current-collection-task.is-empty {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .current-collection-task.is-empty > .button,
  .current-collection-task.is-empty .live-sync-state {
    grid-column: 1 / -1;
  }

  .live-capture-counts,
  .live-sync-state {
    grid-column: 1 / -1;
  }

  .live-capture-counts {
    justify-content: stretch;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .live-capture-counts em {
    text-align: left;
  }

  .automation-queue-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-right: 12px;
    margin-left: 12px;
  }

  .automation-queue-state,
  .automation-queue-next {
    grid-column: span 2;
  }

  .automation-batch-list {
    padding-right: 12px;
    padding-left: 12px;
  }

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

  .automation-batch-head,
  .automation-batch-foot {
    align-items: flex-start;
    flex-direction: column;
  }
}

.marketplace-directory {
  margin: 18px 0;
  padding: 18px;
}

.platform-directory-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.platform-directory-toolbar .field {
  min-width: 220px;
  flex: 1;
}

.platform-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  max-height: 520px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.platform-picker-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.platform-picker-card:hover,
.platform-picker-card:focus-visible {
  border-color: #a9c2ff;
  outline: none;
  box-shadow: 0 7px 22px rgba(18, 101, 255, 0.1);
  transform: translateY(-1px);
}

.platform-picker-logo,
.platform-option-logo,
.platform-stack-logo,
.autopilot-scope-logo,
.autopilot-table-logo,
.autopilot-platform-logo,
.autopilot-directory-logo,
.autopilot-plan-logo,
.autopilot-store-mini-logo,
.claim-platform-logo {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  border: 0;
  color: #fff;
  background: var(--platform-brand, #5875c9);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.32);
}

.platform-logo-fallback {
  position: relative;
  z-index: 1;
}

.platform-logo-image {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.platform-picker-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 12px;
}

.platform-picker-copy {
  min-width: 0;
}

.platform-picker-copy strong,
.platform-picker-copy small,
.platform-picker-copy em {
  display: block;
}

.platform-picker-copy strong {
  overflow: hidden;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.platform-picker-copy small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--text-faint);
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.platform-support-badge {
  width: max-content;
  max-width: 100%;
  margin-top: 5px;
  padding: 2px 6px;
  overflow: hidden;
  border-radius: 999px;
  color: #0b65c2;
  background: #edf5ff;
  font-size: 8px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.platform-support-badge.catalog {
  color: #667085;
  background: #f1f3f7;
}

.platform-store-count {
  min-width: 30px;
  text-align: center;
}

.platform-store-count strong,
.platform-store-count small {
  display: block;
}

.platform-store-count strong {
  font-size: 12px;
}

.platform-store-count small {
  color: var(--text-faint);
  font-size: 8px;
}

.platform-directory-empty {
  padding: 28px;
  color: var(--text-soft);
  text-align: center;
}

.marketplace-directory-note {
  margin-top: 14px;
  line-height: 1.6;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 10px;
}

.section-heading h2,
.section-heading p {
  margin: 0;
}

.section-heading h2 {
  font-size: 16px;
}

.section-heading p {
  margin-top: 3px;
  color: var(--text-faint);
  font-size: 10px;
}

.selected-platform-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f9fbff;
}

.selected-platform-card > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.selected-platform-card strong,
.selected-platform-card small {
  display: block;
}

.selected-platform-card small {
  color: var(--text-faint);
  font-size: 9px;
}

.automation-hero {
  background: linear-gradient(130deg, #f4f7ff 0%, #f8f5ff 56%, #eefbf7 100%);
}

.automation-safety-banner {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid #cfe7df;
  border-radius: 11px;
  background: #f2fbf7;
}

.automation-safety-banner > span {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
}

.automation-safety-banner strong,
.automation-safety-banner p {
  display: block;
  margin: 0;
}

.automation-safety-banner p {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 10px;
}

.global-automation-grid {
  grid-template-columns: 1fr;
}

.global-automation-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.automation-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.automation-flow-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}

.automation-flow-summary span {
  padding: 6px 9px;
  border-radius: 8px;
  background: #f6f8fc;
  font-size: 10px;
}

.automation-flow-summary small {
  margin-right: 5px;
  color: var(--text-faint);
}

.automation-flow-summary i {
  color: #98a2b3;
  font-style: normal;
}

.automation-card-actions {
  display: flex;
  gap: 8px;
}

.platform-logo-stack {
  display: flex;
  min-width: 44px;
  padding-left: 5px;
}

.platform-stack-logo {
  width: 30px;
  height: 30px;
  margin-left: -6px;
  border: 2px solid #fff;
  border-radius: 9px;
  font-size: 8px;
}

.platform-stack-logo.is-empty {
  margin-left: 0;
  color: var(--text-soft);
  background: #eef1f6;
  text-shadow: none;
}

.platform-stack-more {
  display: grid;
  height: 30px;
  min-width: 30px;
  margin-left: -5px;
  padding: 0 5px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 9px;
  color: var(--text-soft);
  background: #eef1f6;
  font-size: 8px;
}

.automation-empty {
  grid-column: 1 / -1;
  min-height: 250px;
}

.automation-scope-picker {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fafbfe;
}

.scope-picker-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.scope-picker-heading small {
  color: var(--text-faint);
}

.scope-picker-heading .field {
  max-width: 260px;
}

.automation-platform-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  max-height: 300px;
  margin-top: 10px;
  overflow-y: auto;
}

.automation-platform-option,
.automation-store-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}

.automation-platform-option:has(input:checked),
.automation-store-option:has(input:checked) {
  border-color: #8fb2ff;
  background: #f2f6ff;
}

.automation-platform-option > span,
.automation-store-option > span {
  min-width: 0;
  flex: 1;
}

.automation-platform-option strong,
.automation-platform-option small,
.automation-store-option strong,
.automation-store-option small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.automation-platform-option strong,
.automation-store-option strong {
  font-size: 10px;
}

.automation-platform-option small,
.automation-store-option small {
  color: var(--text-faint);
  font-size: 8px;
}

.platform-option-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 8px;
}

.automation-platform-option input,
.automation-store-option input {
  flex: 0 0 auto;
  accent-color: var(--primary);
}

.automation-store-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  max-height: 280px;
  margin-top: 10px;
  overflow-y: auto;
}

.automation-future-stores {
  display: block;
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 10px;
}

.automation-template-list {
  display: grid;
  gap: 9px;
  margin-bottom: 12px;
}

.automation-template-card {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.automation-template-card:hover {
  border-color: #98b8ff;
  background: #f8faff;
}

.automation-template-card span {
  color: var(--text-soft);
  font-size: 10px;
}

.automation-template-card em {
  color: var(--primary);
  font-size: 9px;
  font-style: normal;
}

@media (max-width: 1180px) {
  .platform-picker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .platform-directory-toolbar,
  .selected-platform-card,
  .automation-flow-summary,
  .automation-card-actions,
  .scope-picker-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .platform-picker-grid,
  .automation-platform-options,
  .automation-store-options {
    grid-template-columns: 1fr;
  }

  .global-automation-card {
    grid-template-columns: 1fr;
  }

  .platform-logo-stack {
    padding-left: 6px;
  }

  .scope-picker-heading .field {
    max-width: none;
  }
}

.autopilot-platform-command {
  margin-top: 14px;
  padding: 0;
  overflow: hidden;
}

.autopilot-platform-command > .panel-header {
  margin: 0;
  padding: 18px 20px 14px;
}

.autopilot-platform-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px;
  gap: 10px;
  padding: 0 20px 14px;
  border-bottom: 1px solid var(--line);
}

.autopilot-platform-command-layout {
  display: grid;
  grid-template-columns: minmax(245px, 290px) minmax(0, 1fr);
  min-height: 720px;
}

.autopilot-platform-directory {
  max-height: 1050px;
  padding: 14px;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: #f8faff;
  overscroll-behavior: contain;
}

.autopilot-platform-directory > section + section {
  margin-top: 16px;
}

.autopilot-platform-directory > section > h3 {
  margin: 0 0 7px 3px;
  color: var(--text-faint);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.autopilot-platform-directory > section > div {
  display: grid;
  gap: 6px;
}

.autopilot-platform-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.autopilot-platform-card:hover,
.autopilot-platform-card:focus-visible {
  border-color: #b9cdfd;
  outline: none;
  background: #fff;
}

.autopilot-platform-card.is-active {
  border-color: #9ebcff;
  background: #fff;
  box-shadow: 0 5px 16px rgba(18, 101, 255, 0.09);
}

.autopilot-directory-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 9px;
}

.autopilot-platform-card > span {
  min-width: 0;
}

.autopilot-platform-card strong,
.autopilot-platform-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.autopilot-platform-card strong {
  font-size: 10px;
}

.autopilot-platform-card small {
  margin-top: 1px;
  color: var(--text-faint);
  font-size: 8px;
}

.autopilot-platform-card em {
  padding: 3px 5px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.autopilot-platform-directory-empty {
  padding: 24px 8px;
  color: var(--text-faint);
  font-size: 10px;
  text-align: center;
}

.autopilot-platform-detail-host {
  min-width: 0;
  background: #fff;
}

.autopilot-platform-workspace[hidden] {
  display: none !important;
}

.autopilot-platform-form {
  min-width: 0;
}

.autopilot-platform-heading {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--platform-brand, #1265ff) 12%, transparent), transparent 35%),
    linear-gradient(135deg, #fbfdff, #f7f9ff);
}

.autopilot-plan-logo {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  font-size: 13px;
}

.autopilot-platform-heading h2,
.autopilot-platform-heading p {
  margin: 0;
}

.autopilot-platform-heading h2 {
  margin-top: 2px;
  font-size: 18px;
}

.autopilot-platform-heading p {
  max-width: 760px;
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 10px;
}

.autopilot-platform-heading-actions {
  display: grid;
  justify-items: end;
  gap: 9px;
}

.autopilot-platform-enable {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.autopilot-platform-enable input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.autopilot-platform-enable > span {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #cbd3e1;
}

.autopilot-platform-enable > span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.24);
  content: "";
  transition: transform 0.18s ease;
}

.autopilot-platform-enable input:checked + span {
  background: var(--green);
}

.autopilot-platform-enable input:checked + span::after {
  transform: translateX(14px);
}

.autopilot-platform-enable input:disabled + span {
  opacity: 0.45;
}

.autopilot-platform-enable strong {
  font-size: 9px;
}

.autopilot-platform-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 20px 0;
}

.autopilot-platform-facts > span {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-muted);
}

.autopilot-platform-facts small,
.autopilot-platform-facts strong {
  display: block;
}

.autopilot-platform-facts small {
  color: var(--text-faint);
  font-size: 8px;
}

.autopilot-platform-facts strong {
  margin-top: 2px;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.autopilot-platform-state-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 8px;
  padding: 10px 20px 0;
}

.autopilot-platform-state-summary > span {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.autopilot-platform-state-summary > span.success { border-color: #b9e7d2; background: #f4fdf8; }
.autopilot-platform-state-summary > span.warning { border-color: #f1d4a9; background: #fffbf4; }
.autopilot-platform-state-summary > span.info { border-color: #c6d8ff; background: #f4f8ff; }
.autopilot-platform-state-summary > span.read { border-color: #b9e4ea; background: #f2fbfc; }
.autopilot-platform-state-summary > span.advisory { border-color: #d9cdf9; background: #f8f5ff; }
.autopilot-platform-state-summary > span.neutral { background: #f7f8fa; }

.autopilot-platform-state-summary small {
  font-size: 9px;
  font-weight: 800;
}

.autopilot-platform-state-summary strong {
  font-size: 14px;
}

.autopilot-platform-state-summary em {
  grid-column: 1 / -1;
  overflow: hidden;
  color: var(--text-faint);
  font-size: 7px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.autopilot-platform-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(230px, 0.65fr);
  gap: 12px;
  padding: 12px 20px;
}

.autopilot-platform-main,
.autopilot-platform-aside {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.autopilot-platform-section,
.autopilot-platform-side-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.autopilot-platform-section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.autopilot-platform-section h3,
.autopilot-platform-section p,
.autopilot-platform-side-card h3,
.autopilot-platform-side-card p,
.autopilot-platform-thresholds h3,
.autopilot-platform-thresholds p {
  margin: 0;
}

.autopilot-platform-section h3,
.autopilot-platform-side-card h3,
.autopilot-platform-thresholds h3 {
  font-size: 12px;
}

.autopilot-platform-section p,
.autopilot-platform-side-card p,
.autopilot-platform-thresholds p {
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 8px;
}

.autopilot-platform-dirty {
  flex: 0 0 auto;
  color: var(--orange);
  font-size: 8px;
  font-weight: 800;
}

.autopilot-native-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.autopilot-native-action {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-muted);
  cursor: default;
}

.autopilot-native-action.is-disabled {
  cursor: not-allowed;
  opacity: 0.66;
}

.autopilot-native-action-icon {
  display: grid;
  width: 28px;
  height: 28px;
  grid-row: 1 / span 2;
  place-items: center;
  border-radius: 8px;
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 800;
}

.autopilot-native-action > span:nth-of-type(2) {
  min-width: 0;
  padding-right: 56px;
}

.autopilot-native-action strong,
.autopilot-native-action small,
.autopilot-native-action em {
  display: block;
}

.autopilot-native-action strong {
  font-size: 10px;
}

.autopilot-native-action small,
.autopilot-native-action em {
  margin-top: 2px;
  overflow: hidden;
  color: var(--text-faint);
  font-size: 7px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.autopilot-native-action em {
  color: var(--text-soft);
}

.autopilot-action-state {
  position: absolute;
  top: 30px;
  right: 8px;
  padding: 2px 5px;
  border-radius: 999px;
  font-size: 7px;
}

.autopilot-action-state.success { color: var(--green); background: var(--green-soft); }
.autopilot-action-state.warning { color: #a96500; background: var(--orange-soft); }
.autopilot-action-state.info { color: var(--primary); background: var(--primary-soft); }
.autopilot-action-state.read { color: #087d8b; background: #e8f8fa; }
.autopilot-action-state.advisory { color: #6f42c1; background: #f1ebff; }
.autopilot-action-state.neutral { color: var(--text-faint); background: #eceff4; }

.autopilot-module-selection {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.autopilot-module-selection > div:first-child strong,
.autopilot-module-selection > div:first-child small {
  display: block;
}

.autopilot-module-selection > div:first-child strong {
  font-size: 10px;
}

.autopilot-module-selection > div:first-child small {
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 8px;
}

.autopilot-platform-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.autopilot-platform-module-grid label {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  cursor: pointer;
}

.autopilot-platform-module-grid label:has(input:checked) {
  border-color: #9dbdff;
  background: #f4f8ff;
}

.autopilot-platform-module-grid input {
  position: absolute;
  top: 7px;
  right: 7px;
  accent-color: var(--primary);
}

.autopilot-platform-module-grid label > span {
  display: grid;
  width: 26px;
  height: 26px;
  grid-row: 1 / span 2;
  place-items: center;
  border-radius: 7px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 9px;
}

.autopilot-platform-module-grid strong,
.autopilot-platform-module-grid small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.autopilot-platform-module-grid strong {
  padding-right: 14px;
  font-size: 9px;
}

.autopilot-platform-module-grid small {
  color: var(--text-faint);
  font-size: 7px;
}

.autopilot-platform-strategies {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.autopilot-platform-strategies label {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}

.autopilot-platform-strategies label:has(input:checked) {
  border-color: #9dbdff;
  background: #f4f8ff;
}

.autopilot-platform-strategies input {
  position: absolute;
  top: 6px;
  right: 6px;
}

.autopilot-platform-strategies label > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 800;
}

.autopilot-platform-strategies strong,
.autopilot-platform-strategies small {
  display: block;
}

.autopilot-platform-strategies strong {
  padding-right: 12px;
  font-size: 9px;
}

.autopilot-platform-strategies small {
  grid-column: 1 / -1;
  color: var(--text-faint);
  font-size: 7px;
}

.autopilot-platform-stages {
  display: grid;
  grid-template-columns: repeat(6, minmax(95px, 1fr));
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.autopilot-platform-stage {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-width: 95px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.autopilot-platform-stage > span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 6px;
  color: var(--text-faint);
  background: #e9edf3;
  font-size: 8px;
  font-weight: 800;
}

.autopilot-platform-stage strong,
.autopilot-platform-stage small {
  display: block;
  white-space: nowrap;
}

.autopilot-platform-stage strong { font-size: 8px; }
.autopilot-platform-stage small { color: var(--text-faint); font-size: 7px; }
.autopilot-platform-stage.is-ready { border-color: #b9e7d2; background: #f4fdf8; }
.autopilot-platform-stage.is-ready > span { color: var(--green); background: var(--green-soft); }
.autopilot-platform-stage.is-blocked { border-color: #f5c6c6; background: #fff8f8; }
.autopilot-platform-stage.is-blocked > span { color: var(--red); background: var(--red-soft); }
.autopilot-platform-stage.is-manual { border-color: #c6d8ff; background: #f4f8ff; }
.autopilot-platform-stage.is-manual > span { color: var(--primary); background: var(--primary-soft); }

.autopilot-platform-side-card > p {
  margin-bottom: 9px;
}

.autopilot-platform-store-list {
  display: grid;
  gap: 6px;
}

.autopilot-platform-store-list > label {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.autopilot-platform-store-list > label:has(input:checked) {
  border-color: #9dbdff;
  background: #f4f8ff;
}

.autopilot-store-mini-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 7px;
}

.autopilot-platform-store-list strong,
.autopilot-platform-store-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.autopilot-platform-store-list strong { font-size: 9px; }
.autopilot-platform-store-list small { color: var(--text-faint); font-size: 7px; }
.autopilot-platform-store-list input { accent-color: var(--primary); }

.autopilot-platform-no-store {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px dashed #d6dce8;
  border-radius: 8px;
  color: var(--text-soft);
  background: var(--surface-muted);
}

.autopilot-platform-no-store strong { font-size: 9px; }
.autopilot-platform-no-store small { color: var(--text-faint); font-size: 8px; }
.autopilot-platform-no-store .link-button { justify-self: start; }

.autopilot-platform-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.autopilot-platform-kpi {
  padding: 8px;
  border-radius: 8px;
  background: var(--surface-muted);
}

.autopilot-platform-kpi small,
.autopilot-platform-kpi strong,
.autopilot-platform-kpi span {
  display: block;
}

.autopilot-platform-kpi small { color: var(--text-soft); font-size: 7px; }
.autopilot-platform-kpi strong { margin-top: 2px; font-size: 13px; }
.autopilot-platform-kpi span { color: var(--text-faint); font-size: 7px; }

.autopilot-platform-side-card.is-risk {
  border-color: #f1d4a9;
  background: #fffbf4;
}

.autopilot-platform-side-card ul {
  display: grid;
  gap: 6px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.autopilot-platform-side-card li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
}

.autopilot-platform-side-card li > span {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 5px;
  color: #9a5b00;
  background: #fff1d7;
  font-size: 8px;
  font-weight: 800;
}

.autopilot-platform-side-card li p {
  color: #805b27;
  font-size: 8px;
  line-height: 1.45;
}

.autopilot-platform-thresholds {
  margin: 0 20px 20px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-muted);
}

.autopilot-platform-threshold-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.autopilot-platform-threshold-grid > label {
  display: grid;
  gap: 4px;
}

.autopilot-platform-threshold-grid > label > span {
  font-size: 8px;
  font-weight: 700;
}

.autopilot-platform-threshold-grid > label > div {
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}

.autopilot-platform-threshold-grid input,
.autopilot-platform-threshold-grid select {
  width: 100%;
  min-width: 0;
  padding: 8px;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 9px;
}

.autopilot-platform-threshold-grid em {
  align-self: center;
  padding-right: 7px;
  color: var(--text-faint);
  font-size: 7px;
  font-style: normal;
  white-space: nowrap;
}

.autopilot-platform-save {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.autopilot-platform-save span {
  color: var(--text-faint);
  font-size: 8px;
}

.autopilot-global-compat-config[hidden] {
  display: none !important;
}

.autopilot-master {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  min-height: 150px;
  margin-bottom: 14px;
  padding: 24px 28px;
  overflow: hidden;
  border: 1px solid #d9e3ff;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 85% 20%, rgba(121, 86, 246, 0.16), transparent 28%),
    linear-gradient(135deg, #f8fbff 0%, #eef4ff 55%, #f8f5ff 100%);
  box-shadow: var(--shadow-sm);
}

.autopilot-master::after {
  position: absolute;
  right: -70px;
  bottom: -120px;
  width: 310px;
  height: 310px;
  border: 42px solid rgba(18, 101, 255, 0.055);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.autopilot-master.is-active {
  border-color: #b8e7d1;
  background:
    radial-gradient(circle at 85% 20%, rgba(22, 166, 106, 0.16), transparent 28%),
    linear-gradient(135deg, #f8fffb 0%, #eafaf2 55%, #f3fbff 100%);
}

.autopilot-master-copy {
  position: relative;
  z-index: 1;
  max-width: 830px;
}

.autopilot-master-copy h2 {
  margin: 5px 0 7px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.autopilot-master-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--text-soft);
}

.autopilot-master-state {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 15px;
}

.autopilot-master-state small {
  color: var(--text-faint);
}

.autopilot-master-switch {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 54px auto;
  gap: 12px;
  align-items: center;
  min-width: 218px;
  padding: 14px 18px;
  border: 1px solid #cdd9f3;
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(18, 101, 255, 0.1);
  cursor: pointer;
}

.autopilot-master-switch > span {
  position: relative;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: #cbd3e1;
  transition: background 0.2s ease;
}

.autopilot-master-switch > span::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.25);
  content: "";
  transition: transform 0.2s ease;
}

.autopilot-master-switch.is-on > span {
  background: var(--green);
}

.autopilot-master-switch.is-on > span::after {
  transform: translateX(24px);
}

.autopilot-master-switch:disabled {
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.58;
}

.autopilot-readiness-banner {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.autopilot-readiness-banner > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  font-weight: 800;
}

.autopilot-readiness-banner strong,
.autopilot-readiness-banner p {
  margin: 0;
}

.autopilot-readiness-banner p {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 11px;
}

.autopilot-readiness-banner.is-blocked {
  border-color: #f5c6c6;
  background: #fff8f8;
}

.autopilot-readiness-banner.is-blocked > span {
  color: var(--red);
  background: var(--red-soft);
}

.autopilot-readiness-banner.is-ready,
.autopilot-readiness-banner.is-active {
  border-color: #b9e7d2;
  background: #f4fdf8;
}

.autopilot-readiness-banner.is-ready > span,
.autopilot-readiness-banner.is-active > span {
  color: var(--green);
  background: var(--green-soft);
}

.autopilot-blockers {
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid #f1d4a9;
  border-radius: 12px;
  background: #fffbf4;
}

.autopilot-blockers > strong {
  display: block;
  margin-bottom: 8px;
}

.autopilot-blockers ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.autopilot-blockers li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  min-width: 0;
  color: var(--text-soft);
  font-size: 11px;
}

.autopilot-blockers code {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 5px;
  color: #9a5b00;
  background: #fff1d7;
  font-size: 9px;
}

.autopilot-chain-panel,
.autopilot-console-form > fieldset > .panel,
.autopilot-config-grid,
.autopilot-recommendations,
.autopilot-capability-panel,
.autopilot-policy-boundary,
.autopilot-legacy-rules {
  margin-top: 14px;
}

.autopilot-chain {
  display: grid;
  grid-template-columns: repeat(12, minmax(108px, 1fr));
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.autopilot-chain-stage {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-width: 108px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-muted);
}

.autopilot-chain-stage > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  color: var(--text-soft);
  background: #eef1f6;
  font-size: 9px;
  font-weight: 800;
}

.autopilot-chain-stage strong,
.autopilot-chain-stage small {
  display: block;
  white-space: nowrap;
}

.autopilot-chain-stage strong {
  font-size: 10px;
}

.autopilot-chain-stage small {
  color: var(--text-faint);
  font-size: 8px;
}

.autopilot-chain-stage.is-ready {
  border-color: #b9e7d2;
  background: #f4fdf8;
}

.autopilot-chain-stage.is-ready > span {
  color: var(--green);
  background: var(--green-soft);
}

.autopilot-chain-stage.is-blocked {
  border-color: #f5c6c6;
  background: #fff8f8;
}

.autopilot-chain-stage.is-blocked > span {
  color: var(--red);
  background: var(--red-soft);
}

.autopilot-chain-stage.is-pending {
  border-color: #f1d4a9;
  background: #fffbf4;
}

.autopilot-console-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.autopilot-console-form fieldset:disabled {
  opacity: 0.72;
}

.autopilot-unsaved {
  color: var(--orange);
  font-size: 10px;
  font-weight: 700;
}

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

.autopilot-strategy-card {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.autopilot-strategy-card:has(input:checked) {
  border-color: #8eb4ff;
  background: #f6f9ff;
  box-shadow: inset 0 0 0 1px #c7d9ff;
}

.autopilot-strategy-card input {
  position: absolute;
  top: 10px;
  right: 10px;
}

.autopilot-strategy-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 17px;
  font-weight: 800;
}

.autopilot-strategy-card strong,
.autopilot-strategy-card small {
  display: block;
}

.autopilot-strategy-card small {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 9px;
}

.autopilot-config-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}

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

.autopilot-module-option {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-muted);
  cursor: pointer;
}

.autopilot-module-option:has(input:checked) {
  border-color: #9dbdff;
  background: #f3f7ff;
}

.autopilot-module-option input {
  position: absolute;
  top: 8px;
  right: 8px;
}

.autopilot-module-option > span {
  display: grid;
  grid-row: 1 / span 2;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  color: var(--primary);
  background: #e9f1ff;
  font-size: 11px;
}

.autopilot-module-option strong {
  padding-right: 16px;
  font-size: 10px;
}

.autopilot-module-option small {
  color: var(--text-faint);
  font-size: 8px;
}

.autopilot-module-option small b,
.autopilot-module-option small em {
  display: block;
  overflow: hidden;
  font-style: normal;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.autopilot-module-option small b {
  color: var(--text-soft);
}

.autopilot-scope-group + .autopilot-scope-group {
  margin-top: 13px;
}

.autopilot-scope-group > strong {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
}

.autopilot-scope-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  max-height: 250px;
  overflow: auto;
}

.autopilot-scope-option {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}

.autopilot-scope-option:has(input:checked) {
  border-color: #9dbdff;
  background: #f4f8ff;
}

.autopilot-scope-option strong,
.autopilot-scope-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.autopilot-scope-option strong {
  font-size: 10px;
}

.autopilot-scope-option small {
  color: var(--text-faint);
  font-size: 8px;
}

.autopilot-scope-logo,
.autopilot-table-logo,
.autopilot-platform-logo {
  flex: 0 0 auto;
}

.autopilot-scope-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

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

.autopilot-guardrail-grid > label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.autopilot-guardrail-grid > label > span {
  font-size: 10px;
  font-weight: 700;
}

.autopilot-guardrail-grid > label > div {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
}

.autopilot-guardrail-grid input,
.autopilot-guardrail-grid select {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}

.autopilot-guardrail-grid em {
  padding: 0 9px;
  color: var(--text-faint);
  font-size: 8px;
  font-style: normal;
  white-space: nowrap;
}

.autopilot-guardrail-grid small {
  color: var(--text-faint);
  font-size: 8px;
}

.autopilot-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.autopilot-form-actions span {
  color: var(--text-faint);
  font-size: 10px;
}

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

.autopilot-recommendation {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
}

.autopilot-recommendation > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 800;
}

.autopilot-recommendation.warning > span {
  color: var(--orange);
  background: var(--orange-soft);
}

.autopilot-recommendation.blocker > span {
  color: var(--red);
  background: var(--red-soft);
}

.autopilot-recommendation strong,
.autopilot-recommendation p,
.autopilot-recommendation small {
  display: block;
  margin: 0;
}

.autopilot-recommendation p {
  margin: 3px 0;
  color: var(--text-soft);
  font-size: 10px;
}

.autopilot-recommendation small {
  color: var(--primary);
  font-size: 9px;
}

.autopilot-disclaimer {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-soft);
  background: #f5f7fb;
  font-size: 10px;
}

.autopilot-level-legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.autopilot-level-legend > span {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-muted);
}

.autopilot-level-legend strong,
.autopilot-level-legend small {
  display: block;
}

.autopilot-level-legend strong {
  font-size: 10px;
}

.autopilot-level-legend small {
  color: var(--text-faint);
  font-size: 8px;
}

.autopilot-level-legend .info { border-color: #c6d8ff; background: #f4f8ff; }
.autopilot-level-legend .warning { border-color: #f1d4a9; background: #fffbf4; }
.autopilot-level-legend .success { border-color: #b9e7d2; background: #f4fdf8; }

.autopilot-platform-matrices {
  display: grid;
  gap: 9px;
}

.autopilot-platform-matrix {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.autopilot-platform-matrix > summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  background: var(--surface-muted);
  cursor: pointer;
  list-style: none;
}

.autopilot-platform-matrix > summary::-webkit-details-marker {
  display: none;
}

.autopilot-platform-matrix > summary strong,
.autopilot-platform-matrix > summary small {
  display: block;
}

.autopilot-platform-matrix > summary small {
  color: var(--text-faint);
  font-size: 9px;
}

.autopilot-platform-matrix > summary em {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.autopilot-platform-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.autopilot-matrix-scroll {
  max-height: 610px;
}

.autopilot-matrix-table {
  min-width: 1900px;
}

.autopilot-matrix-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8faff;
  white-space: nowrap;
}

.autopilot-matrix-table td {
  padding-top: 9px;
  padding-bottom: 9px;
  vertical-align: middle;
  white-space: nowrap;
}

.autopilot-store-cell {
  display: grid;
  grid-template-columns: 30px minmax(100px, 1fr);
  gap: 8px;
  align-items: center;
}

.autopilot-store-cell strong,
.autopilot-store-cell small,
.autopilot-cell-note {
  display: block;
}

.autopilot-store-cell small,
.autopilot-cell-note {
  color: var(--text-faint);
  font-size: 8px;
}

.autopilot-table-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.autopilot-metric {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--text-soft);
  background: #eef1f6;
  font-size: 8px;
  font-weight: 700;
}

.autopilot-metric.info { color: var(--primary); background: var(--primary-soft); }
.autopilot-metric.success { color: var(--green); background: var(--green-soft); }
.autopilot-metric.warning { color: #a96500; background: var(--orange-soft); }
.autopilot-metric.danger { color: var(--red); background: var(--red-soft); }

.autopilot-unknown {
  color: var(--text-faint);
  font-weight: 700;
}

.autopilot-blocker-reason {
  display: block;
  max-width: 150px;
  margin-top: 4px;
  overflow: hidden;
  color: var(--red);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.autopilot-technical-meta {
  display: inline-block;
  max-width: 140px;
  overflow: hidden;
  color: var(--text-faint);
  font-size: 8px;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.autopilot-policy-boundary {
  border-color: #f1d4a9;
  background: #fffbf4;
}

.autopilot-policy-boundary .panel-title p {
  max-width: none;
  color: #805b27;
  line-height: 1.7;
}

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

.autopilot-confirm-summary span {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text-soft);
  background: var(--surface-muted);
  font-size: 9px;
}

.autopilot-confirm-summary strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 12px;
}

.autopilot-store-reader {
  margin-bottom: 14px;
  overflow: hidden;
}

.autopilot-store-read-controls {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(260px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #f8fbff, #fbf9ff);
}

.autopilot-store-read-controls > label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.autopilot-store-read-controls > label > span {
  color: var(--text-soft);
  font-size: 8px;
  font-weight: 700;
}

.autopilot-store-read-controls .select-field {
  width: 100%;
}

.autopilot-store-read-identity {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.autopilot-store-read-identity small,
.autopilot-store-read-identity strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.autopilot-store-read-identity small {
  color: var(--text-faint);
  font-size: 7px;
}

.autopilot-store-read-identity strong {
  margin-top: 2px;
  font-size: 10px;
}

.autopilot-store-read-logo {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  overflow: hidden;
  place-items: center;
  border-radius: 10px;
  font-size: 8px;
}

.autopilot-store-read-logo.is-empty {
  color: var(--text-faint);
  background: #edf1f7;
}

.autopilot-store-read-progress,
.autopilot-store-read-notice,
.autopilot-store-read-empty {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 12px 20px 0;
  padding: 11px 13px;
  border: 1px solid #c6d8ff;
  border-radius: 10px;
  background: #f4f8ff;
}

.autopilot-store-read-progress > span,
.autopilot-store-read-notice > span,
.autopilot-store-read-empty > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 12px;
  font-weight: 800;
}

.autopilot-store-read-progress > span {
  border: 3px solid #dbe6ff;
  border-top-color: var(--primary);
  border-radius: 50%;
  background: transparent;
  animation: autopilot-store-read-spin 0.9s linear infinite;
}

@keyframes autopilot-store-read-spin {
  to { transform: rotate(360deg); }
}

.autopilot-store-read-progress strong,
.autopilot-store-read-progress p,
.autopilot-store-read-notice strong,
.autopilot-store-read-notice p,
.autopilot-store-read-empty strong,
.autopilot-store-read-empty p {
  display: block;
  margin: 0;
}

.autopilot-store-read-progress strong,
.autopilot-store-read-notice strong,
.autopilot-store-read-empty strong {
  font-size: 9px;
}

.autopilot-store-read-progress p,
.autopilot-store-read-notice p,
.autopilot-store-read-empty p {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 8px;
  line-height: 1.45;
}

.autopilot-store-read-notice.is-warning {
  border-color: #f1d4a9;
  background: #fffbf4;
}

.autopilot-store-read-notice.is-warning > span {
  color: #a96500;
  background: var(--orange-soft);
}

.autopilot-store-read-notice.is-danger {
  border-color: #f5c6c6;
  background: #fff8f8;
}

.autopilot-store-read-notice.is-danger > span {
  color: var(--red);
  background: var(--red-soft);
}

.autopilot-store-read-empty {
  grid-template-columns: 32px minmax(0, 1fr);
  margin-bottom: 16px;
  border-style: dashed;
  border-color: var(--line-strong);
  background: var(--surface-muted);
}

.autopilot-store-read-result {
  padding: 14px 20px 18px;
}

.autopilot-store-read-result-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.autopilot-store-read-result-head > div {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 8px;
  align-items: center;
}

.autopilot-store-read-result-head strong {
  font-size: 11px;
}

.autopilot-store-read-result-head small {
  grid-column: 1 / -1;
  color: var(--text-faint);
  font-size: 7px;
}

.autopilot-store-read-result-head > span {
  color: var(--text-soft);
  font-size: 8px;
}

.autopilot-store-read-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.autopilot-store-read-summary > span {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-muted);
}

.autopilot-store-read-summary small,
.autopilot-store-read-summary strong {
  display: block;
}

.autopilot-store-read-summary small {
  color: var(--text-faint);
  font-size: 7px;
}

.autopilot-store-read-summary strong {
  margin-top: 2px;
  font-size: 15px;
}

.autopilot-store-read-summary .is-success { border-color: #b9e7d2; background: #f4fdf8; }
.autopilot-store-read-summary .is-warning { border-color: #f1d4a9; background: #fffbf4; }
.autopilot-store-read-summary .is-danger { border-color: #f5c6c6; background: #fff8f8; }

.autopilot-store-read-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.autopilot-store-read-section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.autopilot-store-read-section.is-success { border-color: #cceadb; }
.autopilot-store-read-section.is-warning { border-color: #f1d4a9; }
.autopilot-store-read-section.is-danger { border-color: #f5c6c6; }

.autopilot-store-read-section > summary,
.autopilot-store-read-advice > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px;
  cursor: pointer;
  list-style: none;
}

.autopilot-store-read-section > summary::-webkit-details-marker,
.autopilot-store-read-advice > summary::-webkit-details-marker {
  display: none;
}

.autopilot-store-read-section > summary strong,
.autopilot-store-read-section > summary small,
.autopilot-store-read-advice > summary strong,
.autopilot-store-read-advice > summary small {
  display: block;
}

.autopilot-store-read-section > summary strong,
.autopilot-store-read-advice > summary strong {
  font-size: 9px;
}

.autopilot-store-read-section > summary small,
.autopilot-store-read-advice > summary small,
.autopilot-store-read-section > summary em,
.autopilot-store-read-advice > summary em {
  color: var(--text-faint);
  font-size: 7px;
  font-style: normal;
}

.autopilot-store-read-section-body {
  padding: 0 9px 9px;
  border-top: 1px solid var(--line);
}

.autopilot-store-read-section-meta {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.autopilot-store-read-section-meta > span {
  padding: 4px 6px;
  border-radius: 6px;
  color: var(--text-faint);
  background: var(--surface-muted);
  font-size: 7px;
}

.autopilot-store-read-section-meta strong {
  margin-left: 4px;
  color: var(--text-soft);
}

.autopilot-store-read-reason {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  margin-top: 7px;
  padding: 7px;
  border-radius: 7px;
  color: #805b27;
  background: #fffbf4;
  font-size: 8px;
}

.autopilot-store-read-reason code {
  color: #a96500;
  white-space: nowrap;
}

.autopilot-store-read-samples {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.autopilot-store-read-samples pre {
  max-height: 170px;
  margin: 0;
  padding: 8px;
  overflow: auto;
  border-radius: 7px;
  color: #33415c;
  background: #f7f9fc;
  font-size: 7px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.autopilot-store-read-no-sample,
.autopilot-store-read-no-sections {
  margin: 8px 0 0;
  color: var(--text-faint);
  font-size: 8px;
}

.autopilot-store-read-advice {
  margin-top: 10px;
  border: 1px solid #d9e3ff;
  border-radius: 10px;
  background: #f8faff;
}

.autopilot-store-read-advice > summary {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 12px;
}

.autopilot-store-read-advice > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 10px 10px;
}

.autopilot-store-read-recommendation {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.autopilot-store-read-recommendation.is-warning { border-color: #f1d4a9; }
.autopilot-store-read-recommendation.is-danger { border-color: #f5c6c6; }

.autopilot-store-read-recommendation header {
  display: flex;
  gap: 7px;
  align-items: center;
}

.autopilot-store-read-recommendation header strong {
  font-size: 9px;
}

.autopilot-store-read-recommendation p {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 8px;
  line-height: 1.5;
}

.autopilot-store-read-recommendation footer {
  display: flex;
  gap: 5px 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 7px;
}

.autopilot-store-read-recommendation footer .link-button {
  margin-left: auto;
}

.autopilot-store-read-disclaimer {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 8px;
  color: #6a5a2f;
  background: #fff9e9;
  font-size: 8px;
  line-height: 1.5;
}

.managed-operations-panel {
  margin-bottom: 14px;
  overflow: hidden;
  border-color: #d8e2f6;
}

.managed-operations-panel.is-active {
  border-color: #b9e7d2;
  box-shadow: 0 10px 28px rgba(17, 134, 86, 0.08);
}

.managed-operations-header-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.managed-operations-unavailable {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 0 20px 16px;
  padding: 12px;
  border: 1px dashed #f0bcbc;
  border-radius: 10px;
  background: #fff8f8;
}

.managed-operations-unavailable > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  color: var(--red);
  background: var(--red-soft);
  font-weight: 800;
}

.managed-operations-unavailable strong,
.managed-operations-unavailable p {
  display: block;
  margin: 0;
}

.managed-operations-unavailable strong { font-size: 9px; }
.managed-operations-unavailable p { margin-top: 2px; color: var(--text-soft); font-size: 8px; }

.managed-operations-stale {
  display: flex;
  gap: 8px;
  margin: 0 20px 10px;
  padding: 7px 9px;
  border-radius: 8px;
  color: #92510d;
  background: #fff7e8;
  font-size: 8px;
}

.managed-operations-profile-strip {
  display: grid;
  grid-auto-columns: minmax(108px, 1fr);
  grid-auto-flow: column;
  gap: 7px;
  margin: 0 20px;
  padding-bottom: 3px;
  overflow-x: auto;
}

.managed-operations-profile-strip > span,
.managed-operations-summary > span {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.managed-operations-profile-strip small,
.managed-operations-profile-strip strong,
.managed-operations-summary small,
.managed-operations-summary strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.managed-operations-profile-strip small,
.managed-operations-summary small {
  color: var(--text-faint);
  font-size: 7px;
}

.managed-operations-profile-strip strong {
  margin-top: 2px;
  font-size: 9px;
}

.managed-operations-settings,
.managed-workflows {
  margin: 10px 20px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.managed-operations-settings > summary,
.managed-workflows > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.managed-operations-settings > summary::-webkit-details-marker,
.managed-workflows > summary::-webkit-details-marker {
  display: none;
}

.managed-operations-settings > summary strong,
.managed-operations-settings > summary small,
.managed-workflows > summary strong,
.managed-workflows > summary small {
  display: block;
}

.managed-operations-settings > summary strong,
.managed-workflows > summary strong {
  font-size: 9px;
}

.managed-operations-settings > summary small,
.managed-workflows > summary small,
.managed-operations-settings > summary em,
.managed-workflows > summary em {
  color: var(--text-faint);
  font-size: 7px;
  font-style: normal;
}

.managed-operations-settings[open] > summary,
.managed-workflows[open] > summary {
  border-bottom: 1px solid var(--line);
}

.managed-operations-settings fieldset {
  margin: 0;
  padding: 12px;
  border: 0;
}

.managed-store-scope {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.managed-store-scope > span strong,
.managed-store-scope > span small {
  display: block;
}

.managed-store-scope > span strong { font-size: 9px; }
.managed-store-scope > span small { margin-top: 2px; color: var(--text-faint); font-size: 7px; }

.managed-store-scope > div {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.managed-store-scope > div > label {
  display: grid;
  grid-template-columns: 26px minmax(80px, 1fr) auto;
  gap: 6px;
  align-items: center;
  min-width: 150px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.managed-store-scope > div > label:has(input:checked) {
  border-color: #9dbdff;
  background: #f4f8ff;
}

.managed-store-scope > div strong,
.managed-store-scope > div small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.managed-store-scope > div strong { font-size: 8px; }
.managed-store-scope > div small { color: var(--text-faint); font-size: 7px; }
.managed-store-scope > div > em { color: var(--text-faint); font-size: 8px; font-style: normal; }
.managed-store-scope input { accent-color: var(--primary); }

.managed-store-logo {
  position: relative;
  display: grid;
  width: 26px;
  height: 26px;
  overflow: hidden;
  place-items: center;
  border-radius: 7px;
  font-size: 7px;
}

.managed-operations-settings-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.managed-operations-settings-grid > label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.managed-operations-settings-grid > label > span {
  color: var(--text-soft);
  font-size: 8px;
  font-weight: 700;
}

.managed-operations-settings-grid input,
.managed-operations-settings-grid select {
  width: 100%;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  outline: 0;
  background: #fff;
  font: inherit;
  font-size: 8px;
}

.managed-operations-settings-grid > label > div {
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
}

.managed-operations-settings-grid > label > div input {
  border: 0;
  border-radius: 0;
}

.managed-operations-settings-grid > label > div em {
  align-self: center;
  padding-right: 7px;
  color: var(--text-faint);
  font-size: 7px;
  font-style: normal;
  white-space: nowrap;
}

.managed-operations-settings-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.managed-operations-settings-footer > span {
  color: var(--text-faint);
  font-size: 8px;
}

.managed-operations-summary {
  display: grid;
  grid-auto-columns: minmax(92px, 1fr);
  grid-auto-flow: column;
  gap: 7px;
  margin: 10px 20px 0;
  overflow-x: auto;
}

.managed-operations-summary strong {
  margin-top: 2px;
  font-size: 14px;
}

.managed-operations-summary .is-manual_takeover,
.managed-operations-summary .is-waiting_configuration {
  border-color: #f1d4a9;
  background: #fffbf4;
}

.managed-operations-summary .is-published_verified {
  border-color: #b9e7d2;
  background: #f4fdf8;
}

.managed-stage-track {
  display: flex;
  gap: 7px;
  margin: 10px 20px 0;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid #d9e3ff;
  border-radius: 10px;
  background: #f7f9ff;
}

.managed-stage {
  display: grid;
  grid-template-columns: 24px minmax(70px, 1fr);
  gap: 6px;
  align-items: center;
  flex: 1 0 105px;
  max-width: 170px;
  padding: 7px;
  border-radius: 8px;
  background: #fff;
}

.managed-stage > em {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 7px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.managed-stage small,
.managed-stage strong {
  display: block;
}

.managed-stage small { color: var(--text-faint); font-size: 7px; }
.managed-stage strong { margin-top: 1px; font-size: 11px; }

.managed-operations-no-data {
  min-width: 240px;
  padding: 8px;
  color: var(--text-faint);
  font-size: 8px;
}

.managed-workflows > div {
  max-height: 390px;
  overflow-y: auto;
}

.managed-workflow-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.2fr) minmax(100px, 0.55fr) minmax(160px, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 11px;
}

.managed-workflow-row + .managed-workflow-row {
  border-top: 1px solid var(--line);
}

.managed-workflow-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.managed-workflow-main strong,
.managed-workflow-main small,
.managed-workflow-stage small,
.managed-workflow-stage strong,
.managed-workflow-stage em {
  display: block;
}

.managed-workflow-main strong {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.managed-workflow-main small,
.managed-workflow-stage small,
.managed-workflow-stage em {
  color: var(--text-faint);
  font-size: 7px;
  font-style: normal;
}

.managed-workflow-stage strong { font-size: 8px; }

.managed-workflow-note {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.managed-workflow-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.managed-workflow-actions > span,
.managed-operations-no-workflow {
  color: var(--text-faint);
  font-size: 8px;
}

.managed-operations-no-workflow {
  padding: 14px;
}

.managed-operations-boundary {
  margin: 10px 20px 16px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #6a5a2f;
  background: #fff9e9;
  font-size: 8px;
  line-height: 1.5;
}

@media (max-width: 1180px) {
  .managed-operations-settings-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .autopilot-config-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .autopilot-master {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }

  .autopilot-master-switch {
    width: 100%;
  }

  .autopilot-blockers ul,
  .autopilot-strategy-grid,
  .autopilot-module-grid,
  .autopilot-scope-options,
  .autopilot-guardrail-grid,
  .autopilot-recommendation-list,
  .autopilot-level-legend,
  .autopilot-confirm-summary {
    grid-template-columns: 1fr;
  }

  .autopilot-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .autopilot-form-actions .button {
    width: 100%;
  }

  .autopilot-platform-matrix > summary {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .autopilot-platform-matrix > summary em {
    display: none;
  }
}

@media (max-width: 1280px) {
  .autopilot-platform-layout {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr);
  }

  .autopilot-platform-strategies,
  .autopilot-platform-module-grid,
  .autopilot-platform-threshold-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  .managed-workflow-row {
    grid-template-columns: minmax(200px, 1fr) minmax(100px, 0.55fr) auto;
  }

  .managed-workflow-note {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .autopilot-store-read-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .autopilot-store-read-controls > .button {
    grid-column: 1 / -1;
  }

  .autopilot-platform-command-layout {
    grid-template-columns: 1fr;
  }

  .autopilot-platform-directory {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-height: 360px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .autopilot-platform-directory > section + section {
    margin-top: 0;
  }

  .autopilot-platform-layout {
    grid-template-columns: 1fr;
  }

  .autopilot-platform-aside {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .managed-operations-header-actions,
  .managed-operations-settings-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .managed-operations-header-actions .button,
  .managed-operations-settings-footer .button {
    width: 100%;
  }

  .managed-operations-settings-grid,
  .managed-store-scope,
  .managed-workflow-row {
    grid-template-columns: 1fr;
  }

  .managed-workflow-note {
    grid-column: auto;
    grid-row: auto;
    white-space: normal;
  }

  .managed-workflow-actions {
    justify-content: flex-start;
  }

  .autopilot-store-read-controls,
  .autopilot-store-read-sections,
  .autopilot-store-read-advice > div {
    grid-template-columns: 1fr;
  }

  .autopilot-store-read-controls > .button {
    grid-column: auto;
    width: 100%;
  }

  .autopilot-store-read-progress,
  .autopilot-store-read-notice {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .autopilot-store-read-progress > .button,
  .autopilot-store-read-notice > .button,
  .autopilot-store-read-notice > .link-button {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .autopilot-store-read-result-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .autopilot-store-read-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .autopilot-platform-toolbar,
  .autopilot-platform-directory,
  .autopilot-platform-facts,
  .autopilot-platform-state-summary,
  .autopilot-native-action-grid,
  .autopilot-platform-module-grid,
  .autopilot-platform-strategies,
  .autopilot-platform-aside,
  .autopilot-platform-threshold-grid {
    grid-template-columns: 1fr;
  }

  .autopilot-platform-directory {
    max-height: 330px;
  }

  .autopilot-platform-heading {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 16px;
  }

  .autopilot-plan-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .autopilot-platform-heading-actions {
    grid-column: 1 / -1;
    justify-items: start;
  }

  .autopilot-platform-facts,
  .autopilot-platform-state-summary {
    padding-right: 16px;
    padding-left: 16px;
  }

  .autopilot-platform-layout {
    padding: 10px 16px;
  }

  .autopilot-platform-thresholds {
    margin-right: 16px;
    margin-left: 16px;
  }

  .autopilot-platform-save {
    align-items: stretch;
    flex-direction: column;
  }

  .autopilot-platform-save .button {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .claim-platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collector-product-table {
    max-height: 620px;
  }
}

@media (max-width: 760px) {
  .panel-header-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .collector-compact-panel > .panel-header,
  .claim-selected-products {
    align-items: flex-start;
    flex-direction: column;
  }

  .collector-compact-panel .automation-queue-summary {
    margin-right: 10px;
    margin-left: 10px;
  }

  .collector-compact-panel .automation-batch-list {
    padding-right: 10px;
    padding-left: 10px;
  }

  .claim-platform-grid,
  .claim-quote-summary,
  .claim-result-summary {
    grid-template-columns: 1fr;
  }

  .claim-platform-grid {
    max-height: 218px;
    overflow-y: auto;
  }

  .claim-visual-mode-grid,
  .claim-preparation-fields {
    grid-template-columns: 1fr;
  }

  .direct-listing-payload-summary {
    grid-template-columns: 1fr;
  }

  .claim-listing-blockers > span {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .claim-selected-products > div:last-child {
    padding-left: 7px;
  }

  .collector-product-table {
    max-height: 540px;
  }

  .collector-selection-actions {
    width: 100%;
  }

  .collector-selection-actions .button {
    flex: 1 1 132px;
  }

  .workbench-draft-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .workbench-draft-filters input {
    width: 100%;
  }

  .workbench-draft-selection-actions .button {
    flex: 1 1 132px;
  }

  .ozon-draft-sku-details {
    width: min(390px, 75vw);
  }

  .ozon-variant-toolbar,
  .ozon-operational-head {
    align-items: stretch;
    flex-direction: column;
  }

  .ozon-variant-toolbar > div:last-child {
    flex-wrap: wrap;
  }

  .ozon-operational-stats,
  .ozon-operational-json-grid,
  .ozon-read-resource-grid,
  .content-plan-stats {
    grid-template-columns: 1fr;
  }

  .ozon-read-model-actions .button,
  .ozon-read-resource-actions .button {
    flex: 1 1 130px;
  }

  .content-plan-list span {
    grid-template-columns: 1fr;
  }
}

.selection-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.55fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 18px;
  padding: 24px 26px;
  overflow: hidden;
  border-color: #dce8ff;
  background:
    radial-gradient(circle at 88% 12%, rgba(121, 86, 246, 0.13), transparent 35%),
    linear-gradient(135deg, #fbfdff, #f1f6ff);
}

.selection-hero.is-unavailable {
  border-color: #ffd9d9;
  background: linear-gradient(135deg, #fff, #fff7f7);
}

.selection-hero-copy h2 {
  margin: 6px 0 7px;
  color: #1d2939;
  font-size: clamp(18px, 2vw, 24px);
}

.selection-hero-copy p {
  max-width: 820px;
  margin: 0 0 15px;
  color: var(--text-soft);
  line-height: 1.7;
}

.selection-source-state {
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 138px;
  padding: 20px;
  border: 1px solid rgba(18, 101, 255, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 26px rgba(31, 63, 120, 0.08);
}

.selection-source-state .status {
  width: max-content;
}

.selection-source-state > strong {
  color: #1d2939;
  font-size: 22px;
}

.selection-source-state > small {
  color: var(--text-faint);
  line-height: 1.5;
}

.selection-campaign-console {
  margin-bottom: 18px;
  overflow: hidden;
  border-color: #d6e4ff;
}

.selection-campaign-boundary {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 0 17px 14px;
  padding: 11px 13px;
  border: 1px solid #dce8ff;
  border-radius: 10px;
  background: #f7faff;
}

.selection-campaign-boundary > span {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  color: #175cd3;
  background: #eaf2ff;
  font-size: 9px;
  font-weight: 700;
}

.selection-campaign-boundary p {
  margin: 0 0 0 4px;
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.55;
}

.selection-campaign-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, 0.84fr);
  border-top: 1px solid var(--line);
}

.selection-campaign-builder,
.selection-campaign-monitor {
  min-width: 0;
  padding: 18px;
}

.selection-campaign-monitor {
  border-left: 1px solid var(--line);
  background: #fbfcfe;
}

.selection-campaign-builder-head,
.selection-campaign-monitor-head,
.selection-campaign-criteria-head {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.selection-campaign-builder-head > strong,
.selection-campaign-monitor-head > strong,
.selection-campaign-criteria-head > strong {
  color: #1d2939;
  font-size: 13px;
}

.selection-campaign-builder-head > small,
.selection-campaign-monitor-head > small,
.selection-campaign-criteria-head > small {
  color: var(--text-faint);
  font-size: 9px;
  line-height: 1.45;
  text-align: right;
}

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

.selection-campaign-criteria-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.selection-campaign-form-grid label,
.selection-campaign-criteria-grid label {
  display: grid;
  min-width: 0;
  align-content: start;
}

.selection-campaign-form-grid label.full,
.selection-campaign-criteria-grid label.full {
  grid-column: 1 / -1;
}

.selection-campaign-form-grid label > span,
.selection-campaign-criteria-grid label > span {
  margin-bottom: 5px;
  color: #344054;
  font-size: 10px;
  font-weight: 650;
}

.selection-campaign-form-grid input,
.selection-campaign-form-grid select,
.selection-campaign-form-grid textarea,
.selection-campaign-criteria-grid input,
.selection-campaign-criteria-grid select {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: 0;
  color: var(--text);
  background: #fff;
  font: inherit;
  font-size: 11px;
}

.selection-campaign-form-grid textarea {
  line-height: 1.55;
  resize: vertical;
}

.selection-campaign-form-grid input:focus,
.selection-campaign-form-grid select:focus,
.selection-campaign-form-grid textarea:focus,
.selection-campaign-criteria-grid input:focus,
.selection-campaign-criteria-grid select:focus {
  border-color: #84adff;
  box-shadow: 0 0 0 3px rgba(18, 101, 255, 0.09);
}

.selection-campaign-form-grid label > small {
  margin-top: 5px;
  color: var(--text-faint);
  font-size: 9px;
  line-height: 1.5;
}

.selection-campaign-criteria-head {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.selection-campaign-runtime-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: start;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid #f6d48f;
  border-radius: 9px;
  background: #fffaf0;
}

.selection-campaign-runtime-notice strong {
  color: #93370d;
  font-size: 10px;
}

.selection-campaign-runtime-notice p {
  margin: 0;
  color: #7a2e0e;
  font-size: 10px;
  line-height: 1.6;
}

.selection-campaign-create-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 14px;
}

.selection-campaign-list {
  display: grid;
  gap: 10px;
  max-height: 730px;
  overflow: auto;
}

.selection-campaign-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(31, 63, 120, 0.04);
}

.selection-campaign-card > header,
.selection-campaign-card > footer {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.selection-campaign-card > header > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.selection-campaign-card > header .status {
  width: max-content;
}

.selection-campaign-card > header strong {
  overflow: hidden;
  color: #1d2939;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selection-campaign-card > header small,
.selection-campaign-card > footer small {
  color: var(--text-faint);
  font-size: 9px;
}

.selection-campaign-timing,
.selection-campaign-results {
  display: grid;
  gap: 1px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.selection-campaign-timing {
  grid-template-columns: 0.7fr 1.25fr 0.85fr;
}

.selection-campaign-results {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.selection-campaign-timing > span,
.selection-campaign-results > span {
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  background: #fafcff;
}

.selection-campaign-timing small,
.selection-campaign-results > span {
  color: var(--text-faint);
  font-size: 8px;
}

.selection-campaign-timing strong,
.selection-campaign-results strong {
  overflow: hidden;
  color: #344054;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selection-campaign-results strong {
  margin-top: 2px;
  color: var(--primary);
  font-size: 12px;
}

.selection-campaign-error {
  margin-top: 8px;
  padding: 7px 8px;
  border-radius: 7px;
  color: #b42318;
  background: #fff1f0;
  font-size: 9px;
  line-height: 1.45;
}

.selection-campaign-card > footer {
  margin-top: 8px;
}

.selection-campaign-empty {
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 180px;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  color: var(--text-soft);
  text-align: center;
  background: #fff;
}

.selection-campaign-empty small {
  max-width: 320px;
  color: var(--text-faint);
  line-height: 1.55;
}

.selection-campaign-empty.is-error {
  border-color: #f4b7b4;
  color: var(--red);
  background: #fffafa;
}

.selection-control-panel {
  margin-bottom: 14px;
  overflow: hidden;
}

.selection-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(250px, 1fr)) minmax(220px, 0.7fr);
  gap: 16px;
  align-items: end;
  padding: 17px;
}

.selection-control-grid > label > span,
.selection-config-json-grid label > span {
  display: block;
  margin-bottom: 6px;
  color: #344054;
  font-size: 11px;
  font-weight: 650;
}

.selection-control-grid > label > div {
  display: flex;
  gap: 7px;
  align-items: center;
}

.selection-control-grid .select-field {
  flex: 1;
  min-width: 0;
}

.selection-run-action {
  display: grid;
  gap: 5px;
}

.selection-run-action small,
.selection-config-json-grid label > small {
  color: var(--text-faint);
  font-size: 10px;
  line-height: 1.5;
}

.selection-cost-warning {
  margin: 0 17px 14px;
  white-space: normal;
}

.selection-run-summary {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(90px, 0.65fr)) minmax(170px, 1fr);
  gap: 1px;
  margin: 0 17px 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}

.selection-run-summary > span {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  background: #fbfcff;
}

.selection-run-summary small,
.selection-run-empty small {
  color: var(--text-faint);
  font-size: 9px;
}

.selection-run-summary strong {
  overflow: hidden;
  color: #344054;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selection-run-empty {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 17px 17px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--text-soft);
  background: #f8fafc;
}

.selection-toolbar {
  position: sticky;
  z-index: 4;
  top: 70px;
}

.selection-selected-count {
  color: var(--text-soft);
  font-size: 11px;
  white-space: nowrap;
}

.selection-table-panel {
  margin-bottom: 24px;
}

.selection-candidate-table {
  min-width: 1540px;
}

.selection-candidate-table th:first-child,
.selection-candidate-table td:first-child {
  position: sticky;
  z-index: 2;
  left: 0;
  width: 38px;
  background: #fff;
}

.selection-candidate-table th:first-child {
  background: #fafbfc;
}

.selection-product-copy {
  min-width: 210px;
  max-width: 300px;
}

.selection-cell-note {
  display: block;
  margin-top: 3px;
  color: var(--text-faint);
  font-size: 9px;
  white-space: nowrap;
}

.selection-category {
  display: block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selection-score {
  color: var(--primary);
  font-size: 14px;
}

.selection-empty {
  min-height: 210px;
}

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

.selection-legacy-divider {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: 30px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.selection-legacy-divider span {
  color: #1d2939;
  font-size: 18px;
  font-weight: 700;
}

.selection-legacy-divider strong {
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 500;
}

.selection-legacy-actions {
  justify-content: flex-end;
  margin-bottom: 14px;
}

.modal:has(.selection-import-form),
.modal:has(.selection-candidate-form),
.modal:has(.selection-candidate-detail),
.modal:has(.selection-strategy-form),
.modal:has(.selection-cost-profile-form) {
  width: min(1080px, calc(100vw - 32px));
}

.selection-import-form .status,
.selection-candidate-form > .status,
.selection-cost-profile-form > .status,
.selection-strategy-form > .status {
  margin-bottom: 15px;
  white-space: normal;
}

.selection-schema-field-grid {
  max-height: 60vh;
  padding-right: 4px;
  overflow-y: auto;
}

.selection-config-json-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.selection-config-json-grid label {
  display: grid;
  align-content: start;
}

.selection-config-json-grid label.full {
  grid-column: 1 / -1;
}

.selection-config-json-grid textarea,
.selection-candidate-detail pre {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: #344054;
  background: #fbfcfe;
  font: 11px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
  resize: vertical;
}

.selection-cost-confirm {
  border: 1px solid #fbcf91;
  background: #fffaf1;
}

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

.selection-candidate-detail > header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 15px;
  border-radius: 12px;
  background: #f7faff;
}

.selection-candidate-detail h3,
.selection-candidate-detail h4 {
  margin: 5px 0;
}

.selection-candidate-detail header small,
.selection-candidate-detail section > p {
  color: var(--text-faint);
}

.selection-detail-score {
  display: grid;
  min-width: 82px;
  text-align: right;
  color: var(--primary);
  font-size: 27px;
}

.selection-detail-score small {
  font-size: 9px;
}

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

.selection-detail-grid > div {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.selection-detail-grid strong,
.selection-detail-grid span {
  display: block;
}

.selection-detail-grid strong {
  margin-bottom: 3px;
  color: var(--text-faint);
  font-size: 9px;
}

.selection-detail-grid span {
  overflow: hidden;
  color: #344054;
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.selection-candidate-detail pre {
  max-height: 280px;
  margin: 7px 0 0;
  overflow: auto;
  white-space: pre-wrap;
}

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

.selection-reason-columns > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.selection-reason-columns p {
  margin: 4px 0;
  color: var(--text-soft);
  font-size: 11px;
}

@media (max-width: 1280px) {
  .selection-campaign-layout {
    grid-template-columns: 1fr;
  }

  .selection-campaign-monitor {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .selection-campaign-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }
}

@media (max-width: 1100px) {
  .selection-campaign-criteria-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .selection-run-action {
    grid-column: 1 / -1;
  }

  .selection-run-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .selection-hero,
  .selection-control-grid,
  .selection-config-json-grid,
  .selection-detail-grid,
  .selection-reason-columns,
  .selection-campaign-form-grid,
  .selection-campaign-criteria-grid,
  .selection-campaign-list {
    grid-template-columns: 1fr;
  }

  .selection-hero {
    padding: 18px;
  }

  .selection-source-state {
    min-height: 0;
  }

  .selection-campaign-boundary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .selection-campaign-boundary p {
    flex-basis: 100%;
    margin-left: 0;
  }

  .selection-campaign-builder,
  .selection-campaign-monitor {
    padding: 14px;
  }

  .selection-campaign-builder-head,
  .selection-campaign-monitor-head,
  .selection-campaign-criteria-head {
    display: grid;
  }

  .selection-campaign-builder-head > small,
  .selection-campaign-monitor-head > small,
  .selection-campaign-criteria-head > small {
    text-align: left;
  }

  .selection-campaign-form-grid label.full,
  .selection-campaign-criteria-grid label.full {
    grid-column: auto;
  }

  .selection-campaign-runtime-notice {
    grid-template-columns: 1fr;
  }

  .selection-campaign-create-actions .button {
    flex: 1;
  }

  .selection-campaign-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .selection-control-grid > label > div {
    flex-wrap: wrap;
  }

  .selection-control-grid > label .select-field {
    flex-basis: 100%;
  }

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

  .selection-toolbar {
    position: static;
  }

  .selection-toolbar .toolbar-actions,
  .selection-legacy-actions {
    width: 100%;
  }

  .selection-toolbar .button,
  .selection-legacy-actions .button {
    flex: 1;
  }

  .selection-legacy-divider {
    display: grid;
  }

  .selection-config-json-grid label.full {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Ozon automated listing and operations */
.automation-platform-access {
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.automation-platform-access > header,
.automation-platform-access-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
}

.automation-platform-access > header h2,
.automation-platform-access > header h3,
.automation-platform-access-header h2,
.automation-platform-access-header h3 {
  margin: 0;
  color: #1d2939;
  font-size: 16px;
}

.automation-platform-access > header p,
.automation-platform-access-header p {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 11px;
}

.automation-platform-access-state {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.automation-platform-access-state.is-unavailable,
.automation-platform-access.is-unavailable .automation-platform-access-state {
  border-color: #fbcf91;
  color: #a15c00;
  background: var(--orange-soft);
}

.automation-platform-access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 15px 18px 18px;
}

.automation-platform-access-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.automation-platform-access > .status {
  margin: 12px 18px 0;
}

.automation-platform-access > .status:last-child {
  margin: 0 18px 16px;
}

.automation-platform-access-item:hover {
  border-color: #cbd9f3;
  background: #fff;
  box-shadow: 0 5px 16px rgba(31, 45, 84, 0.06);
}

.automation-platform-access-item.is-enabled {
  border-color: #bcd2ff;
  background: #f6f9ff;
}

.automation-platform-access-copy {
  display: grid;
  min-width: 0;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.automation-platform-access-copy img,
.automation-platform-access-logo {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.automation-platform-access-copy strong,
.automation-platform-access-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-platform-access-item > span:nth-child(2) {
  min-width: 0;
}

.automation-platform-access-item > span:nth-child(2) strong,
.automation-platform-access-item > span:nth-child(2) small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-platform-access-item > span:nth-child(2) strong {
  color: #344054;
  font-size: 12px;
}

.automation-platform-access-item > span:nth-child(2) small {
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 9px;
}

.automation-platform-access-copy strong {
  color: #344054;
  font-size: 12px;
}

.automation-platform-access-copy small {
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 9px;
}

.automation-platform-access-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.automation-platform-access-item input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.automation-platform-access-note {
  margin: 0 18px 16px;
  padding: 10px 12px;
  border: 1px solid #dce6f8;
  border-radius: 9px;
  color: #475467;
  background: #f8faff;
  font-size: 10px;
}

.ozon-automation-console {
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #cfe0ff;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(31, 72, 145, 0.09);
}

.ozon-automation-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.5fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 84% 20%, rgba(104, 179, 255, 0.34), transparent 34%),
    linear-gradient(135deg, #0644aa 0%, #1265ff 56%, #4a80f8 100%);
}

.ozon-automation-hero::after {
  position: absolute;
  right: -70px;
  bottom: -120px;
  width: 280px;
  height: 280px;
  border: 42px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.ozon-automation-hero-copy,
.ozon-automation-hero-actions {
  position: relative;
  z-index: 1;
}

.ozon-automation-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: #dceaff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ozon-automation-hero h2,
.ozon-automation-hero h3 {
  margin: 0;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.ozon-automation-hero p {
  max-width: 760px;
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

.ozon-automation-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.ozon-automation-hero-actions .button {
  min-height: 38px;
}

.ozon-automation-hero-actions .button.secondary,
.ozon-automation-hero-actions .button.ghost {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.ozon-automation-hero > div:first-child {
  position: relative;
  z-index: 1;
}

.ozon-automation-service-state {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 220px;
  justify-items: end;
  gap: 5px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(3, 40, 102, 0.24);
  text-align: right;
  backdrop-filter: blur(8px);
}

.ozon-automation-service-state strong,
.ozon-automation-service-state small {
  display: block;
}

.ozon-automation-service-state strong {
  color: #fff;
  font-size: 17px;
}

.ozon-automation-service-state small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
}

.ozon-automation-rail {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: #f8faff;
  list-style: none;
}

.ozon-automation-rail li {
  position: relative;
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 5px;
  color: var(--text-soft);
  font-size: 8px;
  text-align: center;
}

.ozon-automation-rail li:not(:last-child)::after {
  position: absolute;
  z-index: 0;
  top: 12px;
  left: calc(50% + 15px);
  width: calc(100% - 30px);
  height: 1px;
  background: #cfdcf4;
  content: "";
}

.ozon-automation-rail li span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #a9c3f3;
  border-radius: 50%;
  color: var(--primary);
  background: #fff;
  font-size: 9px;
  font-weight: 800;
}

.ozon-automation-capability-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.ozon-automation-capability {
  min-width: 0;
  padding: 13px 16px;
  background: #fff;
}

.ozon-automation-capability strong,
.ozon-automation-capability span {
  display: block;
}

.ozon-automation-capability strong {
  color: #344054;
  font-size: 11px;
}

.ozon-automation-capability span {
  margin-top: 3px;
  overflow: hidden;
  color: var(--text-faint);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ozon-automation-capability.is-ready strong {
  color: var(--green);
}

.ozon-automation-capability.is-blocked strong,
.ozon-automation-capability.is-unavailable strong {
  color: var(--orange);
}

.ozon-automation-boundary,
.ozon-automation-blocker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  margin: 15px 18px 0;
  padding: 11px 13px;
  border: 1px solid #f7c97e;
  border-radius: 10px;
  color: #7a4b00;
  background: #fff9ed;
  font-size: 10px;
}

.ozon-automation-blockers {
  margin: 13px 18px 0;
  padding: 11px 13px;
  border: 1px solid #f5baba;
  border-radius: 10px;
  color: #9f2e2e;
  background: var(--red-soft);
  font-size: 10px;
}

.ozon-automation-blockers strong,
.ozon-automation-blockers small {
  display: block;
}

.ozon-automation-blockers ul {
  margin: 5px 0;
  padding-left: 18px;
}

.ozon-automation-blockers small {
  color: #b35c5c;
  font-size: 8px;
}

.ozon-automation-boundary strong,
.ozon-automation-blocker strong {
  display: block;
  margin-bottom: 2px;
  color: #8b5200;
  font-size: 11px;
}

.ozon-automation-boundary p,
.ozon-automation-blocker p {
  margin: 0;
}

.ozon-automation-blocker.is-error {
  border-color: #f5baba;
  color: #9f2e2e;
  background: var(--red-soft);
}

.ozon-automation-plan-section {
  padding: 18px;
}

.ozon-automation-plan-section > header,
.ozon-automation-plan-header,
.ozon-automation-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.ozon-automation-plan-section > header h3,
.ozon-automation-plan-header h3,
.ozon-automation-plan-head h3 {
  margin: 0;
  color: #1d2939;
  font-size: 15px;
}

.ozon-automation-plan-section > header p,
.ozon-automation-plan-header p,
.ozon-automation-plan-head p {
  margin: 3px 0 0;
  color: var(--text-faint);
  font-size: 10px;
}

.ozon-automation-plan-head {
  margin: 0;
  padding: 16px 18px 0;
}

.ozon-automation-plan-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ozon-automation-plan-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.ozon-automation-plan-card.is-running {
  border-color: #9fc0ff;
  box-shadow: 0 0 0 3px rgba(18, 101, 255, 0.06);
}

.ozon-automation-plan-card.is-blocked,
.ozon-automation-plan-card.is-failed {
  border-color: #f5baba;
}

.ozon-automation-plan-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ozon-automation-plan-card h4 {
  margin: 0;
  color: #1d2939;
  font-size: 13px;
}

.ozon-automation-plan-card header p {
  margin: 3px 0 0;
  color: var(--text-faint);
  font-size: 9px;
}

.ozon-automation-plan-status {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  color: #365eaf;
  background: #eef4ff;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.ozon-automation-plan-status.is-running,
.ozon-automation-plan-status.is-ready,
.ozon-automation-plan-status.is-completed {
  color: #087443;
  background: var(--green-soft);
}

.ozon-automation-plan-status.is-blocked,
.ozon-automation-plan-status.is-failed {
  color: #ad3030;
  background: var(--red-soft);
}

.ozon-automation-plan-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.ozon-automation-plan-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.ozon-automation-plan-facts > span {
  display: block;
  min-width: 0;
  padding: 8px;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  background: #fafbfc;
}

.ozon-automation-plan-facts small,
.ozon-automation-plan-facts strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ozon-automation-plan-facts small {
  color: var(--text-faint);
  font-size: 8px;
}

.ozon-automation-plan-facts strong {
  margin-top: 3px;
  color: #344054;
  font-size: 10px;
}

.ozon-automation-plan-meta > div {
  min-width: 0;
  padding: 8px;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  background: #fafbfc;
}

.ozon-automation-plan-meta strong,
.ozon-automation-plan-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ozon-automation-plan-meta strong {
  color: var(--text-faint);
  font-size: 8px;
  text-transform: uppercase;
}

.ozon-automation-plan-meta span {
  margin-top: 3px;
  color: #344054;
  font-size: 10px;
  font-weight: 650;
}

.ozon-automation-plan-blockers {
  display: grid;
  gap: 4px;
  margin: 11px 0 0;
  padding: 9px 11px 9px 25px;
  border-radius: 8px;
  color: #9f2e2e;
  background: var(--red-soft);
  font-size: 9px;
}

.ozon-automation-plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eef1f5;
}

.ozon-automation-plan-card > footer {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eef1f5;
}

.ozon-automation-empty {
  grid-column: 1 / -1;
  padding: 30px 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  color: var(--text-soft);
  background: #fbfcfe;
  text-align: center;
}

.ozon-automation-empty h4 {
  margin: 0 0 4px;
  color: #344054;
}

.ozon-automation-empty p {
  margin: 0 0 13px;
  font-size: 10px;
}

.modal:has(.ozon-automation-wizard) {
  width: min(1160px, calc(100vw - 40px));
  max-width: 1160px;
}

.modal:has(.ozon-automation-run-confirmation) {
  width: min(590px, calc(100vw - 40px));
}

.ozon-automation-wizard {
  display: grid;
  gap: 14px;
}

.ozon-automation-wizard-progress {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8faff;
}

.ozon-automation-wizard-progress span {
  display: grid;
  min-width: 0;
  min-height: 36px;
  place-items: center;
  padding: 5px;
  border-radius: 7px;
  color: var(--text-soft);
  background: #fff;
  font-size: 8px;
  text-align: center;
}

.ozon-automation-wizard-progress span.is-complete {
  color: #087443;
  background: var(--green-soft);
}

.ozon-automation-step {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.ozon-automation-step > header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}

.ozon-automation-step-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #1265ff, #7956f6);
  font-size: 12px;
  font-weight: 800;
}

.ozon-automation-step h3,
.ozon-automation-step h4 {
  margin: 0;
  color: #1d2939;
  font-size: 13px;
}

.ozon-automation-step > header p {
  margin: 2px 0 0;
  color: var(--text-faint);
  font-size: 9px;
}

.ozon-automation-step-badge {
  padding: 3px 7px;
  border-radius: 999px;
  color: #496493;
  background: #eef4ff;
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.ozon-automation-form-grid,
.ozon-automation-cost-grid,
.ozon-automation-package-grid,
.ozon-automation-operation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ozon-automation-form-grid > label,
.ozon-automation-cost-grid > label,
.ozon-automation-package-grid > label,
.ozon-automation-operation-grid > label,
.ozon-automation-field {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 5px;
  color: #475467;
  font-size: 10px;
  font-weight: 650;
}

.ozon-automation-form-grid > label.full,
.ozon-automation-cost-grid > label.full,
.ozon-automation-package-grid > label.full,
.ozon-automation-operation-grid > label.full,
.ozon-automation-field.full {
  grid-column: 1 / -1;
}

.ozon-automation-form-grid input,
.ozon-automation-form-grid select,
.ozon-automation-form-grid textarea,
.ozon-automation-cost-grid input,
.ozon-automation-cost-grid select,
.ozon-automation-package-grid input,
.ozon-automation-package-grid select,
.ozon-automation-operation-grid input,
.ozon-automation-operation-grid select,
.ozon-automation-field input,
.ozon-automation-field select,
.ozon-automation-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  font: inherit;
  font-weight: 500;
}

.ozon-automation-form-grid input:focus,
.ozon-automation-form-grid select:focus,
.ozon-automation-cost-grid input:focus,
.ozon-automation-cost-grid select:focus,
.ozon-automation-package-grid input:focus,
.ozon-automation-package-grid select:focus,
.ozon-automation-operation-grid input:focus,
.ozon-automation-operation-grid select:focus,
.ozon-automation-field input:focus,
.ozon-automation-field select:focus,
.ozon-automation-field textarea:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(18, 101, 255, 0.09);
}

.ozon-automation-field-hint,
.ozon-automation-form-grid small,
.ozon-automation-cost-grid small,
.ozon-automation-package-grid small,
.ozon-automation-operation-grid small {
  color: var(--text-faint);
  font-size: 8px;
  font-weight: 500;
}

.ozon-automation-check,
.ozon-automation-confirmation {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #475467;
  background: #fafbfc;
  font-size: 10px;
}

.ozon-automation-check input,
.ozon-automation-confirmation input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  accent-color: var(--primary);
}

.ozon-automation-product-grid {
  min-width: 690px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.ozon-automation-product-scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.ozon-automation-product-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.3fr) minmax(150px, 1fr) minmax(130px, 0.85fr) minmax(110px, 0.7fr);
  min-width: 690px;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-bottom: 1px solid #eef1f5;
}

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

.ozon-automation-product-row.is-header {
  color: var(--text-soft);
  background: #f7f9fc;
  font-size: 9px;
  font-weight: 750;
}

.ozon-automation-product-identity {
  display: grid;
  min-width: 0;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.ozon-automation-product-identity strong,
.ozon-automation-product-identity small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ozon-automation-product-identity strong {
  color: #344054;
  font-size: 10px;
}

.ozon-automation-product-identity small {
  color: var(--text-faint);
  font-size: 8px;
}

.ozon-automation-product-row input,
.ozon-automation-product-row select {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--text);
  background: #fff;
  font-size: 9px;
}

.ozon-automation-product-row input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  padding: 0;
  accent-color: var(--primary);
}

.ozon-automation-quote-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 11px;
}

.ozon-automation-quote-result {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 11px;
  padding: 11px;
  border: 1px solid #b9e7d2;
  border-radius: 10px;
  background: #f2fcf7;
}

.ozon-automation-quote-result > div {
  min-width: 0;
  padding: 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
}

.ozon-automation-quote-result strong,
.ozon-automation-quote-result span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ozon-automation-quote-result strong {
  color: #087443;
  font-size: 8px;
}

.ozon-automation-quote-result span {
  margin-top: 3px;
  color: #185b40;
  font-size: 11px;
  font-weight: 750;
}

.ozon-automation-server-receipt {
  margin-top: 11px;
  padding: 10px;
  border: 1px solid #d8e4f8;
  border-radius: 9px;
  color: #475467;
  background: #f7faff;
  font-size: 9px;
  overflow-wrap: anywhere;
}

.ozon-automation-run-confirmation {
  display: grid;
  gap: 12px;
}

.ozon-automation-run-confirmation > section {
  padding: 12px;
  border: 1px solid #f5baba;
  border-radius: 10px;
  color: #842727;
  background: var(--red-soft);
  font-size: 10px;
}

.ozon-automation-run-confirmation ul {
  margin: 7px 0 0;
  padding-left: 18px;
}

/* Exact structures emitted by the Ozon seven-step editor. */
.ozon-automation-wizard > .status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 7px 10px;
  padding: 10px 12px;
  border-radius: 10px;
  white-space: normal;
}

.ozon-automation-wizard > .status::before {
  grid-row: 1 / span 2;
  margin-top: 5px;
}

.ozon-automation-wizard > .status strong,
.ozon-automation-wizard > .status span {
  display: block;
}

.ozon-automation-wizard > .status span {
  color: #475467;
  font-size: 9px;
  font-weight: 500;
}

.ozon-automation-step > header > span:first-child {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #1265ff, #7956f6);
  font-size: 12px;
  font-weight: 800;
}

.ozon-automation-step > header > div {
  min-width: 0;
}

.ozon-automation-step .form-grid {
  max-width: none;
}

.ozon-automation-step .switch-field,
.ozon-launch-confirm {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #475467;
  background: #fafbfc;
}

.ozon-automation-step .switch-field input,
.ozon-launch-confirm input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 1px 0 0;
  accent-color: var(--primary);
}

.ozon-automation-product-grid {
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.ozon-automation-product-row {
  grid-template-columns: minmax(90px, 0.38fr) minmax(190px, 1fr) minmax(210px, 0.9fr);
  min-width: 620px;
}

.ozon-automation-visual-row,
.ozon-automation-stock-row {
  display: grid;
  min-width: 620px;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-bottom: 1px solid #eef1f5;
}

.ozon-automation-visual-row {
  grid-template-columns: minmax(180px, 1fr) minmax(210px, 1fr) minmax(110px, 0.45fr);
}

.ozon-automation-stock-row {
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.65fr);
}

.ozon-automation-visual-row:last-child,
.ozon-automation-stock-row:last-child {
  border-bottom: 0;
}

.ozon-automation-product-row > span,
.ozon-automation-visual-row > span,
.ozon-automation-stock-row > span,
.ozon-automation-product-row > label,
.ozon-automation-visual-row > label,
.ozon-automation-stock-row > label {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.ozon-automation-product-row > span strong,
.ozon-automation-product-row > span small,
.ozon-automation-visual-row > span strong,
.ozon-automation-visual-row > span small,
.ozon-automation-stock-row > span strong,
.ozon-automation-stock-row > span small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ozon-automation-product-row > span strong,
.ozon-automation-visual-row > span strong,
.ozon-automation-stock-row > span strong {
  color: #344054;
  font-size: 10px;
}

.ozon-automation-product-row > span small,
.ozon-automation-visual-row > span small,
.ozon-automation-stock-row > span small,
.ozon-automation-product-row > label > span,
.ozon-automation-visual-row > label > span,
.ozon-automation-stock-row > label > span {
  color: var(--text-faint);
  font-size: 8px;
}

.ozon-automation-visual-row input,
.ozon-automation-visual-row select,
.ozon-automation-stock-row input,
.ozon-automation-stock-row select {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--text);
  background: #fff;
  font-size: 9px;
}

.ozon-automation-quote-result {
  display: block;
  color: #47705e;
  font-size: 9px;
}

.ozon-automation-quote-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}

.ozon-automation-quote-summary > span {
  display: block;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(22, 166, 106, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.ozon-automation-quote-summary small,
.ozon-automation-quote-summary strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ozon-automation-quote-summary small {
  color: #4a7b64;
  font-size: 8px;
}

.ozon-automation-quote-summary strong {
  margin-top: 3px;
  color: #087443;
  font-size: 11px;
}

.ozon-automation-quote-result details {
  margin-top: 9px;
}

.ozon-automation-quote-result summary {
  color: #306c50;
  cursor: pointer;
}

.ozon-automation-quote-result pre {
  max-height: 220px;
  margin: 7px 0 0;
  padding: 9px;
  overflow: auto;
  border-radius: 7px;
  color: #344054;
  background: #fff;
  font: 9px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.ozon-automation-plan-card .ozon-automation-blockers {
  margin: 11px 0 0;
}

@media (max-width: 1180px) {
  .automation-platform-access-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ozon-automation-form-grid,
  .ozon-automation-cost-grid,
  .ozon-automation-package-grid,
  .ozon-automation-operation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .direct-listing-single-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "destination"
      "visual"
      "translation"
      "preflight";
  }

  .direct-listing-preflight-card {
    grid-template-columns: 1fr;
  }

  .direct-listing-preflight-card #direct-listing-store-readiness,
  .direct-listing-preflight-card .direct-listing-automatic-copy,
  .direct-listing-inline-quote {
    grid-column: auto;
  }

  .ozon-automation-hero {
    grid-template-columns: 1fr;
  }

  .ozon-automation-hero-actions {
    justify-content: flex-start;
  }

  .ozon-automation-service-state {
    justify-items: start;
    text-align: left;
  }

  .ozon-automation-capability-strip,
  .ozon-automation-quote-result {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ozon-automation-quote-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ozon-automation-plan-list {
    grid-template-columns: 1fr;
  }

  .ozon-automation-wizard-progress {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ozon-automation-form-grid,
  .ozon-automation-cost-grid,
  .ozon-automation-package-grid,
  .ozon-automation-operation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .modal.direct-listing-modal {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .modal.direct-listing-modal .modal-header,
  .modal.direct-listing-modal .modal-footer {
    padding: 10px 12px;
  }

  .modal.direct-listing-modal .modal-body {
    padding: 10px;
    overflow-y: auto;
  }

  .direct-listing-single-page .direct-listing-visual-modes,
  .direct-listing-preflight-selection,
  .direct-listing-inline-quote-items {
    grid-template-columns: 1fr;
  }

  .direct-listing-output-count,
  .direct-listing-inline-quote-head,
  .direct-listing-inline-quote-items > article > header {
    align-items: stretch;
    flex-direction: column;
  }

  .direct-listing-output-count select {
    width: 100%;
  }

  .direct-listing-config-card {
    padding: 9px;
  }

  .direct-listing-preflight-card > header {
    flex-wrap: wrap;
  }

  .direct-listing-preflight-card > header > .status {
    margin-left: 33px;
  }

  .direct-listing-confirmation-head,
  .direct-listing-preview-item > header,
  .direct-listing-package-warning {
    align-items: stretch;
    flex-direction: column;
  }

  .direct-listing-confirmation-selection,
  .direct-listing-preview-item dl {
    grid-template-columns: 1fr;
  }

  .direct-listing-preview-item dl > div.full {
    grid-column: auto;
  }

  .automation-platform-access > header,
  .automation-platform-access-header,
  .ozon-automation-plan-section > header,
  .ozon-automation-plan-header,
  .ozon-automation-plan-head {
    display: grid;
  }

  .automation-platform-access-grid {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .automation-platform-access-note {
    margin-right: 12px;
    margin-left: 12px;
  }

  .automation-platform-access > .status,
  .automation-platform-access > .status:last-child {
    margin-right: 12px;
    margin-left: 12px;
  }

  .ozon-automation-hero {
    padding: 19px 16px;
  }

  .ozon-automation-hero-actions .button {
    flex: 1 1 145px;
  }

  .ozon-automation-boundary,
  .ozon-automation-blocker,
  .ozon-automation-blockers {
    margin-right: 12px;
    margin-left: 12px;
  }

  .ozon-automation-rail {
    display: flex;
    overflow-x: auto;
  }

  .ozon-automation-rail li {
    flex: 0 0 106px;
  }

  .ozon-automation-plan-section {
    padding: 14px 12px;
  }

  .ozon-automation-wizard-progress {
    display: flex;
    overflow-x: auto;
  }

  .ozon-automation-wizard-progress span {
    flex: 0 0 94px;
  }

  .ozon-automation-step {
    padding: 12px;
  }

  .ozon-automation-step > header {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .ozon-automation-step-badge {
    grid-column: 2;
    justify-self: start;
  }

  .ozon-automation-form-grid,
  .ozon-automation-cost-grid,
  .ozon-automation-package-grid,
  .ozon-automation-operation-grid {
    grid-template-columns: 1fr;
  }

  .ozon-automation-step .form-grid {
    grid-template-columns: 1fr;
  }

  .ozon-automation-step .form-group.full {
    grid-column: auto;
  }

  .ozon-automation-form-grid > label.full,
  .ozon-automation-cost-grid > label.full,
  .ozon-automation-package-grid > label.full,
  .ozon-automation-operation-grid > label.full,
  .ozon-automation-field.full {
    grid-column: auto;
  }

  .modal:has(.ozon-automation-wizard),
  .modal:has(.ozon-automation-run-confirmation) {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 520px) {
  .ozon-automation-capability-strip,
  .ozon-automation-plan-meta,
  .ozon-automation-quote-result {
    grid-template-columns: 1fr;
  }

  .ozon-automation-quote-summary {
    grid-template-columns: 1fr;
  }

  .ozon-automation-plan-actions .button,
  .ozon-automation-quote-actions .button,
  .ozon-automation-plan-card > footer .button {
    flex: 1;
  }

  .ozon-automation-plan-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
