/* Engage Solar — Pipeline de Leads (Kanban) */

body[data-es-panel-active="pipeline"] .es-page-heading {
  display: none !important;
}

body[data-es-panel-active="pipeline"] .es-content {
  margin-top: -0.65rem;
  padding: 0;
  background: #eef2f8;
  border-radius: 1.35rem 1.35rem 0 0;
  overflow: hidden;
}

body[data-es-panel-active="pipeline"] .es-panel[data-es-panel="pipeline"] {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: #eef2f8;
  min-height: 100%;
}

.epl-shell {
  padding: 1.35rem 1.5rem 1.75rem;
  max-width: 100%;
  margin: 0 auto;
}

.epl-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.epl-toolbar-copy {
  flex: 1 1 280px;
}

.epl-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
}

.epl-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.epl-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #64748b;
  max-width: 52ch;
}

.epl-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.epl-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: min(100%, 320px);
  padding: 0.55rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.epl-search-wrap svg {
  width: 18px;
  height: 18px;
  color: #94a3b8;
  flex-shrink: 0;
}

.epl-search-wrap input {
  border: 0;
  outline: none;
  width: 100%;
  font-size: 0.9rem;
  background: transparent;
}

.epl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.epl-btn svg {
  width: 16px;
  height: 16px;
}

.epl-btn--primary {
  background: #2563eb;
  color: #fff;
}

.epl-btn--outline {
  background: #fff;
  border-color: #e2e8f0;
  color: #0f172a;
}

.epl-btn--ghost {
  background: transparent;
  color: #475569;
}

.epl-mock-banner,
.epl-error-banner {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.88rem;
}

