/* ══════════════════════════════════════════════════════
   AGENT LEADS — Dashboard Styles
   Design system: var(--ink), var(--sf), var(--bd), var(--gr)
   Dark/Light: automatic via dashboard.css tokens
══════════════════════════════════════════════════════ */

/* ── Pill nav — uses shared pill styles + GSAP animation (same as veille) ── */

/* ══════════════════════════════════════════
   CONTACTS LIST — Layout
══════════════════════════════════════════ */

/* ── ROW 1: Title + buttons ── */
.ld-r1 {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.ld-r1-title {
  font-family: var(--font-display, 'Epilogue', sans-serif);
  font-size: 1.5rem; font-weight: 800; color: var(--ink);
  letter-spacing: -.03em; margin: 0;
}
.ld-r1-btns { display: flex; align-items: center; gap: 8px; }

/* ── Shared button styles ── */
.ld-btn-o {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border: 1px solid var(--bd); border-radius: 8px;
  background: var(--sf); color: var(--ink); font-size: .8rem; font-weight: 500;
  font-family: inherit; cursor: pointer; white-space: nowrap; transition: all .15s;
}
.ld-btn-o:hover { background: var(--sf2); border-color: var(--gr2); }
.ld-btn-o svg { width: 14px; height: 14px; }
.ld-btn-black {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, #111 0%, #333 100%);
  color: #fff; font-size: .82rem; font-weight: 600;
  font-family: inherit; cursor: pointer; white-space: nowrap;
  transition: all .2s; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
[data-theme="dark"] .ld-btn-black { background: linear-gradient(135deg, #f0f0f0 0%, #d4d4d4 100%); color: #111; }
.ld-btn-black:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.2); }

/* ── ROW 2: Search + Filter btn + View btn ── */
.ld-r2 {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
}
.ld-r2-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--sf); border: 1px solid var(--bd); border-radius: 8px;
  padding: 9px 14px; flex: 1; max-width: 280px;
}
.ld-r2-search svg { width: 15px; height: 15px; color: var(--gr); flex-shrink: 0; }
.ld-r2-search input {
  border: none; background: none; outline: none;
  font-size: .82rem; font-family: inherit; color: var(--ink); width: 100%;
}
.ld-r2-search input::placeholder { color: var(--gr2); }

/* ── Dropdown wrapper ── */
.ld-drop-wrap { position: relative; }
.ld-drop {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 100;
  background: var(--sf); border: 1px solid var(--bd); border-radius: 12px;
  padding: 6px; min-width: 180px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.06);
  animation: ldDropIn .15s ease;
}
@keyframes ldDropIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.ld-drop-title {
  font-size: .65rem; font-weight: 600; color: var(--gr); text-transform: uppercase;
  letter-spacing: .05em; padding: 8px 10px 4px;
}
.ld-drop-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px 10px; border: none; border-radius: 8px;
  background: none; color: var(--ink); font-size: .8rem; font-weight: 500;
  font-family: inherit; cursor: pointer; transition: all .1s; text-align: left;
}
.ld-drop-item:hover { background: var(--sf2); }
.ld-drop-item.active { background: var(--sf2); font-weight: 600; }
.ld-drop-item svg { width: 14px; height: 14px; color: var(--gr); flex-shrink: 0; }
.ld-drop-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.ld-drop-sep {
  height: 1px; background: var(--bd); margin: 4px 0;
}
.ld-drop-export { right: 0; left: auto; min-width: 220px; }

/* ── White card ── */
.ld-card {
  background: var(--sf); border: 1px solid var(--bd);
  border-radius: 12px; overflow: hidden;
}

