/* Partner leads: board, cards, side drawer. Tokens come from styles.css. */

/* ---------- headline numbers, view toggle, filters ---------- */
.lb-kpis { margin-bottom: 14px; }
.lb-stat-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 8px; }
.lb-view .seg { display: inline-flex; align-items: center; gap: 6px; }
.lb-info { margin: 0 0 10px; }
.lb-charts { margin: 0 0 14px; }
.lb-charts > summary { cursor: pointer; color: var(--muted); padding: 6px 0; width: fit-content; }
.lb-charts > summary:hover { color: var(--text); }
.biz-filters.is-board .lb-list-only { display: none; }
.lb-toolbar { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* ---------- board ---------- */
.lb-board { display: grid; grid-template-columns: repeat(5, minmax(210px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; }
.lb-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; min-height: 200px; min-width: 0; transition: border-color 0.12s, background 0.12s; }
.lb-col.is-over { border-color: var(--accent); background: var(--accent-soft); }
.lb-col-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; }
.lb-col-title { margin: 0; font-size: 1rem; line-height: 1; }
.lb-count { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-sum { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lb-col > .btn { margin-top: 8px; width: 100%; }
.lb-empty { padding: 14px 6px; text-align: center; }
.lb-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 11px; cursor: grab; min-width: 0; }
.lb-card:hover { border-color: #4a4a4a; }
.lb-card:focus-within { border-color: var(--accent); }
.lb-card.is-dragging { opacity: 0.45; }
.lb-open { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; overflow-wrap: anywhere; border-radius: 4px; }
.lb-open:hover { text-decoration: underline; text-underline-offset: 2px; }
.lb-open-row { width: auto; color: var(--accent); }
.lb-sub { margin-top: 2px; overflow-wrap: anywhere; }
.lb-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px 8px; margin-top: 8px; flex-wrap: wrap; }
.lb-value { font-variant-numeric: tabular-nums; }
.lb-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.lb-foot > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-move { width: auto; flex: none; min-height: 32px; padding: 2px 6px; font-size: 0.8rem; border-radius: 8px; max-width: 120px; }
.faint { color: #6b6b6b; }

/* ---------- drawer ---------- */
body.lb-noscroll { overflow: hidden; }
.lb-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 70; }
.lb-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); background: var(--surface); border-left: 1px solid #333; z-index: 71; overflow-y: auto; padding: 18px; box-shadow: -20px 0 50px rgba(0, 0, 0, 0.6); outline: none; overscroll-behavior: contain; }
.lb-drawer .card { padding: 14px; margin-bottom: 12px; }
.lb-drawer .grid-2 { display: block; }

/* ---------- lead panel (drawer and full page) ---------- */
.lp-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.lp-head-text { flex: 1; min-width: 0; }
.lp-title { font-size: 1.25rem; line-height: 1.25; overflow-wrap: anywhere; margin-bottom: 2px; outline: none; }
.lp-close { flex: none; }
.lp-fullpage { display: inline-block; margin: -6px 0 14px; color: var(--muted); }
.lp-event { margin: 0; }
.timeline-item.is-event { color: var(--muted); }
.lp-page .contact-row { margin-bottom: 14px; }
.lp-page > .grid-2 { align-items: start; }

@media (max-width: 760px) {
  .lb-board { grid-template-columns: repeat(5, min(82vw, 320px)); scroll-snap-type: x proximity; }
  .lb-col { scroll-snap-align: start; }
  .lb-drawer { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .lb-col { transition: none; } }
