:root {
  --page-bg: #eeeeee;
  --panel-bg: #e6e6e6;
  --card-bg: #ffffff;
  --border: #e1e1e1;
  --line: #dedede;
  --text: #222222;
  --muted: #777777;
  --blue: #3483fa;
  --green: #00a650;
  --orange: #ff5f00;
  --yellow: #ffb300;
  --red: #ff5a5f;
}

* { box-sizing: border-box; }

body {
  background: var(--page-bg);
  color: var(--text);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  margin: 0;
}

button,
input,
select {
  font: inherit;
}

.promotion-page {
  margin: 0 auto;
  max-width: 1400px;
  padding: 0 28px 28px;
}

.utility-bar {
  align-items: center;
  display: flex;
  gap: 12px;
  min-height: 42px;
}

.store-control {
  align-items: center;
  display: flex;
  gap: 8px;
}

.store-control span,
.status {
  color: var(--muted);
  font-size: 13px;
}

.store-control select {
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  height: 30px;
  min-width: 220px;
  padding: 0 8px;
}

.plain-action,
.home-link,
.create-button,
.secondary-create-button {
  background: transparent;
  border: 0;
  color: var(--blue);
  cursor: pointer;
  font-weight: 600;
  padding: 4px 6px;
  text-decoration: none;
}

.home-link {
  margin-left: auto;
}

.create-button {
  background: #dce9ff;
  border-radius: 4px;
  padding: 9px 16px;
}

.toolbar-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.secondary-create-button {
  background: #ffffff;
  border: 1px solid #c9dcff;
  border-radius: 4px;
  padding: 9px 14px;
}

.tabs {
  display: flex;
  gap: 24px;
  overflow: auto;
  padding: 6px 0 10px;
}

.tab {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #666;
  cursor: pointer;
  font-weight: 600;
  padding: 9px 0;
  white-space: nowrap;
}

.tab.active {
  border-bottom-color: var(--blue);
  color: #111;
}

.tab-count {
  color: #999;
  font-size: 12px;
  margin-left: 4px;
}

.cards-panel {
  background: var(--panel-bg);
  border-radius: 4px;
  margin-bottom: 37px;
  padding: 9px 22px 22px;
}

.cards-toolbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 38px;
}

.promotion-cards {
  display: grid;
  gap: 16px 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.promotion-card {
  background: #fff;
  border: 1px solid #dadada;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
  cursor: pointer;
  min-height: 139px;
  padding: 20px 18px;
  position: relative;
}

.promotion-card.active {
  outline: 2px solid rgba(52, 131, 250, .45);
}

.promotion-card .bolt {
  align-items: center;
  background: var(--yellow);
  border-radius: 0 0 6px 6px;
  color: #fff;
  display: flex;
  font-size: 22px;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  position: absolute;
  right: 16px;
  top: 0;
  width: 28px;
}

.card-menu {
  background: transparent;
  border: 0;
  color: #111;
  cursor: pointer;
  font-size: 20px;
  position: absolute;
  right: 16px;
  top: 14px;
}

.eyebrow {
  color: #333;
  font-size: 11px;
  line-height: 1;
  margin-bottom: 11px;
  text-transform: uppercase;
}

.promotion-card h3 {
  font-size: 19px;
  line-height: 1.2;
  margin: 0 34px 35px 0;
}

.promotion-card .urgent {
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  margin-top: -25px;
  padding-bottom: 15px;
}

.card-counts {
  bottom: 20px;
  color: var(--muted);
  font-size: 13px;
  left: 18px;
  position: absolute;
}

.search-row {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 373px auto 1fr;
  margin-bottom: 18px;
}

.search-box {
  align-items: center;
  background: #fff;
  border: 1px solid #bcbcbc;
  border-radius: 18px;
  display: grid;
  gap: 8px;
  grid-template-columns: auto 1fr;
  height: 38px;
  padding: 0 13px;
}

.search-icon {
  color: #555;
  font-size: 22px;
  line-height: 1;
  width: 18px;
  height: 18px;
  border: 2px solid #555;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.search-icon::after {
  content: "";
  width: 7px;
  height: 2px;
  background: #555;
  position: absolute;
  right: -5px;
  bottom: -2px;
  transform: rotate(45deg);
  border-radius: 999px;
}

.search-box input {
  border: 0;
  color: #333;
  outline: none;
  width: 100%;
}

.search-box input::placeholder {
  color: #b1b1b1;
}

.filter-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #333;
  cursor: pointer;
  display: flex;
  gap: 10px;
  padding: 8px 0;
}