/* ── Table ── */
.ld-table {
  width: 100%; border-collapse: collapse;
}
.ld-table thead th {
  text-align: left; font-size: .72rem; font-weight: 600; color: #6b7280;
  padding: 14px 14px; border-bottom: 1px solid var(--bd);
  background: #f9fafb; white-space: nowrap; user-select: none;
}
[data-theme="dark"] .ld-table thead th { background: #1a1a1a; color: #9ca3af; }
.ld-si { opacity: .3; margin-left: 2px; vertical-align: middle; }
.ld-th-sort { cursor: pointer; transition: color .12s; }
.ld-th-sort:hover { color: var(--ink); }
.ld-th-sort:hover .ld-si { opacity: .6; }
.ld-th-sorted { color: var(--ink); }
/* Column widths */
.ld-table th:first-child, .ld-table td:first-child { width: 28%; max-width: 300px; }
.ld-table th:nth-child(2), .ld-table td:nth-child(2) { width: 22%; }
.ld-table tbody tr { cursor: pointer; transition: background .1s; }
.ld-table tbody tr:hover td { background: var(--sf2); }
.ld-table td {
  padding: 10px 14px; font-size: .8rem; color: var(--ink); font-weight: 500;
  border-bottom: 1px solid var(--bd); vertical-align: middle;
}
.ld-td-light { color: var(--ink); }

/* ── Name cell ── */
.ld-cell-name { display: flex; align-items: center; gap: 10px; }
.ld-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .55rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.ld-name { font-size: .8rem; font-weight: 600; color: var(--ink); }

/* ── Status badges (pastel) ── */
.ld-st {
  display: inline-block; padding: 4px 14px;
  font-size: .72rem; font-weight: 600; border-radius: 20px;
  white-space: nowrap;
}
.ld-st-new       { background: #f3f4f6; color: #6b7280; }
.ld-st-contacted { background: #dbeafe; color: #2563eb; }
.ld-st-replied   { background: #fef3c7; color: #d97706; }
.ld-st-meeting   { background: #e0e7ff; color: #4f46e5; }
.ld-st-converted { background: #dcfce7; color: #16a34a; }
.ld-st-lost      { background: #fee2e2; color: #dc2626; }
[data-theme="dark"] .ld-st-new       { background: #27272a; color: #a1a1aa; }
[data-theme="dark"] .ld-st-contacted { background: #1e3a5f; color: #93c5fd; }
[data-theme="dark"] .ld-st-replied   { background: #422006; color: #fde68a; }
[data-theme="dark"] .ld-st-meeting   { background: #312e81; color: #a5b4fc; }
[data-theme="dark"] .ld-st-converted { background: #052e16; color: #86efac; }
[data-theme="dark"] .ld-st-lost      { background: #450a0a; color: #fca5a5; }

/* ── Checkbox ── */
.ld-th-chk, .ld-td-chk { width: 16px !important; min-width: 16px; max-width: 40px; padding: 10px 4px 10px 14px !important; box-sizing: content-box; }
.ld-chk {
  width: 16px; height: 16px; accent-color: #111; cursor: pointer;
  border-radius: 4px; vertical-align: middle;
}
[data-theme="dark"] .ld-chk { accent-color: #f0f0f0; }
.ld-row-sel td { background: rgba(59,130,246,.04) !important; }
[data-theme="dark"] .ld-row-sel td { background: rgba(59,130,246,.1) !important; }

/* ── Bulk action bar ── */
.ld-bulk {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: var(--sf);
  border: 1px solid var(--bd); border-radius: 10px; margin-bottom: 10px;
}
.ld-bulk-count {
  font-size: .78rem; font-weight: 600; color: var(--ink); margin-right: auto;
}
.ld-bulk-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; border: 1px solid var(--bd); border-radius: 8px;
  background: var(--sf); color: var(--ink); font-size: .75rem; font-weight: 500;
  font-family: inherit; cursor: pointer; transition: all .15s;
}
.ld-bulk-btn:hover { background: var(--sf2); border-color: var(--gr2); }
.ld-bulk-delete { color: #ef4444; border-color: rgba(239,68,68,.3); }
.ld-bulk-delete:hover { background: rgba(239,68,68,.06); border-color: #ef4444; }
.ld-bulk-btn svg { width: 14px; height: 14px; }

/* ── Delete button ── */
.ld-td-del { width: 36px; padding: 0 10px !important; }
.ld-del-btn {
  width: 28px; height: 28px; border-radius: 6px; border: 1px solid transparent;
  background: none; color: var(--gr2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s; opacity: 0;
}
.ld-table tbody tr:hover .ld-del-btn { opacity: 1; }
.ld-del-btn:hover { border-color: #ef4444; color: #ef4444; background: rgba(239,68,68,.06); }

/* ── Campaign cell ── */
.ld-td-camp { font-size: .72rem !important; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Campaign status badges ── */
.ld-cst {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; font-size: .72rem; font-weight: 600;
  border-radius: 20px; white-space: nowrap;
}
.ld-cst::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.ld-cst-ok { background: #f0fdf4; color: #16a34a; }
.ld-cst-ok::before { background: #16a34a; }
.ld-cst-run { background: #eff6ff; color: #2563eb; }
.ld-cst-run::before { background: #2563eb; }
.ld-cst-pen { background: #fef3c7; color: #d97706; }
.ld-cst-pen::before { background: #d97706; }
.ld-cst-fail { background: #fee2e2; color: #dc2626; }
.ld-cst-fail::before { background: #dc2626; }
[data-theme="dark"] .ld-cst-ok { background: #052e16; color: #86efac; }
[data-theme="dark"] .ld-cst-run { background: #1e3a5f; color: #93c5fd; }
[data-theme="dark"] .ld-cst-pen { background: #422006; color: #fde68a; }
[data-theme="dark"] .ld-cst-fail { background: #450a0a; color: #fca5a5; }

/* ── Campaign detail page ── */
.ld-cd-back {
  background: none; border: none; color: var(--gr); font-size: .78rem;
  cursor: pointer; font-family: inherit; padding: 0; margin-bottom: 8px;
  display: flex; align-items: center; gap: 4px; transition: color .15s;
}
.ld-cd-back:hover { color: var(--ink); }
.ld-cd-sub { font-size: .82rem; color: var(--gr); margin-top: 4px; display: flex; align-items: center; }
.ld-cd-kpis {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  margin-bottom: 24px;
}
.ld-cd-kpi {
  background: var(--sf); border: 1px solid var(--bd); border-radius: 12px;
  padding: 18px 16px; text-align: center;
}
.ld-cd-kpi-val {
  font-size: 1.6rem; font-weight: 800; color: var(--ink);
  font-family: var(--font-display, 'Epilogue', sans-serif);
  letter-spacing: -.03em; line-height: 1;
}
.ld-cd-kpi-label {
  font-size: .65rem; font-weight: 600; color: var(--gr);
  text-transform: uppercase; letter-spacing: .05em; margin-top: 8px;
}
.ld-cd-section-title {
  font-size: 1rem; font-weight: 700; color: var(--ink);
  font-family: var(--font-display, 'Epilogue', sans-serif);
}
/* ── Pipeline steps ── */
.ld-cd-pipeline {
  display: flex; align-items: center; justify-content: center; gap: 0;
  background: var(--sf); border: 1px solid var(--bd); border-radius: 12px;
  padding: 20px 24px; margin-bottom: 20px; overflow-x: auto;
}
.ld-cd-pipe-step {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 80px; opacity: .4; transition: opacity .2s;
}
.ld-cd-pipe-step.done { opacity: 1; }
.ld-cd-pipe-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #fff;
}
.ld-cd-pipe-val {
  font-size: 1.1rem; font-weight: 800; color: var(--ink);
  font-family: var(--font-display, 'Epilogue', sans-serif);
}
.ld-cd-pipe-label { font-size: .65rem; font-weight: 600; color: var(--gr); text-transform: uppercase; letter-spacing: .03em; }
.ld-cd-pipe-arrow {
  font-size: 1rem; color: var(--bd); margin: 0 8px; opacity: .3;
  flex-shrink: 0; margin-top: -16px;
}
.ld-cd-pipe-arrow.done { color: #22c55e; opacity: .7; }

/* ── Charts row ── */
.ld-cd-charts {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px;
  margin-bottom: 24px;
}
.ld-cd-chart-card {
  background: var(--sf); border: 1px solid var(--bd); border-radius: 12px;
  padding: 18px; overflow: hidden; min-width: 0;
}
#ld-chart-status, #ld-chart-quality { min-height: 220px; width: 100%; }
.ld-cd-chart-title {
  font-size: .78rem; font-weight: 700; color: var(--ink);
  font-family: var(--font-display, 'Epilogue', sans-serif);
  margin-bottom: 12px;
}

/* ── Performance grid ── */
.ld-cd-perf-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.ld-cd-perf-item {
  background: var(--sf2); border-radius: 10px; padding: 14px 12px; text-align: center;
}
.ld-cd-perf-val {
  font-size: 1.3rem; font-weight: 800; color: var(--ink);
  font-family: var(--font-display, 'Epilogue', sans-serif);
  letter-spacing: -.03em;
}
.ld-cd-perf-label { font-size: .6rem; font-weight: 600; color: var(--gr); text-transform: uppercase; margin-top: 4px; letter-spacing: .04em; }

/* ── Campaign progress bar (in table) ── */
.ld-camp-prog-bar {
  width: 60px; height: 6px; background: var(--bd); border-radius: 99px;
  overflow: hidden; flex-shrink: 0;
}
.ld-camp-prog-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
}
.ld-camp-prog-txt { font-size: .7rem; font-weight: 600; color: var(--ink); white-space: nowrap; }

/* ── Send modal ── */
/* Card "Action recommandée" — réponse aux leads qui ont répondu */
.ld-lv2-action-card {
  background: linear-gradient(135deg, rgba(255,98,0,0.04), rgba(255,140,66,0.07));
  border: 1.5px solid rgba(255,98,0,0.18);
  border-radius: 14px;
  padding: 18px 20px;
}
[data-theme="dark"] .ld-lv2-action-card {
  background: linear-gradient(135deg, rgba(255,98,0,0.08), rgba(255,140,66,0.04));
  border-color: rgba(255,98,0,0.25);
}

.ld-modal-send { max-width: 680px; padding: 0; }
.ld-modal-send .ld-modal-hd { padding: 20px 24px; border-bottom: 1px solid var(--bd); }
.ld-modal-send .ld-modal-title { font-size: 1rem; }

.ld-send-info {
  display: flex; gap: 16px; padding: 16px 24px;
  background: var(--sf2); border-bottom: 1px solid var(--bd);
}
.ld-send-info-item { display: flex; flex-direction: column; gap: 2px; }
.ld-send-info-label { font-size: .6rem; font-weight: 600; color: var(--gr); text-transform: uppercase; letter-spacing: .05em; }
.ld-send-info-val { font-size: .82rem; font-weight: 600; color: var(--ink); }

.ld-send-preview { padding: 20px 24px; }
.ld-send-preview-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ld-send-preview-label { font-size: .78rem; font-weight: 700; color: var(--ink); }
.ld-send-select {
  padding: 5px 10px; border: 1px solid var(--bd); border-radius: 6px;
  background: var(--sf); color: var(--ink); font-size: .72rem;
  font-family: inherit; cursor: pointer; outline: none; max-width: 280px;
}

/* Gmail-style email preview */
.ld-send-gmail {
  border: 1px solid var(--bd); border-radius: 10px; overflow: hidden;
}
.ld-gmail-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: #f2f2f2; border-bottom: 1px solid #e0e0e0;
}
[data-theme="dark"] .ld-gmail-bar { background: #2a2a2a; border-bottom-color: #3a3a3a; }
.ld-gmail-dots { display: flex; gap: 5px; }
.ld-gmail-dots span {
  width: 10px; height: 10px; border-radius: 50%;
}
.ld-gmail-dots span:nth-child(1) { background: #ef4444; }
.ld-gmail-dots span:nth-child(2) { background: #f59e0b; }
.ld-gmail-dots span:nth-child(3) { background: #22c55e; }
.ld-gmail-title { font-size: .75rem; font-weight: 600; color: var(--ink); }
.ld-gmail-field {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-bottom: 1px solid var(--bd);
}
.ld-gmail-label {
  font-size: .72rem; font-weight: 600; color: var(--gr); width: 36px; flex-shrink: 0;
}
.ld-gmail-val { font-size: .8rem; color: var(--ink); }
.ld-gmail-input {
  flex: 1; border: none; background: none; outline: none;
  font-size: .8rem; font-family: inherit; color: var(--ink);
}
.ld-gmail-body-wrap { padding: 14px; }
.ld-gmail-body {
  width: 100%; min-height: 140px; border: none; background: none; outline: none;
  font-size: .82rem; font-family: inherit; color: var(--ink);
  line-height: 1.6; resize: vertical; box-sizing: border-box;
}

/* Follow-up settings */
.ld-send-followup {
  padding: 16px 24px; border-top: 1px solid var(--bd);
}
.ld-send-followup-grid { display: flex; gap: 16px; margin-top: 10px; }
.ld-send-fu-item { display: flex; align-items: center; gap: 8px; }
.ld-send-fu-label { font-size: .75rem; color: var(--gr); }

/* Actions footer */
.ld-send-actions {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 16px 24px; border-top: 1px solid var(--bd);
}
.ld-send-go { padding: 10px 24px !important; font-size: .85rem !important; }

/* ── Delete button danger ── */
.ld-btn-danger { color: #ef4444 !important; }
.ld-btn-danger:hover { border-color: #ef4444 !important; background: rgba(239,68,68,.06) !important; }

@media (max-width: 900px) {
  .ld-cd-kpis { grid-template-columns: repeat(3, 1fr); }
  .ld-cd-charts { grid-template-columns: 1fr; }
  .ld-cd-pipeline { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 600px) {
  .ld-cd-kpis { grid-template-columns: repeat(2, 1fr); }
}

/* ── Cards view ── */
.ld-cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px; padding: 16px;
}
.ld-card-item {
  background: var(--sf); border: 1px solid var(--bd); border-radius: 12px;
  padding: 18px; cursor: pointer; transition: all .15s;
}
.ld-card-item:hover { border-color: var(--gr2); box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.ld-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.ld-card-name { font-size: .88rem; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.ld-card-sub { font-size: .72rem; color: var(--gr); margin-bottom: 12px; }
.ld-card-info { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.ld-card-row {
  display: flex; align-items: center; gap: 8px;
  font-size: .75rem; color: var(--gr);
}
.ld-card-row svg { flex-shrink: 0; color: var(--gr2); }
.ld-card-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-card-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--bd); }
.ld-card-date { font-size: .7rem; color: var(--gr); }

/* ── Empty ── */
.ld-empty { padding: 56px 20px; text-align: center; }
.ld-empty-icon { font-size: 2.4rem; margin-bottom: 12px; }
.ld-empty-title { font-size: .9rem; font-weight: 700; color: var(--ink); }
.ld-empty-sub { font-size: .78rem; color: var(--gr); margin-top: 4px; }

/* ── Pagination ── */
.ld-pagi {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 4px;
}
.ld-pagi-left { display: flex; align-items: center; gap: 6px; }
.ld-pagi-show { font-size: .75rem; color: var(--gr); }
.ld-pagi-sel {
  padding: 4px 8px; border: 1px solid var(--bd); border-radius: 6px;
  background: var(--sf); color: var(--ink); font-size: .75rem;
  font-family: inherit; cursor: pointer; outline: none;
}
.ld-pagi-center { display: flex; align-items: center; gap: 4px; }
.ld-pg {
  width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid var(--bd); background: var(--sf);
  color: var(--gr); font-size: .78rem; font-weight: 500;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-family: inherit; transition: all .12s;
}
.ld-pg:hover:not([disabled]):not(.on) { background: var(--sf2); color: var(--ink); }
.ld-pg.on { background: var(--ink); color: var(--sf); border-color: var(--ink); font-weight: 700; }
.ld-pg[disabled] { opacity: .3; cursor: not-allowed; }
.ld-pagi-right { font-size: .75rem; color: var(--gr); }

/* ── Root container (full width) ── */
#leads-root {
  width: 100% !important;
  max-width: 100% !important;
  align-self: stretch !important;
  overflow-y: auto !important;
  padding: 0 !important;
}
#leads-root .sp { padding: 28px 36px 40px; }

/* ══════════════════════════════════════════
   LEAD DETAIL — Slide panel (40% width)
══════════════════════════════════════════ */
.ld-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,.3); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.ld-overlay.open { opacity: 1; pointer-events: all; }

.ld-detail {
  position: fixed; top: 0; right: 0; width: 40vw; min-width: 420px; max-width: 640px; height: 100vh;
  background: var(--sf); border-left: 1px solid var(--bd);
  padding: 0; overflow-y: auto; z-index: 9999;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.25,1,.5,1);
  box-shadow: -12px 0 48px rgba(0,0,0,.15);
}
.ld-detail.open { transform: translateX(0); }

/* Header */
.ld-d-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px; border-bottom: 1px solid var(--bd);
  position: sticky; top: 0; background: var(--sf); z-index: 2;
}
.ld-d-top-left { display: flex; align-items: center; gap: 12px; }
.ld-d-title {
  font-size: .9rem; font-weight: 700; color: var(--ink);
  font-family: var(--font-display, 'Epilogue', sans-serif);
}
.ld-d-close {
  width: 30px; height: 30px; border-radius: 8px; background: none;
  border: none; cursor: pointer; color: var(--gr); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.ld-d-close:hover { color: var(--ink); background: var(--sf2); }
.ld-d-view-btn {
  padding: 7px 16px; border-radius: 8px; font-size: .75rem; font-weight: 600;
  background: #111; color: #fff; text-decoration: none; white-space: nowrap;
  transition: all .15s;
}
[data-theme="dark"] .ld-d-view-btn { background: #f0f0f0; color: #111; }
.ld-d-view-btn:hover { opacity: .85; }

/* Content */
.ld-d-content { padding: 24px; }

/* Profile row */
.ld-d-profile {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px;
}
.ld-d-av {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.ld-d-profile-info { flex: 1; min-width: 0; }
.ld-d-name {
  font-size: 1.1rem; font-weight: 800; color: var(--ink);
  font-family: var(--font-display, 'Epilogue', sans-serif);
  letter-spacing: -.02em;
}
.ld-d-email { font-size: .75rem; color: var(--gr); margin-top: 2px; }
.ld-d-actions { display: flex; gap: 6px; flex-shrink: 0; }
.ld-d-act {
  width: 36px; height: 36px; border-radius: 50%; background: var(--sf2);
  border: 1px solid var(--bd); display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--gr); transition: all .15s; text-decoration: none;
}
.ld-d-act:hover { border-color: var(--ink); color: var(--ink); background: var(--sf3); }
.ld-d-act svg { width: 15px; height: 15px; }

/* Info grid */
.ld-d-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--bd); border: 1px solid var(--bd); border-radius: 10px;
  overflow: hidden; margin-bottom: 24px;
}
.ld-d-cell { background: var(--sf); padding: 14px 16px; }
.ld-d-cell-label {
  font-size: .6rem; font-weight: 600; color: var(--gr2);
  text-transform: uppercase; letter-spacing: .06em;
}
.ld-d-cell-val { font-size: .82rem; font-weight: 600; color: var(--ink); margin-top: 3px; }

/* Score progress */
.ld-d-progress {
  background: var(--sf2); border: 1px solid var(--bd); border-radius: 10px;
  padding: 16px; margin-bottom: 24px;
}
.ld-d-prog-hd { display: flex; justify-content: space-between; margin-bottom: 10px; }
.ld-d-prog-label { font-size: .82rem; font-weight: 700; color: var(--ink); }
.ld-d-prog-pct { font-size: .82rem; font-weight: 700; color: #22c55e; }
.ld-d-prog-bar {
  height: 10px; background: var(--bd); border-radius: 99px; overflow: hidden;
  position: relative;
}
.ld-d-prog-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #22c55e, #86efac);
  position: relative;
}
.ld-d-prog-fill::after {
  content: ''; position: absolute; right: -1px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; border-radius: 50%; background: #111; border: 2px solid #fff;
}

/* Status buttons */
.ld-d-statuses { display: flex; gap: 6px; flex-wrap: wrap; }
.ld-d-stat-btn {
  padding: 6px 14px; border-radius: 8px; font-size: .72rem; font-weight: 600;
  cursor: pointer; font-family: inherit; border: 1px solid var(--bd);
  background: var(--sf2); color: var(--ink); transition: all .15s;
}
.ld-d-stat-btn:hover { border-color: var(--gr2); }
.ld-d-stat-btn.active { background: #111; color: #fff; border-color: #111; }
[data-theme="dark"] .ld-d-stat-btn.active { background: #f0f0f0; color: #111; border-color: #f0f0f0; }

/* Sections */
.ld-d-section { margin-bottom: 20px; padding-top: 20px; border-top: 1px solid var(--bd); }
.ld-d-sec-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ld-d-sec-title {
  font-size: .85rem; font-weight: 700; color: var(--ink);
  font-family: var(--font-display, 'Epilogue', sans-serif);
  display: flex; align-items: center; gap: 6px;
}
.ld-d-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; background: #22c55e;
  color: #fff; font-size: .6rem; font-weight: 700;
}

/* Activity items */
.ld-d-activity {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--bd);
}
.ld-d-activity:last-child { border-bottom: none; }
.ld-d-act-icon {
  width: 32px; height: 32px; border-radius: 50%; background: var(--sf2);
  display: flex; align-items: center; justify-content: center; font-size: .9rem;
  flex-shrink: 0;
}
.ld-d-act-body { flex: 1; }
.ld-d-act-label { font-size: .78rem; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.ld-d-act-time { font-size: .68rem; color: var(--gr); margin-top: 2px; }
.ld-d-act-badge {
  font-size: .6rem; font-weight: 600; padding: 2px 8px; border-radius: 12px;
}
.ld-d-act-replied { background: #dcfce7; color: #16a34a; }
.ld-d-empty-act { font-size: .78rem; color: var(--gr); padding: 8px 0; }

/* Reply summary */
.ld-d-reply-box {
  font-size: .8rem; color: var(--ink); background: var(--sf2);
  padding: 12px 14px; border-radius: 10px; line-height: 1.6;
  border-left: 3px solid #22c55e;
}

/* Notes */
.ld-d-note-save {
  font-size: .72rem; color: #FF6200; cursor: pointer; background: none;
  border: none; font-weight: 600; font-family: inherit;
}
.ld-d-note-save:hover { text-decoration: underline; }
.ld-d-note-input {
  width: 100%; min-height: 70px; border: 1px solid var(--bd); border-radius: 10px;
  padding: 12px 14px; font-size: .78rem; font-family: inherit;
  resize: vertical; background: var(--sf2); color: var(--ink); outline: none;
  transition: border-color .15s; box-sizing: border-box;
}
.ld-d-note-input:focus { border-color: var(--gr2); }

/* ══════════════════════════════════════════
   MODAL
══════════════════════════════════════════ */
.ld-modal-ov {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  backdrop-filter: blur(6px); z-index: 10000;
  display: flex; align-items: center; justify-content: center;
}
.ld-modal {
  background: var(--sf); border: 1px solid var(--bd);
  border-radius: var(--r-lg, 22px); padding: 28px;
  max-width: 520px; width: 92%;
  box-shadow: var(--shadow-xl, 0 24px 64px rgba(0,0,0,.3));
  max-height: 90vh; overflow-y: auto;
}
.ld-modal.ld-modal-lg { max-width: 900px; padding: 24px 28px; }
.ld-modal-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }
.ld-modal-left {}
.ld-modal-right { display: flex; flex-direction: column; gap: 12px; }
.ld-modal-section { margin-bottom: 26px; }
.ld-modal-section:last-child { margin-bottom: 0; }
.ld-modal-sec-title {
  font-size: .72rem; font-weight: 700; color: var(--ink);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bd);
}

.ld-modal-map {
  height: 200px; background: var(--sf2); border: 1px solid var(--bd);
  border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.ld-map-empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--gr); font-size: .76rem;
}
.ld-map-empty svg { color: var(--gr2); opacity: .5; }

.ld-modal-summary {
  background: var(--sf2); border: 1px solid var(--bd);
  border-radius: 12px; padding: 18px 20px;
}
.ld-modal-sum-title {
  font-size: .68rem; font-weight: 700; color: var(--gr);
  text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 14px;
}
.ld-modal-sum-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .78rem; color: var(--gr); padding: 7px 0;
}
.ld-sum-val {
  font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.ld-sum-inc { font-weight: 500; color: var(--gr2); font-size: .72rem; }
.ld-modal-sum-sep {
  height: 1px; background: var(--bd); margin: 10px 0 6px;
}

/* Hint under a field — see styles below */

/* Chip rows */
.ld-chip-row {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding-top: 16px; /* room for reco badge */
}
.ld-chip {
  padding: 7px 14px; border-radius: 8px; font-size: .78rem; font-weight: 600;
  cursor: pointer; border: 1px solid var(--bd); background: transparent;
  color: var(--ink); font-family: var(--font-body, 'DM Sans', sans-serif);
  transition: border-color .15s, color .15s, background .15s;
  position: relative;
}
.ld-chip:hover { border-color: var(--ink); }
.ld-chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--sf);
  font-weight: 600;
}

/* "Recommandé" badge above certain chips */
.ld-chip[data-reco="1"]::after {
  content: "Recommandé";
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  font-size: .52rem; font-weight: 700;
  color: #10b981;
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid #10b98144;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

/* Range slider */
.ld-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; background: var(--bd); border-radius: 99px;
  outline: none; cursor: pointer;
  margin: 4px 0 10px;
}
.ld-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink);
  cursor: pointer; border: 3px solid var(--sf);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .15s;
}
.ld-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.ld-range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink); cursor: pointer;
  border: 3px solid var(--sf);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.ld-range-scale {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .7rem; color: var(--gr);
  font-variant-numeric: tabular-nums;
}
.ld-range-val {
  font-weight: 600; color: var(--ink); font-size: .85rem;
  font-family: var(--font-display, 'Epilogue', sans-serif);
}

/* Wizard buttons (luxury, minimal) */
.ldw-btn-primary {
  padding: 11px 26px; border-radius: 9px; border: none;
  background: var(--ink); color: var(--sf);
  font-size: .82rem; font-weight: 600; cursor: pointer;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  transition: opacity .15s, transform .1s;
  letter-spacing: .01em;
}
.ldw-btn-primary:hover { opacity: .88; }
.ldw-btn-primary:active { transform: translateY(1px); }
.ldw-btn-ghost {
  padding: 11px 20px; border-radius: 9px;
  border: 1px solid var(--bd); background: transparent;
  color: var(--gr2); font-size: .82rem; font-weight: 500; cursor: pointer;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  transition: color .15s, border-color .15s;
}
.ldw-btn-ghost:hover { color: var(--ink); border-color: var(--ink); }

/* ── Campaign wizard ── */
.ld-modal-wizard {
  max-width: 960px; padding: 0;
  max-height: 92vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}

.ldw-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 28px; border-bottom: 1px solid var(--bd);
  flex-shrink: 0;
}
.ldw-header .ld-modal-x { position: static; }
.ldw-steps { display: flex; align-items: center; gap: 0; }
.ldw-step {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .74rem; font-weight: 600; color: var(--gr2);
  background: transparent; border: 1px solid var(--bd);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  transition: all .2s;
}
.ldw-step.active { background: var(--ink); border-color: var(--ink); color: var(--sf); }
.ldw-step.done { background: transparent; border-color: var(--ink); color: var(--ink); font-size: .7rem; }
.ldw-step-line { width: 36px; height: 1px; background: var(--bd); }
.ldw-step-line.done { background: var(--ink); }

.ldw-body {
  padding: 32px 36px;
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
}
.ldw-body .ld-modal-grid { margin-top: 24px; }
.ldw-title {
  font-size: 1.35rem; font-weight: 700; color: var(--ink);
  font-family: var(--font-display, 'Epilogue', sans-serif);
  letter-spacing: -.02em; line-height: 1.2;
}
.ldw-subtitle {
  font-size: .85rem; color: var(--gr); margin-top: 6px;
  font-weight: 400;
}

.ldw-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 28px; border-top: 1px solid var(--bd);
  flex-shrink: 0;
  background: var(--bg);
}

/* Credits popover animation */
@keyframes ldPopIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Channel cards — minimal, clean, luxury */
.ldw-channels {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin: 28px auto 4px; max-width: 820px;
}
.ldw-channel {
  background: var(--sf2); border: 1px solid var(--bd); border-radius: 14px;
  padding: 28px 22px 24px; cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
  position: relative; display: flex; flex-direction: column; align-items: center;
  text-align: center; min-height: 260px;
}
.ldw-channel:hover:not(.disabled) { border-color: var(--ink); }
.ldw-channel.active {
  border-color: var(--ink); border-width: 1.5px;
}
.ldw-channel.active::after {
  content: ""; position: absolute; top: 14px; right: 14px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>")
    center/10px no-repeat;
}
.ldw-channel.disabled { opacity: .45; cursor: not-allowed; }

.ldw-ch-icon {
  width: 64px; height: 64px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  color: var(--ink);
}
.ldw-channel.disabled .ldw-ch-icon { color: var(--gr); }

.ldw-ch-name {
  font-size: 1.35rem; font-weight: 700; color: var(--ink);
  font-family: var(--font-display, 'Epilogue', sans-serif);
  letter-spacing: -.02em;
  line-height: 1.15;
}
.ldw-ch-desc {
  font-size: .82rem; color: var(--gr2); margin-top: 8px;
  line-height: 1.55; max-width: 220px;
  font-weight: 400;
}
.ldw-ch-features {
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--bd);
  width: 100%; text-align: left;
  display: flex; flex-direction: column; gap: 10px;
}
.ldw-ch-feat {
  font-size: .8rem; color: var(--ink); padding: 0;
  display: flex; align-items: center; gap: 10px;
  font-weight: 500;
}
.ldw-ch-feat::before {
  content: ""; width: 5px; height: 5px; flex-shrink: 0;
  border-radius: 50%; background: var(--ink);
}
.ldw-channel.disabled .ldw-ch-feat { color: var(--gr); }
.ldw-channel.disabled .ldw-ch-feat::before { background: var(--gr); }

.ldw-ch-badge {
  position: absolute; top: 14px; right: 14px;
  font-size: .58rem; font-weight: 600; color: var(--gr);
  background: transparent; padding: 3px 9px; border-radius: 99px;
  text-transform: uppercase; letter-spacing: .08em;
  border: 1px solid var(--bd);
}

/* Cards simplifiées : icône grosse, juste le nom */
.ldw-channel-email,
.ldw-channel-soon {
  justify-content: center;
  min-height: 260px;
  padding: 32px 22px;
  gap: 18px;
}
.ldw-ch-icon-big {
  width: 88px; height: 88px;
  font-size: 3.4rem;
  margin-bottom: 0;
  display: flex; align-items: center; justify-content: center;
}
.ldw-channel-email .ldw-ch-name,
.ldw-channel-soon .ldw-ch-name {
  font-size: 1.5rem;
  letter-spacing: -.025em;
}

/* Overlay "Bientôt disponible" centré sur les cards SMS / Appel.
   Icône + nom restent bien visibles derrière (effet teaser). */
.ldw-channel-soon { position: relative; overflow: hidden; }
.ldw-channel-soon .ldw-ch-icon-big,
.ldw-channel-soon .ldw-ch-name { opacity: .75; }
.ldw-ch-soon-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; color: var(--ink);
  letter-spacing: .04em; text-transform: uppercase;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(.5px);
  -webkit-backdrop-filter: blur(.5px);
  pointer-events: none;
  text-shadow: 0 1px 8px rgba(255,255,255,.9), 0 0 12px rgba(255,255,255,.7);
}
[data-theme="dark"] .ldw-ch-soon-overlay {
  background: rgba(20,20,22,.25);
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.9), 0 0 12px rgba(0,0,0,.7);
}

/* Step 3: Progress */
.ldw-progress-icon { font-size: 3rem; margin-bottom: 16px; animation: ldwBounce 1.5s ease infinite; }
@keyframes ldwBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.ldw-progress-track {
  height: 10px; background: var(--sf2); border: 1px solid var(--bd);
  border-radius: 99px; overflow: hidden;
}
.ldw-progress-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--agent-leads-color), #86efac);
  transition: width .6s var(--ease);
}
.ldw-steps-detail { margin-top: 24px; text-align: left; max-width: 320px; margin-left: auto; margin-right: auto; }
.ldw-sd {
  padding: 8px 0; font-size: .78rem; color: var(--gr2);
  display: flex; align-items: center; gap: 8px;
  transition: all .2s;
}
.ldw-sd.active { color: var(--ink); font-weight: 600; }
.ldw-sd.done { color: var(--agent-leads-color); }

@media (max-width: 768px) {
  .ld-modal.ld-modal-lg, .ld-modal-wizard { max-width: 96%; }
  .ld-modal-grid { grid-template-columns: 1fr; }
  .ld-modal-map { height: 150px; }
  .ldw-channels { grid-template-columns: 1fr; }
}
.ld-modal-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.ld-modal-title {
  font-size: 1.05rem; font-weight: 800; color: var(--ink);
  font-family: var(--font-display, 'Epilogue', sans-serif);
}
.ld-modal-x {
  background: var(--sf2); border: 1px solid var(--bd); width: 32px; height: 32px;
  border-radius: 8px; font-size: 16px; cursor: pointer; color: var(--gr);
  display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.ld-modal-x:hover { color: var(--ink); background: var(--sf3); }

/* ══════════════════════════════════════════
   FORM FIELDS
══════════════════════════════════════════ */
.ld-field { margin-bottom: 16px; }
.ld-field-label {
  font-size: .78rem; font-weight: 600; color: var(--ink);
  letter-spacing: 0; text-transform: none;
  display: block; margin-bottom: 8px;
}
.ld-field-hint {
  font-size: .72rem; color: var(--gr2); margin-top: 6px;
}
.ld-field-input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--bd); border-radius: 9px;
  font-size: .85rem; font-family: var(--font-body, 'DM Sans', sans-serif);
  background: var(--sf); color: var(--ink); outline: none; box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
.ld-field-input::placeholder { color: var(--gr); }
.ld-field-input:hover { border-color: var(--gr2); }
.ld-field-input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0,0,0,.04);
}
.ld-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
textarea.ld-field-input { resize: vertical; min-height: 80px; }

/* ══════════════════════════════════════════
   TOAST
══════════════════════════════════════════ */
.ld-toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--sf); padding: 10px 22px;
  border-radius: var(--r-sm, 10px); font-size: .82rem; font-weight: 500;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  z-index: 10001; opacity: 0; transition: all .3s var(--ease); pointer-events: none;
  box-shadow: var(--shadow-md);
}
.ld-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══════════════════════════════════════════
   COST ESTIMATOR
══════════════════════════════════════════ */
.ld-cost-box {
  background: var(--sf2); border: 1px solid var(--bd); border-radius: var(--r-sm, 10px);
  padding: 14px 16px; margin: 12px 0;
}
.ld-cost-title { font-size: .78rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.ld-cost-grid { display: flex; flex-direction: column; gap: 6px; }
.ld-cost-item { display: flex; justify-content: space-between; font-size: .75rem; color: var(--gr); }
.ld-cost-item span:last-child { font-weight: 600; color: var(--ink); }
.ld-cost-total { border-top: 1px solid var(--bd); padding-top: 6px; margin-top: 2px; }
.ld-cost-total span { font-weight: 700; font-size: .82rem; color: var(--ink); }

/* ══════════════════════════════════════════
   CAMPAIGN CARDS
══════════════════════════════════════════ */
.ld-camp-card {
  background: var(--sf); border: 1px solid var(--sf3); border-radius: var(--r-md, 16px);
  padding: 20px 22px; cursor: pointer; transition: all .2s var(--ease);
}
.ld-camp-card:hover { border-color: var(--agent-leads-color); box-shadow: 0 4px 20px var(--agent-leads-glow); }

.ld-camp-kpi {
  background: var(--sf2); border: 1px solid var(--bd); border-radius: var(--r-sm, 10px);
  padding: 14px 16px; text-align: center;
}
.ld-camp-kpi-label {
  font-size: .6rem; font-weight: 600; color: var(--gr2);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px;
}
.ld-camp-kpi-val {
  font-size: 1.5rem; font-weight: 800; color: var(--ink);
  font-family: var(--font-display, 'Epilogue', sans-serif); letter-spacing: -.03em;
}

/* Campaign detail */
.ld-camp-back {
  background: none; border: none; color: var(--gr); font-size: .78rem;
  cursor: pointer; font-family: inherit; padding: 0; margin-bottom: 16px;
  display: flex; align-items: center; gap: 4px; transition: color .15s;
}
.ld-camp-back:hover { color: var(--ink); }
.ld-camp-title {
  font-size: 1.3rem; font-weight: 800; color: var(--ink);
  font-family: var(--font-display, 'Epilogue', sans-serif); letter-spacing: -.02em;
}
.ld-camp-subtitle { font-size: .8rem; color: var(--gr); margin-top: 3px; }
.ld-camp-section-title {
  font-size: .88rem; font-weight: 700; color: var(--ink);
  font-family: var(--font-display, 'Epilogue', sans-serif); margin-bottom: 12px;
}

/* Action buttons */
.ld-action-btn {
  padding: 10px 20px; border-radius: var(--r-sm, 10px); font-size: .8rem; font-weight: 600;
  cursor: pointer; font-family: var(--font-body, 'DM Sans', sans-serif);
  border: none; transition: all .15s var(--ease);
  display: inline-flex; align-items: center; gap: 6px;
}
.ld-action-send {
  background: var(--agent-leads-color, #4ade80); color: #000;
  box-shadow: 0 2px 12px var(--agent-leads-glow);
}
.ld-action-send:hover { filter: brightness(1.1); transform: translateY(-1px); }
.ld-action-csv {
  background: var(--sf2); color: var(--ink); border: 1px solid var(--bd);
}
.ld-action-csv:hover { border-color: var(--gr); background: var(--sf3); }
.ld-camp-delete-btn {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--bd);
  background: var(--sf); color: var(--gr); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: .75rem;
  transition: all .15s;
}
.ld-camp-delete-btn:hover { border-color: #ef4444; color: #ef4444; background: rgba(239,68,68,.06); }

/* ══════════════════════════════════════════
   CONFIG
══════════════════════════════════════════ */
.ld-config-wrap { max-width: 720px; }
.ld-config-section {
  background: var(--sf); border: 1px solid var(--bd); border-radius: var(--r-md, 16px);
  padding: 22px 24px; margin-bottom: 16px;
}
.ld-config-title {
  font-size: .88rem; font-weight: 700; color: var(--ink);
  font-family: var(--font-display, 'Epilogue', sans-serif); margin-bottom: 14px;
}
.ld-config-info { font-size: .75rem; color: var(--gr); margin-bottom: 12px; line-height: 1.5; }

/* ══════════════════════════════════════════
   LEAD DETAIL V2 — timeline luxury
══════════════════════════════════════════ */
.ld-lv2-top {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--bd);
  position: sticky; top: 0;
  background: var(--bg); z-index: 5;
}
.ld-lv2-close {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--bd); background: transparent;
  color: var(--gr2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, color .15s;
}
.ld-lv2-close:hover { color: var(--ink); border-color: var(--ink); }
.ld-lv2-ext {
  padding: 6px 12px; border-radius: 8px;
  border: 1px solid var(--bd); background: transparent;
  color: var(--gr2); font-size: .74rem; font-weight: 500;
  text-decoration: none;
  transition: all .15s;
}
.ld-lv2-ext:hover { color: var(--ink); border-color: var(--ink); }

.ld-lv2-content {
  padding: 28px 24px 40px;
}

/* Header profil */
.ld-lv2-header {
  display: flex; align-items: center; gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--bd);
  margin-bottom: 22px;
}
.ld-lv2-av {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display, 'Epilogue', sans-serif);
  font-weight: 700; font-size: 1.1rem;
  flex-shrink: 0;
}
.ld-lv2-info { flex: 1; min-width: 0; }
.ld-lv2-name {
  font-family: var(--font-display, 'Epilogue', sans-serif);
  font-size: 1.35rem; font-weight: 800; color: var(--ink);
  letter-spacing: -.02em; margin: 0 0 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ld-lv2-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: .78rem; color: var(--gr);
  flex-wrap: wrap;
}
.ld-lv2-sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--gr2); opacity: .5;
}
.ld-lv2-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 99px;
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  flex-shrink: 0;
}

/* Stats */
.ld-lv2-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 18px;
}
.ld-lv2-stat {
  background: var(--sf); border: 1px solid rgba(0,0,0,.04);
  border-radius: 12px; padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.02);
}
.ld-lv2-stat-lbl {
  font-size: .62rem; font-weight: 700; color: var(--gr2);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 6px;
}
.ld-lv2-stat-val {
  font-family: var(--font-display, 'Epilogue', sans-serif);
  font-size: 1.5rem; font-weight: 800; color: var(--ink);
  letter-spacing: -.02em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ld-lv2-stat-unit {
  font-size: .8rem; color: var(--gr2); font-weight: 500; margin-left: 2px;
}

/* Info relance prévue */
.ld-lv2-next-wrap {
  margin-bottom: 18px;
  padding: 10px 14px;
  background: #fef3c708;
  border: 1px solid #fcd34d44;
  border-radius: 10px;
  font-size: .78rem;
  color: var(--ink);
}
.ld-lv2-next {
  display: inline-flex; align-items: center; gap: 6px;
}
.ld-lv2-next::before {
  content: "⏱"; font-size: .9rem;
}
.ld-lv2-next-soon { color: #d97706; font-weight: 600; }

/* Contact info */
.ld-lv2-contact {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 22px;
}
.ld-lv2-contact-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--sf2);
  color: var(--ink); font-size: .76rem;
  text-decoration: none;
  transition: background .15s;
}
a.ld-lv2-contact-item:hover { background: var(--sf3); }

/* Sections */
.ld-lv2-section {
  margin-bottom: 26px;
}
.ld-lv2-sec-title {
  font-size: .68rem; font-weight: 700; color: var(--gr);
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 14px;
}

/* Timeline */
.ld-lv2-timeline {
  display: flex; flex-direction: column;
  gap: 0;
  padding-left: 4px;
}
.ld-lv2-tl-item {
  position: relative;
  display: flex; gap: 14px;
  padding-bottom: 20px;
}
.ld-lv2-tl-dot {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--sf);
  border: 1.5px solid var(--bd);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1rem;
  z-index: 2;
  position: relative;
}
.ld-lv2-tl-reply .ld-lv2-tl-dot {
  background: #dcfce7; border-color: #22c55e;
}
.ld-lv2-tl-meeting .ld-lv2-tl-dot,
.ld-lv2-tl-converted .ld-lv2-tl-dot {
  background: #ede9fe; border-color: #8b5cf6;
}
.ld-lv2-tl-bounce .ld-lv2-tl-dot,
.ld-lv2-tl-lost .ld-lv2-tl-dot {
  background: #fee2e2; border-color: #ef4444;
}
.ld-lv2-tl-line {
  position: absolute;
  left: 16.5px; top: 34px; bottom: 0;
  width: 1px;
  background: var(--bd);
}
.ld-lv2-tl-body {
  flex: 1; min-width: 0;
  padding: 2px 0 8px;
}
.ld-lv2-tl-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px; flex-wrap: wrap;
}
.ld-lv2-tl-title {
  font-size: .88rem; font-weight: 600; color: var(--ink);
}
.ld-lv2-tl-date {
  font-size: .7rem; color: var(--gr); font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ld-lv2-tl-detail {
  font-size: .76rem; color: var(--gr); margin-top: 4px;
  line-height: 1.5;
}
.ld-lv2-tl-expand {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--sf2);
  border-radius: 8px;
  font-size: .76rem; color: var(--ink);
  line-height: 1.6;
  border-left: 3px solid var(--ink);
}
.ld-lv2-tl-reply .ld-lv2-tl-expand {
  border-left-color: #22c55e;
}
.ld-lv2-tl-toggle {
  margin-top: 6px;
  font-size: .68rem; color: var(--gr2);
  font-weight: 500;
}

/* Status change buttons */
.ld-lv2-status-btns {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.ld-lv2-st-btn {
  padding: 7px 14px; border-radius: 8px;
  border: 1px solid var(--bd); background: transparent;
  color: var(--gr2); font-size: .74rem; font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font-body, 'DM Sans', sans-serif);
}
.ld-lv2-st-btn:hover { color: var(--ink); border-color: var(--ink); }
.ld-lv2-st-btn.active { font-weight: 600; }

/* Notes */
.ld-lv2-note {
  width: 100%; min-height: 100px;
  padding: 12px 14px; border: 1px solid var(--bd);
  border-radius: 10px; font-family: var(--fb); font-size: .82rem;
  background: var(--sf); color: var(--ink); outline: none;
  resize: vertical; box-sizing: border-box;
  transition: border-color .15s;
}
.ld-lv2-note:focus { border-color: var(--ink); }
.ld-lv2-note-save {
  margin-top: 10px;
  padding: 8px 18px;
  border-radius: 8px; border: none;
  background: var(--ink); color: var(--sf);
  font-size: .78rem; font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body, 'DM Sans', sans-serif);
}

[data-theme="dark"] .ld-lv2-stat {
  background: #1a1a1a; border-color: rgba(255,255,255,.06);
}

/* ══════════════════════════════════════════
   CAMPAIGN DETAIL V2 — luxury layout
══════════════════════════════════════════ */
.ld-cd-v2-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.ld-cd-v2-head > div:first-child { min-width: 0; flex: 1 1 300px; }
.ld-cd-v2-title {
  font-family: var(--font-display, 'Epilogue', sans-serif);
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 0 0 10px;
  text-transform: capitalize;
}
.ld-cd-v2-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--gr);
}
.ld-cd-v2-sub-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gr2);
  opacity: .5;
}
.ld-cd-v2-st {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.ld-cd-v2-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ld-cd-v2-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 10px;
  border: none;
  background: var(--ink);
  color: var(--sf);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .005em;
  transition: opacity .15s, transform .08s;
}
.ld-cd-v2-btn-primary:hover { opacity: .88; }
.ld-cd-v2-btn-primary:active { transform: translateY(1px); }
.ld-cd-v2-btn-count {
  background: rgba(255,255,255,.2);
  color: var(--sf);
  padding: 2px 9px;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ld-cd-v2-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--bd);
  background: var(--sf);
  color: var(--gr2);
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.ld-cd-v2-btn-ghost:hover { color: var(--ink); border-color: var(--ink); }
.ld-cd-v2-btn-danger:hover { color: #ef4444; border-color: #ef4444; }

/* Pipeline luxury : big numbers, thin lines, bien proportionné */
.ld-cd-v2-pipeline {
  display: grid;
  grid-template-columns: repeat(6, auto);
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--sf);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  padding: 30px 40px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,.02), 0 2px 8px rgba(15,23,42,.04);
}
/* Rows : step + connector alternent → on utilise flex */
.ld-cd-v2-pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.ld-cd-v2-step {
  flex: 0 0 auto;
  text-align: center;
  min-width: 100px;
  padding: 0 8px;
}
.ld-cd-v2-step-val {
  font-family: var(--font-display, 'Epilogue', sans-serif);
  font-size: 2.2rem;
  font-weight: 800;
  color: #cbd5e1;
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color .3s;
}
.ld-cd-v2-step.done .ld-cd-v2-step-val { color: var(--ink); }
.ld-cd-v2-step-lbl {
  font-size: .65rem;
  font-weight: 700;
  color: var(--gr2);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 8px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ld-cd-v2-step.done .ld-cd-v2-step-lbl { color: var(--gr); }
.ld-cd-v2-step-help {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--bd); color: var(--gr2);
  font-size: .58rem; font-weight: 700;
  cursor: help;
  letter-spacing: 0;
  transition: background .15s, color .15s;
  text-transform: none;
}
.ld-cd-v2-step-help:hover {
  background: var(--ink); color: var(--sf);
}
[data-theme="dark"] .ld-cd-v2-step-help {
  background: rgba(255,255,255,.1); color: var(--gr);
}
[data-theme="dark"] .ld-cd-v2-step-help:hover {
  background: var(--ink); color: var(--bg);
}
.ld-cd-v2-step-line {
  flex: 1 1 auto;
  min-width: 20px;
  max-width: 80px;
  height: 1px;
  background: var(--bd);
  transition: background .3s;
  position: relative;
  top: -14px;
}
.ld-cd-v2-step-line.half { background: linear-gradient(90deg, var(--ink) 50%, var(--bd) 50%); }
.ld-cd-v2-step-line.done { background: var(--ink); }

