.lead-management-app {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px;
  color: #0f172a;
}
.lm-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid #c7e9f6;
  border-radius: 18px;
  background: linear-gradient(135deg, #eefbff 0%, #ffffff 58%, #f4fff9 100%);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
  margin-bottom: 18px;
}
.lm-hero h1 {
  margin: 2px 0 6px;
  font-size: 32px;
  line-height: 1.1;
}
.lm-hero p,
.lm-muted {
  color: #64748b;
}
.lm-eyebrow,
.lm-card-subhead {
  display: block;
  color: #0f766e;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .04em;
}
.lm-hero-actions,
.lm-action-list,
.lm-pill-row,
.lm-filter-row,
.lm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.lm-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.lm-tabs a,
.lm-action-list a,
.lm-btn {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 10px 16px;
  text-decoration: none;
  color: #0f172a;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}
.lm-tabs a.is-active,
.lm-btn-primary {
  border-color: #2bbda4;
  color: #fff;
  background: linear-gradient(135deg, #2bbda4, #14a3b8);
  box-shadow: 0 14px 28px rgba(20, 184, 166, .22);
}
.lm-btn-secondary {
  background: #fff;
}
.lm-btn-danger {
  border-color: #fecaca;
  background: #fff5f5;
  color: #991b1b;
}
.lm-quick-action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.lm-quick-action {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
  color: #0f172a;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .04);
}
.lm-quick-action span {
  color: #0f766e;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.lm-quick-action strong {
  font-size: 14px;
}
.lm-btn-sm {
  padding: 7px 12px;
  font-size: 12px;
}
.lm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.lm-grid-main {
  align-items: stretch;
}
.lm-span-2 {
  grid-column: span 2;
}
.lm-span-3 {
  grid-column: 1 / -1;
}
.lm-card {
  background: #fff;
  border: 1px solid #dbe5ef;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .07);
}
.cold-lead-current {
  min-height: 180px;
}
.cold-lead-card {
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 48%, #effdf8 100%);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
}
.cold-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.cold-info-grid div {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  background: rgba(255,255,255,.76);
}
.cold-info-grid span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.cold-info-grid strong {
  display: block;
  margin-top: 5px;
  color: #0f172a;
  overflow-wrap: anywhere;
}
.lm-card h2 {
  margin: 0 0 8px;
  font-size: 19px;
}
.lm-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.lm-card-head .lm-pill {
  flex-shrink: 0;
}
.lm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 18px;
}
.lm-kpi {
  border: 1px solid #dbeafe;
  background: linear-gradient(135deg, #f8fbff, #f7fffb);
  border-radius: 14px;
  padding: 14px;
}
.lm-kpi span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.lm-kpi strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 26px;
}
.lm-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 800;
}
.lm-alert {
  display: none;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #9a3412;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 8px 0 12px;
  font-weight: 800;
}
.lm-alert.is-visible {
  display: block;
}
.lm-dev-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 14px;
  padding: 10px 12px;
  border: 1px dashed #f59e0b;
  border-radius: 12px;
  background: #fffbeb;
  color: #78350f;
}
.lm-dev-toolbar strong {
  font-size: 13px;
  text-transform: uppercase;
}
.lm-dev-toolbar span {
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
}
.lm-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 12px 0;
}
.lm-assignment-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.lm-assignment-tabs .is-active {
  border-color: #2bbda4;
  color: #0f766e;
  box-shadow: 0 0 0 3px rgba(45, 189, 164, .12);
}
.lm-assignment-panel {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
  padding: 14px;
}
.lm-assignment-panel h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.lm-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .38);
}
.lm-modal-shell[hidden] {
  display: none;
}
.lm-modal-card {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .22);
  padding: 20px;
}
.lm-worker-modal {
  width: min(980px, calc(100vw - 32px));
}
.lm-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}
.lm-modal-open {
  overflow: hidden;
}
.lm-form-one {
  grid-template-columns: 1fr;
}
.lm-form-grid label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 800;
  font-size: 13px;
}
.lm-settings-groups {
  display: grid;
  gap: 12px;
  margin: 12px 0;
}
.lm-settings-group {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 13px;
  background: #f8fafc;
}
.lm-settings-group h3 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 14px;
}
.lm-settings-group .lm-check {
  align-items: flex-start;
  font-weight: 600;
  color: #334155;
  line-height: 1.35;
}
.lm-form-grid input,
.lm-form-grid select,
.lm-form-grid textarea,
.lm-filter-row input,
.lm-filter-row select,
#lmEventSearch,
.lm-approve-grid input,
.lm-approve-grid textarea,
#lmNotifEmailRecipients,
.lm-table select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  font: inherit;
}
.lm-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  table-layout: auto;
}
.lm-table-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}
.lm-package-table {
  min-width: 980px;
}
.lm-table th {
  text-align: left;
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 8px;
}
.lm-table td {
  border-bottom: 1px solid #eef2f7;
  padding: 11px 8px;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: normal;
}
.lm-money {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  max-width: 9rem;
}
.lm-actions {
  max-width: 100%;
}
.lm-actions .btn,
.lm-actions .lm-btn {
  white-space: normal;
  text-align: center;
}
.lm-table .lm-actions {
  align-items: flex-start;
  min-width: 120px;
}
.lm-table .lm-pill {
  white-space: normal;
}
.lm-btn:disabled,
.lm-btn[disabled] {
  cursor: not-allowed;
  opacity: .55;
  box-shadow: none;
}
.lm-bars {
  display: grid;
  gap: 9px;
}
.lm-bar {
  display: grid;
  grid-template-columns: 110px 1fr 34px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.lm-bar-track {
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.lm-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #14b8a6, #38bdf8);
}
.lm-package-card,
.lm-lead-row {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  margin: 10px 0;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .05);
  overflow: hidden;
}
.lm-package-management {
  display: grid;
  gap: 18px;
  margin-top: 8px;
}
.lm-package-section {
  display: grid;
  gap: 10px;
}
.lm-package-list {
  display: grid;
  gap: 12px;
}
.lm-package-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 14px;
  color: #64748b;
  background: #f8fafc;
}
.lm-distribution-list {
  display: grid;
  gap: 10px;
  margin: 10px 0 16px;
}
.lm-distribution-card {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}
.lm-distribution-card.is-eligible {
  border-color: #99f6e4;
  background: linear-gradient(135deg, #f0fdfa, #ffffff);
}
.lm-distribution-card.is-ineligible {
  background: #f8fafc;
}
.lm-distribution-card div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.lm-distribution-card span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.lm-distribution-card strong {
  color: #0f172a;
  overflow-wrap: anywhere;
}
.lm-distribution-card small {
  color: #64748b;
  font-weight: 700;
}
.lm-package-card-pending {
  border-color: #99f6e4;
  background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 52%, #f8fbff 100%);
}
.lm-package-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.lm-package-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.lm-package-title strong {
  color: #0f172a;
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.lm-package-title span,
.lm-package-status-block small,
.lm-package-panel-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}
.lm-package-status-block {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}
.lm-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.lm-status-active {
  border-color: #99f6e4;
  background: #ecfdf5;
  color: #047857;
}
.lm-status-pending-request {
  border-color: #bae6fd;
  background: #f0f9ff;
  color: #0369a1;
}
.lm-status-paused {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}
.lm-status-rejected,
.lm-status-cancelled {
  border-color: #fecaca;
  background: #fff5f5;
  color: #991b1b;
}
.lm-status-exhausted {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #475569;
}
.lm-package-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.lm-package-field {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(248, 250, 252, .78);
}
.lm-package-field span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.lm-package-field strong {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.lm-money-value strong {
  font-variant-numeric: tabular-nums;
  white-space: normal;
}
.lm-package-note {
  margin: 12px 0 0;
  border-left: 3px solid #2bbda4;
  padding: 8px 10px;
  color: #475569;
  background: rgba(240, 253, 250, .72);
  border-radius: 0 10px 10px 0;
  overflow-wrap: anywhere;
}
.lm-package-approval-panel {
  margin-top: 14px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 14px;
  background: rgba(248, 250, 252, .88);
}
.lm-package-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.lm-package-panel-head strong {
  color: #0f766e;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.lm-package-actions {
  justify-content: flex-end;
  border-top: 1px solid #e2e8f0;
  margin-top: 14px;
  padding-top: 12px;
}
.lm-progress {
  height: 9px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin: 10px 0;
}
.lm-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2bbda4, #38bdf8);
}
.lm-status {
  margin-left: 10px;
  color: #0f766e;
  font-weight: 800;
}
.lm-approve-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}
.lm-approve-grid label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.lm-approve-grid .lm-approve-note {
  grid-column: 1 / -1;
}
.lm-request-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.lm-request-meta span {
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fafc;
  padding: 10px;
  color: #334155;
}
.lm-request-meta strong {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.lm-pending-request-card {
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  border-color: #fed7aa;
}
.lm-recipient-list {
  display: grid;
  gap: 10px;
}
.lm-worker-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(135deg, #f8fbff, #fff);
}
.lm-worker-card:has(input:checked) {
  border-color: #2bbda4;
  box-shadow: 0 0 0 3px rgba(45, 189, 164, .12);
}
.lm-worker-card span {
  display: grid;
  gap: 3px;
}
.lm-worker-card small {
  color: #64748b;
}
.lm-worker-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  padding: 4px 4px 4px 0;
}
.lm-worker-scroll .lm-worker-card {
  min-height: 0;
  padding: 9px 10px;
  align-items: center;
}
.lm-selected-workers {
  margin: 8px 0 10px;
}
.lm-selected-pool {
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
}
.lm-round-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}
.lm-rr-status {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
}
.lm-rr-status strong {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #0f172a;
}
.lm-rr-status p {
  margin: 4px 0;
  color: #334155;
  font-weight: 700;
}
.lm-rr-status small,
.lm-rr-last span {
  color: #64748b;
}
.lm-rr-status.is-active {
  border-color: #99f6e4;
  background: linear-gradient(135deg, #ecfeff, #ffffff);
}
.lm-rr-status.is-paused {
  border-color: #fde68a;
  background: linear-gradient(135deg, #fffbeb, #ffffff);
}
.lm-rr-last {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}
.lm-rr-spinner {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #14b8a6;
  box-shadow: 0 0 0 0 rgba(20, 184, 166, .38);
  animation: lmPulse 1.8s ease-in-out infinite;
}
.lm-mini-note {
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 9px 10px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}
.lm-warning-text {
  color: #b45309;
  font-weight: 800;
}
.lm-activity-feed {
  display: grid;
  gap: 8px;
}
.lm-activity-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f8fafc;
}
.lm-activity-item strong,
.lm-activity-item span {
  display: block;
}
.lm-activity-item span {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}
.lm-activity-full {
  margin-top: 12px;
}
@keyframes lmPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, .32); }
  50% { box-shadow: 0 0 0 8px rgba(20, 184, 166, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .lm-rr-spinner {
    animation: none;
  }
}
.lm-row-actions,
.lm-chip-grid,
.lm-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.lm-row-actions {
  align-items: flex-start;
}
.lm-cold-list-table td {
  min-width: 130px;
}
.lm-pagination {
  margin-top: 12px;
  justify-content: flex-end;
}
.lm-recipient {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  background: #f8fafc;
}
.lm-recipient span {
  display: grid;
  gap: 3px;
}
.lm-recipient small {
  color: #64748b;
}
.lm-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 800;
}
.lm-settings-group .lm-check {
  align-items: flex-start;
  font-weight: 600;
  color: #334155;
  line-height: 1.35;
}
@media (max-width: 1180px) {
  .lm-package-meta-grid,
  .lm-approve-grid,
  .lm-distribution-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .lead-management-app {
    padding: 14px;
  }
  .lm-hero,
  .lm-card-head {
    flex-direction: column;
    align-items: stretch;
  }
  .lm-grid,
  .lm-kpi-grid,
  .lm-package-meta-grid,
  .lm-approve-grid,
  .lm-distribution-card,
  .lm-request-meta,
  .lm-form-grid {
    grid-template-columns: 1fr;
  }
  .lm-package-status-block {
    align-items: flex-start;
  }
  .lm-package-actions {
    justify-content: flex-start;
  }
  .lm-span-2,
  .lm-span-3 {
    grid-column: auto;
  }
  .lm-bar {
    grid-template-columns: 88px 1fr 28px;
  }
  .lm-row-actions,
  .lm-pagination {
    justify-content: flex-start;
  }
}
