/* offers-polish1: visual-only staff Offers layout */
html[data-theme][data-theme] .offers-catalog:has(> .offers-bar) {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
}

html[data-theme][data-theme] .offers-catalog > .offers-bar {
  display: grid !important;
  grid-template-columns: minmax(170px, 1.1fr) minmax(170px, 1.1fr) repeat(3, minmax(132px, .8fr)) auto;
  grid-template-rows: auto auto auto auto;
  align-items: center !important;
  gap: 8px 10px !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
}
html[data-theme][data-theme] .offers-bar > .ob-row {
  display: contents !important;
}
html[data-theme][data-theme] .offers-bar .offers-page-title {
  grid-column: 1 / 4;
  grid-row: 1;
  display: flex !important;
  align-items: baseline !important;
  gap: 10px !important;
  min-width: 0;
  margin: 0 !important;
}
html[data-theme][data-theme] .offers-bar .offers-page-title h1 {
  margin: 0 !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -.02em !important;
}
html[data-theme][data-theme] .offers-bar .offers-count-pill {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--muted, #737b87) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}
html[data-theme][data-theme] .offers-bar .offer-tabs {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 24px !important;
  width: 100%;
  min-width: 0;
  margin: 0 !important;
  border-bottom: 1px solid var(--border, #e4e7eb) !important;
}
html[data-theme][data-theme] .offers-bar .offer-tabs a,
html[data-theme][data-theme] .offers-bar .offer-tabs button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  box-sizing: border-box !important;
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 2px !important;
  margin: 0 0 -1px !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--muted, #737b87) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
html[data-theme][data-theme] .offers-bar .offer-tabs .on {
  color: var(--text, #22262b) !important;
  border-bottom-color: var(--lime, #bde65a) !important;
  font-weight: 650 !important;
}
html[data-theme][data-theme] .offers-bar .ob-right {
  grid-column: 4 / 6;
  grid-row: 1;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  min-width: 0;
  margin: 0 !important;
}
html[data-theme][data-theme] .offers-bar .ob-row1 > button.primary {
  grid-column: 6;
  grid-row: 1;
  justify-self: end;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 14px !important;
  border: 1px solid var(--lime, #bde65a) !important;
  border-radius: 7px !important;
  background: var(--lime, #bde65a) !important;
  color: #1f2329 !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}
html[data-theme][data-theme] .offers-bar .ob-row1 > button.primary:hover {
  filter: brightness(.97);
}

html[data-theme][data-theme] .offers-bar .ob-search {
  grid-column: 1 / 3;
  grid-row: 3;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 38px !important;
  margin: 0 !important;
  border: 1px solid var(--border, #e4e7eb) !important;
  border-radius: 7px !important;
  background: var(--card, #fff) !important;
  overflow: hidden !important;
  box-shadow: none !important;
}
html[data-theme][data-theme] .offers-bar .ob-search .field-search,
html[data-theme][data-theme] .offers-bar .ob-search .field-search-trigger,
html[data-theme][data-theme] .offers-bar .ob-search input {
  height: 36px !important;
  min-height: 36px !important;
}
html[data-theme][data-theme] .offers-bar .ob-search input::placeholder {
  color: transparent !important;
  opacity: 0 !important;
}

html[data-theme][data-theme] .offers-bar .stg-fbar {
  grid-column: 3 / -1;
  grid-row: 3;
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html[data-theme][data-theme] .offers-bar .stg-fcell {
  flex: 1 1 110px !important;
  min-width: 90px !important;
  max-width: 190px;
  gap: 0 !important;
}
html[data-theme][data-theme] .offers-bar .stg-fl {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
html[data-theme][data-theme] .offers-bar .stg-fbar .wm-dd-btn,
html[data-theme][data-theme] .offers-bar .stg-fbar .ufo-dd-btn,
html[data-theme][data-theme] .offers-bar .stg-fbar select,
html[data-theme][data-theme] .offers-bar .stg-fbar input:not([type=checkbox]) {
  height: 38px !important;
  min-height: 38px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border: 1px solid var(--border, #e4e7eb) !important;
  border-radius: 7px !important;
  background-color: var(--card, #fff) !important;
  box-shadow: none !important;
  font-size: 13px !important;
}
html[data-theme][data-theme] .offers-bar .stg-fsecondary {
  display: none !important;
}
html[data-theme][data-theme] .offers-bar .stg-fbar.is-expanded .stg-fsecondary {
  display: flex !important;
}
html[data-theme][data-theme] .offers-bar .stg-fbar.is-expanded {
  flex-wrap: wrap !important;
}
html[data-theme][data-theme] .offers-bar .stg-more-toggle,
html[data-theme][data-theme] .offers-bar .stg-fclear,
html[data-theme][data-theme] .offers-bar .stg-fbtns .wm-find {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 12px !important;
  border-radius: 7px !important;
  font-size: 13px !important;
  font-weight: 550 !important;
  white-space: nowrap;
  box-shadow: none !important;
}
html[data-theme][data-theme] .offers-bar .stg-more-toggle {
  border: 1px solid var(--border, #e4e7eb) !important;
  background: var(--card, #fff) !important;
  color: var(--text, #22262b) !important;
  cursor: pointer;
}
html[data-theme][data-theme] .offers-bar .stg-more-toggle::before {
  content: "";
  width: 15px;
  height: 15px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h16M7 12h10M10 17h4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h16M7 12h10M10 17h4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
html[data-theme][data-theme] .offers-bar .stg-more-toggle[aria-expanded="true"] {
  border-color: #c9ced6 !important;
  background: #f4f5f7 !important;
}
html[data-theme][data-theme] .offers-bar .stg-fbtns {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex: 0 0 auto !important;
}
html[data-theme][data-theme] .offers-bar .stg-fbtns .wm-find {
  padding: 0 16px !important;
  border: 1px solid var(--lime, #bde65a) !important;
  background: var(--lime, #bde65a) !important;
  color: #1f2329 !important;
}
html[data-theme][data-theme] .offers-bar .stg-fclear {
  padding: 0 8px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--muted, #737b87) !important;
}

html[data-theme][data-theme] .offers-bar .offer-badge-filters {
  grid-column: 1 / 5;
  grid-row: 4;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}
html[data-theme][data-theme] .offers-bar .offer-badge-chip {
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: var(--muted, #737b87) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}
html[data-theme][data-theme] .offers-bar .offer-badge-chip:hover {
  background: #f0f2f4 !important;
  color: var(--text, #22262b) !important;
}
/*wd*/html[data-theme="dark"][data-theme] .offers-bar .offer-badge-chip:hover{background-color:#292723!important}
html[data-theme][data-theme] .offers-bar .offer-badge-chip.on {
  background: #eef0f2 !important;
  color: var(--text, #22262b) !important;
}
/*wd*/html[data-theme="dark"][data-theme] .offers-bar .offer-badge-chip.on{background-color:#201F1C!important}
html[data-theme][data-theme] .offers-bar .offer-badge-chip em {
  font-size: 11px !important;
  color: inherit !important;
  opacity: .65;
}

html[data-theme][data-theme] .offers-bar .sale-model-switch {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  height: 36px !important;
  padding: 2px !important;
  border: 1px solid var(--border, #e4e7eb) !important;
  border-radius: 8px !important;
  background: var(--card, #fff) !important;
}
html[data-theme][data-theme] .offers-bar .sale-model-label {
  display: none !important;
}
html[data-theme][data-theme] .offers-bar .sale-model-opt {
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 11px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: var(--muted, #737b87) !important;
  font-size: 12px !important;
  font-weight: 550 !important;
  box-shadow: none !important;
}
html[data-theme][data-theme] .offers-bar .sale-model-opt.on {
  background: var(--lime, #bde65a) !important;
  color: #1f2329 !important;
}
html[data-theme][data-theme] .offers-bar .ob-econ {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: var(--text, #22262b) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}
html[data-theme][data-theme] .offers-bar input.stg-switch {
  width: 34px !important;
  min-width: 34px !important;
  height: 20px !important;
}
html[data-theme][data-theme] .offers-bar input.stg-switch::after {
  width: 16px !important;
  height: 16px !important;
  top: 2px !important;
  left: 2px !important;
}
html[data-theme][data-theme] .offers-bar input.stg-switch:checked {
  background: var(--lime, #bde65a) !important;
}
html[data-theme][data-theme] .offers-bar input.stg-switch:checked::after {
  transform: translateX(14px) !important;
}

html[data-theme][data-theme] .offers-catalog .offer-page-tools.ob-count {
  min-height: 30px;
  margin: 0 0 6px !important;
  color: var(--muted, #737b87);
  font-size: 12px !important;
}
html[data-theme][data-theme] .offers-catalog:has(.offers-table.stg-star-inline) .offer-table-wrap {
  position: relative;
  overflow-x: auto !important;
  overflow-y: visible !important;
  border: 1px solid var(--border, #e4e7eb) !important;
  border-radius: 8px !important;
  background: var(--card, #fff) !important;
  box-shadow: none !important;
}
html[data-theme][data-theme] .offers-table.stg-star-inline {
  min-width: 1120px !important;
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: auto !important;
}
html[data-theme][data-theme] .offers-table.stg-star-inline thead th {
  height: 38px !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--border, #e4e7eb) !important;
  background: #f6f7f8 !important;
  color: var(--muted, #737b87) !important;
  font-size: 11px !important;
  font-weight: 550 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  vertical-align: middle !important;
}
/*wd*/html[data-theme="dark"][data-theme] .offers-table.stg-star-inline thead th{background-color:#191817!important}
html[data-theme][data-theme] .offers-table.stg-star-inline tbody tr {
  height: 62px !important;
  min-height: 62px !important;
}
html[data-theme][data-theme] .offers-table.stg-star-inline tbody td {
  height: 62px !important;
  padding: 6px 10px !important;
  border: 0 !important;
  border-bottom: 1px solid #eceff2 !important;
  background: var(--card, #fff) !important;
  color: var(--text, #22262b) !important;
  font-size: 12.5px !important;
  vertical-align: middle !important;
}
/*wd*/html[data-theme="dark"][data-theme] .offers-table.stg-star-inline tbody td{border-bottom-color:#34312D!important}
html[data-theme][data-theme] .offers-table.stg-star-inline tbody tr:last-child td {
  border-bottom: 0 !important;
}
html[data-theme][data-theme] .offers-table.stg-star-inline tbody tr:hover td {
  background: #f8f9fa !important;
}
/*wd*/html[data-theme="dark"][data-theme] .offers-table.stg-star-inline tbody tr:hover td{background-color:#292723!important}
html[data-theme][data-theme] .offers-table.stg-star-inline .offer-cell {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  min-width: 210px;
}
html[data-theme][data-theme] .offers-table.stg-star-inline .offer-thumb-btn,
html[data-theme][data-theme] .offers-table.stg-star-inline .offer-thumb-btn img,
html[data-theme][data-theme] .offers-table.stg-star-inline .offer-thumb,
html[data-theme][data-theme] .offers-table.stg-star-inline .logo-sq {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 6px !important;
  object-fit: contain !important;
  background: #f2f4f5 !important;
}
html[data-theme][data-theme] .offers-table.stg-star-inline .offer-name-line {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}
html[data-theme][data-theme] .offers-table.stg-star-inline .offer-name {
  color: var(--text, #22262b) !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
}
html[data-theme][data-theme] .offers-table.stg-star-inline .offer-tags {
  margin-top: 2px !important;
  color: var(--muted, #737b87) !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
}
html[data-theme][data-theme] .offers-table.stg-star-inline .star-btn.ob-star {
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  color: #c2a32c !important;
}
html[data-theme][data-theme] .offers-table.stg-star-inline th.num,
html[data-theme][data-theme] .offers-table.stg-star-inline td.num,
html[data-theme][data-theme] .offers-table.stg-star-inline th.econ-th,
html[data-theme][data-theme] .offers-table.stg-star-inline td.econ-cell {
  min-width: 90px !important;
  text-align: right !important;
  font-variant-numeric: tabular-nums;
}
html[data-theme][data-theme] .offers-table.stg-star-inline .payout-amount,
html[data-theme][data-theme] .offers-table.stg-star-inline .econ-val,
html[data-theme][data-theme] .offers-table.stg-star-inline .econ-diff {
  font-size: 13px !important;
  font-weight: 650 !important;
}
html[data-theme][data-theme] .offers-table.stg-star-inline th.offer-actions,
html[data-theme][data-theme] .offers-table.stg-star-inline td.offer-actions {
  position: sticky !important;
  right: 0 !important;
  z-index: 4 !important;
  width: 78px !important;
  min-width: 78px !important;
  padding-left: 6px !important;
  padding-right: 8px !important;
  background: var(--card, #fff) !important;
  box-shadow: -8px 0 10px -10px rgba(31, 35, 41, .35) !important;
  overflow: visible !important;
}
html[data-theme][data-theme] .offers-table.stg-star-inline th.offer-actions {
  z-index: 5 !important;
  background: #f6f7f8 !important;
}
/*wd*/html[data-theme="dark"][data-theme] .offers-table.stg-star-inline th.offer-actions{background-color:#191817!important}
html[data-theme][data-theme] .offers-table.stg-star-inline .row-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 5px !important;
  flex-wrap: nowrap !important;
}
html[data-theme][data-theme] .offers-table.stg-star-inline .get-link.is-icon-only,
html[data-theme][data-theme] .offers-table.stg-star-inline .row-more-btn {
  display: inline-grid !important;
  place-items: center !important;
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: var(--text, #22262b) !important;
  box-shadow: none !important;
}
html[data-theme][data-theme] .offers-table.stg-star-inline .get-link.is-icon-only {
  font-size: 0 !important;
}
html[data-theme][data-theme] .offers-table.stg-star-inline .get-link.is-icon-only::before {
  width: 16px !important;
  height: 16px !important;
}
html[data-theme][data-theme] .offers-table.stg-star-inline .get-link.is-icon-only:hover,
html[data-theme][data-theme] .offers-table.stg-star-inline .row-more-btn:hover {
  background: #eef0f2 !important;
}
/*wd*/html[data-theme="dark"][data-theme] .offers-table.stg-star-inline .get-link.is-icon-only:hover,html[data-theme="dark"][data-theme] .offers-table.stg-star-inline .row-more-btn:hover{background-color:#292723!important}
html[data-theme][data-theme] .offers-table.stg-star-inline .row-more {
  position: relative !important;
  z-index: 8;
}
html[data-theme][data-theme] .offers-table.stg-star-inline .row-more[open] {
  z-index: 30;
}
html[data-theme][data-theme] .offers-table.stg-star-inline .row-more-pop {
  z-index: 60 !important;
  min-width: 180px;
}
html[data-theme][data-theme] .offers-table.stg-star-inline .offer-pill,
html[data-theme][data-theme] .offers-table.stg-star-inline .offer-top-mark {
  height: 20px !important;
  min-height: 20px !important;
  padding: 0 7px !important;
  border: 0 !important;
  border-radius: 5px !important;
  font-size: 10.5px !important;
  font-weight: 550 !important;
  line-height: 20px !important;
  box-shadow: none !important;
}
html[data-theme][data-theme] .offers-table.stg-star-inline .offer-pill.offer-new {
  background: #eaf1d7 !important;
  color: #596b31 !important;
}
html[data-theme][data-theme] .offers-table.stg-star-inline .offer-top-mark {
  background: #eee9f8 !important;
  color: #66528f !important;
}
html[data-theme][data-theme] .offers-table.stg-star-inline .offer-pill.offer-exclusive-pill {
  background: #f8edd4 !important;
  color: #816327 !important;
}

html[data-theme="dark"][data-theme] .offers-catalog > .offers-bar .ob-search,
html[data-theme="dark"][data-theme] .offers-catalog > .offers-bar .stg-more-toggle,
html[data-theme="dark"][data-theme] .offers-catalog > .offers-bar .sale-model-switch,
html[data-theme="dark"][data-theme] .offers-catalog > .offers-bar .stg-fbar .wm-dd-btn,
html[data-theme="dark"][data-theme] .offers-catalog > .offers-bar .stg-fbar .ufo-dd-btn,
html[data-theme="dark"][data-theme] .offers-catalog > .offers-bar .stg-fbar select {
  background: var(--card, #201F1C) !important;
  color: var(--text, #F2EFE9) !important;
  border-color: var(--border, #34312D) !important;
}
html[data-theme="dark"][data-theme] .offers-bar .offers-page-title h1 {
  color: var(--text, #F2EFE9) !important;
}
html[data-theme="dark"][data-theme] .offers-bar .offer-badge-chip:hover,
html[data-theme="dark"][data-theme] .offers-bar .offer-badge-chip.on,
html[data-theme="dark"][data-theme] .offers-bar .stg-more-toggle[aria-expanded="true"] {
  background: #292723 !important;
  color: var(--text, #F2EFE9) !important;
}
html[data-theme="dark"][data-theme] .offers-catalog .offer-table-wrap:has(.stg-star-inline),
html[data-theme="dark"][data-theme] .offers-table.stg-star-inline tbody td,
html[data-theme="dark"][data-theme] .offers-table.stg-star-inline th.offer-actions,
html[data-theme="dark"][data-theme] .offers-table.stg-star-inline td.offer-actions {
  background: var(--card, #201F1C) !important;
  border-color: var(--border, #34312D) !important;
}
html[data-theme="dark"][data-theme] .offers-table.stg-star-inline thead th,
html[data-theme="dark"][data-theme] .offers-table.stg-star-inline th.offer-actions {
  background: #201F1C !important;
  border-color: var(--border, #34312D) !important;
}
html[data-theme="dark"][data-theme] .offers-table.stg-star-inline tbody tr:hover td,
html[data-theme="dark"][data-theme] .offers-table.stg-star-inline tbody tr:hover td.offer-actions {
  background: #201F1C !important;
}
html[data-theme="dark"][data-theme] .offers-table.stg-star-inline .offer-thumb-btn,
html[data-theme="dark"][data-theme] .offers-table.stg-star-inline .offer-thumb,
html[data-theme="dark"][data-theme] .offers-table.stg-star-inline .logo-sq {
  background: #292723 !important;
}

@media (max-width: 1240px) {
  html[data-theme][data-theme] .offers-catalog > .offers-bar {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
  html[data-theme][data-theme] .offers-bar .offers-page-title { grid-column: 1; }
  html[data-theme][data-theme] .offers-bar .ob-right { grid-column: 2; }
  html[data-theme][data-theme] .offers-bar .ob-row1 > button.primary { grid-column: 3; }
  html[data-theme][data-theme] .offers-bar .offer-tabs { grid-column: 1 / -1; }
  html[data-theme][data-theme] .offers-bar .ob-search {
    grid-column: 1 / -1;
    grid-row: 3;
  }
  html[data-theme][data-theme] .offers-bar .stg-fbar {
    grid-column: 1 / -1;
    grid-row: 4;
  }
  html[data-theme][data-theme] .offers-bar .offer-badge-filters {
    grid-column: 1 / -1;
    grid-row: 5;
  }
}

@media (max-width: 720px) {
  html[data-theme][data-theme] .offers-catalog > .offers-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  html[data-theme][data-theme] .offers-bar > .ob-row {
    display: flex !important;
  }
  html[data-theme][data-theme] .offers-bar .ob-row1 {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
  }
  html[data-theme][data-theme] .offers-bar .offers-page-title { grid-column: 1; grid-row: 1; }
  html[data-theme][data-theme] .offers-bar .ob-row1 > button.primary { grid-column: 2; grid-row: 1; }
  html[data-theme][data-theme] .offers-bar .offer-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start !important;
    gap: 22px !important;
    overflow-x: auto;
  }
  html[data-theme][data-theme] .offers-bar .ob-search { grid-column: 1 / -1; grid-row: 3; }
  html[data-theme][data-theme] .offers-bar .ob-row2 {
    align-items: stretch !important;
  }
  html[data-theme][data-theme] .offers-bar .ob-right {
    width: 100% !important;
    justify-content: space-between !important;
  }
  html[data-theme][data-theme] .offers-bar .stg-fbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  html[data-theme][data-theme] .offers-bar .stg-fcell {
    max-width: none;
    min-width: 0 !important;
  }
  html[data-theme][data-theme] .offers-bar .stg-more-toggle,
  html[data-theme][data-theme] .offers-bar .stg-fbtns {
    grid-column: 1 / -1;
  }
  html[data-theme][data-theme] .offers-bar .stg-fbtns .wm-find {
    flex: 1;
  }
  html[data-theme][data-theme] .offers-bar .offer-badge-filters {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    padding-bottom: 2px !important;
  }
  html[data-theme][data-theme] .offers-bar .offer-badge-chip {
    flex: none;
  }
}
/* warm-dark: colours that came from theme-independent rules (generated from the page audit) */
html[data-theme="dark"][data-theme] .sidebar .brand-clock-card{background-color:#201F1C!important;border-color:#34312D!important}
html[data-theme="dark"][data-theme] .sidebar .brand-lockup b{color:#F2EFE9!important}
:where(html[data-theme="dark"]) .sb2 .sb2-user .avatar{background-color:#292723}
html[data-theme="dark"][data-theme] .row-more-pop,html[data-theme="dark"][data-theme] .profile-pop,html[data-theme="dark"][data-theme] .stats-filter-pop > div,html[data-theme="dark"][data-theme] .lang-menu [role="listbox"]{box-shadow:rgba(0,0,0,0.22) 0px 14px 36px!important}
html[data-theme="dark"][data-theme] .offers-bar .ob-row1 > button.primary{color:#171610!important}
html[data-theme="dark"][data-theme] .offers-bar .stg-fbtns .wm-find{color:#171610!important}
html[data-theme="dark"][data-theme] .offers-bar .sale-model-opt.on{color:#171610!important}
:where(html[data-theme="dark"]) .offer-pages-top .offer-pages-count{color:#B2ADA5}
html[data-theme="dark"][data-theme] .offers-table.stg-star-inline th.offer-actions,html[data-theme="dark"][data-theme] .offers-table.stg-star-inline td.offer-actions{box-shadow:rgba(0,0,0,0.35) -8px 0px 10px -10px!important}
:where(html[data-theme="dark"]) .offer-ad-empty{color:#B2ADA5}
:where(html[data-theme="dark"]) .offer-pages button.on{border-color:#C3E865!important}
:where(html[data-theme="dark"]) .offers-catalog .offer-tags,:where(html[data-theme="dark"]) .offers-catalog .offer-ad-link.is-id{color:#B2ADA5!important}
html[data-theme="dark"][data-theme] .offer-table-wrap:not(:has(.offer-check)) .offer-cat{background-color:#201F1C}
html[data-theme="dark"][data-theme] input[type="file"]{background-color:#201F1C!important}
html[data-theme="dark"][data-theme] .stats-views{background-color:#201F1C}
html[data-theme="dark"][data-theme] .stats-views button.on{box-shadow:rgba(0,0,0,0.12) 0px 1px 3px}
html[data-theme="dark"][data-theme] .wm-amount,html[data-theme="dark"][data-theme] .wm-amount:hover,html[data-theme="dark"][data-theme] .wm-amount:focus-within,html[data-theme="dark"][data-theme] .wm-dd-search,html[data-theme="dark"][data-theme] .wm-dd-search:focus-within,html[data-theme="dark"][data-theme] .ufo-dd-search,html[data-theme="dark"][data-theme] .ufo-dd-search:focus-within,html[data-theme="dark"][data-theme] .ufo-lf-search:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]),html[data-theme="dark"][data-theme] .ufo-lf-search:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]):focus,html[data-theme="dark"][data-theme] .mystats-search:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]),html[data-theme="dark"][data-theme] .mystats-search:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]):focus,html[data-theme="dark"][data-theme] .web-picker-search:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]),html[data-theme="dark"][data-theme] .web-picker-search:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]):focus,html[data-theme="dark"][data-theme] .audit-tools > :is(input):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]),html[data-theme="dark"][data-theme] .access-tools > :is(input):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]),html[data-theme="dark"][data-theme] .payouts-page .payout-drawer :is(input):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]),html[data-theme="dark"][data-theme] .payouts-page .payout-drawer :is(input):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]):focus,html[data-theme="dark"][data-theme] #payout-amount:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]),html[data-theme="dark"][data-theme] #payout-amount:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]):focus,html[data-theme="dark"][data-theme] #wm-amount:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]),html[data-theme="dark"][data-theme] #wm-amount:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]):focus{background-color:#201F1C!important}
:where(html[data-theme="dark"]) .payouts-tabs em{background-color:#201F1C;color:#B2ADA5}
:where(html[data-theme="dark"]) .payouts-empty{color:#B2ADA5}
:where(html[data-theme="dark"]) .payout-info{color:#B2ADA5;border-color:#34312D}
html[data-theme="dark"][data-theme] .wm-tab.on{color:#F2EFE9}
html[data-theme="dark"][data-theme] .main table th{background-color:#201F1C!important}
html[data-theme="dark"][data-theme] .links-head .links-search,html[data-theme="dark"][data-theme] input.links-search,html[data-theme="dark"][data-theme] .links-search:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]),html[data-theme="dark"][data-theme] .links-search:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]):hover,html[data-theme="dark"][data-theme] .links-search:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]):focus,html[data-theme="dark"][data-theme] .field-search:has(input),html[data-theme="dark"][data-theme] .offers-bar .ob-search .field-search,html[data-theme="dark"][data-theme] .payout-search,html[data-theme="dark"][data-theme] .wm-page .wm-search,html[data-theme="dark"][data-theme] .wm-panel .wm-field.wm-search,html[data-theme="dark"][data-theme] .feed-search,html[data-theme="dark"][data-theme] .filters > :is(input):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]),html[data-theme="dark"][data-theme] .team-tools > :is(input):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]),html[data-theme="dark"][data-theme] .inbox-page .task-tools > :is(input):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]),html[data-theme="dark"][data-theme] .rot-search:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]),html[data-theme="dark"][data-theme] .api-search:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]){background-color:#201F1C!important}
html[data-theme="dark"][data-theme] .payout-search svg,html[data-theme="dark"][data-theme] .feed-search svg,html[data-theme="dark"][data-theme] .wm-search svg{color:#B2ADA5!important}
html[data-theme="dark"][data-theme] .links-head .links-search,html[data-theme="dark"][data-theme] input.links-search,html[data-theme="dark"][data-theme] .links-search:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]),html[data-theme="dark"][data-theme] .links-search:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]):hover,html[data-theme="dark"][data-theme] .links-search:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]):focus{color:#F2EFE9!important}
:where(html[data-theme="dark"]) .news-row-copy span,:where(html[data-theme="dark"]) .news-kind,:where(html[data-theme="dark"]) .news-date,:where(html[data-theme="dark"]) .news-empty p,:where(html[data-theme="dark"]) .news-card-top span,:where(html[data-theme="dark"]) .news-preview h2{color:#B2ADA5}
:where(html[data-theme="dark"]) .twofa-nudge-copy strong{color:#F2EFE9}
:where(html[data-theme="dark"]) .twofa-nudge-cta{color:#171610;background-color:#C3E865}
:where(html[data-theme="dark"]) .twofa-nudge-later{color:#B2ADA5}
:where(html[data-theme="dark"]) .sb2 .nav-sub a{color:#B2ADA5}
html[data-theme="dark"][data-theme] .wm-panel{box-shadow:rgba(0,0,0,0.04) 0px 1px 2px}
html[data-theme="dark"][data-theme] .wm-find{color:#F2EFE9!important}

/* ===== warm-dark: one token block for the dark theme (last in the cascade) ===== */
html[data-theme="dark"][data-theme]{
  --bg:#0B0A09;--sidebar-bg:#0E0D0C;--rail:#0E0D0C;--card:#191817;
  --raised:#201F1C;--field-bg:#201F1C;--input-bg:#201F1C;--hover:#292723;
  --border:#34312D;--field-line:#34312D;--soft-line:#34312D;
  --text:#F2EFE9;--muted:#B2ADA5;--muted-2:#B2ADA5;--nav:#B2ADA5;
  --lime:#C3E865;--lime-2:#C3E865;--highlight:#C3E865;--accent:#C3E865;--focus:#C3E865;
  --lime-ink:#171610;--highlight-text:#171610;--on-accent:#171610;
  --btn-lime-1:#C3E865;--btn-lime-2:#C3E865;--btn-ink:#171610;
  color-scheme:dark;
}

/* primary buttons: flat lime, dark text, no glow */
html[data-theme="dark"][data-theme] :is(button,a,label).primary:not(.danger):not(.pay-reject),
html[data-theme="dark"][data-theme] .wm-btn.primary,
html[data-theme="dark"][data-theme] .news-btn.primary,
html[data-theme="dark"][data-theme] .fp-apply,
html[data-theme="dark"][data-theme] .offer-savebar .primary,
html[data-theme="dark"][data-theme] .news-cta{background:var(--lime)!important;color:var(--lime-ink)!important;box-shadow:none!important}
html[data-theme="dark"][data-theme] :is(button,a,label).primary:not(.danger):not(.pay-reject):hover,
html[data-theme="dark"][data-theme] .fp-apply:hover,
html[data-theme="dark"][data-theme] .news-cta:hover{background:#CDED7E!important;box-shadow:none!important;filter:none}
html[data-theme="dark"][data-theme] :is(button,a,label).primary:not(.danger):not(.pay-reject):disabled,
html[data-theme="dark"][data-theme] .fp-apply:disabled{background:var(--hover)!important;color:#8C877F!important;box-shadow:none!important}

/* sidebar: graphite in both themes, warm only in the dark theme */
html[data-theme="dark"][data-theme] aside.sidebar.sb2{color:#B2ADA5}
:where(html[data-theme="dark"]) .sb2 .sb2-collapse{color:#8C877F}
:where(html[data-theme="dark"]) .sb2 .sb2-collapse:hover{color:#F2EFE9}
:where(html[data-theme="dark"]) .sb2 .sb2-scroll{scrollbar-color:#34312D transparent}
:where(html[data-theme="dark"]) .sb2 .sb2-scroll::-webkit-scrollbar-thumb{background:#34312D}
:where(html[data-theme="dark"]) .sb2 .sb2-label{color:#8C877F}
:where(html[data-theme="dark"]) .sb2 .sb2-link{color:#B2ADA5}
:where(html[data-theme="dark"]) .sb2 .sb2-link:hover{color:#F2EFE9}
:where(html[data-theme="dark"]) .sb2 .sb2-link.active{background:#201F1C;color:#F2EFE9}
:where(html[data-theme="dark"]) .sb2 .sb2-badge{background:#292723!important;color:#F2EFE9!important}
:where(html[data-theme="dark"]) .sb2 .sb2-link.active .sb2-badge{background:#C3E865!important;color:#171610!important}
:where(html[data-theme="dark"]) .sb2 .sb2-parent.has-active{color:#F2EFE9}
:where(html[data-theme="dark"]) .sb2 .nav-sub a:hover{color:#F2EFE9}
:where(html[data-theme="dark"]) .sb2 .nav-sub a.active{background:#201F1C;color:#F2EFE9}
:where(html[data-theme="dark"]) .sb2 .sb2-user-text b{color:#F2EFE9}
:where(html[data-theme="dark"]) .sb2 .sb2-user-text small{color:#8C877F}
:where(html[data-theme="dark"]) .sb2 .sb2-menu>summary{color:#8C877F}
:where(html[data-theme="dark"]) .sb2 .sb2-menu>summary:hover,
:where(html[data-theme="dark"]) .sb2 .sb2-menu[open]>summary{color:#F2EFE9}
:where(html[data-theme="dark"]) .sb2 .sb2-tip{background:#201F1C;color:#F2EFE9;border-color:#34312D}
html[data-theme="dark"][data-theme] .sidebar .brand-lockup small,
html[data-theme="dark"][data-theme] .sidebar .tz-now-zone{color:#8C877F!important}
html[data-theme="dark"][data-theme] .sidebar .tz-now-clock,
html[data-theme="dark"][data-theme] .sidebar .tz-now-clock b{color:#B2ADA5!important}
html[data-theme="dark"][data-theme] .sidebar .profile-menu-btn{color:#8C877F!important}
html[data-theme="dark"][data-theme] .sidebar .rail-btn{border-color:#34312D!important;color:#B2ADA5!important}
html[data-theme="dark"][data-theme] .sidebar .rail-btn:hover{background:#201F1C!important;color:#F2EFE9!important}
html[data-theme="dark"][data-theme] .sidebar .sidebar-search{background:#201F1C!important;border-color:#34312D!important;color:#8C877F!important}
/* webmaster sidebar (its rules are injected later and are !important) */
html[data-theme="dark"][data-ufo-wm="1"] aside.sb2 .brand-lockup b{color:#F2EFE9!important}
html[data-theme="dark"][data-ufo-wm="1"] aside.sb2 .brand-lockup small{color:#8C877F!important}
html[data-theme="dark"][data-ufo-wm="1"] aside.sb2 .sb2-link.active,
html[data-theme="dark"][data-ufo-wm="1"] aside.sb2 .sb2-link.on,
html[data-theme="dark"][data-ufo-wm="1"] aside.sb2 .nav-sub a.active{background:#201F1C!important;color:#F2EFE9!important}
html[data-theme="dark"][data-ufo-wm="1"] aside.sb2 .sb2-link.active::before,
html[data-theme="dark"][data-ufo-wm="1"] aside.sb2 .sb2-link.on::before{background:#C3E865!important}

/* overlay controls whose base colours are theme-independent */
html[data-theme="dark"] .ufo-dd-caret,
html[data-theme="dark"] #ufo-as-root .as-dd-caret{color:#B2ADA5}
html[data-theme="dark"] #ufo-as-root .as-group button.on{border-bottom-color:#C3E865}
html[data-theme="dark"] #ufo-as-root .pill.ok{background:var(--status-approved-bg);color:var(--status-approved-text)}
html[data-theme="dark"] #ufo-as-root .pill.wait{background:var(--status-pending-bg);color:var(--status-pending-text)}
html[data-theme="dark"] #ufo-as-root .pill.bad{background:var(--status-rejected-bg);color:var(--status-rejected-text)}
html[data-theme="dark"] .ufo-lc-pg{color:#B2ADA5}
html[data-theme="dark"][data-theme][data-theme] .stg-leads .payouts-tabs button.on{border-bottom-color:#C3E865!important}
html[data-theme="dark"][data-theme][data-theme] .stg-leads .payouts-tools .sale-model-opt{color:#B2ADA5!important}
html[data-theme="dark"][data-theme][data-theme] .stg-leads .payouts-tools .sale-model-opt.on{background:#C3E865!important;color:#171610!important}
html[data-theme="dark"] .ufo-lf-apply{background:#C3E865;color:#171610}
html[data-theme="dark"] .ufo-lf-apply:hover{background:#CDED7E}
html[data-theme="dark"] .ufo-lf-searchbar svg,
html[data-theme="dark"] .ufo-lf-chev,
html[data-theme="dark"] .ufo-lf-ico,
html[data-theme="dark"] .ufo-lf-bar .ufo-lf-val.is-empty{color:#B2ADA5}
/* webmaster postbacks page */
html[data-theme="dark"] #ufo-app-pb .lab,
html[data-theme="dark"] #ufo-app-pb .hint{color:#B2ADA5}
html[data-theme="dark"] #ufo-app-pb .tpl button,
html[data-theme="dark"] #ufo-app-pb .macros button,
html[data-theme="dark"] #ufo-app-pb .ghost,
html[data-theme="dark"] #ufo-app-pb select,
html[data-theme="dark"] #ufo-app-pb textarea{background:#201F1C;border-color:#34312D;color:#F2EFE9}
html[data-theme="dark"] #ufo-app-pb .tpl button.on{background:#C3E865;border-color:#C3E865;color:#171610}
html[data-theme="dark"] #ufo-app-pb .save{background:#C3E865;color:#171610}
html[data-theme="dark"] #ufo-app-pb .item{border-color:#34312D}
html[data-theme="dark"] #ufo-app-pb .ok{color:var(--status-approved-text)}
html[data-theme="dark"] #ufo-app-pb .err{color:var(--status-rejected-text)}

/* TOP mark keeps its violet meaning, in dark tones */
html[data-theme="dark"][data-theme] .offers-table.stg-star-inline .offer-top-mark,
html[data-theme="dark"][data-theme] .offer-table-wrap:not(:has(.offer-check)) td.offer-status .offer-top-mark{background:#2A2438!important;color:#D3C4EE!important}
/* dialogs and the 2FA reminder */
html[data-theme="dark"][data-theme] .modal-overlay{background:rgba(0,0,0,.6)!important}
html[data-theme="dark"][data-theme] .modal-overlay .modal,
html[data-theme="dark"][data-theme] article.card.modal{box-shadow:0 24px 64px rgba(0,0,0,.5)!important}
html[data-theme="dark"][data-theme] .twofa-nudge-inner{box-shadow:0 18px 40px rgba(0,0,0,.55),0 0 0 1px #34312D}

/* top bar shares the sidebar tone */
html[data-theme="dark"][data-theme] .topbar{background:var(--sidebar-bg)!important}
/* lime without gradient or glow */
html[data-theme="dark"][data-theme] table :is(button,a).primary:not(.danger){box-shadow:none!important}
html[data-theme="dark"][data-theme] .offer-table-wrap:not(:has(.offer-check)) .offer-actions .get-link{background:var(--lime)!important;box-shadow:none}
html[data-theme="dark"][data-theme] .offer-pages-list button.on{background:var(--lime)!important}
html[data-theme="dark"][data-theme] .sidebar .nav a.active{background:#201F1C!important;color:#F2EFE9!important;box-shadow:none}
/* payouts: flat balance card */
html[data-theme="dark"][data-theme] .wm-balance{background:var(--card)}
:where(html[data-theme="dark"]) .payout-foot{color:#B2ADA5}
/* small leftovers */
:where(html[data-theme="dark"]) .offers-catalog .star-btn{color:#5A564F!important}
html[data-theme="dark"][data-theme][data-theme] .stg-leads .ufo-lc-pager{color:#B2ADA5!important}
html[data-theme="dark"] .ufo-lf-bar > .ufo-lf-cell > .ufo-lf-box .ufo-lf-plus.ufo-lf-calico{color:#B2ADA5}
html[data-theme="dark"] .ufo-lf-plus{background:#C3E865;color:#171610}

:where(html[data-theme="dark"]) :is(.links-table,.links-head,.crm-col-pin) .star-btn{color:#5A564F}

/* offer placeholder tile: neutral instead of olive / acid lime */
html[data-theme="dark"][data-theme][data-theme]{--logo-bg:#201F1C;--logo-text:#B2ADA5}
/* API page (ufo-app) */
html[data-theme="dark"] #ufo-app-api .btn{color:#171610}
html[data-theme="dark"] #ufo-app-api tr.hot td{background:#292723}
/* favourite star that is ink-coloured in the light theme */
:where(html[data-theme="dark"]) .wm-page .star-btn.on,:where(html[data-theme="dark"]) .wm-offer-star.on{color:#F2EFE9}

/* leads filters: the text input sits inside its own bordered box (as in the light theme: no second border) */
html[data-theme="dark"] .ufo-lf-box input:not(#_){border-color:transparent!important}

/* lead drawer + columns popover (leads-cols.js) */
html[data-theme="dark"][data-theme] .ufo-lc-pop .ufo-lc-tabs button.on{color:#171610}
html[data-theme="dark"] .ufo-ld-bg{background:rgba(0,0,0,.5)}
html[data-theme="dark"] .ufo-ld [style*="rgb(139, 147, 160)"]{color:#B2ADA5!important}
html[data-theme="dark"] .ufo-ld [style*="rgb(197, 202, 211)"]{color:#8C877F!important}
html[data-theme="dark"] #ufo-as-root [style*="#8b93a0"]{color:#B2ADA5!important}

/* selected pill: dark ink on lime */
html[data-theme="dark"][data-theme] :is(.dash-pills,.pills) button.on{color:#171610!important}
/* online dot: the dark fill of the light theme is invisible on dark cards */
html[data-theme="dark"][data-theme] .presence-dot.on,
html[data-theme="dark"][data-theme] .presence-inline .presence-dot.on,
html[data-theme="dark"][data-theme] .presence-badge.online .presence-dot{background:#C3E865!important;box-shadow:0 0 0 3px rgba(195,232,101,.22)!important}

/* ============ webmaster catalog cards + dashboard Top offers (cat1) ============ */
/* one card component for both themes; the themes differ only by these tokens */
html[data-theme][data-theme]{
  --oc-page:#F5F6F8;--oc-card:#FFFFFF;--oc-pad:#EDF1E7;--oc-line:#E2E5DF;--oc-text:#252923;--oc-muted:#72786F;
  --oc-chip:#F0F2ED;--oc-btn:#FFFFFF;--oc-btn-line:#D8DCD3;--oc-accent:#C3E865;--oc-accent-ink:#171610;--oc-ico:#5F8A14;
  --oc-new-bg:#E4EFC0;--oc-new-ink:#44561A;--oc-top-bg:#E8E1F6;--oc-top-ink:#553A8E;--oc-ex-bg:#F3D07A;--oc-ex-ink:#4A3208;
  --oc-ask-bg:#ECEEE9;--oc-ask-ink:#5A6057;--oc-star:#9AA095;--oc-link:#4B6B12}
html[data-theme="dark"][data-theme]{
  --oc-page:#0B0A09;--oc-card:#191817;--oc-pad:#292824;--oc-line:#34312D;--oc-text:#F2EFE9;--oc-muted:#B2ADA5;
  --oc-chip:#262521;--oc-btn:#1F1E1C;--oc-btn-line:#3D3A35;--oc-ico:#C3E865;
  --oc-new-bg:#333D1D;--oc-new-ink:#D6EE93;--oc-top-bg:#2F2842;--oc-top-ink:#D3C4EE;--oc-ex-bg:#F0C766;--oc-ex-ink:#3A2805;
  --oc-ask-bg:#2B2A26;--oc-ask-ink:#B2ADA5;--oc-star:#8C877F;--oc-link:#C3E865}

/* page */
html[data-theme][data-theme]:has(.offers-catalog.wm-catalog) body{background-color:var(--oc-page)}
html[data-theme][data-theme] .offers-catalog.wm-catalog .wm-filters{margin:0}
html[data-theme][data-theme] .offers-catalog.wm-catalog .wm-filters .wm-title h1{color:var(--oc-text)}
html[data-theme][data-theme] .offers-catalog.wm-catalog .wm-panel{background:var(--oc-card);border:1px solid var(--oc-line);box-shadow:none}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-page-tools.ob-count{margin:4px 0!important;padding:0!important;min-height:0!important;height:auto!important}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-page-tools.ob-count .offer-pages-top{margin:0!important;padding:0!important;min-height:0!important}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-pages-top .offer-pages-count{font-size:12px;line-height:16px;color:var(--oc-muted)}

/* card */
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) table{min-width:0!important}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) tbody{gap:16px}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) tbody tr{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"img img" "name name" "cat cat" "geo pay" "act act";grid-template-rows:auto minmax(0,1fr) auto auto auto;gap:10px 12px;padding:12px!important;border-radius:14px!important;background:var(--oc-card)!important;border:1px solid var(--oc-line)!important;box-shadow:none!important;transform:none!important;transition:border-color .15s ease;align-items:start;align-content:stretch;color:var(--oc-text)}
@supports (grid-template-rows:subgrid){
  /* each card spans five shared row tracks, so name/category/GEO+payout/actions line up across the row */
  html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) tbody tr{grid-row:span 5;grid-template-rows:subgrid}
}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) tbody tr::before{content:none!important;display:none!important}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) tbody tr{margin:0!important}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) tbody tr td,
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) tbody tr:hover td{background:transparent!important;box-shadow:none!important}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) tbody tr:hover,
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) tbody tr:focus-within{border-color:var(--oc-accent)!important;box-shadow:none!important;transform:none!important}

/* photo: one pad for the whole area, product centred and never cropped */
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-cell>.offer-thumb-btn,
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-cell>.offer-thumb,
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-cell>.logo-sq{grid-area:img;box-sizing:border-box;width:100%!important;height:200px!important;padding:30px 16px 14px!important;border:0!important;border-radius:10px!important;background:var(--oc-pad)!important;background-image:none!important;box-shadow:none!important;overflow:hidden;cursor:pointer}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-cell>.offer-thumb-btn{display:flex!important;align-items:center;justify-content:center}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-cell>.offer-thumb-btn img,
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-cell>.offer-thumb-btn .offer-thumb{display:block;width:100%!important;height:100%!important;max-width:100%;object-fit:contain!important;object-position:center!important;border-radius:0!important;background:none!important;background-image:none!important;padding:0!important}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-cell>.offer-thumb{object-fit:contain!important;object-position:center!important}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-cell>.logo-sq{display:grid!important;place-items:center;padding:0!important;font-size:34px!important;font-weight:600;color:var(--oc-muted)!important;cursor:default}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-cell>.offer-thumb-btn:focus-visible{outline:2px solid var(--oc-accent);outline-offset:2px}

/* name, id, model */
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-cell>div:not(.logo-sq){grid-area:name;min-width:0;align-self:start}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-name{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden!important;text-overflow:ellipsis;white-space:normal!important;font-size:15px!important;font-weight:700!important;line-height:1.3!important;letter-spacing:-.005em;color:var(--oc-text)!important;text-decoration:none}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-name:focus-visible{outline:2px solid var(--oc-accent);outline-offset:2px;border-radius:4px}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-tags{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;margin-top:4px;font-size:12px!important;line-height:18px!important;color:var(--oc-muted)!important}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-tags .sale-model-tag{margin:0!important;padding:1px 8px!important;border:0!important;border-radius:999px!important;background:var(--oc-chip)!important;color:var(--oc-text)!important;font-size:10.5px!important;font-weight:700!important;line-height:16px!important;letter-spacing:.03em}

/* category, GEO: plain chips and text, no separate boxes */
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) tbody td:nth-child(3){grid-area:cat;align-self:end;line-height:0}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-cat{display:inline-block;max-width:100%;box-sizing:border-box;margin:0;padding:3px 10px!important;border:0!important;border-radius:999px!important;background:var(--oc-chip)!important;color:var(--oc-muted)!important;font-size:12px!important;line-height:16px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) tbody td:nth-child(4){grid-area:geo;align-self:end;background:transparent!important}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-target,
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .geo-codes,
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .geo-code{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .geo-code b{font-size:13px;font-weight:600;color:var(--oc-text)}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .geo-stack-more,
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .geo-ask{font-size:12px;color:var(--oc-muted)!important;background:transparent!important;border:0!important;padding:0!important}

/* payout */
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) tbody td.num{grid-area:pay;align-self:end;text-align:right!important;background:transparent!important;padding:0!important;border-radius:0!important;line-height:1.1}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) td.num::before{display:block;margin:0 0 2px;font-size:10px!important;font-weight:600!important;letter-spacing:.06em!important;line-height:12px;text-transform:uppercase;text-align:right;color:var(--oc-muted)!important}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) td.num .payout-amount{display:block;font-size:24px!important;font-weight:600!important;line-height:28px!important;letter-spacing:-.01em;font-variant-numeric:tabular-nums;color:var(--oc-text)!important}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) td.num .ask-payout-btn{display:inline-flex;align-items:center;height:28px;padding:0 10px!important;border:1px solid var(--oc-btn-line)!important;border-radius:8px!important;background:var(--oc-btn)!important;color:var(--oc-text)!important;font-size:12px!important;font-weight:600!important;line-height:1!important;box-shadow:none!important;cursor:pointer}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) td.num .ask-payout-btn:not(:disabled):hover,
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) td.num .ask-payout-btn:focus-visible{background:var(--oc-accent)!important;border-color:var(--oc-accent)!important;color:var(--oc-accent-ink)!important;outline:0}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) td.num .ask-payout-btn:disabled,
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) td.num .ask-payout-btn.is-sent{color:var(--oc-muted)!important;cursor:default}

/* badges and favourite: over the pad corners, clear of the product */
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) td.offer-status{position:absolute;top:20px!important;left:20px!important;z-index:3;max-width:calc(100% - 84px);pointer-events:none}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) td.offer-status .offer-badges{display:flex;flex-wrap:wrap;gap:4px}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) td.offer-status .offer-pill,
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) td.offer-status .offer-top-mark{display:inline-flex!important;align-items:center;gap:4px;height:22px!important;box-sizing:border-box;padding:0 9px!important;border:0!important;border-radius:999px!important;box-shadow:none!important;font-size:11.5px!important;font-weight:600!important;line-height:1!important;letter-spacing:0!important;text-transform:none!important;white-space:nowrap}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) td.offer-status .offer-pill.offer-new{background:var(--oc-new-bg)!important;color:var(--oc-new-ink)!important}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) td.offer-status .offer-top-mark{background:var(--oc-top-bg)!important;color:var(--oc-top-ink)!important}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) td.offer-status .offer-top-mark i{display:none!important}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) td.offer-status .offer-pill.offer-exclusive-pill{background:var(--oc-ex-bg)!important;color:var(--oc-ex-ink)!important}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) td.offer-status .offer-pill.offer-ask,
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) td.offer-status .offer-pill.offer-closed{background:var(--oc-ask-bg)!important;color:var(--oc-ask-ink)!important}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) td.offer-star{position:absolute;top:16px!important;right:16px!important;z-index:3;width:32px!important;height:32px!important;background:transparent!important}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) td.offer-star .star-btn{display:grid!important;place-items:center;width:32px!important;height:32px!important;padding:0;border:0!important;border-radius:8px!important;background:transparent!important;box-shadow:none!important;color:var(--oc-star);cursor:pointer;transition:color .15s ease,background-color .15s ease}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) td.offer-star .star-btn:hover{color:var(--oc-text)}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) td.offer-star .star-btn:focus-visible{outline:2px solid var(--oc-accent);outline-offset:-2px}

/* actions */
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) td.offer-actions{grid-area:act;margin-top:2px!important}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-actions .row-actions{display:flex!important;flex-direction:row-reverse;align-items:center;justify-content:flex-start!important;gap:8px!important;width:100%!important}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-actions .get-link,
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-actions .get-link-wait{flex:1 1 auto;min-width:0;display:inline-flex!important;align-items:center;justify-content:center;gap:7px;height:36px!important;min-height:36px!important;box-sizing:border-box;padding:0 12px!important;border:1px solid var(--oc-btn-line)!important;border-radius:9px!important;background:var(--oc-btn)!important;background-image:none!important;box-shadow:none!important;filter:none!important;color:var(--oc-text)!important;font-size:13px!important;font-weight:600!important;line-height:1!important;white-space:nowrap;transition:background-color .15s ease,border-color .15s ease,color .15s ease}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-actions .get-link{cursor:pointer}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-actions .get-link::before{flex:none;background-color:var(--oc-ico)!important;transition:background-color .15s ease}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) tbody tr:hover .offer-actions .get-link:not(:disabled),
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-actions .get-link:not(:disabled):hover,
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-actions .get-link:focus-visible{background:var(--oc-accent)!important;background-image:none!important;border-color:var(--oc-accent)!important;color:var(--oc-accent-ink)!important;outline:0}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) tbody tr:hover .offer-actions .get-link:not(:disabled)::before,
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-actions .get-link:not(:disabled):hover::before,
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-actions .get-link:focus-visible::before{background-color:var(--oc-accent-ink)!important}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-actions .get-link:focus-visible{box-shadow:0 0 0 2px var(--oc-card),0 0 0 4px var(--oc-accent)!important}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-actions .get-link:disabled{opacity:.6;cursor:default}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-actions .get-link-wait{color:var(--oc-muted)!important;cursor:default}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-actions .row-actions .icon-btn{flex:0 0 36px;display:inline-flex!important;align-items:center;justify-content:center;width:36px!important;height:36px!important;box-sizing:border-box;padding:0!important;border:1px solid var(--oc-btn-line)!important;border-radius:9px!important;background:var(--oc-btn)!important;box-shadow:none!important;color:var(--oc-text)!important;transition:border-color .15s ease,background-color .15s ease}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-actions .row-actions .icon-btn:hover{border-color:var(--oc-muted)!important}
html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-actions .row-actions .icon-btn:focus-visible{outline:2px solid var(--oc-accent);outline-offset:2px}

@media (max-width:640px){
  html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-cell>.offer-thumb-btn,
  html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-cell>.offer-thumb,
  html[data-theme][data-theme] .offers-catalog.wm-catalog .offer-table-wrap:not(:has(.offer-check)) .offer-cell>.logo-sq{height:210px!important}
}

/* ---- dashboard: balance + Top offers column (webmaster) ---- */
html[data-theme][data-theme] .dash.mystats .mystats-side{display:flex;flex-direction:column;gap:12px;min-width:0;min-height:0}
html[data-theme][data-theme] .dash.mystats .mystats-side>.dash-panel{min-height:0!important;height:auto!important;max-height:none!important;margin:0!important;border-radius:8px!important;box-shadow:none!important;border:1px solid var(--border)}
html[data-theme][data-theme] .dash.mystats .mystats-side>.dash-balance{flex:0 0 auto;padding:12px 14px!important}
html[data-theme][data-theme] .dash.mystats .mystats-side>.dash-balance .dash-balance-sum{margin:2px 0 6px;font-size:22px}
html[data-theme][data-theme] .dash.mystats .mystats-side>.dash-balance .dash-balance-rows{gap:4px;margin-bottom:8px}
html[data-theme][data-theme] .dash.mystats .mystats-side>.dash-balance .dash-balance-cta{margin-top:0;min-height:30px}
html[data-theme][data-theme] .dash.mystats .mystats-side>.dash-top{flex:1 1 auto;display:flex;flex-direction:column;padding:12px 14px 10px!important}
@media (min-width:1200px){
  /* the chart follows the height of the right column instead of stretching the row */
  html[data-theme][data-theme] .dash.mystats .mystats-split:has(>.mystats-side)>.dash-panel{contain:size;height:auto!important;min-height:272px!important;max-height:none!important}
}
html[data-theme][data-theme] .dash-top .dash-top-list{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column}
html[data-theme][data-theme] .dash-top .dash-top-list li{margin:0;padding:0}
html[data-theme][data-theme] .dash-top .dash-top-list li+li{border-top:1px solid var(--border)}
html[data-theme][data-theme] .dash-top .dash-top-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto 16px;align-items:center;gap:10px;margin:0 -6px;padding:6px;border-radius:8px;color:var(--text);text-decoration:none;transition:background-color .15s ease}
html[data-theme][data-theme] .dash-top .dash-top-row:hover{background:var(--field-bg)}
html[data-theme][data-theme] .dash-top .dash-top-row:focus-visible{outline:2px solid var(--oc-accent);outline-offset:-2px}
html[data-theme][data-theme] .dash-top .dash-top-thumb{display:grid;place-items:center;width:36px;height:36px;box-sizing:border-box;padding:3px;border-radius:8px;background:var(--oc-pad);overflow:hidden;font-size:12px;font-weight:600;color:var(--muted)}
html[data-theme][data-theme] .dash-top .dash-top-thumb img{display:block;width:100%;height:100%;object-fit:contain}
html[data-theme][data-theme] .dash-top .dash-top-main{display:flex;flex-direction:column;min-width:0;gap:1px}
html[data-theme][data-theme] .dash-top .dash-top-name{font-size:13.5px;font-weight:600;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme][data-theme] .dash-top .dash-top-meta{font-size:12px;line-height:16px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme][data-theme] .dash-top .dash-top-pay{font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
html[data-theme][data-theme] .dash-top .dash-top-pay.is-ask{font-size:12px;font-weight:400;color:var(--muted)}
html[data-theme][data-theme] .dash-top .dash-top-go{color:var(--muted)}
html[data-theme][data-theme] .dash-top .dash-top-empty{margin:10px 0 4px;font-size:13px;color:var(--muted)}
html[data-theme][data-theme] .dash-top .dash-top-all{align-self:flex-start;margin-top:auto;padding:8px 0 0;font-size:12.5px;font-weight:600;color:var(--oc-link);text-decoration:none;border-radius:4px}
html[data-theme][data-theme] .dash-top .dash-top-all:hover{text-decoration:underline}
html[data-theme][data-theme] .dash-top .dash-top-all:focus-visible{outline:2px solid var(--oc-accent);outline-offset:3px}

/* ===== sidebar v3 (sb3): brand mark, light panel, one geometry for both themes and every cabinet =====
   Colours come from the --sb-* tokens below. Geometry uses the low "aside.sb2" prefix on purpose,
   so the existing collapsed rules (html[data-sb="collapsed"] .sb2 ...) keep winning. */
html[data-theme][data-theme] aside.sidebar.sb2{
  --sb-bg:#FFFFFF;--sb-text:#252923;--sb-muted:#626B60;--sb-icon:#626B60;
  --sb-active:#EDF1E7;--sb-hover:#F5F7F1;--sb-line:#E5E8E0;--sb-edge:#E5E8E0;
  --sb-accent:#C3E865;--sb-thumb:#D2D7CA;--sb-chip:#E4E9DB;--sb-focus:#6B8A17;
  background:var(--sb-bg)!important;color:var(--sb-text);box-shadow:inset -1px 0 0 var(--sb-edge)!important}
html[data-theme="dark"][data-theme] aside.sidebar.sb2{
  --sb-bg:#0E0D0C;--sb-text:#F2EFE9;--sb-muted:#B2ADA5;--sb-icon:#CFCBC4;
  --sb-active:#24231F;--sb-hover:#191816;--sb-line:#2B2926;--sb-edge:transparent;
  --sb-thumb:#34312D;--sb-chip:#2F2D28;--sb-focus:#C3E865}

/* header: mark + name + role caption + collapse button, no frame around the brand */
aside.sb2 .sb2-head{gap:8px;min-height:60px;padding:14px 10px 10px 14px;box-sizing:border-box}
html[data-theme][data-theme] aside.sidebar.sb2 .sb2-head .brand-clock-card{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;margin:0!important;color:inherit!important}
html[data-theme][data-theme] aside.sidebar.sb2 .brand-lockup{align-items:center!important;gap:10px!important;margin:0!important;min-width:0}
html[data-theme][data-theme] aside.sidebar.sb2 .brand-lockup .brand-mark{flex:none;display:block;width:36px;height:32px;object-fit:contain;border-radius:0;box-shadow:none;background:transparent;user-select:none}
html[data-theme][data-theme] aside.sidebar.sb2 .brand-lockup .brand-logo{flex:none;width:34px!important;height:34px!important;border-radius:9px!important}
aside.sb2 .brand-lockup>div{display:flex;flex-direction:column;gap:2px;min-width:0}
html[data-theme][data-theme] aside.sidebar.sb2 .brand-lockup b{display:block;max-width:none!important;margin:0;color:var(--sb-text)!important;font-size:15px!important;font-weight:600!important;line-height:1.2!important;letter-spacing:-.01em!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme][data-theme] aside.sidebar.sb2 .brand-lockup small{display:block!important;max-width:100%!important;margin:0!important;padding:0!important;background:transparent!important;color:var(--sb-muted)!important;font-size:11px!important;font-weight:600!important;line-height:1.2!important;letter-spacing:.06em!important;text-transform:uppercase!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-ufo-wm="1"][data-theme] aside.sidebar.sb2 .brand-lockup small{font-size:11.5px!important;font-weight:500!important;letter-spacing:0!important;text-transform:none!important}
html[data-theme] aside.sb2 .sb2-collapse{color:var(--sb-muted)}
html[data-theme] aside.sb2 .sb2-collapse:hover{background:var(--sb-hover);color:var(--sb-text)}

/* navigation */
aside.sb2 .sb2-scroll{padding:0 10px 10px;scrollbar-color:var(--sb-thumb) transparent}
aside.sb2 .sb2-scroll::-webkit-scrollbar-thumb{background:var(--sb-thumb)}
aside.sb2 .sb2-group{margin-top:10px}
aside.sb2 .sb2-group:first-child{margin-top:2px}
aside.sb2 .sb2-label{padding:6px 10px 5px;color:var(--sb-muted);font-size:11px;font-weight:600;letter-spacing:.08em;line-height:16px}
aside.sb2 .sb2-nav{gap:2px}
aside.sb2 .sb2-link{height:38px;padding:0 10px;gap:12px;border-radius:8px;font-size:14px;font-weight:500}
aside.sb2 .sb2-link .sb2-ico{flex:none;width:20px;height:20px;opacity:1}
aside.sb2 .sb2-sub-in{gap:2px}
aside.sb2 .sb2-sub-in .sb2-link.is-nested{height:36px;min-height:36px;padding:0 10px 0 14px;gap:10px;font-size:13.5px}
aside.sb2 .sb2-sub-in .sb2-link.is-nested .sb2-ico{position:static;width:18px;height:18px;margin:0}
html[data-theme] aside.sb2 .sb2-link{color:var(--sb-text)}
html[data-theme][data-theme] aside.sidebar.sb2 .sb2-link .sb2-ico{color:var(--sb-icon)!important}
html[data-theme] aside.sb2 .sb2-link:hover{background:var(--sb-hover);color:var(--sb-text)}
html[data-theme][data-theme] aside.sidebar.sb2 .sb2-link:hover .sb2-ico,html[data-theme][data-theme] aside.sidebar.sb2 .sb2-parent.has-active .sb2-ico{color:var(--sb-text)!important}
html[data-theme] aside.sb2 .sb2-parent.has-active{color:var(--sb-text)}
html[data-theme][data-theme] aside.sidebar.sb2 .sb2-link.active,html[data-theme][data-theme] aside.sidebar.sb2 .sb2-link.on{background:var(--sb-active)!important;color:var(--sb-text)!important;font-weight:500!important;box-shadow:none!important}
html[data-theme][data-theme] aside.sidebar.sb2 .sb2-link.active .sb2-ico,html[data-theme][data-theme] aside.sidebar.sb2 .sb2-link.on .sb2-ico{color:var(--sb-text)!important}
html[data-theme][data-theme] aside.sidebar.sb2 .sb2-link.active::before,html[data-theme][data-theme] aside.sidebar.sb2 .sb2-link.on::before{content:""!important;position:absolute!important;left:0!important;top:50%!important;bottom:auto!important;width:3px!important;height:18px!important;margin-top:-9px!important;border-radius:2px!important;background:var(--sb-accent)!important}
html[data-theme] aside.sb2 .sb2-badge{background:var(--sb-chip)!important;color:var(--sb-text)!important}
html[data-theme] aside.sb2 .nav-sub{border-left-color:var(--sb-line)}
html[data-theme] aside.sb2 .nav-sub a{color:var(--sb-muted)}
html[data-theme] aside.sb2 .nav-sub a:hover{background:var(--sb-hover);color:var(--sb-text)}
html[data-theme][data-theme] aside.sidebar.sb2 .nav-sub a.active{background:var(--sb-active)!important;color:var(--sb-text)!important}
html[data-theme] aside.sb2 .sb2-link:focus-visible,html[data-theme] aside.sb2 .sb2-collapse:focus-visible,html[data-theme] aside.sb2 .profile-menu-btn:focus-visible{outline-color:var(--sb-focus)}

/* bottom block: settings + account stay pinned, the list above scrolls on its own */
aside.sb2 .sb2-foot{position:relative;padding:8px 10px 10px;gap:4px;border-top:0}
aside.sb2 .sb2-foot::before{content:"";position:absolute;left:10px;right:10px;top:0;height:1px;background:var(--sb-line)}
html[data-theme] aside.sb2 .sb2-user-text b{color:var(--sb-text);font-size:13.5px;font-weight:600;line-height:1.25}
html[data-theme] aside.sb2 .sb2-user-text small{color:var(--sb-muted);font-size:12px;line-height:1.3}
html[data-theme][data-theme] aside.sidebar.sb2 .sb2-user div.avatar{background:var(--sb-active)!important;color:var(--sb-text)!important}
html[data-theme][data-theme] aside.sidebar.sb2 .profile-menu-btn{color:var(--sb-muted)!important}
html[data-theme][data-theme] aside.sidebar.sb2 .sb2-menu>summary:hover,html[data-theme][data-theme] aside.sidebar.sb2 .sb2-menu[open]>summary{background:var(--sb-hover)!important;color:var(--sb-text)!important}

/* collapsed rail: mark stays, group captions become thin rules in the panel's own line colour */
@media (min-width:861px){
  html[data-sb="collapsed"] aside.sidebar.sb2 .sb2-label{background:var(--sb-line);line-height:0;overflow:hidden}
  html[data-sb="collapsed"] aside.sidebar.sb2 .sb2-foot::before{left:12px;right:12px}
}
/* ===== leads refresh v1: «Обновлено в … / Обновить / Авто · 60 сек» to the right of the Leads title ===== */
html[data-theme][data-theme] .stg-leads .payouts-head{align-items:center;flex-wrap:wrap;gap:8px 16px;min-height:36px}
html[data-theme][data-theme] .stg-leads .lrf{--lrf-line:#E6E8ED;--lrf-ink:var(--text,#22262B);--lrf-mute:var(--muted,#66707C);--lrf-card:var(--card,#fff);--lrf-hover:#F4F6F1;--lrf-hover-line:#CFD4DB;--lrf-focus:#5F7A14;--lrf-neg:#C0352B;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px 12px;margin-left:auto;min-width:0;max-width:100%;color:var(--lrf-mute);font:500 13px/1.2 Manrope,Inter,sans-serif}
html[data-theme=dark][data-theme] .stg-leads .lrf{--lrf-line:var(--border,#34312D);--lrf-hover:#292723;--lrf-hover-line:#4A463F;--lrf-focus:#C3E865;--lrf-neg:#FCA5A5}
html[data-theme][data-theme] .stg-leads .lrf-time{white-space:nowrap;font-variant-numeric:tabular-nums}
html[data-theme][data-theme] .stg-leads .lrf-time.is-empty{visibility:hidden}
html[data-theme][data-theme] .stg-leads .lrf-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;box-sizing:border-box;height:36px;min-height:36px;margin:0;padding:0 12px;border:1px solid var(--lrf-line);border-radius:8px;background:var(--lrf-card);color:var(--lrf-ink);font:500 13px/1 Manrope,Inter,sans-serif;white-space:nowrap;cursor:pointer;box-shadow:none;transition:background-color .15s,border-color .15s}
html[data-theme][data-theme] .stg-leads .lrf-btn:hover{background:var(--lrf-hover);border-color:var(--lrf-hover-line)}
html[data-theme][data-theme] .stg-leads .lrf-btn:focus-visible,html[data-theme][data-theme] .stg-leads .lrf-retry:focus-visible{outline:2px solid var(--lrf-focus);outline-offset:2px}
html[data-theme][data-theme] .stg-leads .lrf-btn[aria-disabled=true]{cursor:progress}
html[data-theme][data-theme] .stg-leads .lrf-btn svg{flex:0 0 15px;width:15px;height:15px}
html[data-theme][data-theme] .stg-leads .lrf-btn.is-busy svg{animation:lrf-spin .8s linear infinite}
@keyframes lrf-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){html[data-theme][data-theme] .stg-leads .lrf-btn.is-busy svg{animation-duration:2.4s}}
html[data-theme][data-theme] .stg-leads .lrf-sep{flex:0 0 1px;width:1px;height:20px;background:var(--lrf-line)}
html[data-theme][data-theme] .stg-leads .lrf-auto{display:inline-flex;align-items:center;gap:10px;margin:0;color:var(--lrf-mute);font:inherit;white-space:nowrap;cursor:pointer;user-select:none}
html[data-theme][data-theme] .stg-leads .lrf-err{display:inline-flex;align-items:center;gap:8px;color:var(--lrf-neg);white-space:nowrap}
html[data-theme][data-theme] .stg-leads .lrf-retry{margin:0;padding:0;border:0;background:none;color:inherit;font:600 13px/1.2 Manrope,Inter,sans-serif;text-decoration:underline;text-underline-offset:2px;cursor:pointer;height:auto;min-height:0;box-shadow:none}
@media (max-width:720px){html[data-theme][data-theme] .stg-leads .payouts-head{flex-wrap:nowrap;align-items:flex-start}html[data-theme][data-theme] .stg-leads .lrf{margin-left:0;justify-content:flex-start}}
/* the global request indicator must not push Leads down and back on every (auto) refresh */
html[data-theme][data-theme].ufo-wait .main:has(>.stg-leads)::before{position:fixed;z-index:80;top:0;left:0;right:0;height:3px;margin:0;pointer-events:none}
@media (max-width:480px){html[data-theme][data-theme] .stg-leads .lrf-sep{display:none}}
/* ===== statistics dashboard v2 (sx1): buyer "/" and admin "/media" ===== */
html[data-theme][data-theme] .sx{--sx-card:var(--card,#fff);--sx-line:var(--border,#E8EBEF);--sx-text:var(--text,#202328);--sx-muted:var(--muted,#66707C);--sx-lime:#C3E865;--sx-on-lime:#171610;--sx-soft:#F3F5F0;--sx-hover:#F4F6F1;--sx-lime-soft:#EEF6D6;--sx-pos:#1F7A4D;--sx-neg:#C0352B;--sx-cur:#202328;--sx-prev:#9AA3AD;--sx-focus:#5F7A14;--sx-pop-shadow:0 12px 32px rgba(21,23,28,.14);gap:12px!important;color:var(--sx-text);font-variant-numeric:tabular-nums}
html[data-theme="dark"][data-theme] .sx{--sx-soft:#201F1C;--sx-hover:#292723;--sx-lime-soft:#2A2F1A;--sx-pos:#86EFAC;--sx-neg:#FCA5A5;--sx-cur:#C3E865;--sx-prev:#8C877F;--sx-focus:#C3E865;--sx-pop-shadow:0 12px 32px rgba(0,0,0,.55)}
html[data-theme][data-theme] .sx :is(button,a,input):focus-visible{outline:2px solid var(--sx-focus);outline-offset:2px}
html[data-theme][data-theme] .sx .sx-ico{flex:none;display:block}
html[data-theme][data-theme] .sx .sx-grow{flex:1 1 0;min-width:0}
/* the global request indicator must not push the dashboard down and back on every request */
html[data-theme][data-theme].ufo-wait .main:has(>.sx)::before{position:fixed;z-index:80;top:0;left:0;right:0;height:3px;margin:0;pointer-events:none}
/* header */
html[data-theme][data-theme] .sx .sx-head{display:flex;align-items:center;gap:12px;min-height:38px;margin:0}
html[data-theme][data-theme] .sx .sx-head h1{flex:1 1 auto;min-width:0;margin:0;font-size:24px!important;line-height:1.2;font-weight:800;letter-spacing:-.02em;color:var(--sx-text)}
html[data-theme][data-theme] .sx .sx-stale{margin:0;font-size:12.5px;line-height:1.3;color:var(--sx-muted)}
html[data-theme][data-theme] .sx .sx-stale.is-err{color:var(--sx-neg)}
html[data-theme][data-theme] .sx .sx-link{padding:0;border:0;background:none;color:var(--sx-text);font:600 13px/1.2 inherit;font-family:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
html[data-theme][data-theme] .sx .sx-link:hover{color:var(--sx-focus)}
/* buttons */
html[data-theme][data-theme] .sx .sx-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:36px;padding:0 14px;border:1px solid var(--sx-line);border-radius:8px;background:var(--sx-card);color:var(--sx-text);font:600 13.5px/1 inherit;font-family:inherit;white-space:nowrap;cursor:pointer;transition:background-color .15s,border-color .15s}
html[data-theme][data-theme] .sx .sx-btn:hover:not(:disabled){background:var(--sx-hover)}
html[data-theme][data-theme] .sx .sx-btn:disabled{opacity:.5;cursor:not-allowed}
html[data-theme][data-theme] .sx .sx-btn.is-lime{border-color:var(--sx-lime);background:var(--sx-lime);color:var(--sx-on-lime);font-weight:700}
html[data-theme][data-theme] .sx .sx-btn.is-lime:hover:not(:disabled){background:#CDED7E;border-color:#CDED7E}
html[data-theme][data-theme] .sx .sx-btn.is-icon{width:32px;height:32px;padding:0}
/* bars */
html[data-theme][data-theme] .sx .sx-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:7px 8px;border:1px solid var(--sx-line);border-radius:10px;background:var(--sx-card)}
html[data-theme][data-theme] .sx .sx-pills{display:flex;flex-wrap:wrap;align-items:center;gap:2px;padding:2px;border-radius:8px;background:var(--sx-soft)}
html[data-theme][data-theme] .sx .sx-pill,html[data-theme][data-theme] .sx .sx-pill-more>.sx-dd-btn{height:32px;padding:0 14px;border:0;border-radius:7px;background:transparent;color:var(--sx-text);font:500 13.5px/1 inherit;font-family:inherit;white-space:nowrap;cursor:pointer}
html[data-theme][data-theme] .sx .sx-pill:hover,html[data-theme][data-theme] .sx .sx-pill-more>.sx-dd-btn:hover{background:var(--sx-hover)}
html[data-theme][data-theme] .sx .sx-pill.is-on,html[data-theme][data-theme] .sx .sx-pill-more>.sx-dd-btn.is-active{background:var(--sx-lime);color:var(--sx-on-lime);font-weight:700}
html[data-theme][data-theme] .sx .sx-tz{display:inline-flex;align-items:baseline;gap:6px;padding:0 4px;color:var(--sx-muted);font-size:12.5px;font-weight:600;white-space:nowrap;cursor:help}
html[data-theme][data-theme] .sx .sx-tz small{font-size:11.5px;font-weight:500}
html[data-theme][data-theme] .sx .sx-dirty{color:var(--sx-muted);font-size:12.5px;white-space:nowrap}
html[data-theme][data-theme] .sx .sx-dirty::before{content:"";display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:#E0A21B}
html[data-theme][data-theme] .sx .sx-seg{display:inline-flex;gap:2px;padding:2px;border:1px solid var(--sx-line);border-radius:8px;background:var(--sx-card)}
html[data-theme][data-theme] .sx .sx-seg button{height:30px;min-width:52px;padding:0 12px;border:0;border-radius:6px;background:transparent;color:var(--sx-text);font:500 13px/1 inherit;font-family:inherit;cursor:pointer}
html[data-theme][data-theme] .sx .sx-seg button:hover{background:var(--sx-hover)}
html[data-theme][data-theme] .sx .sx-seg button.is-on{background:var(--sx-lime-soft);color:var(--sx-text);font-weight:700;box-shadow:inset 0 0 0 1px var(--sx-lime)}
/* dropdowns */
html[data-theme][data-theme] .sx .sx-dd{position:relative;min-width:0}
html[data-theme][data-theme] .sx .sx-dd-btn{display:inline-flex;align-items:center;gap:8px;max-width:100%;height:36px;padding:0 10px 0 12px;border:1px solid var(--sx-line);border-radius:8px;background:var(--sx-card);color:var(--sx-text);font:500 13.5px/1 inherit;font-family:inherit;cursor:pointer}
html[data-theme][data-theme] .sx .sx-dd-btn:hover{background:var(--sx-hover)}
html[data-theme][data-theme] .sx .sx-dd.is-open>.sx-dd-btn,html[data-theme][data-theme] .sx .sx-filters .sx-dd-btn.is-active,html[data-theme][data-theme] .sx .sx-compare .sx-dd-btn.is-active{border-color:var(--sx-lime);box-shadow:inset 0 0 0 1px var(--sx-lime)}
html[data-theme][data-theme] .sx .sx-dd-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
html[data-theme][data-theme] .sx .sx-dd-cap{color:var(--sx-muted)}
html[data-theme][data-theme] .sx .sx-filters>.sx-dd{flex:1 1 110px;max-width:230px}
html[data-theme][data-theme] .sx .sx-filters>.sx-dd>.sx-dd-btn{width:100%}
html[data-theme][data-theme] .sx .sx-filters>.sx-dd.sx-more{flex:0 0 auto}
html[data-theme][data-theme] .sx .sx-dd-pop{position:absolute;z-index:45;top:calc(100% + 6px);left:0;min-width:max(100%,220px);max-width:min(360px,86vw);padding:6px;border:1px solid var(--sx-line);border-radius:10px;background:var(--sx-card);box-shadow:var(--sx-pop-shadow)}
html[data-theme][data-theme] .sx .sx-dd-pop.is-right{left:auto;right:0}
html[data-theme][data-theme] .sx .sx-dd-list{max-height:280px;overflow:auto;overscroll-behavior:contain}
html[data-theme][data-theme] .sx .sx-dd-opt{display:flex;align-items:center;gap:10px;width:100%;min-height:34px;padding:6px 8px;border:0;border-radius:7px;background:transparent;color:var(--sx-text);font:500 13.5px/1.25 inherit;font-family:inherit;text-align:left;cursor:pointer}
html[data-theme][data-theme] .sx .sx-dd-opt:hover:not(:disabled),html[data-theme][data-theme] .sx .sx-dd-opt:focus-visible{background:var(--sx-hover)}
html[data-theme][data-theme] .sx .sx-dd-opt:disabled{opacity:.55;cursor:not-allowed}
html[data-theme][data-theme] .sx .sx-dd-opt.is-on{font-weight:700}
html[data-theme][data-theme] .sx .sx-dd-mark{flex:none;display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;color:var(--sx-text)}
html[data-theme][data-theme] .sx .sx-dd-mark.is-box{border:1.5px solid var(--sx-prev);border-radius:4px}
html[data-theme][data-theme] .sx .sx-dd-opt.is-on .sx-dd-mark.is-box{border-color:var(--sx-lime);background:var(--sx-lime);color:var(--sx-on-lime)}
html[data-theme][data-theme] .sx .sx-dd-text{display:flex;flex-direction:column;gap:1px;min-width:0}
html[data-theme][data-theme] .sx .sx-dd-text>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-theme][data-theme] .sx .sx-dd-text small{color:var(--sx-muted);font-size:11.5px;font-weight:500;white-space:normal}
html[data-theme][data-theme] .sx .sx-dd-empty{margin:0;padding:10px 8px;color:var(--sx-muted);font-size:13px}
html[data-theme][data-theme] .sx .sx-dd-clear{display:block;width:100%;margin-top:4px;padding:8px;border:0;border-top:1px solid var(--sx-line);border-radius:0 0 6px 6px;background:transparent;color:var(--sx-muted);font:600 12.5px/1 inherit;font-family:inherit;text-align:left;cursor:pointer}
html[data-theme][data-theme] .sx .sx-dd-clear:hover{color:var(--sx-text)}
html[data-theme][data-theme] .sx .sx-dd-search,html[data-theme][data-theme] .sx .sx-search{display:flex;align-items:center;gap:8px;height:34px;padding:0 10px;border:1px solid var(--sx-line);border-radius:8px;background:var(--sx-soft);color:var(--sx-muted)}
html[data-theme][data-theme] .sx .sx-dd-search{margin-bottom:6px}
html[data-theme][data-theme] .sx .sx-dd-search:focus-within,html[data-theme][data-theme] .sx .sx-search:focus-within{border-color:var(--sx-lime);box-shadow:inset 0 0 0 1px var(--sx-lime)}
html[data-theme][data-theme] .sx :is(.sx-dd-search,.sx-search) input:not(#sx-x){flex:1 1 auto;min-width:0;width:100%;height:30px;min-height:0;margin:0;padding:0;border:0!important;border-radius:0;outline:0!important;box-shadow:none!important;background:transparent!important;color:var(--sx-text)!important;font:500 13.5px/1 inherit;font-family:inherit}
html[data-theme][data-theme] .sx .sx-search{flex:0 1 220px;height:36px;background:var(--sx-card)}
html[data-theme][data-theme] .sx .sx-search button{flex:none;display:inline-flex;padding:3px;border:0;border-radius:5px;background:transparent;color:var(--sx-muted);cursor:pointer}
html[data-theme][data-theme] .sx .sx-search button:hover{color:var(--sx-text);background:var(--sx-hover)}
/* more filters */
html[data-theme][data-theme] .sx .sx-more-pop{width:300px;padding:12px}
html[data-theme][data-theme] .sx .sx-more-row{display:flex;flex-direction:column;gap:5px;margin:0 0 10px}
html[data-theme][data-theme] .sx .sx-more-row>span{color:var(--sx-muted);font-size:12px;font-weight:600}
html[data-theme][data-theme] .sx .sx-more-row .sx-dd-btn{width:100%}
html[data-theme][data-theme] .sx .sx-more-row input:not(#sx-x),html[data-theme][data-theme] .sx .sx-cal-inputs input:not(#sx-x){width:100%;height:36px;min-height:0;margin:0;padding:0 10px;border:1px solid var(--sx-line)!important;border-radius:8px;outline-offset:1px;box-shadow:none;background:var(--sx-card)!important;color:var(--sx-text)!important;font:500 13.5px/1 inherit;font-family:inherit;box-sizing:border-box}
html[data-theme][data-theme] .sx .sx-note{margin:0;color:var(--sx-muted);font-size:12.5px;line-height:1.4}
/* dates */
html[data-theme][data-theme] .sx .sx-dates{position:relative;display:inline-flex;align-items:center;gap:6px}
html[data-theme][data-theme] .sx .sx-dates-dash{color:var(--sx-muted)}
html[data-theme][data-theme] .sx .sx-date-btn{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 10px;border:1px solid var(--sx-line);border-radius:8px;background:var(--sx-card);color:var(--sx-text);font:500 13.5px/1 inherit;font-family:inherit;cursor:pointer}
html[data-theme][data-theme] .sx .sx-date-btn:hover:not(:disabled){background:var(--sx-hover)}
html[data-theme][data-theme] .sx .sx-date-btn:disabled{opacity:.6;cursor:default}
html[data-theme][data-theme] .sx .sx-date-btn.is-edge{border-color:var(--sx-lime);box-shadow:inset 0 0 0 1px var(--sx-lime)}
html[data-theme][data-theme] .sx .sx-date-btn .sx-ico{color:var(--sx-muted)}
html[data-theme][data-theme] .sx .sx-cal{position:absolute;z-index:45;top:calc(100% + 6px);left:0;width:292px;padding:12px;border:1px solid var(--sx-line);border-radius:10px;background:var(--sx-card);box-shadow:var(--sx-pop-shadow)}
html[data-theme][data-theme] .sx .sx-cal-inputs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}
html[data-theme][data-theme] .sx .sx-cal-inputs label{display:flex;flex-direction:column;gap:4px;margin:0;color:var(--sx-muted);font-size:12px;font-weight:600}
html[data-theme][data-theme] .sx .sx-cal-inputs label.is-edge input:not(#sx-x){border-color:var(--sx-lime)!important;box-shadow:inset 0 0 0 1px var(--sx-lime)}
html[data-theme][data-theme] .sx .sx-cal-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
html[data-theme][data-theme] .sx .sx-cal-nav b{font-size:13.5px;font-weight:700;text-transform:capitalize}
html[data-theme][data-theme] .sx .sx-cal-nav button{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:0;border-radius:7px;background:transparent;color:var(--sx-text);cursor:pointer}
html[data-theme][data-theme] .sx .sx-cal-nav button:hover:not(:disabled){background:var(--sx-hover)}
html[data-theme][data-theme] .sx .sx-cal-nav button:disabled{opacity:.3;cursor:default}
html[data-theme][data-theme] .sx .sx-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
html[data-theme][data-theme] .sx .sx-cal-wd{padding:4px 0;color:var(--sx-muted);font-size:11px;font-weight:600;text-align:center}
html[data-theme][data-theme] .sx .sx-cal-day{height:32px;padding:0;border:0;border-radius:7px;background:transparent;color:var(--sx-text);font:500 13px/1 inherit;font-family:inherit;cursor:pointer}
html[data-theme][data-theme] .sx .sx-cal-day:hover:not(:disabled){background:var(--sx-hover)}
html[data-theme][data-theme] .sx .sx-cal-day:disabled{opacity:.3;cursor:default}
html[data-theme][data-theme] .sx .sx-cal-day.is-today{box-shadow:inset 0 0 0 1px var(--sx-prev)}
html[data-theme][data-theme] .sx .sx-cal-day.is-in{border-radius:0;background:var(--sx-lime-soft)}
html[data-theme][data-theme] .sx .sx-cal-day.is-end,html[data-theme][data-theme] .sx .sx-cal-day.is-end:hover:not(:disabled){border-radius:7px;background:var(--sx-lime);color:var(--sx-on-lime);font-weight:700}
html[data-theme][data-theme] .sx .sx-cal-msg{min-height:18px;margin:8px 0;color:var(--sx-muted);font-size:12.5px;line-height:1.4}
html[data-theme][data-theme] .sx .sx-cal-msg.is-err{color:var(--sx-neg);font-weight:600}
html[data-theme][data-theme] .sx .sx-cal-foot{display:flex;justify-content:flex-end;gap:8px}
/* chips, error */
html[data-theme][data-theme] .sx .sx-chips{display:flex;flex-wrap:wrap;gap:6px}
html[data-theme][data-theme] .sx .sx-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;height:28px;padding:0 4px 0 10px;border:1px solid var(--sx-line);border-radius:999px;background:var(--sx-card);font-size:12.5px;font-weight:600;white-space:nowrap}
html[data-theme][data-theme] .sx .sx-chip button{display:inline-flex;padding:4px;border:0;border-radius:50%;background:transparent;color:var(--sx-muted);cursor:pointer}
html[data-theme][data-theme] .sx .sx-chip button:hover{background:var(--sx-hover);color:var(--sx-text)}
html[data-theme][data-theme] .sx .sx-error{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border:1px solid color-mix(in srgb,var(--sx-neg) 35%,transparent);border-radius:10px;background:color-mix(in srgb,var(--sx-neg) 8%,var(--sx-card))}
html[data-theme][data-theme] .sx .sx-error>div{display:flex;flex-direction:column;gap:2px;min-width:0;font-size:13.5px}
html[data-theme][data-theme] .sx .sx-error span{color:var(--sx-muted)}
/* kpi */
html[data-theme][data-theme] .sx .sx-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
html[data-theme][data-theme] .sx .sx-kpi{position:relative;display:flex;flex-direction:column;gap:4px;min-width:0;min-height:74px;margin:0;padding:11px 14px 12px;border:1px solid var(--sx-line);border-radius:10px;background:var(--sx-card);box-shadow:none}
html[data-theme][data-theme] .sx .sx-kpi-top{display:flex;align-items:center;gap:6px;color:var(--sx-muted);font-size:13px;font-weight:600;line-height:1.2}
html[data-theme][data-theme] .sx .sx-kpi-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-theme][data-theme] .sx .sx-kpi-val{font-size:25px;line-height:1.15;font-weight:800;letter-spacing:-.02em;color:var(--sx-text);white-space:nowrap}
html[data-theme][data-theme] .sx .sx-kpi-delta{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px;font-size:12px;font-weight:700;line-height:1.3;color:var(--sx-muted)}
html[data-theme][data-theme] .sx .sx-kpi-delta.is-up{color:var(--sx-pos)}
html[data-theme][data-theme] .sx .sx-kpi-delta.is-down{color:var(--sx-neg)}
html[data-theme][data-theme] .sx .sx-kpi-delta small{color:var(--sx-muted);font-size:12px;font-weight:500}
html[data-theme][data-theme] .sx .sx-hint{position:relative;display:inline-flex;flex:none}
html[data-theme][data-theme] .sx .sx-hint-btn{display:inline-flex;padding:2px;border:0;border-radius:50%;background:transparent;color:var(--sx-muted);cursor:help}
html[data-theme][data-theme] .sx .sx-hint-btn:hover{color:var(--sx-text)}
html[data-theme][data-theme] .sx .sx-hint-pop{position:absolute;z-index:46;top:calc(100% + 6px);left:-12px;display:flex;flex-direction:column;gap:5px;width:250px;padding:10px 12px;border:1px solid var(--sx-line);border-radius:10px;background:var(--sx-card);box-shadow:var(--sx-pop-shadow);color:var(--sx-text);font-size:12.5px;font-weight:500;line-height:1.4;text-transform:none;letter-spacing:0;white-space:normal;pointer-events:none}
html[data-theme][data-theme] .sx .sx-hint-pop.is-right{left:auto;right:-12px}
html[data-theme][data-theme] .sx .sx-hint-pop b{font-size:13px;font-weight:700}
html[data-theme][data-theme] .sx .sx-hint-pop code{padding:4px 6px;border-radius:6px;background:var(--sx-soft);color:var(--sx-text);font:600 12px/1.35 inherit;font-family:inherit}
/* finance strip */
html[data-theme][data-theme] .sx .sx-fin{display:flex;flex-wrap:wrap;align-items:center;gap:8px 0;padding:10px 16px;border:1px solid var(--sx-line);border-radius:10px;background:var(--sx-card)}
html[data-theme][data-theme] .sx .sx-fin-title{display:flex;align-items:center;gap:8px;min-width:210px;padding-right:20px}
html[data-theme][data-theme] .sx .sx-fin-title b{font-size:15px;font-weight:800}
html[data-theme][data-theme] .sx .sx-fin-title>span:not(.sx-hint){color:var(--sx-muted);font-size:13px;font-weight:600}
html[data-theme][data-theme] .sx .sx-fin-title>span:not(.sx-hint)::before{content:"·";margin-right:8px}
html[data-theme][data-theme] .sx .sx-fin-item{display:flex;align-items:baseline;gap:12px;flex:1 1 220px;padding:0 20px;border-left:1px solid var(--sx-line)}
html[data-theme][data-theme] .sx .sx-fin-item span{color:var(--sx-muted);font-size:13px;font-weight:600}
html[data-theme][data-theme] .sx .sx-fin-item b{font-size:20px;font-weight:800;letter-spacing:-.02em}
/* panels */
html[data-theme][data-theme] .sx .sx-split{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:stretch}
html[data-theme][data-theme] .sx .sx-split.has-side{grid-template-columns:minmax(0,7fr) minmax(250px,3fr)}
html[data-theme][data-theme] .sx .sx-panel{display:flex;flex-direction:column;min-width:0;margin:0;padding:14px 16px;border:1px solid var(--sx-line);border-radius:10px;background:var(--sx-card);box-shadow:none}
html[data-theme][data-theme] .sx .sx-panel-h{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-bottom:8px}
html[data-theme][data-theme] .sx :is(.sx-panel-h,.sx-report-h) h2{margin:0;font-size:16px;line-height:1.25;font-weight:800;letter-spacing:-.01em;color:var(--sx-text)}
html[data-theme][data-theme] .sx .sx-legend{flex:1 1 auto;display:flex;flex-wrap:wrap;gap:4px 16px;min-width:0;color:var(--sx-muted);font-size:12.5px;font-weight:500}
html[data-theme][data-theme] .sx .sx-legend span{display:inline-flex;align-items:center;gap:7px}
html[data-theme][data-theme] .sx .sx-key{flex:none;display:inline-block;width:18px;height:0;border-top:2.5px solid var(--sx-cur)}
html[data-theme][data-theme] .sx .sx-key.is-prev{border-top:2px dashed var(--sx-prev)}
html[data-theme][data-theme] .sx .sx-chart-box{position:relative;flex:1 1 auto;min-width:0;min-height:232px;border-radius:8px;outline-offset:2px}
html[data-theme][data-theme] .sx .sx-chart-box svg{position:absolute;left:0;top:0;display:block;overflow:visible}
html[data-theme][data-theme] .sx .sx-ch-grid{stroke:var(--sx-line);stroke-width:1}
html[data-theme][data-theme] .sx .sx-ch-tick{fill:var(--sx-muted);font-size:11.5px;font-weight:500}
html[data-theme][data-theme] .sx .sx-ch-cur{fill:none;stroke:var(--sx-cur);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
html[data-theme][data-theme] .sx .sx-ch-prev{fill:none;stroke:var(--sx-prev);stroke-width:1.6;stroke-dasharray:5 4;stroke-linejoin:round}
html[data-theme][data-theme] .sx .sx-ch-dot{fill:var(--sx-cur);stroke:var(--sx-card);stroke-width:2}
html[data-theme][data-theme] .sx .sx-ch-dot.is-prev{fill:var(--sx-prev)}
html[data-theme][data-theme] .sx .sx-ch-guide{stroke:var(--sx-prev);stroke-width:1;stroke-dasharray:3 3}
html[data-theme][data-theme] .sx .sx-chart-empty{position:absolute;left:0;right:0;top:44%;margin:0;color:var(--sx-muted);font-size:13.5px;text-align:center;pointer-events:none}
html[data-theme][data-theme] .sx .sx-ch-tip{position:absolute;z-index:5;top:6px;display:flex;flex-direction:column;gap:4px;width:214px;padding:8px 10px;border:1px solid var(--sx-line);border-radius:8px;background:var(--sx-card);box-shadow:var(--sx-pop-shadow);font-size:12.5px;pointer-events:none}
html[data-theme][data-theme] .sx .sx-ch-tip-row{display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:8px}
html[data-theme][data-theme] .sx .sx-ch-tip-row span{color:var(--sx-muted);white-space:nowrap}
html[data-theme][data-theme] .sx .sx-ch-tip-row b{font-weight:700;white-space:nowrap}
html[data-theme][data-theme] .sx .sx-ch-tip small{color:var(--sx-muted);font-size:11.5px}
html[data-theme][data-theme] .sx .sx-chart-foot{margin:6px 0 0;color:var(--sx-muted);font-size:12.5px}
html[data-theme][data-theme] .sx .sx-chart-foot b{color:var(--sx-text);font-weight:700}
html[data-theme][data-theme] .sx .sx-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:150px;padding:16px;color:var(--sx-muted);font-size:13.5px;text-align:center}
html[data-theme][data-theme] .sx .sx-state p{margin:0}
html[data-theme][data-theme] .sx .sx-chart{min-height:330px}
html[data-theme][data-theme] .sx .mystats-side>.dash-top:has(>.dash-top-empty.is-loading){min-height:287px!important}
html[data-theme][data-theme] .sx .sx-balance-note{margin:0 0 8px;color:var(--sx-muted);font-size:12px;line-height:1.35}
html[data-theme][data-theme] .sx .sx-balance .sx-ico{color:var(--sx-muted)}
html[data-theme][data-theme] .sx[data-phase="loading"] :is(.sx-kpis,.sx-fin,.sx-split,.sx-report){opacity:.55;pointer-events:none;transition:opacity .15s}
/* report */
html[data-theme][data-theme] .sx .sx-report{padding-bottom:8px}
html[data-theme][data-theme] .sx .sx-report-h{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-bottom:8px}
html[data-theme][data-theme] .sx .sx-report>.sx-note{margin:0 0 8px}
html[data-theme][data-theme] .sx .sx-tabs{display:flex;flex-wrap:wrap;gap:2px}
html[data-theme][data-theme] .sx .sx-tabs button{height:32px;padding:0 14px;border:0;border-radius:7px;background:transparent;color:var(--sx-text);font:500 13.5px/1 inherit;font-family:inherit;cursor:pointer}
html[data-theme][data-theme] .sx .sx-tabs button:hover{background:var(--sx-hover)}
html[data-theme][data-theme] .sx .sx-tabs button.is-on{background:var(--sx-lime);color:var(--sx-on-lime);font-weight:700}
html[data-theme][data-theme] .sx .sx-table-wrap{min-width:0;margin:0 -4px}
html[data-theme][data-theme] .sx .sx-table-wrap.is-wide{overflow-x:auto;overscroll-behavior-x:contain}
html[data-theme][data-theme] .sx .sx-table-wrap.is-wide thead th{position:static}
html[data-theme][data-theme] .sx .sx-table{width:100%;border-collapse:separate;border-spacing:0}
html[data-theme][data-theme] .sx .sx-table thead th{position:sticky;top:64px;z-index:4;padding:0!important;text-align:right;background:var(--sx-card)!important;border-bottom:1px solid var(--sx-line)!important}
html[data-theme][data-theme] .sx .sx-table thead th.is-first{text-align:left}
html[data-theme][data-theme] .sx .sx-th{display:inline-flex;align-items:center;justify-content:flex-end;gap:5px;width:100%;height:36px;padding:0 10px;border:0;background:transparent;color:var(--sx-muted);font:700 11px/1 inherit;font-family:inherit;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;cursor:pointer}
html[data-theme][data-theme] .sx .sx-table th.is-first .sx-th{justify-content:flex-start}
html[data-theme][data-theme] .sx .sx-th:hover,html[data-theme][data-theme] .sx .sx-th.is-on{color:var(--sx-text)}
html[data-theme][data-theme] .sx .sx-th .sx-ico{opacity:.55}
html[data-theme][data-theme] .sx .sx-th.is-on .sx-ico{opacity:1}
html[data-theme][data-theme] .sx .sx-table :is(tbody,tfoot) td{height:44px;padding:5px 10px!important;text-align:right;font-size:13.5px;white-space:nowrap}
html[data-theme][data-theme] .sx .sx-table td.is-first{min-width:150px;max-width:320px;text-align:left;font-weight:600;white-space:normal}
html[data-theme][data-theme] .sx .sx-table td.is-first>:is(span,a){display:block;overflow:hidden;text-overflow:ellipsis}
html[data-theme][data-theme] .sx .sx-row-link{color:inherit;text-decoration:none}
html[data-theme][data-theme] .sx .sx-row-link:hover{text-decoration:underline;text-underline-offset:3px}
html[data-theme][data-theme] .sx .sx-table td.is-first small{display:block;color:var(--sx-muted);font-size:11.5px;font-weight:500;letter-spacing:.02em}
html[data-theme][data-theme] .sx .sx-table tfoot td{border-bottom:0!important;background:var(--sx-lime-soft)!important;font-weight:800}
html[data-theme][data-theme] .sx .sx-table tfoot td:first-child{border-radius:8px 0 0 8px}
html[data-theme][data-theme] .sx .sx-table tfoot td:last-child{border-radius:0 8px 8px 0}
html[data-theme][data-theme] .sx .sx-table tbody tr:hover td{background:var(--sx-hover)!important}
html[data-theme][data-theme] .sx .sx-num-link{color:inherit;font-weight:700;text-decoration:underline;text-decoration-color:var(--sx-prev);text-underline-offset:3px}
html[data-theme][data-theme] .sx .sx-num-link:hover{text-decoration-color:currentColor;color:var(--sx-focus)}
html[data-theme][data-theme] .sx .sx-pager{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 0 4px;color:var(--sx-muted);font-size:13px}
html[data-theme][data-theme] .sx .sx-pager .sx-dd-btn{height:32px}
html[data-theme][data-theme] .sx .sx-pager .sx-dd-pop{top:auto;bottom:calc(100% + 6px);min-width:110px}
html[data-theme][data-theme] .sx .sx-pager-n{min-width:48px;color:var(--sx-text);font-weight:700;text-align:center}
@media (max-width:1280px){html[data-theme][data-theme] .sx .sx-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:1100px){
html[data-theme][data-theme] .sx .sx-split.has-side{grid-template-columns:minmax(0,1fr)}
html[data-theme][data-theme] .sx .sx-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
html[data-theme][data-theme] .sx .sx-table thead th{position:static}
html[data-theme][data-theme] .sx .sx-fin-title{min-width:100%;padding:0}
html[data-theme][data-theme] .sx .sx-fin-title+.sx-fin-item{border-left:0;padding-left:0}
}
@media (max-width:640px){
html[data-theme][data-theme] .sx .sx-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html[data-theme][data-theme] .sx .sx-head h1{font-size:20px!important}
html[data-theme][data-theme] .sx .sx-filters>.sx-dd{flex:1 1 44%;max-width:none}
html[data-theme][data-theme] .sx .sx-search{flex:1 1 100%}
html[data-theme][data-theme] .sx .sx-kpi-val{font-size:21px}
html[data-theme][data-theme] .sx .sx-cal{left:auto;right:-8px;max-width:92vw}
html[data-theme][data-theme] .sx .sx-hint-pop{width:210px}
}
/* ===== /statistics dashboard v2 ===== */
/* The document scrollbar appears when a page grows (leads table, reports).
   Reserve its width from the first paint so buttons do not shift by that width. */
html { scrollbar-gutter: stable; }

/* statistics: filter change keeps the old report on screen; it dims only if the answer takes longer than ~0.25s */
html[data-theme][data-theme] .sx :is(.sx-kpis,.sx-fin,.sx-split,.sx-report){transition:opacity .2s ease}
html[data-theme][data-theme] .sx[data-phase="loading"] :is(.sx-kpis,.sx-fin,.sx-split,.sx-report){opacity:.55;pointer-events:none;transition:opacity .2s ease .25s}
html[data-theme][data-theme] .sx .sx-dd-flag{flex:none;display:block;width:22px;height:16px;border-radius:3px;object-fit:cover;box-shadow:0 0 0 1px rgba(127,127,127,.28)}

/* offers: the search field inside the GEO / category / country dropdowns is plain white (light theme) */
html[data-theme]:not([data-theme="dark"])[data-theme] .wm-dd-panel label.wm-dd-search{background:#fff!important;background-color:#fff!important}
html[data-theme]:not([data-theme="dark"])[data-theme] .wm-dd-panel label.wm-dd-search:not(:focus-within){border:1px solid #e4e7eb!important}

/* offers (webmaster): the reset button is a labelled button next to "Найти" */
html[data-theme][data-theme] .wm-panel .wm-row1{grid-template-columns:minmax(140px,1.5fr) minmax(108px,1fr) minmax(132px,1.1fr) auto auto!important}
html[data-theme][data-theme] .wm-panel .wm-reset.wm-reset{width:auto!important;height:42px;padding:0 16px!important;display:inline-flex!important;align-items:center;justify-content:center;gap:8px;white-space:nowrap;font:inherit;font-size:14px;font-weight:600;line-height:1}
html[data-theme][data-theme] .wm-panel .wm-reset svg{flex:none}
@media (max-width:640px){html[data-theme][data-theme] .wm-panel .wm-row1{grid-template-columns:minmax(0,1fr) auto!important}}