.sliders {
  width: 20px;
  height: 14px;
  display: inline-block;
  position: relative;
  background:
    linear-gradient(#333, #333) 0 2px / 20px 2px no-repeat,
    linear-gradient(#333, #333) 0 11px / 20px 2px no-repeat;
}

.sliders::before,
.sliders::after {
  content: "";
  width: 6px;
  height: 6px;
  border: 2px solid #333;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: -1px;
}

.sliders::before {
  left: 4px;
}

.sliders::after {
  right: 4px;
  top: 8px;
}

.listing-count {
  color: var(--muted);
  justify-self: end;
}

.filter-panel {
  align-items: end;
  background: #fff;
  border: 1px solid var(--border);
  display: grid;
  gap: 16px;
  grid-template-columns: 220px 260px;
  margin-bottom: 14px;
  padding: 13px;
}

.filter-panel[hidden] {
  display: none;
}

.filter-panel label {
  color: #555;
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 5px;
}

.filter-panel select {
  border: 1px solid #ccc;
  border-radius: 6px;
  height: 36px;
  padding: 0 8px;
  width: 100%;
}

.table-wrap {
  background: #fff;
  overflow-x: auto;
}

.table-head {
  background: #e1e1e1;
  border-bottom: 1px solid #bdbdbd;
  display: grid;
  font-size: 15px;
  font-weight: 700;
  grid-template-columns: 344px 198px 160px 219px 142px 140px 198px;
  min-width: 1400px;
}

.table-head > div {
  border-right: 1px solid #eeeeee;
  padding: 28px 12px 30px 18px;
}

.table-body {
  min-width: 1400px;
}

.table-body.empty {
  color: var(--muted);
  padding: 38px;
  text-align: center;
}

.product-group {
  background: #fff;
  border-bottom: 10px solid #f1f1f1;
  display: grid;
  grid-template-columns: 344px 1056px;
}

.listing-cell {
  display: grid;
  gap: 14px;
  grid-template-columns: 74px 1fr;
  padding: 14px 18px 20px 56px;
}

.thumb {
  background: #f1f1f1;
  height: 74px;
  object-fit: cover;
  width: 74px;
}

.listing-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  max-width: 170px;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  margin-top: 4px;
}

.listing-prices {
  color: #222;
  font-size: 16px;
  line-height: 1.35;
  margin-top: 28px;
}

.ship-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.chip {
  background: #d8f7e4;
  border-radius: 999px;
  color: #009c52;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
}

.promo-row {
  display: grid;
  grid-template-columns: 198px 160px 219px 142px 140px 198px;
  min-height: 122px;
}

.promo-row + .promo-row {
  border-top: 1px solid #e0e0e0;
}

.promo-cell,
.status-cell,
.discount-cell,
.money-cell,
.action-cell {
  padding: 24px 14px;
}

.promo-name {
  font-size: 16px;
}

.promo-tag {
  color: #fff;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  margin-top: 9px;
}

.deal-tag {
  background: var(--orange);
  border-radius: 999px;
  padding: 3px 9px;
}

.badge {
  border-radius: 999px;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  margin-top: 7px;
  padding: 2px 8px;
}

.badge.active,
.badge.participating {
  background: #d9f7e6;
  color: var(--green);
}

.badge.eligible,
.badge.candidate {
  background: #e4efff;
  color: var(--blue);
}

.badge.scheduled {
  background: #fff2d6;
  color: #a26300;
}

.badge.ended,
.badge.paused,
.badge.failed {
  background: #ffe3e3;
  color: #c7272d;
}

.discount-cell {
  font-size: 14px;
  line-height: 1.45;
}

.meli-discount {
  color: var(--green);
  margin-top: 6px;
}

.money-cell {
  font-size: 16px;
}

.money-main {
  font-weight: 700;
}

.info-dot {
  color: var(--blue);
  font-size: 13px;
}

.action-stack {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.primary-button,
.participate-button {
  background: var(--blue);
  border: 0;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  padding: 8px 12px;
}

.stop-button,
.edit-button,
.link-button {
  background: transparent;
  border: 0;
  color: #1675ff;
  cursor: pointer;
  font-weight: 600;
  padding: 5px 0;
}

.disabled-button {
  background: #eeeeee;
  border: 0;
  border-radius: 4px;
  color: #999;
  padding: 8px 12px;
}

.row-menu {
  background: transparent;
  border: 0;
  color: #111;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transform: rotate(90deg);
}

.show-toggle {
  align-items: center;
  border-top: 1px solid transparent;
  display: flex;
  justify-content: flex-end;
  padding: 16px 42px 22px;
}

.modal {
  align-items: center;
  background: rgba(0, 0, 0, .38);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 20;
}

.modal[hidden] {
  display: none;
}

.modal-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
  max-height: 92vh;
  max-width: 780px;
  overflow: auto;
  padding: 22px 32px;
  width: 100%;
}

.modal-head,
.modal-actions {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.modal-head h2 {
  font-size: 20px;
  margin: 0;
}

.icon-button,
.cancel-button {
  background: #eeeeee;
  border: 0;
  border-radius: 4px;
  color: #333;
  cursor: pointer;
  padding: 8px 12px;
}

.modal-body {
  line-height: 1.65;
  margin: 14px 0;
}

.modal-listing-card {
  align-items: center;
  background: #f5f5f5;
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: 92px 1fr;
  margin: 12px 0 26px;
  padding: 18px;
}

.modal-thumb {
  background: #eee;
  border-radius: 5px;
  height: 72px;
  object-fit: cover;
  width: 72px;
}

.detail-line {
  font-size: 18px;
  margin: 16px 0;
}

.promo-editor-grid {
  align-items: center;
  display: grid;
  gap: 28px 24px;
  grid-template-columns: 1fr 260px;
  margin: 26px 0 22px;
}

.right-value {
  font-size: 22px;
  text-align: right;
}

.input-suffix,
.money-input {
  align-items: center;
  border: 2px solid var(--blue);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  height: 64px;
  padding: 0 16px;
}

.money-input {
  border-color: #bdbdbd;
  grid-template-columns: auto 1fr;
}

.input-suffix input,
.money-input input,
.campaign-form input {
  border: 0;
  font-size: 22px;
  outline: none;
  text-align: right;
  width: 100%;
}

.money-input span,
.input-suffix span {
  color: #777;
  font-size: 20px;
}

.field-hint {
  color: #444;
  font-size: 14px;
  margin-top: 6px;
  text-align: center;
}

.stop-inline {
  background: transparent;
  border: 0;
  color: var(--blue);
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  padding: 8px 0;
}

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

.bulk-summary {
  align-items: center;
  background: #f5f7fa;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px;
}

.bulk-summary strong {
  color: var(--blue);
  font-size: 24px;
}

.bulk-preview-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 14px;
  max-height: 420px;
  overflow: auto;
}

.bulk-row {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 1.4fr 1fr 140px;
  padding: 12px;
}

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

.bulk-row.ready,
.bulk-row.success,
.bulk-row.dry_run {
  background: #f2fbf6;
}

.bulk-row.skipped_active {
  background: #f7f8fb;
}

.bulk-row.blocked,
.bulk-row.failed,
.bulk-row.no_history_discount,
.bulk-row.price_protected {
  background: #fff3f3;
}

.bulk-row.already_active,
.bulk-row.scheduled {
  background: #f4f7fb;
}

.campaign-form label {
  color: #333;
  display: grid;
  font-weight: 700;
  gap: 6px;
}

.campaign-form input {
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  height: 42px;
  padding: 0 10px;
  text-align: left;
}

.checkbox-row {
  align-items: center;
  display: flex !important;
  gap: 10px !important;
}

.checkbox-row input {
  height: auto;
  width: auto;
}

.modal-error,
.modal-success {
  border-radius: 6px;
  margin-top: 14px;
  padding: 10px 12px;
}

.modal-error {
  background: #ffe3e3;
  color: #c7272d;
}

.modal-success {
  background: #d9f7e6;
  color: var(--green);
}

.modal-actions {
  gap: 10px;
  justify-content: flex-end;
}

@media (max-width: 1100px) {
  .promotion-page {
    padding: 0 14px 24px;
  }
  .promotion-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .search-row {
    grid-template-columns: 1fr;
  }
}

/* Simplified operations layout */
body {
  background: #f5f7fa;
}

.promotion-page {
  max-width: 1220px;
  padding: 18px 22px 32px;
}

.utility-bar {
  background: #fff;
  border: 1px solid #e7ebf0;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(31, 41, 55, .05);
  min-height: 58px;
  padding: 10px 14px;
}

.store-control select {
  border-color: #d7dde6;
  border-radius: 10px;
  height: 36px;
}

.plain-action,
.home-link,
.create-button,
.secondary-create-button {
  border-radius: 10px;
  padding: 9px 12px;
}

.plain-action:hover,
.home-link:hover,
.secondary-create-button:hover {
  background: #edf4ff;
}

.quick-actions {
  align-items: center;
  background: linear-gradient(180deg, #fff, #fbfcff);
  border: 1px solid #e5eaf2;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(31, 41, 55, .06);
  display: flex;
  justify-content: space-between;
  margin: 14px 0;
  padding: 18px;
}

.quick-actions h1 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
}

.quick-actions p {
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0 0;
}

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

.create-button {
  background: var(--blue);
  color: #fff;
}

.secondary-create-button {
  background: #fff;
  border: 1px solid #d6e5ff;
}

.campaign-drawer {
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(31, 41, 55, .045);
  margin-bottom: 14px;
  overflow: hidden;
}

.campaign-drawer summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 14px 18px;
}

