/* ═════════════════════════════════════════════════════════════════════════════
   js/lead-scoring-redesign.css — WIP-LEAD-SCORING-01
   Settings → Sales → Lead Scoring page + Lead detail breakdown card +
   hot-lead toast. Classes are ls-* (lead-scoring) namespaced.
   ═════════════════════════════════════════════════════════════════════════════ */

:root {
  --ls-neg:    #DC2626;
  --ls-neg-bg: #FEE2E2;
}

@keyframes ls-pulse-warm {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217,119,6,.45); }
  70%      { box-shadow: 0 0 0 8px rgba(217,119,6,0); }
}
@keyframes ls-pulse-hot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(21,128,61,.55); }
  70%      { box-shadow: 0 0 0 8px rgba(21,128,61,0); }
}
@keyframes ls-pulse-cold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168,162,158,.40); }
  70%      { box-shadow: 0 0 0 6px rgba(168,162,158,0); }
}
@keyframes ls-pulse-sidebar-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196,18,48,.6); }
  70%      { box-shadow: 0 0 0 6px rgba(196,18,48,0); }
}
@media (prefers-reduced-motion: reduce) {
  .ls-page .ls-score-num-wrap::before,
  .ls-page .ls-bucket-pill .dot,
  .ls-toast-hot,
  .ls-sb-leads-dot {
    animation: none !important;
  }
}

/* ── Settings page chassis ───────────────────────────────────────────── */
.ls-page { padding: 4px 0 60px; font-family: var(--ff-sans, 'Archivo', system-ui, sans-serif); }

