:root {
  --bg: #080b11;
  --surface: #0e131d;
  --surface-2: #141b27;
  --surface-3: #1a2331;
  --border: #242e3d;
  --border-soft: #1b2431;
  --text: #f2f5f9;
  --text-soft: #c4ccd8;
  --muted: #7f8b9d;
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, .13);
  --success: #2ecc8f;
  --success-soft: rgba(46, 204, 143, .12);
  --warning: #f3b63f;
  --warning-soft: rgba(243, 182, 63, .13);
  --danger: #ff667d;
  --danger-soft: rgba(255, 102, 125, .13);
  --shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

html[data-theme="light"] {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --surface-3: #edf0f4;
  --border: #dfe4eb;
  --border-soft: #e9edf2;
  --text: #151a22;
  --text-soft: #384252;
  --muted: #798496;
  --shadow: 0 15px 40px rgba(21, 31, 48, .08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  background: var(--surface);
  border-right: 1px solid var(--border-soft);
  z-index: 30;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 3px 8px 24px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #f6ae2d, #ef7f1a);
  color: #16100a;
  font-weight: 900;
  box-shadow: 0 8px 25px rgba(245, 158, 11, .25);
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
}

.brand-subtitle {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

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

.nav-section {
  margin: 19px 10px 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.nav-item {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--text-soft);
  text-decoration: none;
  transition: .18s ease;
}

.nav-item:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-item.active {
  color: var(--text);
  background: var(--accent-soft);
  border-color: rgba(245, 158, 11, .18);
}

.nav-item.active .nav-icon {
  color: var(--accent);
}

.nav-item small {
  margin-left: auto;
  color: var(--muted);
  font-size: 9px;
}

.nav-item.disabled {
  opacity: .48;
  cursor: not-allowed;
}

.nav-icon {
  width: 21px;
  text-align: center;
  font-size: 19px;
}

.sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.shop-status {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--surface-2);
}

.shop-status strong,
.shop-status small {
  display: block;
}

.shop-status strong {
  font-size: 12px;
}

.shop-status small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px var(--success-soft);
}

.logout-button {
  width: 100%;
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 11px;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 11px;
  cursor: pointer;
}

.logout-button:hover {
  color: var(--text);
  background: var(--surface-2);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(18px);
}

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

.topbar-left {
  gap: 12px;
}

.topbar-left strong,
.topbar-left small,
.user-menu strong,
.user-menu small {
  display: block;
}

.topbar-left strong {
  font-size: 14px;
}

.topbar-left small,
.user-menu small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.topbar-actions {
  gap: 12px;
}

.user-menu {
  gap: 9px;
}

.user-menu strong {
  font-size: 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  font-weight: 800;
}

.icon-button,
.mobile-menu {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--text-soft);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.icon-button:hover,
.mobile-menu:hover {
  color: var(--text);
}

.mobile-menu {
  display: none;
}

.page-area {
  min-width: 0;
}

.page {
  width: min(1600px, 100%);
  margin: 0 auto;
  padding: 30px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(27px, 3vw, 38px);
  letter-spacing: -.035em;
}

.page-description {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 12px 16px;
  border-radius: 11px;
  background: var(--accent);
  color: #16100a;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.primary-button:hover {
  filter: brightness(1.05);
}

.alert {
  display: grid;
  gap: 5px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  color: #ffbdc7;
  background: var(--danger-soft);
  border: 1px solid rgba(255, 102, 125, .25);
}

.alert strong {
  font-size: 13px;
}

.alert span {
  font-size: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
}

.stat-card,
.panel {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 19px;
  border-radius: 15px;
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-soft);
  filter: blur(2px);
}

.stat-card.success::after {
  background: var(--success-soft);
}

.stat-card.warning::after {
  background: var(--warning-soft);
}

.stat-card.danger::after {
  background: var(--danger-soft);
}

.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.stat-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 800;
}

.stat-card.success .stat-icon {
  color: var(--success);
  background: var(--success-soft);
}

.stat-card.warning .stat-icon {
  color: var(--warning);
  background: var(--warning-soft);
}

.stat-card.danger .stat-icon {
  color: var(--danger);
  background: var(--danger-soft);
}