.campaign-drawer summary::-webkit-details-marker {
  display: none;
}

.campaign-drawer summary::after {
  color: var(--blue);
  content: "Open";
  font-size: 13px;
  font-weight: 700;
}

.campaign-drawer[open] summary::after {
  content: "Close";
}

.campaign-drawer summary span {
  font-weight: 700;
}

.campaign-drawer summary small {
  color: var(--muted);
  margin-left: 14px;
}

.tabs {
  border-top: 1px solid #edf0f5;
  gap: 18px;
  padding: 8px 18px 0;
}

.cards-panel {
  background: transparent;
  margin: 0;
  padding: 12px 18px 18px;
}

.promotion-cards {
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.promotion-card {
  border-color: #e5eaf2;
  box-shadow: none;
  min-height: 92px;
  padding: 14px;
}

.promotion-card h3 {
  font-size: 15px;
  margin: 0 26px 22px 0;
}

.eyebrow {
  color: #6b7280;
  font-size: 10px;
  margin-bottom: 7px;
}

.promotion-card .urgent {
  font-size: 12px;
  margin-top: -14px;
  padding-bottom: 6px;
}

.card-counts {
  bottom: 12px;
  font-size: 12px;
  left: 14px;
}

.search-row {
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(31, 41, 55, .045);
  gap: 12px;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  margin-bottom: 12px;
  padding: 12px;
}

.search-box {
  border-color: #d7dde6;
  border-radius: 12px;
  height: 42px;
}

.filter-button {
  background: #f5f7fb;
  border-radius: 10px;
  justify-content: center;
  padding: 10px 14px;
}

.listing-count {
  background: #f5f7fb;
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
  padding: 10px 14px;
}

.filter-panel {
  border-color: #e5eaf2;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(31, 41, 55, .045);
}

.table-wrap {
  background: transparent;
  overflow-x: visible;
}

.table-head {
  display: none;
}

.table-body {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.table-body.empty {
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 14px;
}

.product-group {
  border: 1px solid #e5eaf2;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(31, 41, 55, .045);
  display: grid;
  grid-template-columns: 300px 1fr;
  overflow: hidden;
}

.listing-cell {
  background: #fbfcff;
  border-right: 1px solid #eef2f7;
  gap: 12px;
  grid-template-columns: 64px 1fr;
  padding: 16px;
}

.thumb {
  border-radius: 8px;
  height: 64px;
  width: 64px;
}

.listing-title {
  font-size: 15px;
  max-width: none;
}

.listing-prices {
  display: grid;
  font-size: 13px;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  line-height: 1.25;
  margin-top: 12px;
}

.listing-prices br {
  display: none;
}

.ship-tags {
  margin-top: 10px;
}

.promo-rows {
  min-width: 0;
}

.promo-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(170px, 1.25fr) minmax(120px, .85fr) minmax(180px, 1.1fr) minmax(110px, .75fr) minmax(120px, .75fr) minmax(150px, auto);
  min-height: 92px;
}

.promo-cell,
.status-cell,
.discount-cell,
.money-cell,
.action-cell {
  padding: 16px 8px;
}

.promo-cell {
  padding-left: 18px;
}

.promo-name,
.money-cell {
  font-size: 14px;
}

.discount-cell,
.meta {
  font-size: 12px;
}

.action-stack {
  align-items: center;
  gap: 8px;
}

.participate-button,
.primary-button {
  border-radius: 9px;
}

.show-toggle {
  padding: 10px 18px 14px;
}

@media (max-width: 1100px) {
  .quick-actions,
  .utility-bar {
    align-items: stretch;
    flex-direction: column;
  }

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

  .product-group {
    grid-template-columns: 1fr;
  }

  .listing-cell {
    border-right: 0;
    border-bottom: 1px solid #eef2f7;
  }

  .promo-row {
    grid-template-columns: 1fr 1fr;
    padding: 10px;
  }

  .promo-cell,
  .status-cell,
  .discount-cell,
  .money-cell,
  .action-cell {
    padding: 6px;
  }

  .action-cell {
    grid-column: 1 / -1;
  }
}

/* iPhone-inspired visual polish */
:root {
  --page-bg: #f5f5f7;
  --panel-bg: #f5f5f7;
  --card-bg: #ffffff;
  --border: #e8e8ed;
  --line: #ececf1;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --blue: #0071e3;
  --green: #00a650;
  --orange: #ff5f00;
  --yellow: #ffd60a;
  --red: #ff453a;
}

body {
  background:
    radial-gradient(circle at 50% -120px, rgba(255, 255, 255, .95), rgba(245, 245, 247, 0) 420px),
    var(--page-bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
}

.promotion-page {
  max-width: 1180px;
  padding: 18px 24px 44px;
}

.utility-bar,
.quick-actions,
.campaign-drawer,
.search-row,
.filter-panel,
.product-group,
.modal-card {
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .045);
}

.utility-bar {
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, .82);
  border-radius: 22px;
  min-height: 64px;
  padding: 12px 16px;
  position: sticky;
  top: 12px;
  z-index: 5;
}

