/* Leads tab: inbox cards (Simple), table (Expert), results chart, lead sources. Flat, hairline borders. */
.ld .ld-kpis { margin-bottom: 16px; background: var(--surface); }
.ld-hero { margin-bottom: 16px; }
.ld-hero h2 { font-size: 20px; font-weight: 650; line-height: 1.35; margin-bottom: 6px; }
.ld-hero h2 b, .ld-hero p b { font-weight: 750; }
.ld-hero p { margin: 6px 0 0; }
.ld-ask { padding: 10px 12px; border-radius: 10px; background: var(--coral-soft); }
.ld-bar { margin: 0 0 12px; gap: 10px; flex-wrap: wrap; }
.ld-bar input[type=search] { min-width: 220px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--fg); font: inherit; }
.ld-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.ld-f { border: 1px solid var(--line-2); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 6px 12px; font: 600 13px var(--font); cursor: pointer; min-height: 34px; }
.ld-f:hover { border-color: var(--indigo); color: var(--indigo); }
.ld-f.on { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.ld-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ld-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.ld-card.rated { background: var(--surface-2); border-color: transparent; }
.ld-card p { margin: 4px 0 0; }
.ld-kind { font: 700 13px var(--head); letter-spacing: .01em; display: inline-flex; align-items: center; gap: 6px; }
.ld-kind::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--indigo); }
.ld-kind.call::before { background: var(--good); } .ld-kind.missed::before { background: var(--coral); } .ld-kind.booking::before { background: var(--warn); }
.ld-who { font-weight: 600; overflow-wrap: anywhere; }
.ld-msg { font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.ld-guess { font-size: 13px; }
.ld-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.ld-card audio, .ld-table audio { display: block; width: 100%; max-width: 360px; height: 34px; margin-top: 8px; }
.ld-more .chips .btn { font-weight: 500; }
.ld-foot { margin-top: 14px; max-width: 80ch; }
.ld-table { width: 100%; font-size: 13.5px; }
.ld-table td { vertical-align: top; }
.ld-table select, .ld-table .ld-val { font: inherit; font-size: 13px; padding: 4px 6px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--fg); max-width: 150px; }
.ld-table .ld-val { width: 80px; }
.ld-table .nowrap { white-space: nowrap; }
.ld-clip { display: inline-block; max-width: 280px; }
.ld-chart { margin: 16px 0 0; }
.ld-chart svg { width: 100%; height: auto; display: block; }
.ld-chart .s-sale, .ld-chart .legend .s-sale { fill: var(--good); background: var(--good); }
.ld-chart .s-good, .ld-chart .legend .s-good { fill: var(--indigo); background: var(--indigo); }
.ld-chart .s-bad, .ld-chart .legend .s-bad { fill: var(--coral); background: var(--coral); }
.ld-chart .s-none, .ld-chart .legend .s-none { fill: var(--line-2); background: var(--line-2); }
.ld-chart .s-axis { stroke: var(--line-2); } .ld-chart .s-join { stroke: var(--muted); stroke-dasharray: 3 3; }
.ld-chart .s-txt { fill: var(--muted); font: 11px var(--font); }
.ld-chart .legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.ld-chart .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.ld-says li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.ld-mini { width: 100%; font-size: 13.5px; } .ld-mini td:not(:first-child) { text-align: right; color: var(--muted); }
.ld-group { margin-bottom: 16px; }
.ld-group h2 { margin-bottom: 4px; }
.ld-src-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.ld-src-row:first-child { border-top: 0; }
.ld-src-act { flex: none; text-align: right; max-width: 45%; }
.ld-count { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; }
.ld-hook { flex-wrap: nowrap; margin: 8px 0 10px; }
.ld-hook input { flex: 1; min-width: 0; font: 13px ui-monospace, Menlo, monospace; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface-2); color: var(--fg); }
.ld-hooks li { padding: 6px 0; }
.ld-pre { background: var(--surface-2); padding: 10px; border-radius: 8px; overflow: auto; font-size: 12.5px; }
.ld-rec-more { display: grid; gap: 10px; }
@media (max-width: 720px) {
  .ld-src-row { flex-direction: column; } .ld-src-act { text-align: left; max-width: none; }
  .ld-bar input[type=search] { min-width: 0; width: 100%; }
  .ld-bar > .row { width: 100%; }
  .ld .tablecard { overflow-x: auto; }
}
.ld-moreall { margin: 12px 0 0; text-align: center; }