.stat-number {
  position: relative;
  z-index: 1;
  display: block;
  margin: 14px 0 7px;
  font-size: 31px;
  letter-spacing: -.04em;
}

.stat-help {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 10px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 16px;
  margin-top: 16px;
}

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

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 16px;
}

.panel-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.panel-heading a {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.progress-row + .progress-row {
  margin-top: 20px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  font-size: 12px;
}

.progress-info span {
  color: var(--text-soft);
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-3);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #ffbf47);
}

.attention-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--border-soft);
  text-decoration: none;
}

.attention-item:first-of-type {
  border-top: 0;
}

.attention-item strong,
.attention-item small {
  display: block;
}

.attention-item strong {
  font-size: 12px;
}

.attention-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.attention-icon,
.file-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}

.warning-bg {
  color: var(--warning);
  background: var(--warning-soft);
}

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

.neutral-bg {
  color: var(--muted);
  background: var(--surface-3);
}

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

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

.file-list {
  display: grid;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-top: 1px solid var(--border-soft);
}

.file-row:first-child {
  border-top: 0;
}

.file-icon {
  flex: 0 0 auto;
  background: var(--surface-3);
  color: var(--muted);
}

.file-row strong,
.file-row small {
  display: block;
}

.file-row strong {
  max-width: 420px;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.empty-state {
  padding: 25px;
  text-align: center;
  color: var(--muted);
}

.empty-state > span {
  font-size: 25px;
}

.empty-state h3 {
  margin: 10px 0 5px;
  color: var(--text);
  font-size: 15px;
}

.empty-state p {
  margin: 7px 0 0;
  font-size: 11px;
}

.product-count {
  min-width: 145px;
  padding: 12px 15px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  text-align: right;
}

.product-count strong,
.product-count span {
  display: block;
}

.product-count strong {
  font-size: 20px;
}

.product-count span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.products-panel {
  padding: 0;
  overflow: hidden;
}

.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px;
  border-bottom: 1px solid var(--border-soft);
}

.search-form {
  position: relative;
  width: min(470px, 100%);
}