.store-control span,
.status {
  color: var(--muted);
  font-size: 12px;
}

.store-control select,
.filter-panel select,
.campaign-form input {
  background: #fbfbfd;
  border: 1px solid #d2d2d7;
  border-radius: 14px;
}

.plain-action,
.home-link,
.create-button,
.secondary-create-button,
.filter-button,
.participate-button,
.primary-button,
.disabled-button {
  border-radius: 999px;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.plain-action:hover,
.home-link:hover,
.secondary-create-button:hover,
.filter-button:hover {
  background: #eaf2ff;
}

.create-button,
.participate-button,
.primary-button {
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(0, 113, 227, .18);
  color: #fff;
}

.create-button:hover,
.participate-button:hover,
.primary-button:hover {
  background: #0077ed;
  transform: translateY(-1px);
}

.secondary-create-button {
  background: #fff;
  border: 1px solid #d2d2d7;
  color: var(--blue);
}

.quick-actions {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(250, 250, 252, .94)),
    #fff;
  border-radius: 30px;
  margin: 18px 0;
  min-height: 156px;
  padding: 32px;
}

.quick-actions h1 {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.02;
}

.quick-actions p {
  color: #86868b;
  font-size: 18px;
  line-height: 1.35;
  margin-top: 10px;
}

.toolbar-actions {
  gap: 12px;
}