/* Premium KPIs */
.ld-cd-v2-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.ld-cd-v2-kpi {
  background: var(--sf);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(0,0,0,.02), 0 2px 8px rgba(15,23,42,.04);
  transition: border-color .2s, box-shadow .2s;
}
.ld-cd-v2-kpi:hover {
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 12px rgba(15,23,42,.06);
}
.ld-cd-v2-kpi-lbl {
  font-size: .68rem;
  font-weight: 600;
  color: var(--gr2);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}
.ld-cd-v2-kpi-val {
  font-family: var(--font-display, 'Epilogue', sans-serif);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ld-cd-v2-kpi-unit {
  font-size: 1rem;
  color: var(--gr2);
  font-weight: 500;
  margin-left: 2px;
}
.ld-cd-v2-kpi-sub {
  font-size: .72rem;
  color: var(--gr);
  margin-top: 6px;
  font-weight: 500;
}

/* Overview layout : donut à gauche + KPIs stackés à droite */
.ld-cd-v2-overview {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 14px;
  margin-bottom: 20px;
}
.ld-cd-v2-kpi-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ld-cd-v2-kpi-stack .ld-cd-v2-kpi { flex: 1; }

.ld-cd-v2-chart-card {
  background: var(--sf);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 1px 2px rgba(0,0,0,.02), 0 2px 8px rgba(15,23,42,.04);
}
.ld-cd-v2-chart-title {
  font-size: .72rem;
  font-weight: 700;
  color: var(--gr);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bd);
}

