/* ==========================================================================
   Sample Dashboard v2 — Buyer Searches merge-round additions.
   Prefix: .bsx-. Four new cards folded into the existing Buyer Searches view
   (Team Brand, Wider Check, Demand, Out-of-State). Tokens/primitives from
   base.css; the view's original cards (.bs-*) stay in views-audit.css,
   untouched.
   ========================================================================== */

/* ---------- Team Brand ---------- */
.bsx-team__sub {
  margin: 4px 0 18px;
  max-width: 60ch;
}
.bsx-team__band {
  display: grid;
  gap: 4px;
}
.bsx-team__band-title {
  font-weight: 600;
  font-size: 0.9375rem;
  margin: 0;
}
.bsx-team__example {
  font-style: italic;
  margin: 0 0 12px;
}
.bsx-team__rows {
  display: grid;
  gap: 12px;
}
.bsx-team__row {
  display: grid;
  grid-template-columns: 110px 1fr 44px;
  align-items: center;
  gap: 12px;
}
.bsx-team__engine {
  color: var(--ink);
  font-weight: 500;
}
.bsx-team__pct {
  font-weight: 650;
  text-align: right;
}
.bsx-team__note {
  grid-column: 2 / -1;
  margin-top: -2px;
}
.bsx-team__footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  max-width: 68ch;
}

/* ---------- Wider Check ---------- */
.bsx-wide__lead {
  max-width: 70ch;
  margin: 0 0 14px;
}
.bsx-wide__caveat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted-2);
}
.bsx-wide__caveat > span {
  line-height: 1.55;
}

/* ---------- Demand ---------- */
.bsx-demand__lead {
  max-width: 70ch;
  margin: 0 0 18px;
}
.bsx-demand__measured {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.bsx-demand__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}
.bsx-demand__phrase {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink);
}
.bsx-why {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 14px;
  display: grid;
  gap: 6px;
}
.bsx-why__label {
  color: var(--accent-bright);
  margin: 0;
}
.bsx-why__text {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
.footnote-style {
  margin-top: 14px;
  line-height: 1.5;
}

/* ---------- Out-of-State ---------- */
.bsx-oos {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.bsx-oos__left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.bsx-oos__title {
  color: var(--blue);
}
.bsx-oos__copy {
  color: var(--muted);
  max-width: 72ch;
  line-height: 1.55;
  flex: 1 1 320px;
}

/* ==========================================================================
   Responsive — 880px stack, 640px refine
   ========================================================================== */
@media (max-width: 880px) {
  .bsx-oos {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .bsx-team__row {
    grid-template-columns: 90px 1fr 40px;
    gap: 8px;
  }
  .bsx-demand__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .bsx-oos {
    padding: 14px 16px;
  }
}

/* ---------- Measurement panels ported from v1 ---------- */
.bs-measure,
.lbx-source-camp {
  --gold: var(--amber);
  --plum: #b48ee8;
  overflow-x: auto;
}

.crawler-head {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}
.utility {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.crawler-method,
.crawler-foot,
.im-foot {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}
.crawler-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}
.crawler-target,
.sc-engine {
  display: grid;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.crawler-target-head,
.sc-engine-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.crawler-target-head a,
.crawler-target-url {
  color: var(--muted);
  font-size: 0.8125rem;
  word-break: break-all;
}
.crawler-bot-list,
.sc-legend,
.sc-domains {
  list-style: none;
  padding: 0;
  margin: 0;
}
.crawler-bot-list {
  display: grid;
  gap: 8px;
}
.crawler-bot-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(130px, auto) auto;
  align-items: center;
  gap: 10px;
}
.crawler-bot-engine,
.sc-engine-head {
  color: var(--ink);
  font-weight: 600;
}
.crawler-bot-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: none;
}
.crawler-bot-engine {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.crawler-bot-ua,
.sc-domain {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.crawler-pill,
.sc-class-pill,
.sc-camp-pill {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid color-mix(in srgb, var(--pill, var(--line)) 55%, transparent);
  border-radius: var(--r-pill);
  padding: 3px 9px;
  color: var(--pill, var(--muted));
  background: color-mix(in srgb, var(--pill, var(--panel-2)) 12%, transparent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sc-camp-pill {
  --pill: var(--blue);
}
.crawler-foot,
.sampled-stamp {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.sampled-stamp {
  color: var(--muted);
  font-size: 0.8125rem;
}
.sampled-stamp b,
.crawler-foot b,
.im-foot b {
  color: var(--ink);
}

.im-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  margin-top: 14px;
}
.im-table th,
.im-table td {
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.im-table thead th {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.im-table tbody th {
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
}
.im-cell {
  min-width: 108px;
  border-left: 1px solid var(--line);
  background: var(--panel-2);
}
.im-cell b,
.im-cell small {
  display: block;
}
.im-cell small {
  color: var(--muted-2);
  font-size: 0.6875rem;
}
.im-hot b {
  color: var(--green);
}
.im-warm b {
  color: var(--amber);
}
.im-cold b {
  color: var(--red);
}
.im-na {
  color: var(--muted-2);
}
.cs-lead {
  color: var(--muted);
  line-height: 1.55;
}
.cs-lead b {
  color: var(--ink);
}
.vb-band,
.cs-tile {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--panel-2);
}
.vb-band-title,
.cs-tile-title {
  color: var(--ink);
  font-weight: 650;
}
.vb-band-sub {
  color: var(--muted);
  font-size: 0.8125rem;
}
.sc-ci-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.sc-ci-engine {
  color: var(--ink);
  font-weight: 600;
}
.sc-ci-rate {
  color: var(--accent-bright);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
.sc-ci-band {
  color: var(--muted-2);
  font-size: 0.75rem;
}
.sc-mixbar {
  display: flex;
  min-height: 12px;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: var(--panel-2);
  border: 1px solid var(--line);
}
.sc-mixseg {
  min-width: 4px;
  background: var(--seg, var(--line));
}
.sc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.sc-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.75rem;
}
.sc-legend-label {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}
.sc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--seg, var(--line));
}
.sc-legend-n,
.sc-domain-share {
  color: var(--muted-2);
  font-family: var(--font-mono);
}
.sc-domains {
  display: grid;
  gap: 8px;
}
.sc-domain-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
}

@media (max-width: 640px) {
  .crawler-bot-row,
  .sc-ci-row,
  .sc-domain-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .crawler-pill,
  .sc-class-pill {
    justify-self: start;
  }
}