.campaign-drawer {
  background: rgba(255, 255, 255, .86);
  border-radius: 24px;
}

.campaign-drawer summary {
  min-height: 64px;
  padding: 18px 22px;
}

.campaign-drawer summary span {
  font-size: 16px;
}

.campaign-drawer summary small {
  font-size: 12px;
}

.campaign-drawer summary::after {
  background: #f5f5f7;
  border-radius: 999px;
  color: var(--blue);
  padding: 7px 12px;
}

.tabs {
  gap: 22px;
  padding: 12px 22px 0;
}

.tab {
  color: #6e6e73;
  font-size: 14px;
  padding: 10px 0;
}

.tab.active {
  color: var(--text);
}

.cards-panel {
  padding: 14px 22px 22px;
}

.promotion-cards {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}

.promotion-card {
  border-radius: 22px;
  flex: 0 0 238px;
  min-height: 132px;
  padding: 18px;
  scroll-snap-align: start;
}

.promotion-card:hover {
  box-shadow: 0 12px 26px rgba(0, 0, 0, .08);
  transform: translateY(-1px);
}

.promotion-card h3 {
  font-size: 18px;
  line-height: 1.18;
}

.promotion-card .bolt {
  border-radius: 0 0 10px 10px;
  color: #1d1d1f;
}