.epl-mock-banner {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.epl-error-banner {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.epl-link-btn {
  background: none;
  border: 0;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.epl-filters {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.epl-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.epl-filter-field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
}

.epl-filter-field span {
  font-weight: 600;
  color: #64748b;
}

.epl-filter-field select,
.epl-filter-field input {
  min-height: 40px;
  padding: 0.45rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.88rem;
}

.epl-filter-field--full {
  grid-column: 1 / -1;
}

.epl-filter-field--check {
  gap: 0.45rem;
}

.epl-filter-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.epl-filter-check input[type="checkbox"] {
  min-height: auto;
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  flex: 0 0 auto;
  accent-color: #2563eb;
}

.epl-filter-hint {
  color: #94a3b8;
  font-size: 0.75rem;
  line-height: 1.35;
}

.epl-btn--outline.is-active-filter {
  border-color: #2563eb;
  color: #1d4ed8;
  background: #eff6ff;
}

.epl-filters-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.epl-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.epl-kpi-grid[data-cols="8"] {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.epl-kpi-grid[data-cols="7"] {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.epl-kpi-card {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.epl-kpi-card.is-clickable {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.epl-kpi-card.is-clickable:hover,
.epl-kpi-card.is-clickable:focus-visible {
  border-color: #94a3b8;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  outline: none;
}

.epl-kpi-card.is-clickable.is-active {
  border-color: #16a34a;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.25);
}

.epl-kpi-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}

.epl-kpi-value {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.epl-kpi-pct {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.epl-kpi-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
}

.epl-kpi-card[data-tone="primary"] .epl-kpi-value { color: #2563eb; }
.epl-kpi-card[data-tone="amber"] .epl-kpi-value { color: #d97706; }
.epl-kpi-card[data-tone="blue"] .epl-kpi-value { color: #0284c7; }
.epl-kpi-card[data-tone="purple"] .epl-kpi-value { color: #7c3aed; }
.epl-kpi-card[data-tone="orange"] .epl-kpi-value { color: #ea580c; }
.epl-kpi-card[data-tone="green"] .epl-kpi-value { color: #16a34a; }
.epl-kpi-card[data-tone="teal"] .epl-kpi-value { color: #0d9488; }
.epl-kpi-card[data-tone="slate"] .epl-kpi-value { color: #64748b; }

.epl-kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(240px, 1fr));
  gap: 0.85rem;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.epl-kanban[data-cols="7"] {
  grid-template-columns: repeat(7, minmax(210px, 1fr));
}

.epl-kanban[data-cols="6"] {
  grid-template-columns: repeat(6, minmax(220px, 1fr));
}

.epl-column {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  max-height: calc(100vh - 320px);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
}

.epl-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.epl-column-head h3 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

.epl-column-emoji {
  margin-right: 0.25rem;
}

.epl-column-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.epl-column-drop {
  flex: 1;
  overflow-y: auto;
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 120px;
}

.epl-column-drop.is-drag-over,
.epl-column.is-drag-over .epl-column-drop {
  background: #eff6ff;
  outline: 2px dashed #93c5fd;
  outline-offset: -4px;
}

.epl-column.is-drag-over {
  background: #f8fbff;
}

.is-dragging-lead .epl-card:not(.is-dragging) {
  pointer-events: none;
}

.epl-column-empty {
  margin: 1rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

.epl-column-add,
.epl-column-more {
  margin: 0.35rem 0.65rem 0.65rem;
  padding: 0.55rem;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}

.epl-card {
  padding: 0.85rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.epl-card:hover {
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.epl-card.is-dragging {
  opacity: 0.55;
  transform: rotate(1deg);
}

.epl-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.epl-card-contact {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1;
  min-width: 0;
}

.epl-card-identity {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.epl-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #1e40af;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  flex-shrink: 0;
}

.epl-card-name {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.epl-card-phone {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.72rem;
  line-height: 1.2;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.epl-card-head-actions {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}

.epl-card-wa,
.epl-card-move-menu {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: #f8fafc;
  color: #16a34a;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.epl-card-move-menu {
  color: #64748b;
}

.epl-card-wa svg {
  width: 18px;
  height: 18px;
}

.epl-source-icon {
  font-size: 0.85rem;
}

.epl-card--solar .epl-card-meta {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.55rem;
}

.epl-card-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #475569;
  min-width: 0;
}

.epl-card-meta-item span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.epl-card-qual {
  margin-top: 0.55rem;
}

.epl-card-qual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #64748b;
  margin-bottom: 0.2rem;
}

.epl-card-qual-head strong {
  color: #0d9488;
  font-size: 0.78rem;
}

.epl-card-qual-track {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.epl-card-qual-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #14b8a6, #0d9488);
}

.epl-temp-chip {
  font-size: 1rem;
  line-height: 1;
}

.epl-score-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
}

.epl-score-pill[data-tone="high"] { background: #ecfdf5; color: #15803d; }
.epl-score-pill[data-tone="mid"] { background: #fffbeb; color: #b45309; }
.epl-score-pill[data-tone="low"] { background: #f1f5f9; color: #64748b; }

/* Lead drawer */
.epl-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1200;
}

.epl-lead-drawer.is-inline {
  position: relative;
  top: auto;
  right: auto;
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 5rem);
  box-shadow: none;
  z-index: 1;
}

.epl-lead-drawer.is-inline.is-premium {
  width: 100%;
}

.epl-drawer-person {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.epl-drawer-person-photo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.epl-drawer-person-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  flex-shrink: 0;
}

.epl-drawer-kpi-qual-value {
  font-size: 1.05rem !important;
  color: #2563eb;
}

.epl-drawer-activity-item {
  padding: 0.65rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.epl-drawer-activity-item strong {
  display: block;
  font-size: 0.84rem;
  color: #0f172a;
}

.epl-drawer-activity-item span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: #64748b;
}

.epl-lead-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(100%, 480px);
  height: 100%;
  background: #fff;
  z-index: 1201;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12);
}

.epl-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.epl-drawer-eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2563eb;
}

.epl-drawer-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.epl-drawer-sub {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.epl-drawer-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #f1f5f9;
  font-size: 1.35rem;
  cursor: pointer;
}

.epl-drawer-complete {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.epl-drawer-complete-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

.epl-drawer-complete-track {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.epl-drawer-complete-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #14b8a6, #0d9488);
}

.epl-drawer-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.epl-drawer-tab {
  flex: 1;
  min-height: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.epl-drawer-tab.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.epl-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}

.epl-drawer-foot {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  padding: 1rem 1.25rem;
  border-top: 1px solid #e2e8f0;
}

.epl-drawer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.epl-drawer-field span {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
}

.epl-drawer-field strong {
  font-size: 0.88rem;
  color: #0f172a;
}

.epl-drawer-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.epl-drawer-input {
  display: grid;
  gap: 0.3rem;
  font-size: 0.82rem;
}

.epl-drawer-input--full {
  grid-column: 1 / -1;
}

.epl-drawer-input input,
.epl-drawer-input select,
.epl-drawer-input textarea {
  min-height: 38px;
  padding: 0.45rem 0.6rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
}

.epl-drawer-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  grid-column: 1 / -1;
}

.epl-drawer-ai {
  margin-bottom: 1rem;
  padding: 0.85rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.epl-drawer-ai h3 {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
}

.epl-drawer-suggestion {
  display: flex;
  gap: 0.65rem;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-top: 1px solid #e2e8f0;
}

.epl-drawer-suggestion:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.epl-drawer-suggestion-copy strong {
  display: block;
  font-size: 0.82rem;
}

.epl-drawer-suggestion-copy span {
  display: block;
  font-size: 0.88rem;
  color: #0f172a;
}

.epl-drawer-suggestion-copy em {
  font-size: 0.72rem;
  color: #64748b;
  font-style: normal;
}

.epl-drawer-suggestion-actions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.epl-btn--sm {
  min-height: 32px;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
}

.epl-drawer-muted,
.epl-drawer-loading,
.epl-drawer-error {
  font-size: 0.88rem;
  color: #64748b;
}

.epl-drawer-error {
  color: #b91c1c;
  background: #fef2f2;
  padding: 0.75rem;
  border-radius: 10px;
}

.epl-drawer-success {
  font-size: 0.88rem;
  color: #047857;
  background: #ecfdf5;
  padding: 0.75rem;
  border-radius: 10px;
  margin: 0 0 0.75rem;
}

.epl-drawer-conversation {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
}

.epl-drawer-conversation-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.epl-drawer-messages {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  padding-right: 0.15rem;
}

.epl-drawer-msg {
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.epl-drawer-msg[data-tone="out"] {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.epl-drawer-msg[data-tone="in"] {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.epl-drawer-msg header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
}

.epl-drawer-msg header time {
  color: #94a3b8;
  font-weight: 500;
}

.epl-drawer-msg p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #334155;
}

.epl-drawer-history-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.epl-drawer-history-hint {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
}

.epl-drawer-history-empty {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.epl-drawer-history-empty .epl-drawer-muted strong {
  color: #334155;
  font-weight: 600;
}

.epl-drawer-history {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.epl-drawer-history::before {
  content: '';
  position: absolute;
  left: 0.55rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: #e2e8f0;
}

.epl-drawer-history li,
.epl-drawer-history-item {
  position: relative;
  padding: 0.75rem 0.85rem 0.75rem 1.5rem;
  border-left: none;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.epl-drawer-history-item::before {
  content: '';
  position: absolute;
  left: 0.35rem;
  top: 1.05rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 3px #eff6ff;
}

.epl-drawer-history-item[data-tone="blue"]::before { background: #2563eb; box-shadow: 0 0 0 3px #eff6ff; }
.epl-drawer-history-item[data-tone="teal"]::before { background: #0d9488; box-shadow: 0 0 0 3px #f0fdfa; }
.epl-drawer-history-item[data-tone="orange"]::before { background: #ea580c; box-shadow: 0 0 0 3px #fff7ed; }
.epl-drawer-history-item[data-tone="amber"]::before { background: #d97706; box-shadow: 0 0 0 3px #fffbeb; }
.epl-drawer-history-item[data-tone="purple"]::before { background: #7c3aed; box-shadow: 0 0 0 3px #f5f3ff; }
.epl-drawer-history-item[data-tone="green"]::before { background: #16a34a; box-shadow: 0 0 0 3px #f0fdf4; }
.epl-drawer-history-item[data-tone="slate"]::before { background: #64748b; box-shadow: 0 0 0 3px #f1f5f9; }

.epl-drawer-history time {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}

.epl-drawer-history strong {
  display: block;
  font-size: 0.84rem;
  color: #0f172a;
}

.epl-drawer-history span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: #64748b;
}

.epl-drawer-history-stage {
  display: inline-flex !important;
  margin-top: 0.35rem !important;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem !important;
  font-weight: 600;
  color: #1e293b !important;
  background: #e2e8f0;
}

.epl-drawer-history-stage[data-tone="blue"] { background: #dbeafe; color: #1d4ed8 !important; }
.epl-drawer-history-stage[data-tone="teal"] { background: #ccfbf1; color: #0f766e !important; }
.epl-drawer-history-stage[data-tone="orange"] { background: #ffedd5; color: #c2410c !important; }
.epl-drawer-history-stage[data-tone="amber"] { background: #fef3c7; color: #b45309 !important; }
.epl-drawer-history-stage[data-tone="purple"] { background: #ede9fe; color: #6d28d9 !important; }
.epl-drawer-history-stage[data-tone="green"] { background: #dcfce7; color: #15803d !important; }
.epl-drawer-history-stage[data-tone="slate"] { background: #e2e8f0; color: #475569 !important; }

.epl-drawer-subhead {
  margin: 1rem 0 0.5rem;
  font-size: 0.88rem;
  color: #0f172a;
}

.epl-intel-breakdown {
  margin: 0;
  padding: 0;
  list-style: none;
}

.epl-intel-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.84rem;
}

/* Premium lead drawer (Leads list) */
.epl-lead-drawer.is-premium {
  width: min(100%, 520px);
}

.epl-drawer-hero {
  position: relative;
  padding: 1.35rem 1.25rem 1rem;
  border-bottom: 1px solid #e8edf3;
  background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
  text-align: center;
}

.epl-drawer-hero .epl-drawer-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
}

.epl-drawer-hero-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  font-size: 1.35rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.epl-drawer-hero h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
}

.epl-drawer-hero-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.epl-drawer-hero-icon {
  display: inline-flex;
  color: #94a3b8;
}

.epl-drawer-hero-icon--wa {
  color: #16a34a;
}

.epl-drawer-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 1rem;
  text-align: left;
}

.epl-drawer-kpi {
  padding: 0.55rem 0.6rem;
  border: 1px solid #edf1f6;
  border-radius: 12px;
  background: #fff;
}

.epl-drawer-kpi > span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}

.epl-drawer-kpi > strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
}

.epl-drawer-kpi-pill {
  display: inline-flex !important;
  align-items: center;
  gap: 0.15rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem !important;
}

.epl-drawer-kpi-pill[data-tone="high"] { background: #ecfdf5; color: #047857; }
.epl-drawer-kpi-pill[data-tone="mid"] { background: #fff7ed; color: #c2410c; }
.epl-drawer-kpi-pill[data-tone="hot"] { background: #fef2f2; color: #dc2626; }
.epl-drawer-kpi-pill[data-tone="warm"] { background: #fff7ed; color: #ea580c; }
.epl-drawer-kpi-pill[data-tone="cold"] { background: #eff6ff; color: #2563eb; }
.epl-drawer-kpi-pill[data-tone="purple"] { background: #f5f3ff; color: #7c3aed; }
.epl-drawer-kpi-pill[data-tone="teal"] { background: #f0fdfa; color: #0d9488; }
.epl-drawer-kpi-pill[data-tone="blue"] { background: #eff6ff; color: #2563eb; }
.epl-drawer-kpi-pill[data-tone="neutral"] { background: #f1f5f9; color: #64748b; }

.epl-drawer-kpi-track {
  height: 4px;
  margin-top: 0.3rem;
  border-radius: 999px;
  background: #e8edf3;
  overflow: hidden;
}

.epl-drawer-kpi-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2dd4bf, #0d9488);
}

.epl-drawer-tabs--underline {
  gap: 0;
  padding: 0 1rem;
  border-bottom: 1px solid #e8edf3;
}

.epl-drawer-tabs--underline .epl-drawer-tab {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 0;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #64748b;
}

.epl-drawer-tabs--underline .epl-drawer-tab.is-active {
  background: transparent;
  border-bottom-color: #2563eb;
  color: #2563eb;
}

.epl-lead-drawer.is-premium .epl-drawer-body {
  padding: 1.1rem 1.2rem 1.5rem;
  background: #fff;
}

.epl-drawer-premium-resumo {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.epl-drawer-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.25rem;
  margin-bottom: 1.15rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid #f1f5f9;
}

.epl-drawer-summary-field span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #94a3b8;
  margin-bottom: 0.28rem;
}

.epl-drawer-summary-field strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.epl-drawer-summary-grid .epl-drawer-field span {
  font-size: 0.68rem;
  color: #94a3b8;
}

.epl-drawer-summary-grid .epl-drawer-field strong {
  font-size: 0.86rem;
}

.epl-drawer-qual-card {
  padding: 1rem 1.05rem;
  margin-bottom: 1.15rem;
  border: 1px solid #e8edf3;
  border-radius: 14px;
  background: #fafbfd;
}

.epl-drawer-qual-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.epl-drawer-qual-card-head strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

.epl-drawer-qual-badge {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.72rem;
  font-weight: 700;
}

.epl-drawer-qual-card-track {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.epl-drawer-qual-card-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2dd4bf, #0d9488);
}

.epl-drawer-qual-foot {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
}

.epl-drawer-quick-actions {
  margin-bottom: 1.15rem;
}

.epl-drawer-quick-actions h3,
.epl-drawer-ai-card-title {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

.epl-drawer-quick-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.epl-drawer-action-panel {
  margin-top: 0.75rem;
  padding: 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.epl-drawer-action-field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  font-size: 0.82rem;
}

.epl-drawer-action-field span {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}

.epl-drawer-action-field select {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font: inherit;
  font-size: 0.84rem;
  background: #fff;
}

.epl-drawer-action-panel-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.epl-lead-drawer.is-premium .epl-btn--primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
}

.epl-lead-drawer.is-premium .epl-btn--outline {
  border-radius: 10px;
  border-color: #bfdbfe;
  color: #2563eb;
  background: #fff;
  font-weight: 600;
}

.epl-drawer-ai-card {
  padding: 1rem 1.05rem;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.epl-drawer-ai-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.epl-drawer-ai-card-head small {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}

.epl-drawer-ai-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid #e8edf3;
}

.epl-drawer-ai-item-copy {
  flex: 1;
  min-width: 0;
}

.epl-drawer-ai-item:first-of-type {
  border-top: 0;
  padding-top: 0.35rem;
}

.epl-drawer-ai-item span {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
}

.epl-drawer-ai-item strong {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

.epl-drawer-ai-item em {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  font-style: normal;
  color: #94a3b8;
}

.epl-drawer-ai-more {
  margin-top: 0.65rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.epl-card-snippet {
  margin: 0.55rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #334155;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.epl-card-campaign {
  margin-top: 0.45rem;
  font-size: 0.75rem;
  color: #64748b;
}

.epl-card-assignee {
  margin-top: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #475569;
  min-width: 0;
}

.epl-card-assignee-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.epl-card-assignee--empty {
  color: #94a3b8;
}

.epl-card-assignee-avatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #e2e8f0;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 700;
}

.epl-card-followup {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #ea580c;
  font-weight: 600;
}

.epl-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.epl-card-time {
  font-size: 0.72rem;
  color: #94a3b8;
}

.epl-card-badges {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.epl-card-intelligence {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.epl-priority-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.epl-priority-badge[data-tone="high"] {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fdba74;
}

.epl-priority-badge[data-tone="medium"] {
  background: #fef9c3;
  color: #a16207;
  border: 1px solid #fde047;
}

.epl-priority-badge[data-tone="low"] {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.epl-grade-badge {
  min-width: 1.65rem;
  height: 1.65rem;
  padding: 0 0.35rem;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
}

.epl-grade-badge[data-tone="aplus"],
.epl-grade-badge[data-tone="a"] {
  background: #15803d;
}

.epl-grade-badge[data-tone="b"] {
  background: #16a34a;
}

.epl-grade-badge[data-tone="c"] {
  background: #ca8a04;
  color: #422006;
}

.epl-grade-badge[data-tone="d"] {
  background: #ea580c;
}

.epl-grade-badge[data-tone="e"],
.epl-grade-badge[data-tone="neutral"] {
  background: #94a3b8;
}

.epl-temp-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 1rem;
  line-height: 1;
}

.epl-temp-manual {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

.epl-card-intel-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #eff6ff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}

.epl-intel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1200;
}

.epl-intel-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(100%, 420px);
  height: 100%;
  background: #fff;
  z-index: 1201;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12);
}

.epl-intel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.epl-intel-eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2563eb;
}

.epl-intel-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.epl-intel-sub {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.epl-intel-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #f1f5f9;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: #475569;
}

.epl-intel-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}

.epl-intel-foot {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  padding: 1rem 1.25rem;
  border-top: 1px solid #e2e8f0;
}

.epl-intel-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.epl-intel-score {
  font-size: 0.82rem;
  color: #475569;
}

.epl-intel-meta {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.epl-intel-breakdown-title {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

.epl-intel-breakdown {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.epl-intel-breakdown li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  font-size: 0.82rem;
}

.epl-intel-breakdown li[data-tone="positive"] {
  background: #ecfdf5;
  color: #166534;
}

.epl-intel-breakdown li[data-tone="negative"] {
  background: #fef2f2;
  color: #b91c1c;
}

.epl-intel-breakdown li strong {
  font-variant-numeric: tabular-nums;
}

.epl-intel-loading,
.epl-intel-empty {
  font-size: 0.88rem;
  color: #64748b;
}

.epl-intel-error {
  padding: 0.75rem;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.85rem;
}

.epl-temp-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.epl-temp-badge[data-tone="hot"] {
  background: #fef2f2;
  color: #dc2626;
}

.epl-temp-badge[data-tone="warm"] {
  background: #fff7ed;
  color: #ea580c;
}

.epl-temp-badge[data-tone="cold"] {
  background: #f1f5f9;
  color: #64748b;
}

.epl-closed-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #16a34a;
}

.epl-score-badge {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
}

.epl-score-badge[data-tone="high"] { background: #16a34a; }
.epl-score-badge[data-tone="mid"] { background: #f59e0b; }
.epl-score-badge[data-tone="low"] { background: #94a3b8; }
.epl-score-badge[data-tone="neutral"] { background: #cbd5e1; color: #475569; }

.epl-empty-state {
  padding: 3rem 1.5rem;
  text-align: center;
  color: #64748b;
  background: #fff;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
}

.epl-loading .epl-skeleton-kpi,
.epl-loading .epl-skeleton-kanban {
  border-radius: 14px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: epl-shimmer 1.2s infinite;
}

.epl-loading .epl-skeleton-kpi {
  height: 88px;
  margin-bottom: 1rem;
}

.epl-loading .epl-skeleton-kanban {
  height: 420px;
}

@keyframes epl-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.epl-mobile-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  margin-bottom: 0.75rem;
  padding-bottom: 0.25rem;
}

.epl-mobile-tab {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.epl-mobile-tab.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.epl-kanban--mobile {
  grid-template-columns: 1fr;
}

@media (max-width: 1279px) {
  .epl-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .epl-kanban:not(.epl-kanban--mobile) {
    grid-template-columns: repeat(5, minmax(240px, 1fr));
  }

  .epl-kanban:not(.epl-kanban--mobile)[data-cols="7"] {
    grid-template-columns: repeat(7, minmax(220px, 1fr));
  }
}

@media (max-width: 767px) {
  .epl-shell {
    padding: 1rem;
  }

  .epl-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .epl-toolbar-actions {
    width: 100%;
  }

  .epl-search-wrap {
    flex: 1 1 100%;
  }
}

/* Modal — Novo Lead (busca conversa) */
.epl-new-lead-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1200;
}

.epl-new-lead-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1201;
  width: min(32rem, calc(100vw - 2rem));
  max-height: min(34rem, calc(100vh - 2rem));
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(226, 232, 240, 0.95);
}

.epl-new-lead-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.epl-new-lead-eyebrow {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2563eb;
}

.epl-new-lead-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.epl-new-lead-sub {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}

.epl-new-lead-close {
  border: none;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
}

.epl-new-lead-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 1rem 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 10px;
  background: #f8fafc;
}

.epl-new-lead-search svg {
  width: 1rem;
  height: 1rem;
  color: #94a3b8;
  flex-shrink: 0;
}

.epl-new-lead-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.88rem;
  outline: none;
}

.epl-new-lead-error {
  margin: 0.65rem 1rem 0;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.8rem;
}

.epl-new-lead-body {
  flex: 1;
  overflow: auto;
  padding: 0.75rem 1rem;
  min-height: 12rem;
}

.epl-new-lead-loading,
.epl-new-lead-empty {
  margin: 0;
  padding: 1.5rem 0.5rem;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
}

.epl-new-lead-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.epl-new-lead-item {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.epl-new-lead-item:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.epl-new-lead-item.is-selected {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.epl-new-lead-item-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.epl-new-lead-item-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.epl-new-lead-item-copy strong {
  font-size: 0.88rem;
  color: #0f172a;
}

.epl-new-lead-item-copy span {
  font-size: 0.78rem;
  color: #475569;
}

.epl-new-lead-item-copy small {
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.epl-new-lead-item-tag {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  white-space: nowrap;
}

.epl-new-lead-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

/* ── Pipeline Comercial (NSI) + conversão Lead→Opp ── */

.epl-shell--commercial .epl-kanban--commercial {
  display: flex;
  gap: 0.85rem;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scroll-snap-type: x proximity;
}

.epl-shell--commercial .epl-kanban--commercial .epl-column {
  flex: 0 0 260px;
  scroll-snap-align: start;
}

.epl-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin-top: 0.55rem;
}

.epl-card-nsi-action {
  margin-top: 0.55rem;
}

.epl-card-nsi-btn {
  width: 100%;
  justify-content: center;
}

.epl-nsi-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.epl-nsi-chip--opp,
.epl-nsi-chip--property {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.epl-move-popover {
  margin-top: 0.55rem;
  padding: 0.55rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  display: grid;
  gap: 0.45rem;
}

.epl-move-popover[hidden] {
  display: none !important;
}

.epl-move-popover label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

.epl-column-drop.is-drop-target {
  outline: 2px dashed #2563eb;
  outline-offset: 2px;
  background: #eff6ff;
}

.epl-card.is-dragging {
  opacity: 0.55;
}

.epl-modal-host {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.epl-modal-host[hidden] {
  display: none !important;
}

.epl-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.epl-modal {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.epl-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid #e2e8f0;
}

.epl-modal-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.epl-modal-close {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}

.epl-modal-body {
  padding: 1rem 1.15rem 1.2rem;
  display: grid;
  gap: 0.85rem;
}

.epl-modal-step {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2563eb;
}

.epl-modal-lead {
  margin: 0;
  color: #475569;
  font-size: 0.9rem;
}

.epl-modal-lead--warn {
  color: #b45309;
}

.epl-modal-summary {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.epl-modal-summary div {
  display: grid;
  gap: 0.1rem;
}

.epl-modal-summary span {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
}

.epl-modal-summary strong {
  font-size: 0.9rem;
  color: #0f172a;
}

.epl-modal-summary small {
  color: #64748b;
}

.epl-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.epl-suggest-list {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.35rem;
}

.epl-suggest-item {
  text-align: left;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  font-size: 0.84rem;
}

.epl-suggest-item:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.epl-suggest-item small {
  color: #64748b;
}