.search-form input {
  width: 100%;
  height: 42px;
  padding: 0 42px;
  color: var(--text);
  outline: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.search-form input:focus {
  border-color: rgba(245, 158, 11, .55);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-icon,
.clear-search {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.search-icon {
  left: 14px;
  color: var(--muted);
}

.clear-search {
  right: 14px;
  color: var(--muted);
  font-size: 20px;
  text-decoration: none;
}

.toolbar-filters {
  display: flex;
  gap: 9px;
}

.toolbar-filters select {
  height: 42px;
  padding: 0 34px 0 12px;
  color: var(--text-soft);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
}

.table-container {
  overflow: auto;
}

.products-table {
  width: 100%;
  min-width: 1050px;
  border-collapse: collapse;
}

.products-table th,
.products-table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
  vertical-align: middle;
}

.products-table th {
  color: var(--muted);
  background: var(--surface-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.products-table tbody tr {
  transition: background .15s ease;
}

.products-table tbody tr:hover {
  background: var(--surface-2);
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-image {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  background: var(--surface-3);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
}

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

.product-details {
  min-width: 0;
}

.product-details strong,
.product-details small {
  display: block;
}

.product-details strong {
  max-width: 330px;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-details small {
  max-width: 300px;
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-badge,
.check-badge,
.inventory,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  white-space: nowrap;
}

.status-badge {
  gap: 6px;
  padding: 6px 9px;
  font-size: 9px;
  font-weight: 800;
}

.status-badge > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-active {
  color: var(--success);
  background: var(--success-soft);
}

.status-active > span {
  background: var(--success);
}

.status-draft {
  color: var(--warning);
  background: var(--warning-soft);
}

.status-draft > span {
  background: var(--warning);
}

.status-archived {
  color: var(--muted);
  background: var(--surface-3);
}

.status-archived > span {
  background: var(--muted);
}

.inventory {
  min-width: 34px;
  justify-content: center;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 800;
}

.inventory.good {
  color: var(--success);
  background: var(--success-soft);
}

.inventory.low {
  color: var(--warning);
  background: var(--warning-soft);
}

.inventory.empty {
  color: var(--danger);
  background: var(--danger-soft);
}

.check-badge {
  gap: 5px;
  padding: 6px 9px;
  font-size: 9px;
  font-weight: 750;
}

.success-check {
  color: var(--success);
  background: var(--success-soft);
}

.warning-check {
  color: var(--warning);
  background: var(--warning-soft);
}

.tags-list {
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 300px;
  overflow: hidden;
}

.tag {
  padding: 5px 8px;
  color: var(--text-soft);
  background: var(--surface-3);
  border: 1px solid var(--border-soft);
  font-size: 9px;
}

.tag.more {
  color: var(--accent);
  background: var(--accent-soft);
}

.muted-text {
  color: var(--muted);
  font-size: 10px;
}

.table-empty {
  padding: 50px 20px;
}

.hidden {
  display: none !important;
}

.sidebar-overlay {
  display: none;
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, .13), transparent 32%),
    var(--bg);
}

.login-card {
  width: min(400px, 100%);
  display: grid;
  gap: 11px;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.login-card .brand {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 900;
}

.login-card .brand span {
  color: var(--accent);
}

.login-card h1 {
  margin: 0 0 10px;
}

.login-card label {
  color: var(--muted);
  font-size: 11px;
}

.login-card input {
  height: 43px;
  padding: 0 12px;
  color: var(--text);
  outline: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.login-card button {
  height: 44px;
  margin-top: 6px;
  color: #16100a;
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: -280px;
    width: 260px;
    transition: left .22s ease;
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(0, 0, 0, .55);
  }

  .sidebar-overlay.visible {
    display: block;
  }

  .mobile-menu {
    display: grid;
  }

  .products-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-form {
    width: 100%;
  }

  .toolbar-filters {
    width: 100%;
  }

  .toolbar-filters select {
    flex: 1;
  }
}

@media (max-width: 620px) {
  .topbar {
    padding: 0 15px;
  }

  .topbar-left small,
  .user-menu > div:last-child {
    display: none;
  }

  .page {
    padding: 20px 15px;
  }

  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button {
    justify-content: center;
  }

  .stats-grid,
  .files-grid {
    grid-template-columns: 1fr;
  }

  .product-count {
    text-align: left;
  }

  .toolbar-filters {
    flex-direction: column;
  }
}


/* Product editor */

.product-title-link {
  display: block;
  max-width: 330px;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-title-link:hover {
  color: var(--accent);
}

.edit-product-button {
  display: inline-flex;
  padding: 7px 11px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(245, 158, 11, .18);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

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

.editor-header h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -.035em;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  padding: 11px 14px;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}

.success-alert {
  display: grid;
  gap: 5px;
  margin-bottom: 20px;
  padding: 14px 16px;
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid rgba(46, 204, 143, .25);
  border-radius: 12px;
}

.success-alert strong {
  font-size: 13px;
}

.success-alert span {
  color: var(--text-soft);
  font-size: 11px;
}

.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 18px;
}

.editor-main,
.editor-sidebar {
  display: grid;
  gap: 18px;
}

.editor-panel {
  padding: 22px;
}

.sticky-editor-panel {
  position: sticky;
  top: 90px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field + .form-field,
.form-grid + .form-field,
.form-field + .form-grid {
  margin-top: 18px;
}

.form-field label {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 750;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  color: var(--text);
  outline: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.form-field input,
.form-field select {
  height: 43px;
  padding: 0 12px;
}

.form-field textarea {
  min-height: 100px;
  padding: 12px;
  line-height: 1.55;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: rgba(245, 158, 11, .55);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-field small {
  color: var(--muted);
  font-size: 9px;
}

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

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

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.label-row span {
  color: var(--muted);
  font-size: 9px;
}

.seo-preview {
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
  padding: 17px;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
}

.seo-preview-url {
  color: var(--success);
  font-size: 10px;
}

.seo-preview strong {
  overflow: hidden;
  color: #76a7ff;
  font-size: 18px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seo-preview p {
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.5;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 12px;
}

.gallery-card {
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  background: white;
}

.gallery-card > div {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.gallery-card small {
  color: var(--muted);
  font-size: 9px;
}

.editor-note {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.variants-table-wrapper {
  overflow-x: auto;
}

.variants-table {
  width: 100%;
  border-collapse: collapse;
}

.variants-table th,
.variants-table td {
  padding: 11px;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
  font-size: 10px;
}

.variants-table th {
  color: var(--muted);
  background: var(--surface-2);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.editor-summary {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.editor-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 9px;
}

.editor-summary span {
  color: var(--muted);
  font-size: 10px;
}

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

.save-product-button {
  width: 100%;
  min-height: 44px;
  color: #171007;
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.save-product-button:hover {
  filter: brightness(1.06);
}

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

.mobile-save-bar {
  display: none;
}

@media (max-width: 1050px) {
  .editor-layout {
    grid-template-columns: 1fr;
  }

  .sticky-editor-panel {
    position: static;
  }
}

@media (max-width: 620px) {
  .editor-header {
    align-items: stretch;
    flex-direction: column;
  }

  .secondary-button {
    justify-content: center;
  }

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

  .editor-panel {
    padding: 17px;
  }

  .product-editor-form {
    padding-bottom: 75px;
  }

  .mobile-save-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 22;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 15px;
    background: var(--surface);
    border-top: 1px solid var(--border);
  }

  .mobile-save-bar a {
    color: var(--muted);
    font-size: 11px;
    text-decoration: none;
  }

  .mobile-save-bar button {
    padding: 11px 15px;
    color: #171007;
    background: var(--accent);
    border: 0;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 800;
  }
}


/* SEO scanner */

.seo-overview {
  display: grid;
  grid-template-columns: minmax(320px, .75fr) minmax(0, 1.25fr);
  gap: 16px;
}

.seo-score-card {
  display: flex;
  align-items: center;
  gap: 22px;
}

.score-ring {
  --score: 0;
  width: 126px;
  height: 126px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      var(--surface) 61%,
      transparent 63%
    ),
    conic-gradient(
      var(--score-color) calc(var(--score) * 1%),
      var(--surface-3) 0
    );
}

.score-ring > div {
  text-align: center;
}

.score-ring strong {
  display: block;
  font-size: 33px;
  letter-spacing: -.05em;
}

.score-ring span {
  color: var(--muted);
  font-size: 10px;
}

.score-good {
  --score-color: var(--success);
}

.score-medium {
  --score-color: var(--warning);
}

.score-low {
  --score-color: var(--danger);
}

.seo-score-info > span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.seo-score-info h2 {
  margin: 9px 0 7px;
  font-size: 19px;
}

.seo-score-info p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

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

.seo-issues-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.issue-summary-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 13px;
}

.issue-summary-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 850;
}

.issue-summary-card strong,
.issue-summary-card span {
  display: block;
}

.issue-summary-card strong {
  font-size: 18px;
}

.issue-summary-card div span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.seo-results-panel {
  margin-top: 16px;
  padding: 0;
  overflow: hidden;
}

.seo-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 18px;
  border-bottom: 1px solid var(--border-soft);
}

.seo-results-toolbar h2 {
  margin: 0;
  font-size: 16px;
}

.seo-results-toolbar p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.seo-products-list {
  display: grid;
}

.seo-product-row {
  display: grid;
  grid-template-columns:
    minmax(250px, 1fr)
    70px
    minmax(320px, 1.3fr)
    auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
}

.seo-product-row:hover {
  background: var(--surface-2);
}

.seo-product-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.seo-product-score {
  text-align: center;
}

.seo-product-score strong,
.seo-product-score span {
  display: block;
}

.seo-product-score strong {
  font-size: 19px;
}

.seo-product-score span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.score-text-good {
  color: var(--success);
}

.score-text-medium {
  color: var(--warning);
}

.score-text-low {
  color: var(--danger);
}

.seo-product-issues {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.seo-issue-badge {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 750;
}

.issue-danger {
  color: var(--danger);
  background: var(--danger-soft);
}

.issue-warning {
  color: var(--warning);
  background: var(--warning-soft);
}

.issue-neutral {
  color: var(--text-soft);
  background: var(--surface-3);
}

.issue-success {
  color: var(--success);
  background: var(--success-soft);
}

@media (max-width: 1250px) {
  .seo-issues-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .seo-product-row {
    grid-template-columns: minmax(240px, 1fr) 60px 1fr auto;
  }
}

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

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

  .seo-product-score {
    grid-column: 2;
    grid-row: 1;
  }

  .seo-product-issues {
    grid-column: 1 / -1;
  }

  .seo-product-row .edit-product-button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .seo-score-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .seo-summary-grid,
  .seo-issues-grid {
    grid-template-columns: 1fr 1fr;
  }

  .seo-results-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}


/* Task Engine */

.task-status-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.tasks-panel {
  padding: 0;
  overflow: hidden;
}

.tasks-panel .panel-heading {
  padding: 18px;
  border-bottom: 1px solid var(--border-soft);
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--success);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.live-indicator i {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--success-soft);
}

.tasks-list {
  display: grid;
}

.task-card {
  padding: 18px;
  border-bottom: 1px solid var(--border-soft);
}

.task-card:last-child {
  border-bottom: 0;
}

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

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

.task-status {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.task-running .task-status,
.task-pending .task-status {
  color: var(--warning);
  background: var(--warning-soft);
}

.task-completed .task-status {
  color: var(--success);
  background: var(--success-soft);
}

.task-failed .task-status {
  color: var(--danger);
  background: var(--danger-soft);
}

.task-percentage {
  font-size: 19px;
}

.task-progress {
  height: 7px;
  margin-top: 15px;
  overflow: hidden;
  background: var(--surface-3);
  border-radius: 999px;
}

.task-progress span {
  height: 100%;
  display: block;
  background: var(--accent);
  border-radius: inherit;
  transition: width .35s ease;
}

.task-completed .task-progress span {
  background: var(--success);
}

.task-failed .task-progress span {
  background: var(--danger);
}

.task-message {
  margin-top: 11px;
  color: var(--text-soft);
  font-size: 11px;
}

.task-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
}

.task-error {
  margin-top: 12px;
  padding: 10px;
  color: var(--danger);
  background: var(--danger-soft);
  border-radius: 9px;
  font-size: 10px;
}

.task-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 13px;
  padding: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
}

.task-result span {
  color: var(--muted);
  font-size: 10px;
}

.task-result strong {
  color: var(--text);
}

.task-result a {
  margin-left: auto;
  color: var(--accent);
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 8px;
}

@media (max-width: 900px) {
  .task-status-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .task-status-summary {
    grid-template-columns: 1fr;
  }

  .task-result a {
    width: 100%;
    margin-left: 0;
  }
}


/* SEO Scanner PRO */

.priority-line {
  min-height: 20px;
  margin-bottom: 5px;
}

.priority-badge {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.priority-badge-critical {
  color: var(--danger);
  background: var(--danger-soft);
}

.priority-badge-high {
  color: var(--warning);
  background: var(--warning-soft);
}

.priority-badge-medium {
  color: var(--accent);
  background: var(--accent-soft);
}

.priority-badge-good {
  color: var(--success);
  background: var(--success-soft);
}

.priority-critical {
  box-shadow: inset 3px 0 0 var(--danger);
}

.priority-high {
  box-shadow: inset 3px 0 0 var(--warning);
}

.priority-medium {
  box-shadow: inset 3px 0 0 var(--accent);
}

.priority-good {
  box-shadow: inset 3px 0 0 var(--success);
}

.seo-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.preview-optimization-button {
  display: inline-flex;
  padding: 7px 10px;
  color: var(--text-soft);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}

.preview-optimization-button:hover {
  color: var(--accent);
  border-color: rgba(245, 158, 11, .35);
}

.seo-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(2, 5, 11, .62);
  backdrop-filter: blur(3px);
}

.seo-preview-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 81;
  width: min(620px, 94vw);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  color: var(--text);
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -25px 0 70px rgba(0, 0, 0, .35);
  transform: translateX(105%);
  transition: transform .26s ease;
}

.seo-preview-drawer.open {
  transform: translateX(0);
}

.drawer-open {
  overflow: hidden;
}

.seo-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border-bottom: 1px solid var(--border-soft);
}

.seo-drawer-header h2 {
  margin: 5px 0 0;
  font-size: 19px;
}

.drawer-close-button {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.drawer-close-button:hover {
  color: var(--text);
}

.seo-drawer-body {
  overflow-y: auto;
  padding: 20px;
}

.seo-drawer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 20px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}

.seo-drawer-footer > span {
  color: var(--muted);
  font-size: 9px;
}

.drawer-loading {
  min-height: 300px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 13px;
  color: var(--muted);
  text-align: center;
  font-size: 10px;
}

.drawer-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid var(--surface-3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: drawer-spin .8s linear infinite;
}

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

.safe-preview-banner {
  display: grid;
  gap: 4px;
  margin-bottom: 15px;
  padding: 13px;
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid rgba(46, 204, 143, .2);
  border-radius: 11px;
}

.safe-preview-banner strong {
  font-size: 11px;
}

.safe-preview-banner span {
  color: var(--text-soft);
  font-size: 9px;
}

.preview-difference-card {
  margin-bottom: 14px;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 13px;
}

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

.preview-card-heading h3,
.preview-difference-card > h3 {
  margin: 0;
  font-size: 13px;
}

.change-required,
.no-change {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.change-required {
  color: var(--warning);
  background: var(--warning-soft);
}

.no-change {
  color: var(--success);
  background: var(--success-soft);
}

.preview-field {
  padding: 12px;
  border-radius: 10px;
}

.preview-field > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.preview-field p {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.current-preview-field {
  background: var(--surface-3);
}

.proposed-preview-field {
  background: var(--success-soft);
  border: 1px solid rgba(46, 204, 143, .16);
}

.preview-arrow {
  padding: 7px;
  color: var(--muted);
  text-align: center;
}

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

.preview-image-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 11px;
  padding: 10px;
  background: var(--surface-3);
  border-radius: 10px;
}

.preview-image-row img,
.preview-image-placeholder {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  object-fit: cover;
  background: white;
  border-radius: 8px;
}

.preview-image-row div > span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 7px;
  text-transform: uppercase;
}

.preview-image-row p,
.preview-image-row strong {
  display: block;
  margin: 0 0 8px;
  font-size: 9px;
  line-height: 1.4;
}

.preview-image-row strong {
  color: var(--success);
}

.drawer-error {
  padding: 15px;
  color: var(--danger);
  background: var(--danger-soft);
  border-radius: 11px;
}

.drawer-error strong {
  font-size: 12px;
}

.drawer-error p {
  margin: 7px 0 0;
  font-size: 10px;
}

@media (max-width: 950px) {
  .seo-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .seo-preview-drawer {
    width: 100%;
  }

  .seo-drawer-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .seo-drawer-footer .primary-button {
    justify-content: center;
  }
}


/* SEO controlled apply */

.seo-apply-form {
  display: grid;
  gap: 13px;
}

.seo-apply-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.seo-apply-options label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.seo-apply-options input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}

.seo-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.seo-footer-actions .primary-button,
.seo-footer-actions .secondary-button {
  justify-content: center;
  min-height: 40px;
  border-radius: 9px;
}

@media (max-width: 620px) {
  .seo-apply-options {
    display: grid;
  }

  .seo-footer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}


/* Catalog history */

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

.history-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
}

.history-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.history-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-version-number,
.history-restored-badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.history-version-number {
  color: var(--accent);
  background: var(--accent-soft);
}

.history-restored-badge {
  color: var(--success);
  background: var(--success-soft);
}

.history-card h2 {
  margin: 9px 0 6px;
  font-size: 15px;
}

.history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
  color: var(--muted);
  font-size: 8px;
}

.restore-version-button {
  padding: 9px 12px;
  color: var(--warning);
  background: var(--warning-soft);
  border: 1px solid rgba(245, 158, 11, .25);
  border-radius: 9px;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.restore-version-button:hover {
  border-color: rgba(245, 158, 11, .55);
}

.history-changes {
  display: grid;
  gap: 10px;
  margin-top: 17px;
  padding-top: 17px;
  border-top: 1px solid var(--border-soft);
}

.history-change-row > strong {
  display: block;
  margin-bottom: 7px;
  font-size: 10px;
}

.history-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.history-before,
.history-after {
  padding: 11px;
  border-radius: 9px;
}

.history-before {
  background: var(--danger-soft);
}

.history-after {
  background: var(--success-soft);
}

.history-before span,
.history-after span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.history-before p,
.history-after p {
  margin: 0;
  font-size: 9px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.history-no-changes {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 9px;
}

@media (max-width: 760px) {
  .history-card-header {
    flex-direction: column;
  }

  .history-values {
    grid-template-columns: 1fr;
  }

  .restore-version-form,
  .restore-version-button {
    width: 100%;
  }
}


/* Persistent Job Queue */

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

.jobs-worker-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
  padding: 12px 14px;
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid rgba(46, 204, 143, .2);
  border-radius: 11px;
}

.jobs-worker-notice strong {
  font-size: 10px;
}

.jobs-worker-notice span {
  color: var(--text-soft);
  font-size: 9px;
}

.job-card {
  padding: 17px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
}

.job-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.job-title-line,
.job-actions,
.job-meta,
.job-result-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.job-type,
.job-status {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.job-type {
  color: var(--accent);
  background: var(--accent-soft);
}

.job-status-queued {
  color: var(--muted);
  background: var(--surface-3);
}

.job-status-running {
  color: var(--accent);
  background: var(--accent-soft);
}

.job-status-completed {
  color: var(--success);
  background: var(--success-soft);
}

.job-status-failed {
  color: var(--danger);
  background: var(--danger-soft);
}

.job-status-cancelled {
  color: var(--warning);
  background: var(--warning-soft);
}

.job-card h2 {
  margin: 8px 0 6px;
  font-size: 14px;
}

.job-meta {
  color: var(--muted);
  font-size: 8px;
}

.job-actions button {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}

.job-details-button {
  color: var(--text-soft);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.job-cancel-button {
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid rgba(255, 93, 115, .22);
}

.job-retry-button {
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(245, 158, 11, .25);
}

.job-progress-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.job-progress-track {
  height: 7px;
  overflow: hidden;
  background: var(--surface-3);
  border-radius: 999px;
}

.job-progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--accent),
    var(--success)
  );
  border-radius: inherit;
  transition: width .35s ease;
}

.job-progress-line strong {
  min-width: 39px;
  font-size: 9px;
  text-align: right;
}

.job-counts {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 8px;
}

.job-error-message {
  color: var(--danger);
}

.job-result-summary {
  margin-top: 13px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: 9px;
  font-size: 9px;
}

.job-result-summary a {
  margin-left: auto;
  color: var(--accent);
  font-weight: 800;
}

.job-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 84;
  background: rgba(2, 5, 11, .65);
  backdrop-filter: blur(3px);
}