.search-row {
  background: rgba(255, 255, 255, .9);
  border-radius: 24px;
  margin-bottom: 14px;
  padding: 14px;
}

.search-box {
  background: #f5f5f7;
  border: 0;
  border-radius: 999px;
  height: 44px;
}

.filter-button,
.listing-count {
  background: #f5f5f7;
  min-height: 44px;
}

.filter-panel {
  border-radius: 24px;
  padding: 18px;
}

.product-group {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .045);
  overflow: hidden;
}

.listing-cell {
  background: linear-gradient(180deg, #fbfbfd, #f7f7fa);
  padding: 20px;
}

.thumb {
  background: #f5f5f7;
  border-radius: 16px;
}

.listing-title {
  font-size: 16px;
  line-height: 1.26;
}

.meta {
  color: #86868b;
}

.listing-prices {
  color: #424245;
}

.chip {
  background: #eaf8ef;
  color: #008a45;
}

.promo-row {
  gap: 10px;
  grid-template-columns: minmax(160px, 1.25fr) minmax(112px, .8fr) minmax(160px, 1fr) minmax(112px, .75fr) minmax(112px, .75fr) minmax(132px, auto);
}

.promo-row + .promo-row {
  border-top-color: #f0f0f2;
}

.promo-name,
.money-cell {
  color: #1d1d1f;
}

.money-main {
  font-weight: 700;
}

.badge {
  border-radius: 999px;
}

.deal-tag {
  background: #fff3e8;
  color: var(--orange);
}

.edit-button,
.stop-button,
.link-button {
  color: var(--blue);
}

.row-menu {
  color: #86868b;
}

.modal {
  background: rgba(0, 0, 0, .42);
  backdrop-filter: blur(8px);
}

.modal-card {
  border-radius: 28px;
}

.modal-listing-card,
.bulk-summary,
.bulk-preview-list {
  border-radius: 18px;
}

@media (max-width: 760px) {
  .promotion-page {
    padding: 12px 12px 32px;
  }

  .quick-actions {
    padding: 24px;
  }

  .quick-actions h1 {
    font-size: 38px;
  }

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

  .listing-count {
    justify-self: stretch;
    text-align: center;
  }
}

/* Tight layout fixes */
.promotion-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 150px;
  overflow: hidden;
}

.promotion-card::before {
  border-radius: 999px;
  content: "";
  height: 5px;
  left: 18px;
  position: absolute;
  right: 18px;
  top: 12px;
}

