
/* v245 — Lead Management hero and KPI readability upgrade */
.lead-crm-page {
  color:#142b46 !important;
  font-family: Inter, "Segoe UI", Arial, sans-serif !important;
}
.lead-crm-page .lead-hero {
  display:grid !important;
  grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr) !important;
  gap:28px !important;
  align-items:center !important;
  padding:clamp(24px,3vw,40px) !important;
  margin:0 0 22px !important;
  border-radius:24px !important;
  background:linear-gradient(120deg,#102847 0%,#164477 65%,#2867a3 100%) !important;
  box-shadow:0 14px 32px rgba(16,40,71,.16) !important;
  color:#fff !important;
  overflow:hidden !important;
}
.lead-crm-page .lead-hero .eyebrow {
  color:#c7d9ef !important;
  font-size:12px !important;
  font-weight:850 !important;
  letter-spacing:.16em !important;
  line-height:1.5 !important;
  margin:0 0 12px !important;
}
.lead-crm-page .lead-hero h2 {
  color:#fff !important;
  font-size:clamp(28px,2.6vw,40px) !important;
  font-weight:850 !important;
  letter-spacing:-.035em !important;
  line-height:1.12 !important;
  margin:0 0 12px !important;
  text-shadow:none !important;
}
.lead-crm-page .lead-hero p {
  color:#e5effb !important;
  font-size:16px !important;
  line-height:1.65 !important;
  max-width:620px !important;
  margin:0 !important;
}
.lead-crm-page .lead-hero-actions {
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:10px !important;
}
.lead-crm-page .lead-hero-actions .btn {
  min-height:48px !important;
  padding:12px 18px !important;
  border-radius:13px !important;
  font-size:14px !important;
  line-height:1.3 !important;
  font-weight:800 !important;
  white-space:normal !important;
  box-shadow:0 4px 12px rgba(0,0,0,.08) !important;
}
.lead-crm-page .lead-hero-actions .btn-gold {
  color:#102847 !important;
  background:linear-gradient(135deg,#ffdc69,#e7b934) !important;
  border:1px solid #f2cd54 !important;
}
.lead-crm-page .lead-hero-actions .btn-light {
  color:#123253 !important;
  background:#fff !important;
  border:1px solid #e3edf7 !important;
}
.lead-crm-page .lead-kpi-grid {
  display:grid !important;
  grid-template-columns:repeat(6,minmax(0,1fr)) !important;
  gap:14px !important;
  margin:0 0 22px !important;
}
.lead-crm-page .lead-kpi {
  position:relative !important;
  min-width:0 !important;
  min-height:184px !important;
  padding:20px 19px !important;
  border:1px solid rgba(255,255,255,.3) !important;
  border-radius:20px !important;
  box-shadow:0 8px 22px rgba(25,48,78,.10) !important;
  overflow:hidden !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;
  gap:0 !important;
}
.lead-crm-page .lead-kpi::after {
  content:"" !important;
  position:absolute !important;
  width:100px !important;
  height:100px !important;
  right:-34px !important;
  bottom:-42px !important;
  border-radius:50% !important;
  background:rgba(255,255,255,.13) !important;
  pointer-events:none !important;
}
.lead-crm-page .lead-kpi > span {
  display:grid !important;
  place-items:center !important;
  width:42px !important;
  height:42px !important;
  border-radius:13px !important;
  background:rgba(255,255,255,.18) !important;
  font-size:23px !important;
  line-height:1 !important;
  margin:0 0 15px !important;
}
.lead-crm-page .lead-kpi small {
  display:block !important;
  color:rgba(255,255,255,.95) !important;
  font-size:12px !important;
  font-weight:850 !important;
  line-height:1.4 !important;
  letter-spacing:.065em !important;
  margin:0 0 8px !important;
  overflow-wrap:anywhere !important;
}
.lead-crm-page .lead-kpi strong {
  display:block !important;
  color:#fff !important;
  font-size:clamp(27px,2.2vw,36px) !important;
  font-weight:900 !important;
  line-height:1.12 !important;
  letter-spacing:-.025em !important;
  margin:0 0 8px !important;
  text-shadow:0 1px 1px rgba(0,0,0,.08) !important;
}
.lead-crm-page .lead-kpi em {
  color:rgba(255,255,255,.98) !important;
  font-size:13px !important;
  font-style:normal !important;
  font-weight:600 !important;
  line-height:1.45 !important;
  margin-top:auto !important;
}
.lead-crm-page .lead-dashboard-grid {
  gap:18px !important;
}
.lead-crm-page .panel {
  border:1px solid #e0e8f2 !important;
  border-radius:19px !important;
  box-shadow:0 7px 22px rgba(22,43,69,.055) !important;
  overflow:hidden !important;
}
.lead-crm-page .panel-head {
  padding:19px 21px !important;
  gap:14px !important;
}
.lead-crm-page .panel-head h4 {
  color:#142b46 !important;
  font-size:16px !important;
  font-weight:850 !important;
  line-height:1.35 !important;
}
.lead-crm-page .panel-head small {
  color:#60748c !important;
  font-size:13px !important;
  line-height:1.5 !important;
}
.lead-crm-page .crm-stage span {
  font-size:12px !important;
  font-weight:800 !important;
  line-height:1.35 !important;
  overflow-wrap:anywhere !important;
}
.lead-crm-page .crm-stage strong {
  font-size:25px !important;
  font-weight:900 !important;
  line-height:1.2 !important;
}
@media(max-width:1200px) {
  .lead-crm-page .lead-kpi-grid { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
  .lead-crm-page .lead-kpi { min-height:166px !important; }
}
@media(max-width:760px) {
  .lead-crm-page .lead-hero {
    grid-template-columns:minmax(0,1fr) !important;
    gap:20px !important;
    padding:23px 20px !important;
    border-radius:19px !important;
    margin-bottom:16px !important;
  }
  .lead-crm-page .lead-hero h2 { font-size:29px !important; }
  .lead-crm-page .lead-hero p { font-size:14px !important; }
  .lead-crm-page .lead-hero-actions { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  .lead-crm-page .lead-hero-actions .btn { width:100% !important; min-width:0 !important; min-height:46px !important; padding:10px 9px !important; font-size:12px !important; }
  .lead-crm-page .lead-kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:10px !important; margin-bottom:16px !important; }
  .lead-crm-page .lead-kpi { min-height:158px !important; padding:15px 14px !important; border-radius:16px !important; }
  .lead-crm-page .lead-kpi > span { width:36px !important; height:36px !important; font-size:20px !important; margin-bottom:12px !important; }
  .lead-crm-page .lead-kpi small { font-size:10px !important; letter-spacing:.04em !important; }
  .lead-crm-page .lead-kpi strong { font-size:29px !important; }
  .lead-crm-page .lead-kpi em { font-size:11px !important; }
  .lead-crm-page .panel-head { padding:15px !important; }
}
@media(max-width:360px) {
  .lead-crm-page .lead-kpi { padding:12px !important; }
  .lead-crm-page .lead-kpi small { font-size:9px !important; }
  .lead-crm-page .lead-kpi strong { font-size:26px !important; }
}