.job-detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 85;
  width: min(590px, 95vw);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -25px 0 70px rgba(0, 0, 0, .38);
  transform: translateX(105%);
  transition: transform .26s ease;
}

.job-detail-drawer.open {
  transform: translateX(0);
}

.job-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 21px;
  border-bottom: 1px solid var(--border-soft);
}

.job-detail-header h2 {
  margin: 5px 0 0;
  font-size: 17px;
}

.job-detail-body {
  overflow-y: auto;
  padding: 20px;
}

.job-detail-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 17px;
}

.job-detail-summary div {
  padding: 11px;
  background: var(--surface-2);
  border-radius: 9px;
}

.job-detail-summary span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 7px;
  text-transform: uppercase;
}

.job-detail-summary strong {
  font-size: 9px;
}

.job-log-section h3 {
  margin: 0 0 11px;
  font-size: 12px;
}

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

.job-log-row {
  display: grid;
  grid-template-columns: 120px 65px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 10px;
  background: var(--surface-2);
  border-radius: 8px;
}

.job-log-row span,
.job-log-row strong {
  font-size: 7px;
}

.job-log-row span {
  color: var(--muted);
}

.job-log-row strong {
  text-transform: uppercase;
}

.job-log-row p {
  margin: 0;
  font-size: 8px;
  line-height: 1.45;
}