.promotion-card.card-suggested {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.promotion-card.card-suggested::before {
  background: #0071e3;
}

.promotion-card.card-seven {
  background: linear-gradient(180deg, #ffffff, #fff7ec);
}

.promotion-card.card-seven::before {
  background: #ff9f0a;
}

.promotion-card.card-commercial {
  background: linear-gradient(180deg, #ffffff, #fff3f0);
}

.promotion-card.card-commercial::before {
  background: #ff5f00;
}

.promotion-card.card-hot-sale {
  background: linear-gradient(180deg, #ffffff, #f1fff6);
}

.promotion-card.card-hot-sale::before {
  background: #00a650;
}

.promotion-card.card-lightning {
  background: linear-gradient(180deg, #ffffff, #fffbe6);
}

.promotion-card.card-lightning::before {
  background: #ffd60a;
}

.promotion-card.card-seller {
  background: linear-gradient(180deg, #ffffff, #f5f0ff);
}

.promotion-card.card-seller::before {
  background: #7d5fff;
}

.promotion-card .eyebrow {
  margin-top: 10px;
}

.promotion-card h3 {
  margin-bottom: 10px;
}

.promotion-card .urgent,
.card-status {
  line-height: 1.25;
  margin: 0;
  padding: 0 0 10px;
}

.card-counts {
  align-self: end;
  bottom: auto;
  left: auto;
  margin-top: 10px;
  position: static;
}

.promo-row {
  grid-template-columns: minmax(140px, 1.1fr) minmax(104px, .7fr) minmax(145px, .9fr) minmax(96px, .62fr) minmax(112px, .68fr) minmax(190px, 190px);
  padding-right: 12px;
}

.action-stack {
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
  width: 100%;
}

.edit-button {
  background: #eef5ff;
  border: 1px solid #d6e8ff;
  border-radius: 999px;
  color: var(--blue);
  font-weight: 700;
  padding: 8px 14px;
}

.participate-button {
  min-width: 132px;
  padding-left: 18px;
  padding-right: 18px;
}

.product-group {
  overflow: hidden !important;
}

.table-wrap,
.table-body {
  overflow: visible;
}

.promo-rows {
  overflow: hidden;
}

.stop-button,
.link-button {
  border-radius: 999px;
  padding: 8px 10px;
}

@media (max-width: 1100px) {
  .promo-row {
    grid-template-columns: 1fr 1fr;
  }

  .action-stack {
    justify-content: flex-start;
    min-width: 0;
  }
}

@media (max-width: 1280px) {
  .promo-row {
    grid-template-columns: minmax(150px, 1fr) minmax(110px, .75fr) minmax(160px, 1fr) minmax(110px, .75fr) minmax(130px, .8fr);
  }

  .action-cell {
    grid-column: 1 / -1;
    padding-top: 0;
  }

  .action-stack {
    justify-content: flex-end;
  }
}

/* Auto coverage */
.auto-coverage {
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 34px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .07);
  margin: 24px auto;
  max-width: 1880px;
  overflow: hidden;
}

.auto-coverage > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  list-style: none;
  padding: 24px 30px;
}

.auto-coverage > summary::-webkit-details-marker {
  display: none;
}

.auto-coverage > summary span {
  color: #1d1d1f;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}

.auto-coverage > summary small {
  color: #86868b;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-align: right;
}

.coverage-panel {
  border-top: 1px solid rgba(0, 0, 0, .06);
  padding: 0 30px 30px;
}

.coverage-form {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(128px, .62fr)) minmax(168px, .72fr) minmax(188px, .85fr);
  padding-top: 22px;
}

.coverage-form label {
  color: #6e6e73;
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  min-width: 0;
}

.coverage-form input[type="date"],
.coverage-form input[type="number"],
.coverage-form input:not([type]) {
  background: #f5f5f7;
  border: 1px solid transparent;
  border-radius: 18px;
  color: #1d1d1f;
  font-size: 16px;
  font-weight: 700;
  min-height: 48px;
  outline: none;
  padding: 0 16px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  width: 100%;
}

.coverage-form input:focus {
  background: #ffffff;
  border-color: rgba(0, 113, 227, .42);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, .10);
}

.coverage-switch {
  align-items: center;
  background: #f5f5f7;
  border-radius: 18px;
  color: #1d1d1f !important;
  display: flex !important;
  flex-direction: row;
  gap: 10px !important;
  justify-content: center;
  min-height: 48px;
  padding: 0 14px;
  white-space: nowrap;
}

.coverage-switch input {
  accent-color: var(--blue);
  height: 18px;
  width: 18px;
}

.coverage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 18px;
}

.coverage-actions .secondary-create-button,
.coverage-actions .create-button {
  border-radius: 999px;
  min-height: 46px;
  padding: 0 22px;
}

.coverage-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(116px, 1fr));
  margin-top: 22px;
}