@media (max-width: 900px) {
  .ld-cd-v2-overview { grid-template-columns: 1fr; }
}

/* Section title for leads table */
.ld-cd-v2-section-title {
  font-family: var(--font-display, 'Epilogue', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.015em;
  margin: 0;
}
.ld-cd-v2-section-count {
  font-size: .78rem;
  color: var(--gr);
  font-weight: 500;
}

/* Dark mode tweaks */
[data-theme="dark"] .ld-cd-v2-pipeline,
[data-theme="dark"] .ld-cd-v2-kpi,
[data-theme="dark"] .ld-cd-v2-chart-card {
  background: #1a1a1a;
  border-color: rgba(255,255,255,.06);
  box-shadow: 0 1px 2px rgba(0,0,0,.25), 0 2px 8px rgba(0,0,0,.15);
}
[data-theme="dark"] .ld-cd-v2-btn-ghost { background: #1a1a1a; border-color: rgba(255,255,255,.1); }

/* Responsive */
@media (max-width: 900px) {
  .ld-cd-v2-kpis { grid-template-columns: repeat(2, 1fr); }
  .ld-cd-v2-charts { grid-template-columns: 1fr; }
  .ld-cd-v2-pipeline { flex-wrap: wrap; gap: 20px; justify-content: flex-start; }
  .ld-cd-v2-step-line { display: none; }
  .ld-cd-v2-title { font-size: 1.5rem; }
}

/* ══════════════════════════════════════════
   CAMPAIGN BUBBLES — vue d'ensemble, cartes par campagne
══════════════════════════════════════════ */
.ld-camp-bubbles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  padding: 4px 0;
}
.ld-camp-bubble {
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: 14px;
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color .18s ease, transform .15s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ld-camp-bubble:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.ld-camp-bubble-hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.ld-camp-bubble-title {
  font-family: var(--font-display, 'Epilogue', sans-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.015em;
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ld-camp-bubble-sub {
  font-size: .72rem;
  color: var(--gr);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ld-camp-bubble-st {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: .64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  flex-shrink: 0;
  white-space: nowrap;
}
.ld-camp-bubble-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--bd);
  border-bottom: 1px solid var(--bd);
}
.ld-camp-bubble-stat {
  text-align: center;
}
.ld-camp-bubble-stat-val {
  font-family: var(--font-display, 'Epilogue', sans-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.ld-camp-bubble-stat-lbl {
  font-size: .6rem;
  color: var(--gr2);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 3px;
  font-weight: 500;
}
.ld-camp-bubble-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ══════════════════════════════════════════
   LEADS CARDS — softer contrast (luxury feel)
   Override les cards héritées du support
══════════════════════════════════════════ */
#leads-root .sp { background: var(--bg); }

#leads-root .sp-kpi,
#leads-root .sp-card {
  background: var(--sf);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02), 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: box-shadow .2s ease, border-color .2s ease;
}
#leads-root .sp-kpi:hover,
#leads-root .sp-card:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03), 0 8px 20px rgba(15, 23, 42, 0.06);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] #leads-root .sp-kpi,
[data-theme="dark"] #leads-root .sp-card {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.15);
}
[data-theme="dark"] #leads-root .sp-kpi:hover,
[data-theme="dark"] #leads-root .sp-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1200px) {
  .ld-detail { width: 420px; }
}
@media (max-width: 768px) {
  .ld-detail { width: 100%; }
  .ld-field-row { grid-template-columns: 1fr; }
  .ld-modal { width: 96%; padding: 20px; }
  #leads-root .sp { padding: 16px; }
  .ld-r1 { flex-direction: column; gap: 12px; align-items: stretch; }
  .ld-r2 { flex-direction: column; gap: 8px; }
  .ld-r2-search { max-width: 100%; }
  .ld-r1-btns { flex-wrap: wrap; }
  .ld-filter-drop { overflow-x: auto; flex-wrap: nowrap; }
  .ld-pagi { flex-direction: column; gap: 10px; padding: 12px 16px; }
  .ld-table th, .ld-table td { padding: 10px 12px; font-size: .75rem; }
  .ld-table td:nth-child(5), .ld-table th:nth-child(5) { display: none; }
}