.job-log-success strong {
  color: var(--success);
}

.job-log-warning strong {
  color: var(--warning);
}

.job-log-error strong {
  color: var(--danger);
}

@media (max-width: 720px) {
  .job-card-header {
    flex-direction: column;
  }

  .job-actions {
    width: 100%;
  }

  .job-detail-summary {
    grid-template-columns: 1fr;
  }

  .job-log-row {
    grid-template-columns: 1fr;
  }
}

/* SEO bulk actions */

.seo-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.seo-heading-actions form {
  margin: 0;
}

.seo-heading-actions button {
  min-height: 42px;
  cursor: pointer;
}

.danger-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid rgba(255, 93, 115, .28);
  border-radius: 11px;
  font-size: 11px;
  font-weight: 800;
}

.danger-button:hover {
  filter: brightness(1.08);
  border-color: rgba(255, 93, 115, .55);
}

@media (max-width: 950px) {
  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .seo-heading-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .seo-heading-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .seo-heading-actions form,
  .seo-heading-actions button {
    width: 100%;
  }

  .seo-heading-actions button {
    justify-content: center;
  }
}


/* SEO CLEAN TOOLBAR */
.seo-clean-toolbar {
  display: grid;
  gap: 12px;
  width: min(100%, 1080px);
  margin-left: auto;
}