.coverage-stat {
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, .04);
  border-radius: 22px;
  padding: 18px;
}

.coverage-stat strong {
  color: #1d1d1f;
  display: block;
  font-size: 28px;
  font-weight: 850;
  letter-spacing: 0;
}

.coverage-stat span {
  color: #86868b;
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
}

.coverage-stat.ready {
  background: linear-gradient(180deg, #eef8ff, #ffffff);
  border-color: rgba(0, 113, 227, .18);
}

.coverage-stat.ready strong {
  color: var(--blue);
}

.coverage-stat.risk {
  background: linear-gradient(180deg, #fff4ed, #ffffff);
  border-color: rgba(255, 95, 0, .18);
}

.coverage-stat.risk strong {
  color: var(--orange);
}

.coverage-stat.candidate {
  background: linear-gradient(180deg, #fff9e8, #ffffff);
  border-color: rgba(255, 214, 10, .35);
}

.coverage-stat.candidate strong {
  color: #b26a00;
}

.coverage-results {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.coverage-group {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 24px;
  overflow: hidden;
}

.coverage-group > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: 17px;
  font-weight: 800;
  justify-content: space-between;
  list-style: none;
  padding: 18px 20px;
}

.coverage-group > summary::-webkit-details-marker {
  display: none;
}

.coverage-group > summary span {
  background: #f5f5f7;
  border-radius: 999px;
  color: #6e6e73;
  min-width: 36px;
  padding: 5px 10px;
  text-align: center;
}

.coverage-list {
  border-top: 1px solid rgba(0, 0, 0, .06);
}

.coverage-row {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 1fr) minmax(130px, .35fr) minmax(170px, .45fr);
  padding: 16px 20px;
}

.coverage-row + .coverage-row {
  border-top: 1px solid rgba(0, 0, 0, .05);
}

.coverage-row strong {
  color: #1d1d1f;
}

.coverage-title-cell {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr;
  min-width: 0;
}

.coverage-check {
  align-items: center;
  background: #eaf2ff;
  border-radius: 999px;
  color: var(--blue);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 6px;
  padding: 8px 10px;
  white-space: nowrap;
}

.coverage-check input {
  accent-color: var(--blue);
  height: 16px;
  width: 16px;
}

.coverage-status-pill {
  background: #f5f5f7;
  border-radius: 999px;
  color: #6e6e73;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
  white-space: nowrap;
}

.coverage-row.ready {
  background: linear-gradient(90deg, rgba(0, 113, 227, .055), transparent 55%);
}

.coverage-row.price_protected,
.coverage-row.no_history_discount,
.coverage-row.failed {
  background: linear-gradient(90deg, rgba(255, 95, 0, .07), transparent 55%);
}

.coverage-row.candidate_reference {
  background: linear-gradient(90deg, rgba(255, 214, 10, .11), transparent 55%);
}

.coverage-row.already_active,
.coverage-row.scheduled,
.coverage-row.skipped {
  background: #fafafa;
}

.coverage-empty {
  padding: 18px 20px;
}

.coverage-apply-summary {
  align-items: center;
  background: #f5f5f7;
  border-radius: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 20px;
}

.coverage-apply-summary strong {
  color: var(--green);
  font-size: 26px;
}

@media (max-width: 1380px) {
  .coverage-form {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }
}

@media (max-width: 760px) {
  .auto-coverage > summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .auto-coverage > summary small {
    text-align: left;
  }

  .coverage-form,
  .coverage-summary,
  .coverage-row {
    grid-template-columns: 1fr;
  }

  .coverage-title-cell {
    grid-template-columns: 1fr;
  }

  .coverage-actions {
    justify-content: stretch;
  }

  .coverage-actions button {
    flex: 1 1 100%;
  }
}