/* Page header */
.ls-page .ls-ph {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--s200, #E7E5E4);
  flex-wrap: wrap;
}
.ls-page .ls-ph-l { flex: 1; min-width: 0; }
.ls-page .ls-ph-eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--s500, #78716C);
  margin-bottom: 6px;
}
.ls-page .ls-ph-h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink, #0A0A0A);
  line-height: 1.05;
  margin: 0 0 7px;
}
.ls-page .ls-ph-h1 em { font-style: normal; color: var(--red, #C41230); }
.ls-page .ls-ph-sub {
  font-size: 13.5px;
  color: var(--s500, #78716C);
  font-weight: 500;
  max-width: 680px;
  line-height: 1.5;
}
.ls-page .ls-ph-sub b { color: var(--ink, #0A0A0A); font-weight: 700; }
.ls-page .ls-ph-r { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Methodology card (3-col grid) */
.ls-page .ls-method {
  background: #fff;
  border: 1px solid var(--s200, #E7E5E4);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-rest, 0 1px 2px rgba(10,10,10,.03));
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}
@media (max-width: 880px) { .ls-page .ls-method { grid-template-columns: 1fr; } }
.ls-page .ls-method-block { display: flex; flex-direction: column; gap: 7px; }
.ls-page .ls-method-block-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--s500, #78716C);
}
.ls-page .ls-method-block-h .ico { color: var(--s500, #78716C); width: 13px; height: 13px; }
.ls-page .ls-method-block-body { font-size: 12.5px; line-height: 1.5; color: var(--s700, #44403C); font-weight: 500; }
.ls-page .ls-method-block-body b { color: var(--ink, #0A0A0A); font-weight: 700; }
.ls-page .ls-method-block-meta {
  font-size: 10.5px;
  color: var(--s400, #A8A29E);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

/* Two-col layout: editors left, live preview right */
.ls-page .ls-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 18px;
  align-items: start;
}
@media (max-width: 1180px) { .ls-page .ls-layout { grid-template-columns: 1fr; } }

/* Generic card */
.ls-page .ls-card {
  background: #fff;
  border: 1px solid var(--s200, #E7E5E4);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-rest, 0 1px 2px rgba(10,10,10,.03));
  margin-bottom: 14px;
}
.ls-page .ls-card-h {
  padding: 14px 18px;
  border-bottom: 1px solid var(--s100, #F5F5F4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--s50, #FAFAF9);
}
.ls-page .ls-card-h-l { display: flex; flex-direction: column; gap: 2px; }
.ls-page .ls-card-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink, #0A0A0A);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ls-page .ls-card-title .ico { color: var(--s500, #78716C); width: 14px; height: 14px; }
.ls-page .ls-card-sub { font-size: 11.5px; color: var(--s500, #78716C); font-weight: 600; }
.ls-page .ls-card-h-cap {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--s500, #78716C);
  padding: 3px 7px;
  background: #fff;
  border: 1px solid var(--s200, #E7E5E4);
  border-radius: 5px;
}
.ls-page .ls-card-h-cap .num {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--ink, #0A0A0A);
  font-weight: 800;
}
.ls-page .ls-card-body { padding: 14px 18px; }

/* Buckets */
.ls-page .ls-buckets { display: flex; flex-direction: column; gap: 11px; }
.ls-page .ls-bucket-row { display: flex; align-items: center; gap: 12px; }
.ls-page .ls-bucket-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-width: 80px;
  justify-content: center;
  border: 1px solid transparent;
}
.ls-page .ls-bucket-pill.hot  { background: var(--ok-bg, #DCFCE7); color: var(--q-hot, #15803D); border-color: rgba(21,128,61,.18); }
.ls-page .ls-bucket-pill.warm { background: var(--warn-bg, #FEF3C7); color: var(--q-warm, #D97706); border-color: rgba(146,64,14,.18); }
.ls-page .ls-bucket-pill.cold { background: var(--s100, #F5F5F4); color: var(--s500, #78716C); border-color: var(--s200, #E7E5E4); }
.ls-page .ls-bucket-pill .dot { width: 7px; height: 7px; border-radius: 50%; }
.ls-page .ls-bucket-pill.hot  .dot { background: var(--q-hot, #15803D); }
.ls-page .ls-bucket-pill.warm .dot { background: var(--q-warm, #D97706); }
.ls-page .ls-bucket-pill.cold .dot { background: var(--s400, #A8A29E); }
.ls-page .ls-bucket-eq {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--s700, #44403C);
  font-weight: 600;
}
.ls-page .ls-bucket-input {
  width: 60px;
  padding: 5px 8px;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
  background: #fff;
  border: 1px solid var(--s300, #D6D3D1);
  border-radius: 7px;
  color: var(--ink, #0A0A0A);
  font-family: inherit;
  transition: all 180ms cubic-bezier(.4,0,.2,1);
}
.ls-page .ls-bucket-input:focus { outline: none; border-color: var(--ink, #0A0A0A); box-shadow: 0 0 0 3px rgba(10,10,10,.05); }
.ls-page .ls-bucket-input.disabled,
.ls-page .ls-bucket-input[readonly] {
  background: var(--s50, #FAFAF9);
  color: var(--s400, #A8A29E);
  cursor: not-allowed;
}
.ls-page .ls-bucket-meta {
  font-size: 10.5px;
  color: var(--s500, #78716C);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  min-width: 100px;
  text-align: right;
  line-height: 1.35;
}
.ls-page .ls-bucket-meta b { color: var(--ink, #0A0A0A); font-weight: 800; }

/* Distribution scale */
.ls-page .ls-scale {
  margin-top: 14px;
  padding: 14px;
  background: var(--s50, #FAFAF9);
  border-radius: 10px;
  border: 1px solid var(--s100, #F5F5F4);
}
.ls-page .ls-scale-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.ls-page .ls-scale-h-l {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--s500, #78716C);
}
.ls-page .ls-scale-h-r { font-size: 10.5px; color: var(--s500, #78716C); font-weight: 700; }
.ls-page .ls-scale-track {
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg,
    var(--s400, #A8A29E) 0%,
    var(--s400, #A8A29E) 50%,
    var(--q-warm, #D97706) 50%,
    var(--q-warm, #D97706) 75%,
    var(--q-hot, #15803D) 75%,
    var(--q-hot, #15803D) 100%);
  position: relative;
  overflow: hidden;
}
.ls-page .ls-scale-tick-marker {
  position: absolute;
  top: -1px;
  bottom: -1px;
  width: 2px;
  background: var(--ink, #0A0A0A);
}
.ls-page .ls-scale-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--s500, #78716C);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
  padding: 0 1px;
}

/* Weights editor */
.ls-page .ls-weights-list { display: flex; flex-direction: column; gap: 9px; }
.ls-page .ls-weight-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  background: var(--s50, #FAFAF9);
  border: 1px solid var(--s100, #F5F5F4);
  border-radius: 10px;
  transition: all 180ms cubic-bezier(.4,0,.2,1);
}
.ls-page .ls-weight-row:hover { border-color: var(--s300, #D6D3D1); background: #fff; }
.ls-page .ls-weight-row.negative { background: #FEF2F2; border-color: rgba(220,38,38,.12); }
.ls-page .ls-weight-row.negative:hover { border-color: rgba(220,38,38,.25); }
.ls-page .ls-weight-ico {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid var(--s200, #E7E5E4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--s600, #57534E);
}
.ls-page .ls-weight-ico.fit      { background: var(--info-bg, #DBEAFE); color: var(--info-fg, #1D4ED8); border-color: rgba(29,78,216,.18); }
.ls-page .ls-weight-ico.intent   { background: var(--ok-bg, #DCFCE7);   color: var(--q-hot, #15803D);   border-color: rgba(21,128,61,.18); }
.ls-page .ls-weight-ico.negative { background: var(--ls-neg-bg);        color: var(--ls-neg);           border-color: rgba(220,38,38,.18); }
.ls-page .ls-weight-ico .ico { width: 14px; height: 14px; }
.ls-page .ls-weight-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ls-page .ls-weight-name {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink, #0A0A0A);
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ls-page .ls-weight-name .kind {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--s200, #E7E5E4);
  color: var(--s600, #57534E);
  letter-spacing: 0.04em;
}
.ls-page .ls-weight-name .kind.fit    { background: var(--info-bg, #DBEAFE); color: var(--info-fg, #1D4ED8); }
.ls-page .ls-weight-name .kind.intent { background: var(--ok-bg, #DCFCE7);   color: var(--q-hot, #15803D); }
.ls-page .ls-weight-name .kind.neg    { background: var(--ls-neg-bg);        color: var(--ls-neg); }
.ls-page .ls-weight-desc { font-size: 11px; color: var(--s500, #78716C); font-weight: 500; line-height: 1.4; }
.ls-page .ls-weight-desc b { color: var(--ink, #0A0A0A); font-weight: 700; }
.ls-page .ls-weight-input-wrap { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.ls-page .ls-weight-input {
  width: 54px;
  padding: 5px 4px;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
  background: #fff;
  border: 1px solid var(--s300, #D6D3D1);
  border-radius: 6px;
  color: var(--ink, #0A0A0A);
  font-family: inherit;
  transition: all 180ms cubic-bezier(.4,0,.2,1);
}
.ls-page .ls-weight-input:focus { outline: none; border-color: var(--ink, #0A0A0A); box-shadow: 0 0 0 3px rgba(10,10,10,.05); }
.ls-page .ls-weight-input.neg { color: var(--ls-neg); border-color: rgba(220,38,38,.25); }
.ls-page .ls-weight-input:disabled,
.ls-page .ls-weight-input[readonly] { background: var(--s50, #FAFAF9); color: var(--s400, #A8A29E); cursor: not-allowed; }
.ls-page .ls-weight-input-suf {
  font-size: 10.5px;
  color: var(--s500, #78716C);
  font-weight: 700;
  min-width: 18px;
}

/* Decay rows */
.ls-page .ls-decay-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--s50, #FAFAF9);
  border: 1px solid var(--s100, #F5F5F4);
  border-radius: 10px;
  margin-bottom: 9px;
}
.ls-page .ls-decay-row:last-child { margin-bottom: 0; }
.ls-page .ls-decay-l { flex: 1; }
.ls-page .ls-decay-label { font-size: 12.5px; font-weight: 800; color: var(--ink, #0A0A0A); }
.ls-page .ls-decay-sub { font-size: 11px; color: var(--s500, #78716C); font-weight: 500; margin-top: 2px; }
.ls-page .ls-decay-input-wrap { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.ls-page .ls-decay-input {
  width: 62px;
  padding: 5px 4px;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
  background: #fff;
  border: 1px solid var(--s300, #D6D3D1);
  border-radius: 6px;
  color: var(--ink, #0A0A0A);
  font-family: inherit;
}
.ls-page .ls-decay-input:focus { outline: none; border-color: var(--ink, #0A0A0A); box-shadow: 0 0 0 3px rgba(10,10,10,.05); }
.ls-page .ls-decay-unit { font-size: 11px; color: var(--s500, #78716C); font-weight: 700; }

/* Live preview card */
.ls-page .ls-preview-card {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid var(--s200, #E7E5E4);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-rest, 0 1px 2px rgba(10,10,10,.03));
}
.ls-page .ls-preview-h {
  padding: 14px 18px;
  border-bottom: 1px solid var(--s100, #F5F5F4);
  background: linear-gradient(180deg, var(--warn-bg, #FEF3C7) 0%, #fff 100%);
}
.ls-page .ls-preview-h.hot  { background: linear-gradient(180deg, var(--ok-bg, #DCFCE7) 0%, #fff 100%); }
.ls-page .ls-preview-h.cold { background: linear-gradient(180deg, var(--s100, #F5F5F4) 0%, #fff 100%); }
.ls-page .ls-preview-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--q-warm, #D97706);
  margin-bottom: 5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ls-page .ls-preview-h.hot  .ls-preview-eyebrow { color: var(--q-hot, #15803D); }
.ls-page .ls-preview-h.cold .ls-preview-eyebrow { color: var(--s500, #78716C); }
.ls-page .ls-preview-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink, #0A0A0A);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.ls-page .ls-preview-addr {
  font-size: 11.5px;
  color: var(--s600, #57534E);
  font-weight: 600;
  margin-top: 3px;
}

/* Bucket banner */
.ls-page .ls-score-bucket {
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, #fff 0%, var(--s50, #FAFAF9) 100%);
  border-bottom: 1px solid var(--s100, #F5F5F4);
  display: flex;
  align-items: center;
  gap: 14px;
}
.ls-page .ls-score-num-wrap {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--q-warm, #D97706);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: 0 4px 14px -4px rgba(217,119,6,.4);
  position: relative;
}
.ls-page .ls-score-num-wrap.hot  { border-color: var(--q-hot, #15803D); box-shadow: 0 4px 14px -4px rgba(21,128,61,.4); }
.ls-page .ls-score-num-wrap.cold { border-color: var(--s400, #A8A29E); box-shadow: 0 4px 14px -4px rgba(168,162,158,.4); }
.ls-page .ls-score-num-wrap::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  animation: ls-pulse-warm 2s ease-in-out infinite;
}
.ls-page .ls-score-num-wrap.hot::before  { animation-name: ls-pulse-hot; }
.ls-page .ls-score-num-wrap.cold::before { animation-name: ls-pulse-cold; }
.ls-page .ls-score-num {
  font-size: 30px;
  font-weight: 900;
  color: var(--q-warm, #D97706);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.ls-page .ls-score-num-wrap.hot  .ls-score-num { color: var(--q-hot, #15803D); }
.ls-page .ls-score-num-wrap.cold .ls-score-num { color: var(--s500, #78716C); }
.ls-page .ls-score-num-of {
  font-size: 10px;
  color: var(--s500, #78716C);
  font-weight: 700;
  margin-top: 2px;
}
.ls-page .ls-score-side { flex: 1; min-width: 0; }
.ls-page .ls-score-bucket-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--warn-bg, #FEF3C7);
  color: var(--q-warm, #D97706);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ls-page .ls-score-bucket-label.hot  { background: var(--ok-bg, #DCFCE7); color: var(--q-hot, #15803D); }
.ls-page .ls-score-bucket-label.cold { background: var(--s100, #F5F5F4); color: var(--s500, #78716C); }
.ls-page .ls-score-bucket-label .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--q-warm, #D97706);
}
.ls-page .ls-score-bucket-label.hot  .dot { background: var(--q-hot, #15803D); }
.ls-page .ls-score-bucket-label.cold .dot { background: var(--s400, #A8A29E); }
.ls-page .ls-score-bucket-recommendation {
  font-size: 12px;
  color: var(--ink, #0A0A0A);
  font-weight: 700;
  line-height: 1.3;
}
.ls-page .ls-score-bucket-recommendation b { color: var(--red, #C41230); }
.ls-page .ls-score-bucket-sub { font-size: 10.5px; color: var(--s500, #78716C); font-weight: 600; margin-top: 3px; }

/* Breakdown bars */
.ls-page .ls-breakdown { padding: 16px 18px; border-bottom: 1px solid var(--s100, #F5F5F4); }
.ls-page .ls-breakdown-h {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--s500, #78716C);
  margin-bottom: 10px;
}
.ls-page .ls-bars { display: flex; flex-direction: column; gap: 11px; margin-bottom: 14px; }
.ls-page .ls-bar-row { display: flex; flex-direction: column; gap: 5px; }
.ls-page .ls-bar-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
}
.ls-page .ls-bar-row-name {
  font-weight: 800;
  color: var(--ink, #0A0A0A);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ls-page .ls-bar-row-name .kind-mark { width: 6px; height: 6px; border-radius: 50%; }
.ls-page .ls-bar-row-name .kind-mark.fit    { background: var(--info-fg, #1D4ED8); }
.ls-page .ls-bar-row-name .kind-mark.intent { background: var(--q-hot, #15803D); }
.ls-page .ls-bar-row-val {
  font-weight: 800;
  color: var(--ink, #0A0A0A);
  font-variant-numeric: tabular-nums;
}
.ls-page .ls-bar-row-val .small { font-size: 10px; color: var(--s400, #A8A29E); font-weight: 700; }
.ls-page .ls-bar-track {
  height: 7px;
  background: var(--s100, #F5F5F4);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.ls-page .ls-bar-fill { height: 100%; border-radius: 4px; transition: width 180ms cubic-bezier(.4,0,.2,1); }
.ls-page .ls-bar-fill.fit    { background: linear-gradient(90deg, var(--info-fg, #1D4ED8) 0%, #3B82F6 100%); }
.ls-page .ls-bar-fill.intent { background: linear-gradient(90deg, var(--q-hot, #15803D) 0%, #22C55E 100%); }

/* Top signals list */
.ls-page .ls-signals-h {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--s500, #78716C);
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ls-page .ls-signals-h-r { font-size: 10px; color: var(--s400, #A8A29E); font-weight: 700; }
.ls-page .ls-signal-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--s50, #FAFAF9);
  margin-bottom: 5px;
  font-size: 11.5px;
}
.ls-page .ls-signal-row:last-child { margin-bottom: 0; }
.ls-page .ls-signal-row.neg { background: #FEF2F2; }
.ls-page .ls-signal-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--s200, #E7E5E4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--s600, #57534E);
}
.ls-page .ls-signal-icon.fit    { background: var(--info-bg, #DBEAFE); color: var(--info-fg, #1D4ED8); border-color: rgba(29,78,216,.2); }
.ls-page .ls-signal-icon.intent { background: var(--ok-bg, #DCFCE7);   color: var(--q-hot, #15803D);   border-color: rgba(21,128,61,.2); }
.ls-page .ls-signal-icon.neg    { background: var(--ls-neg-bg);        color: var(--ls-neg);           border-color: rgba(220,38,38,.2); }
.ls-page .ls-signal-icon .ico { width: 11px; height: 11px; }
.ls-page .ls-signal-body { flex: 1; min-width: 0; }
.ls-page .ls-signal-name { font-size: 11.5px; font-weight: 700; color: var(--ink, #0A0A0A); }
.ls-page .ls-signal-detail { font-size: 10.5px; color: var(--s500, #78716C); font-weight: 500; }
.ls-page .ls-signal-pts {
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.ls-page .ls-signal-pts.pos { color: var(--q-hot, #15803D); }
.ls-page .ls-signal-pts.neg { color: var(--ls-neg); }

/* Uplift block */
.ls-page .ls-uplift {
  padding: 14px 18px;
  background: linear-gradient(180deg, var(--s50, #FAFAF9) 0%, #fff 100%);
  border-bottom: 1px solid var(--s100, #F5F5F4);
}
.ls-page .ls-uplift-h {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--s500, #78716C);
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ls-page .ls-uplift-h .ico { width: 11px; height: 11px; color: var(--q-hot, #15803D); }
.ls-page .ls-uplift-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--s200, #E7E5E4);
  margin-bottom: 5px;
  font-size: 11.5px;
}
.ls-page .ls-uplift-row:last-child { margin-bottom: 0; }
.ls-page .ls-uplift-row-l { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.ls-page .ls-uplift-row-l .ico { width: 13px; height: 13px; color: var(--q-hot, #15803D); }
.ls-page .ls-uplift-row-l .text { font-size: 11.5px; font-weight: 700; color: var(--ink, #0A0A0A); }
.ls-page .ls-uplift-row-r {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  color: var(--q-hot, #15803D);
  font-variant-numeric: tabular-nums;
}

.ls-page .ls-preview-foot {
  padding: 11px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ls-page .ls-preview-foot-l { display: flex; flex-direction: column; gap: 1px; }
.ls-page .ls-preview-foot-time { font-size: 10.5px; color: var(--s500, #78716C); font-weight: 700; }
.ls-page .ls-preview-foot-time b { color: var(--ink, #0A0A0A); font-weight: 800; }
.ls-page .ls-preview-foot-explain { font-size: 10px; color: var(--s400, #A8A29E); font-weight: 600; }

/* Save bar */
.ls-page .ls-save-bar {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, #fff 30%);
  padding: 18px 0;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  z-index: 10;
}
.ls-page .ls-save-bar-l {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--s500, #78716C);
  font-weight: 600;
}
.ls-page .ls-save-bar-l .ico { color: var(--q-warm, #D97706); width: 14px; height: 14px; }
.ls-page .ls-save-bar-l b { color: var(--ink, #0A0A0A); font-weight: 800; }
.ls-page .ls-save-bar-r { display: flex; align-items: center; gap: 7px; }

/* Buttons inside the lead-scoring page */
.ls-page .ls-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  transition: all 180ms cubic-bezier(.4,0,.2,1);
}
.ls-page .ls-btn-r {
  background: var(--red, #C41230);
  color: #fff;
  border-color: var(--red, #C41230);
  box-shadow: 0 1px 2px rgba(196,18,48,.2), 0 4px 12px -4px rgba(196,18,48,.4);
}
.ls-page .ls-btn-r:hover { background: var(--red-dark, #A60F28); transform: translateY(-1px); }
.ls-page .ls-btn-w {
  background: #fff;
  color: var(--s700, #44403C);
  border-color: var(--s200, #E7E5E4);
}
.ls-page .ls-btn-w:hover { border-color: var(--ink, #0A0A0A); color: var(--ink, #0A0A0A); }
.ls-page .ls-btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 8px; }
.ls-page .ls-btn-xs { padding: 5px 9px; font-size: 11px; border-radius: 7px; }
.ls-page .ls-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ════ Lead detail breakdown card (renders inside .ld-page rail) ═════ */
.ld-page .quality-card {
  background: #fff;
  border: 1px solid var(--s200, #E7E5E4);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-rest, 0 1px 2px rgba(10,10,10,.03));
}
.ld-page .quality-h {
  padding: 12px 14px;
  border-bottom: 1px solid var(--s100, #F5F5F4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, var(--warn-bg, #FEF3C7) 0%, #fff 100%);
}
.ld-page .quality-card.hot  .quality-h { background: linear-gradient(180deg, var(--ok-bg, #DCFCE7) 0%, #fff 100%); }
.ld-page .quality-card.cold .quality-h { background: linear-gradient(180deg, var(--s100, #F5F5F4) 0%, #fff 100%); }
.ld-page .quality-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--s500, #78716C);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ld-page .quality-eyebrow .ico { color: var(--s500, #78716C); width: 11px; height: 11px; }
.ld-page .quality-info {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--s200, #E7E5E4);
  color: var(--s500, #78716C);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 180ms cubic-bezier(.4,0,.2,1);
}
.ld-page .quality-info:hover { color: var(--ink, #0A0A0A); border-color: var(--ink, #0A0A0A); }
.ld-page .quality-score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
}
.ld-page .quality-num {
  font-size: 32px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--q-warm, #D97706);
  min-width: 50px;
}
.ld-page .quality-card.hot  .quality-num { color: var(--q-hot, #15803D); }
.ld-page .quality-card.cold .quality-num { color: var(--s500, #78716C); }
.ld-page .quality-mid { flex: 1; min-width: 0; }
.ld-page .quality-mid .ld-chip { margin-bottom: 4px; }
.ld-page .quality-sla {
  font-size: 11px;
  color: var(--ink, #0A0A0A);
  font-weight: 700;
  line-height: 1.3;
}
.ld-page .quality-sla b { color: var(--red, #C41230); }
.ld-page .quality-bars { padding: 0 14px 12px; }
.ld-page .quality-bars .ls-bar-row { display: flex; flex-direction: column; gap: 5px; margin-bottom: 8px; }
.ld-page .quality-bars .ls-bar-row:last-child { margin-bottom: 0; }
.ld-page .quality-bars .ls-bar-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}
.ld-page .quality-bars .ls-bar-row-name {
  font-weight: 800;
  color: var(--ink, #0A0A0A);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ld-page .quality-bars .ls-bar-row-val {
  font-weight: 800;
  color: var(--ink, #0A0A0A);
  font-variant-numeric: tabular-nums;
}
.ld-page .quality-bars .ls-bar-row-val .small { font-size: 10px; color: var(--s400, #A8A29E); font-weight: 700; }
.ld-page .quality-bars .ls-bar-track {
  height: 6px;
  background: var(--s100, #F5F5F4);
  border-radius: 3px;
  overflow: hidden;
}
.ld-page .quality-bars .ls-bar-fill { height: 100%; border-radius: 3px; transition: width 180ms cubic-bezier(.4,0,.2,1); }
.ld-page .quality-bars .ls-bar-fill.fit    { background: linear-gradient(90deg, var(--info-fg, #1D4ED8) 0%, #3B82F6 100%); }
.ld-page .quality-bars .ls-bar-fill.intent { background: linear-gradient(90deg, var(--q-hot, #15803D) 0%, #22C55E 100%); }
.ld-page .quality-expand {
  width: 100%;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--s500, #78716C);
  background: var(--s50, #FAFAF9);
  border: none;
  border-top: 1px solid var(--s100, #F5F5F4);
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 180ms cubic-bezier(.4,0,.2,1);
}
.ld-page .quality-expand:hover { color: var(--ink, #0A0A0A); background: #fff; }
.ld-page .quality-expand .ico { width: 11px; height: 11px; transition: transform 180ms cubic-bezier(.4,0,.2,1); }
.ld-page .quality-expand.open .ico { transform: rotate(180deg); }
.ld-page .quality-signals-list { padding: 10px 14px 12px; border-top: 1px solid var(--s100, #F5F5F4); }
.ld-page .quality-signals-list .ls-signal-row { font-size: 11px; }
.ld-page .quality-foot {
  padding: 8px 14px;
  font-size: 10.5px;
  color: var(--s500, #78716C);
  font-weight: 600;
  background: var(--s50, #FAFAF9);
  border-top: 1px solid var(--s100, #F5F5F4);
}
.ld-page .quality-foot b { color: var(--ink, #0A0A0A); font-weight: 800; }

/* ════ Hot-lead toast (mounted bottom-right by leadHotToast) ═════ */
.ls-toast-hot {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 48px);
  background: #fff;
  border: 1px solid var(--red, #C41230);
  border-radius: 12px;
  box-shadow: 0 12px 32px -8px rgba(196,18,48,.32), 0 4px 12px rgba(10,10,10,.08);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  z-index: 1900;
  animation: ls-pulse-sidebar-dot 2s ease-in-out 1;
  font-family: var(--ff-sans, 'Archivo', system-ui, sans-serif);
}
.ls-toast-hot .toast-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--pale-red, #FBF3F4);
  color: var(--red, #C41230);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ls-toast-hot .toast-ico .ico { width: 18px; height: 18px; }
.ls-toast-hot .toast-body { flex: 1; min-width: 0; }
.ls-toast-hot .toast-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink, #0A0A0A);
  letter-spacing: -0.005em;
  margin-bottom: 1px;
}
.ls-toast-hot .toast-sub {
  font-size: 11.5px;
  color: var(--s600, #57534E);
  font-weight: 600;
  line-height: 1.35;
}
.ls-toast-hot .toast-sub b { color: var(--ink, #0A0A0A); font-weight: 800; }
.ls-toast-hot .toast-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.ls-toast-hot .toast-actions button { font-family: inherit; }
.ls-toast-hot .toast-open {
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--red, #C41230);
  color: #fff;
  border: none;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.ls-toast-hot .toast-open:hover { background: var(--red-dark, #A60F28); }
.ls-toast-hot .toast-dismiss {
  background: none;
  border: none;
  color: var(--s400, #A8A29E);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ls-toast-hot .toast-dismiss:hover { color: var(--ink, #0A0A0A); }

/* Sidebar hot-lead dot — appended to the Leads nav-item */
.ls-sb-leads-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red, #C41230);
  margin-left: 6px;
  animation: ls-pulse-sidebar-dot 1.6s ease-in-out infinite;
  flex-shrink: 0;
  vertical-align: middle;
}