.seo-clean-group,
.seo-clean-recovery {
  border: 1px solid #263244;
  border-radius: 14px;
  background: rgba(15, 23, 36, .78);
  padding: 13px;
}

.seo-clean-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.seo-clean-heading strong {
  font-size: 13px;
  color: #f8fafc;
}

.seo-clean-heading span {
  font-size: 10px;
  color: #8ea0b8;
}

.seo-clean-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 9px;
}

.seo-clean-form {
  margin: 0;
  min-width: 0;
}

.seo-clean-button {
  width: 100%;
  min-height: 64px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  border: 1px solid #334155;
  border-radius: 10px;
  background: #111827;
  color: #f8fafc;
  text-align: left;
  cursor: pointer;
}

.seo-clean-button:hover {
  border-color: #f59e0b;
  background: #172033;
}

.seo-clean-title {
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
}

.seo-clean-subtitle {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.3;
}

.seo-clean-language .seo-clean-button {
  border-color: rgba(245, 158, 11, .35);
}

.seo-clean-images .seo-clean-button {
  border-color: rgba(34, 197, 94, .30);
}

.seo-clean-recovery {
  padding: 0;
  border-color: #4a2633;
  background: rgba(52, 19, 31, .48);
}

.seo-clean-recovery summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  color: #fda4af;
  cursor: pointer;
}

