/* 261118-btch: BUYER TOUCH tab. Same look as GHL Setter Dials (Inter, near-black ink, white 8px cards, blue brand). */
#view-buyer-touch {
  --bt-ink: #0f0f0f; --bt-muted: #6b6b70; --bt-faint: #9a9aa0; --bt-line: #ececee; --bt-soft: #f7f7f8;
  --bt-blue: #2b44e6; --bt-good: #12805c; --bt-bad: #c4320a;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--bt-ink);
}
#view-buyer-touch * { box-sizing: border-box; }
.bt { display: grid; gap: 16px; max-width: 1280px; font-variant-numeric: tabular-nums; }
.bt-load { opacity: .6; pointer-events: none; }
.bt-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.bt-top p { margin: 0; font-size: 13px; color: var(--bt-muted); max-width: 720px; }
.bt-range { display: inline-flex; gap: 8px; align-items: center; padding: 6px 8px; background: var(--bt-soft); border: 1px solid var(--bt-line); border-radius: 8px; flex-wrap: wrap; font-size: 13px; color: var(--bt-muted); }
.bt-range input { font: 500 13px Inter, system-ui, sans-serif; padding: 6px 8px; border: 1px solid var(--bt-line); border-radius: 6px; background: #fff; color: var(--bt-ink); margin-left: 4px; }
.bt-range button { font: 500 13px/1 Inter, system-ui, sans-serif; padding: 8px 12px; border: 0; border-radius: 6px; background: var(--bt-ink); color: #fff; cursor: pointer; }
.bt-range button[type=button] { background: transparent; color: var(--bt-muted); }
.bt-range button:focus-visible, .bt-range input:focus-visible { outline: 2px solid var(--bt-blue); outline-offset: 1px; }
.bt-err { padding: 12px 16px; border: 1px solid #f3c6b8; background: #fdeee8; color: var(--bt-bad); border-radius: 8px; font-size: 13px; }

.bt-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.bt-card { background: #fff; border: 1px solid var(--bt-line); border-radius: 8px; min-width: 0; }
.bt-kpi { padding: 16px 18px; display: grid; gap: 6px; }
.bt-kpi-l { font-size: 13px; font-weight: 500; color: var(--bt-muted); }
.bt-kpi-v { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.bt-kpi-s { font-size: 12px; color: var(--bt-faint); }

#bt-body { display: grid; gap: 16px; }
.bt-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bt-panel-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 14px 18px 10px; flex-wrap: wrap; }
.bt-panel-h h3 { font-size: 14px; font-weight: 600; margin: 0; }
.bt-panel-h span { font-size: 12px; color: var(--bt-faint); }
.bt-tw { overflow-x: auto; }
.bt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bt-table th { text-align: right; font-weight: 500; color: var(--bt-muted); font-size: 12px; padding: 8px 14px; border-bottom: 1px solid var(--bt-line); background: var(--bt-soft); white-space: nowrap; }
.bt-table th:first-child, .bt-table td:first-child { text-align: left; }
.bt-table td { text-align: right; padding: 10px 14px; border-bottom: 1px solid var(--bt-line); white-space: nowrap; }
.bt-table tbody tr:last-child td { border-bottom: 0; }
.bt-table tbody tr:hover td { background: #fafafb; }
.bt-small td:first-child i { font-style: normal; font-size: 10px; font-weight: 500; color: var(--bt-faint); border: 1px solid var(--bt-line); border-radius: 999px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px; }
.bt-rate { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.bt-bar { display: inline-block; width: 64px; height: 6px; background: var(--bt-soft); border-radius: 999px; overflow: hidden; }
.bt-bar i { display: block; height: 100%; background: var(--bt-blue); border-radius: 999px; }
.bt-yes { color: var(--bt-good); font-weight: 600; }
.bt-dim { color: var(--bt-faint); }
.bt-empty { padding: 32px 16px; text-align: center; color: var(--bt-faint); font-size: 13px; }
.bt-buyers td:first-child { font-weight: 500; }
.bt-foot { margin: 0; font-size: 12px; color: var(--bt-faint); line-height: 1.6; max-width: 1100px; }
@media (max-width: 1100px) { .bt-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bt-row2, .bt-grid { grid-template-columns: minmax(0, 1fr); } }

/* 261118-btch2: charts-first layout */
.bt-readout { padding: 18px 22px; border-left: 4px solid var(--bt-blue); }
.bt-readout h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.bt-readout ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.65; color: var(--bt-ink); }
.bt-readout li { margin: 0 0 6px; }
.bt-readout li b { font-weight: 600; }
.bt-chart { padding: 16px 18px 14px; display: grid; gap: 12px; align-content: start; }
.bt-chart.wide { grid-column: 1 / -1; }
.bt-ch-h h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.bt-ch-h p { margin: 0; font-size: 12.5px; color: var(--bt-muted); line-height: 1.5; }
.bt-take { margin: 0; font-size: 12.5px; color: var(--bt-muted); line-height: 1.5; padding-top: 8px; border-top: 1px solid var(--bt-line); }
.bt-take b { color: var(--bt-ink); font-weight: 600; }
.bt-hb { display: grid; gap: 10px; }
.bt-hb-row { display: grid; grid-template-columns: minmax(150px, 38%) 1fr; gap: 12px; align-items: center; }
.bt-hb-l { display: grid; line-height: 1.3; min-width: 0; }
.bt-hb-l span { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-hb-l small { font-size: 11px; color: var(--bt-faint); }
.bt-hb-t { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bt-hb-f { height: 16px; background: var(--bt-blue); border-radius: 0 4px 4px 0; flex: none; transition: width .3s; }
.bt-hb-row.small .bt-hb-f { background: #c9cff9; }
.bt-hb-t b { font-size: 13px; font-weight: 600; white-space: nowrap; }
.bt-fun { display: grid; gap: 10px; }
.bt-fun-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: center; }
.bt-fun-l { font-size: 13px; font-weight: 500; }
.bt-fun-t { display: flex; align-items: center; gap: 10px; }
.bt-fun-f { height: 26px; background: var(--bt-blue); border-radius: 0 4px 4px 0; flex: none; min-width: 2px; }
.bt-fun-t b { font-size: 15px; font-weight: 600; }
.bt-fun-t small { font-size: 12px; color: var(--bt-faint); }
.bt-vb { display: flex; gap: 10px; align-items: flex-end; height: 220px; padding-top: 6px; }
.bt-vb-col { flex: 1; display: grid; grid-template-rows: auto 1fr auto auto; justify-items: center; height: 100%; min-width: 0; gap: 4px; }
.bt-vb-col b { font-size: 12px; font-weight: 600; }
.bt-vb-t { width: 100%; max-width: 56px; height: 100%; display: flex; align-items: flex-end; }
.bt-vb-f { width: 100%; background: var(--bt-blue); border-radius: 4px 4px 0 0; min-height: 2px; }
.bt-vb-col.small .bt-vb-f { background: #c9cff9; }
.bt-vb-col span { font-size: 12px; color: var(--bt-muted); white-space: nowrap; }
.bt-vb-col small { font-size: 11px; color: var(--bt-faint); white-space: nowrap; }
@media (max-width: 700px) { .bt-hb-row { grid-template-columns: 1fr; gap: 4px; } .bt-vb { height: 180px; } .bt-vb-col small { display: none; } }
