#wbBidderView {
  --bidder-line: #d9e5dc;
  --bidder-muted: #4d6559;
  --bidder-accent: #176348;
  --bidder-tint: #eef5ef;
  color: #172921;
  min-width: 0;
}
#wbBidderView .bidder-content {
  min-width: 0;
  margin: 0 0 14px;
  padding: clamp(14px, 2vw, 24px);
  border: 1px solid var(--bidder-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 10px #203d2910;
}
#wbBidderView h2 { margin: 0; font-size: 1.18rem; letter-spacing: -.015em; }
#wbBidderView .bidder-note { color: var(--bidder-muted); margin: 7px 0 12px; }
#wbBidderView .bidder-note:empty,
#wbBidderView [data-bidder-save-status]:empty { display: none; }
#wbBidderView .bidder-campaign-panel {
  box-sizing: border-box;
  max-inline-size: 80rem;
  padding: 12px 16px;
}
#wbBidderView .bidder-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr) minmax(0, 1.2fr) minmax(0, 1.4fr);
  gap: 8px 10px;
  margin-top: 8px;
}
#wbBidderView .bidder-picker label,
#wbBidderView .bidder-campaign-field,
#wbBidderView .bidder-filters label { font-weight: 600; min-width: 0; }
#wbBidderView :is([data-bidder-campaign-picker],[data-bidder-product-picker]) { position: relative; margin-top: 5px; }
#wbBidderView .bidder-campaign-filters { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; }
#wbBidderView .bidder-campaign-filters fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
#wbBidderView .bidder-campaign-filters legend { margin-bottom: 2px; color: var(--bidder-muted); font-size: .75rem; font-weight: 650; }
#wbBidderView .bidder-campaign-filters label { display: inline-flex; align-items: center; gap: 5px; margin-right: 10px; }
#wbBidderView :is([data-bidder-campaign-summary],[data-bidder-campaign-index],[data-bidder-product-summary],[data-bidder-product-choice]) { display: flex; align-items: center; gap: 9px; text-align: left; }
#wbBidderView :is([data-bidder-campaign-summary],[data-bidder-product-summary]) { box-sizing: border-box; min-height: 32px; padding: 3px 8px; border: 1px solid #b8cbbf; border-radius: 8px; background: #fafcfb; }
#wbBidderView :is([data-bidder-campaign-summary],[data-bidder-product-summary])::after { content: "▾"; margin-left: auto; }
#wbBidderView :is([data-bidder-campaigns],[data-bidder-product-menu]) { position: absolute; z-index: 4; inset: calc(100% + 5px) 0 auto; max-height: min(52vh, 400px); overflow: auto; padding: 4px; border: 1px solid var(--bidder-line); border-radius: 10px; background: #fff; box-shadow: 0 8px 22px #203d2928; }
#wbBidderView .bidder-product-search { position: sticky; top: 0; z-index: 1; padding: 0 4px 6px; background: #fff; }
#wbBidderView :is([data-bidder-campaign-index],[data-bidder-product-choice]) { width: 100%; padding: 6px; border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
#wbBidderView :is([data-bidder-campaign-index],[data-bidder-product-choice]):is(:hover,[aria-pressed="true"]) { background: var(--bidder-tint); }
#wbBidderView :is([data-bidder-product-summary],[data-bidder-campaign-summary]) > span:nth-child(2) { min-width: 0; }
#wbBidderView :is([data-bidder-product-summary] strong, [data-bidder-campaign-summary] > span:nth-child(2)) { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#wbBidderView .bidder-campaign-photo { position: relative; display: grid; place-items: center; flex: 0 0 32px; height: 32px; overflow: hidden; border-radius: 5px; background: var(--bidder-tint); color: var(--bidder-muted); text-align: center; font-size: 9px; line-height: 1; }
#wbBidderView summary .bidder-campaign-photo { flex-basis: 24px; height: 24px; }
#wbBidderView .bidder-campaign-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
#wbBidderView .bidder-picker input,
#wbBidderView .bidder-picker select,
#wbBidderView input[type=search],
#wbBidderView input[type=date] {
  width: 100%;
  min-height: 40px;
  margin-top: 5px;
  border: 1px solid #b8cbbf;
  border-radius: 8px;
  background: #fafcfb;
  color: inherit;
}
#wbBidderView .bidder-period,
#wbBidderView .bidder-filters,
#wbBidderView .bidder-summary,
#wbBidderView .bidder-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
#wbBidderView :is(.bidder-picker input, .bidder-picker select, .bidder-period input, .bidder-filters input[type=search]) { min-height: 32px; padding-block: 4px; }
#wbBidderView .bidder-period { align-items: end; gap: 6px 10px; margin-top: 8px; }
#wbBidderView .bidder-period .analytics-period-field { flex: 0 1 220px; width: auto; }
#wbBidderView .bidder-period input { margin: 0; }
#wbBidderView .bidder-period .analytics-presets { margin: 0; }
#wbBidderView .bidder-period .analytics-presets > button { min-height: 28px; }
#wbBidderView .bidder-campaign-notes { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
#wbBidderView .bidder-campaign-notes:has(> :not(:empty)) { margin-top: 8px; }
#wbBidderView .bidder-campaign-notes .bidder-note { margin: 0; font-size: .8rem; }
#wbBidderView :is(.bidder-toolbar, .bidder-period, .bidder-bulk, .bidder-filters, .bidder-summary, .bidder-cluster-table) :is(.ghost-btn,.primary-btn) {
  min-height: 30px;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: .8rem;
}
#wbBidderView [data-bidder-preset][aria-pressed="true"] {
  color: var(--bidder-accent);
  background: var(--bidder-tint);
  border-color: var(--bidder-accent);
  font-weight: 650;
}
#wbBidderView .bidder-summary {
  background: var(--bidder-tint);
  border-radius: 10px;
  padding: 7px 10px;
  margin-bottom: 10px;
}
#wbBidderView .bidder-summary > div { margin-right: auto; }
#wbBidderView small { display: block; color: var(--bidder-muted); }
#wbBidderView .bidder-filters { align-items: end; margin: 0 0 12px; }
#wbBidderView .bidder-filters label:first-child { display: grid; flex: 0 1 300px; }
#wbBidderView .bidder-filters label:nth-child(2),
#wbBidderView .bidder-summary > label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
#wbBidderView .bidder-filters label:nth-child(2) { margin-bottom: 10px; }
#wbBidderView input[type=checkbox] {
  display: inline-block;
  width: 17px;
  height: 17px;
  min-height: 0;
  margin: 0;
  accent-color: var(--bidder-accent);
  vertical-align: middle;
}
#wbBidderView .primary-btn { background: var(--bidder-accent); box-shadow: none; }
#wbBidderView .bidder-filters .bidder-note { margin: 0 0 8px auto; }
#wbBidderView :focus-visible { outline: 2px solid var(--bidder-accent); outline-offset: 2px; }
#wbBidderView .bidder-scroll {
  overflow: auto;
  max-width: 100%;
  border: 1px solid var(--bidder-line);
  border-radius: 10px;
}
#wbBidderView .bidder-scroll table { width: 100%; border-spacing: 0; }
#wbBidderView .bidder-table table { min-width: 970px; }
#wbBidderView .bidder-scroll.bidder-table { max-height: min(54vh, 500px); }
#wbBidderView .bidder-scroll.bidder-table thead th { position: sticky; top: 0; z-index: 1; }
#wbBidderView [data-bidder-map-title] { scroll-margin-top: 80px; }
#wbBidderView table th, #wbBidderView table td { padding: 9px 10px; vertical-align: middle; }
#wbBidderView thead th { background: #f1f6f2; color: #365649; }
#wbBidderView tbody th { text-align: left; text-transform: none; font-size: inherit; color: inherit; }
#wbBidderView .bidder-table tbody tr:has([data-query]:checked) { background: #f1f8f3; }
#wbBidderView .bidder-table td:nth-child(n+4) { white-space: nowrap; font-variant-numeric: tabular-nums; }
#wbBidderView .bidder-cluster-table :is(th, td) { padding: 5px 8px; }
#wbBidderView .bidder-cluster-table tr > :first-child { width: 24px; text-align: center; }
#wbBidderView .bidder-cluster-table thead th:nth-child(2) { width: 27%; }
#wbBidderView .bidder-cluster-table thead th:nth-child(3) { width: 21%; }
#wbBidderView .bidder-cluster-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; line-height: 1.3; }
#wbBidderView .bidder-cluster-line > div { min-width: 0; overflow-wrap: anywhere; }
#wbBidderView .bidder-cluster-line small { margin-top: 2px; }
#wbBidderView .bidder-cluster-actions { display: flex; gap: 3px; flex: none; }
#wbBidderView .bidder-icon-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #366657;
  background: transparent;
  cursor: pointer;
}
#wbBidderView .bidder-icon-btn:hover { color: #164e3d; background: #e7f1eb; border-color: #d4e5db; }
#wbBidderView .bidder-icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
#wbBidderView .bidder-cluster-table .bidder-place-button { display: flex; align-items: center; gap: 5px; padding: 3px 4px; }
#wbBidderView .bidder-cluster-table .bidder-rank { margin-bottom: 0; }
#wbBidderView .bidder-rank { display: inline-block; padding: 2px 8px; border-radius: 6px; margin-bottom: 3px; }
#wbBidderView .bidder-stale { color: #804709; font-weight: 650; }
#wbBidderView summary { font-weight: 650; cursor: pointer; }
#wbBidderView .bidder-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 12px; }
#wbBidderView .bidder-bulk .bidder-note { margin: 0; }
#wbBidderView .bidder-strategy-btn { max-width: 12rem; white-space: normal; text-align: left; }
#wbBidderView .bidder-toolbar { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
#wbBidderView .bidder-settings-form { display: grid; gap: 12px; }
#wbBidderView .bidder-settings-form label { display: grid; gap: 6px; }
#wbBidderView .bidder-strategy-summary { display: grid; gap: 1px; margin-top: 3px; color: #45645a; line-height: 1.25; }
#wbBidderView .bidder-strategy-dialog {
  width: min(100% - 24px, 560px);
  max-height: 90vh;
  margin: auto;
  padding: 22px;
  border: 1px solid var(--bidder-line);
  border-radius: 16px;
  color: inherit;
}
#wbBidderView .bidder-strategy-dialog::backdrop { background: #162b2566; }
#wbBidderView .bidder-position-dialog {
  width: min(860px, calc(100% - 24px));
  max-height: 90vh;
  margin: auto;
  padding: 22px;
  border: 1px solid var(--bidder-line);
  border-radius: 16px;
  color: inherit;
}
#wbBidderView .bidder-position-dialog::backdrop { background: #162b2566; }
#wbBidderView [data-bidder-position-close] { margin-top: 14px; }
#wbBidderView .bidder-position-rates { display: flex; flex-wrap: wrap; gap: 12px 24px; }
#wbBidderView .bidder-position-rates dt { color: var(--bidder-muted); }
#wbBidderView .bidder-position-rates dd { margin: 3px 0 0; font-weight: 650; }
#wbBidderView .bidder-place-button { display: block; padding: 4px 6px; border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
#wbBidderView .bidder-place-button:hover { background: var(--bidder-tint); }
#wbBidderView .bidder-switch { cursor: pointer; }
#wbBidderView .bidder-switch input[role="switch"] {
  appearance: none;
  width: 36px;
  height: 20px;
  padding: 2px;
  flex: 0 0 36px;
  border: 1px solid #64766d;
  border-radius: 16px;
  background: #71857a;
}
#wbBidderView .bidder-switch input[role="switch"]::before { display: block; width: 14px; height: 14px; border-radius: 50%; background: white; content: ""; }
#wbBidderView .bidder-switch input[role="switch"]:checked { background: var(--bidder-accent); }
#wbBidderView .bidder-switch input[role="switch"]:checked::before { transform: translateX(16px); }
@media (forced-colors: active) {
  #wbBidderView .bidder-switch input[role="switch"] { appearance: auto; }
  #wbBidderView .bidder-switch input[role="switch"]::before { display: none; }
}
#wbBidderView .bidder-strategy-dialog .bidder-bulk { margin: 16px 0 0; }
#wbBidderView .bidder-strategy-dialog [role=status] { color: #792f26; }
#wbBidderView .bidder-strategy { margin: 12px 0 0; padding: 0; border: 0; }
#wbBidderView .bidder-fields { margin-top: 10px; }
#wbBidderView .bidder-fields[hidden] { display: none; }
#wbBidderView .bidder-fields input[type=number] { width: 7rem; }
#wbBidderView .bidder-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 12px; padding: 0; list-style: none; }
#wbBidderView .bidder-legend li { display: flex; align-items: center; gap: 6px; font-size: .9rem; }
#wbBidderView .bidder-legend span { width: 14px; height: 14px; border: 1px solid #17292128; border-radius: 4px; }
#wbBidderView .bidder-map table { width: max-content; min-width: 100%; }
#wbBidderView .bidder-map th:first-child { position: sticky; left: 0; background: #f1f6f2; width: 180px; max-width: 180px; white-space: normal; overflow-wrap: anywhere; box-shadow: 1px 0 var(--bidder-line); }
#wbBidderView .bidder-map th:not(:first-child), #wbBidderView .bidder-map td { text-align: center; min-width: 88px; }
#wbBidderView .bidder-map thead span, #wbBidderView .bidder-map thead strong { display: block; }
#wbBidderView .bidder-map thead span { font-size: .82rem; font-weight: 400; }
#wbBidderView .bidder-map td { font-weight: 650; white-space: nowrap; }
#wbBidderView .bidder-map .bidder-map-cost { color: inherit; margin-top: 2px; font-weight: 400; }
#wbBidderView .bidder-map-top { background: #d3efdc; color: #164b31; }
#wbBidderView .bidder-map-middle { background: #edf4cf; color: #435219; }
#wbBidderView .bidder-map-lower { background: #faedc9; color: #614812; }
#wbBidderView .bidder-map-outside { background: #e7edf4; color: #3a4b63; }
#wbBidderView .bidder-map-failed { background: #fbe4df; color: #792f26; }
#wbBidderView .bidder-map-missing { background: #f4f6f5; color: #53645b; }
@media (max-width: 760px) {
  #wbBidderView .bidder-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #wbBidderView .bidder-map th:first-child { width: 120px; max-width: 120px; }
}
@media (max-width: 480px) {
  #wbBidderView .bidder-picker { grid-template-columns: minmax(0, 1fr); }
}