.seo-clean-recovery summary span {
  color: #a78b95;
  font-size: 10px;
}

.seo-clean-recovery .seo-clean-grid {
  padding: 0 13px 13px;
}

@media (max-width: 1180px) {
  .seo-clean-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 760px) {
  .seo-clean-toolbar {
    width: 100%;
  }

  .seo-clean-grid {
    grid-template-columns: 1fr;
  }

  .seo-clean-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

/* ADMIN CLEAN V2 */
.admin-clean-toolbar {
  width: min(100%, 920px);
  margin-left: auto;
  padding: 16px;
  border: 1px solid #273244;
  border-radius: 16px;
  background: rgba(14, 22, 34, .84);
}

.admin-clean-toolbar-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.admin-clean-toolbar-head div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.admin-clean-toolbar-head strong {
  font-size: 15px;
  color: #f8fafc;
}

.admin-clean-toolbar-head span {
  font-size: 11px;
  color: #91a0b5;
}

.admin-clean-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 9px;
}

.admin-clean-actions form {
  margin: 0;
}

.admin-clean-action {
  width: 100%;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid #364257;
  border-radius: 10px;
  background: #111827;
  color: #f8fafc;
  text-align: left;
  cursor: pointer;
}

.admin-clean-action:hover {
  border-color: #f59e0b;
  background: #172033;
}

.admin-clean-action-title {
  display: block;
  font-size: 12px;
  font-weight: 750;
}

.admin-clean-advanced {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #273244;
  color: #8fa0b5;
  font-size: 11px;
}

.admin-clean-advanced summary {
  cursor: pointer;
  color: #cbd5e1;
  font-weight: 700;
}

@media (max-width: 1050px) {
  .admin-clean-actions {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 700px) {
  .admin-clean-toolbar {
    width: 100%;
  }

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