.crm-leads-command-deck {
  padding: 14px;
  border-radius: 12px;
}
.crm-leads-command-deck > .row:first-child h2 {
  font-size: 20px;
  margin-bottom: 0;
}
.crm-lead-filter-drawer,
.crm-lead-action-drawer {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
}
.crm-lead-filter-drawer > .crm-details-summary,
.crm-lead-action-drawer > .crm-details-summary {
  min-height: 42px;
  padding: 9px 12px;
  cursor: pointer;
}
.crm-filter-drawer-title {
  font-weight: 800;
}
.crm-filter-drawer-summary {
  margin-left: auto;
  color: #64748b;
  font-size: 12px;
}
.crm-lead-filter-drawer[open] > .crm-details-summary,
.crm-lead-action-drawer[open] > .crm-details-summary {
  border-bottom: 1px solid var(--line);
}
.crm-lead-filter-drawer > .crm-lead-input-rail,
.crm-lead-filter-drawer > .crm-filter-strip,
.crm-lead-filter-drawer > .crm-advanced-filter-details {
  margin-left: 12px;
  margin-right: 12px;
}
.crm-lead-filter-drawer > .crm-lead-input-rail {
  margin-top: 10px;
}
.crm-lead-filter-drawer > .crm-advanced-filter-details {
  margin-bottom: 12px;
}
.crm-lead-action-drawer {
  padding: 0;
}
.crm-lead-batch-inner {
  padding: 0 12px 12px;
}
.crm-pipeline-primary-surface {
  margin-top: 12px;
  border-radius: 12px;
}
.crm-pipeline-board-hint {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}
.crm-customer-kind-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid #c7d7f8;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}
.crm-customer-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.crm-customer-snapshot-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}
.crm-customer-snapshot-item span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.crm-customer-snapshot-item strong {
  overflow-wrap: anywhere;
  color: #0f172a;
  font-size: 14px;
}
.crm-raw-lead-details .crm-details-summary {
  min-height: 38px;
  cursor: pointer;
}
.crm-review-decision-block {
  border-color: #dbeafe;
  background: #f8fbff;
}
@media (max-width: 760px) {
  .crm-filter-drawer-summary,
  .crm-pipeline-board-hint-wide {
    display: none;
  }
}
.crm-lead-search-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.crm-filter-strip-primary {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.crm-advanced-filter-details {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.crm-lead-batch-card {
  margin-top: 12px;
  border-radius: 8px;
}
.crm-lead-batch-grid {
  display: grid;
  grid-template-columns: auto minmax(150px, 190px) minmax(240px, 1fr);
  gap: 10px;
  align-items: end;
  margin-top: 10px;
}
.crm-lead-batch-count {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 800;
  white-space: nowrap;
}
.crm-lead-select-row,
.crm-kanban-card-head {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 26px;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.crm-kanban-delete {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #94a3b8;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.crm-kanban-delete:hover,
.crm-kanban-delete:focus-visible {
  background: #fef2f2;
  color: #b91c1c;
  outline: none;
}
.crm-lead-select-row {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
}
.crm-lead-select {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  width: 18px;
  min-height: 18px;
  padding-top: 0;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
}
.crm-lead-select input {
  width: 16px;
  height: 16px;
  margin: 0;
}
.crm-lead-select span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.crm-kanban-card-head strong {
  line-height: 18px;
  overflow-wrap: anywhere;
}
.crm-kanban-card-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 auto;
}
.crm-kanban-card-title {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.crm-kanban-meta-status-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.crm-meta-status-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 2px 7px;
  border-radius: 5px;
  background: #eef2f7;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}
.crm-kanban-column-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 8px;
  align-items: center;
}
.crm-kanban-column-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crm-column-select {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
}
.crm-column-select input {
  width: 14px;
  height: 14px;
  margin: 0;
}
.crm-kanban-card .crm-lead-row-meta {
  display: flex;
  margin-top: 6px;
}
.crm-kanban-card .crm-source-chip {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}
.crm-kanban-load-more {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}
.crm-kanban-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 0;
}
.crm-source-chip-answer {
  max-width: 100%;
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}
.crm-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 16px;
}
.crm-detail-modal.hidden {
  display: none;
}
.crm-detail-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .58);
}
.crm-detail-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 54px rgba(15, 23, 42, .24);
}
.crm-detail-modal-close {
  position: sticky;
  top: 10px;
  float: right;
  z-index: 2;
  margin: 10px 10px 0 0;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}
body.crm-detail-modal-open {
  overflow: hidden;
}
.crm-prospect-actionbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.crm-prospect-actionbar .action,
.crm-prospect-actionbar .btn-ghost {
  min-height: 34px;
  padding: 6px 12px;
}
.crm-detail-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.crm-detail-block-head h3 {
  margin: 0;
}
.crm-detail-modal-panel .crm-prospect-detail {
  border: 0;
  box-shadow: none;
}
.crm-prospect-crm-modal {
  position: fixed;
  inset: 0;
  z-index: 1240;
  display: grid;
  place-items: center;
  padding: 16px;
}
.crm-prospect-crm-modal.hidden {
  display: none;
}
.crm-prospect-crm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .38);
}
.crm-prospect-crm-panel {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .24);
}
.crm-prospect-crm-content {
  padding: 18px;
}
.crm-prospect-crm-body {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.crm-prospect-crm-row {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  gap: 12px;
  align-items: baseline;
}
.crm-prospect-crm-row span {
  color: var(--muted);
  font-weight: 700;
}
.crm-prospect-crm-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
.crm-prospect-crm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.crm-prospect-reply-card {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}
.crm-prospect-reply-card .crm-compact-controls {
  margin-top: 0;
}
.crm-prospect-message-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.crm-prospect-composer-send {
  min-height: 42px;
  margin-bottom: 1px;
  white-space: nowrap;
}
.crm-rich-email {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.crm-rich-email-toolbar,
.crm-email-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.crm-rich-email-editor {
  min-height: 150px;
  padding: 14px;
  border: 1px solid var(--border, #d8deea);
  border-radius: 10px;
  background: #fff;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.crm-rich-email-editor:empty::before {
  content: attr(data-placeholder);
  color: #77839a;
  pointer-events: none;
}
.crm-rich-email-editor img,
.crm-email-preview-content img {
  max-width: 100%;
  height: auto;
}
.crm-email-dropzone {
  padding: 14px;
  border: 2px dashed #b8c4d8;
  border-radius: 10px;
  text-align: center;
  background: #f8faff;
}
.crm-email-dropzone.is-dragging {
  border-color: #356cf5;
  background: #eef4ff;
}
.crm-email-attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid #cad3e3;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
}
.crm-email-preview-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: 85vh;
  padding: 20px;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 20px 70px rgb(16 25 45 / 28%);
}
.crm-email-preview-dialog::backdrop {
  background: rgb(16 25 45 / 55%);
}
.crm-email-preview-content {
  padding: 20px;
  border: 1px solid #dce2ed;
  border-radius: 10px;
  background: #fff;
}
.crm-profile-activity-head {
  margin-top: 14px;
}
.crm-profile-activity {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}
.crm-profile-activity-item {
  display: grid;
  grid-template-columns: minmax(88px, auto) 1fr;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e0e5ee;
  border-radius: 10px;
  background: #fff;
}
.crm-profile-activity-meta {
  color: #667085;
  font-size: 12px;
}
.crm-lead-classification-block {
  border-color: rgba(37, 99, 235, 0.2);
  background: #f8fbff;
}
.crm-lead-classification-block .crm-detail-block-head {
  align-items: center;
}
.crm-online-presence-details > summary {
  cursor: pointer;
}
.crm-prospect-reply-message-field {
  grid-column: 1 / -1;
}
.crm-prospect-message-composer .crm-prospect-reply-message-field {
  grid-column: auto;
}
@media (max-width: 720px) {
  .crm-prospect-message-composer {
    grid-template-columns: minmax(0, 1fr);
  }
  .crm-prospect-composer-send {
    width: 100%;
  }
}
.crm-prospect-checkout-panel {
  grid-column: 1 / -1;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.crm-prospect-checkout-panel > summary {
  min-height: 40px;
  padding: 9px 12px;
  cursor: pointer;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  list-style-position: inside;
  user-select: none;
}
.crm-prospect-checkout-panel > summary:hover,
.crm-prospect-checkout-panel > summary:focus-visible {
  background: #f1f5f9;
  outline: none;
}
.crm-prospect-checkout-body {
  display: grid;
  grid-template-columns: minmax(170px, 210px) minmax(150px, 190px) minmax(280px, 1fr) minmax(84px, 110px) minmax(130px, auto);
  gap: 10px;
  align-items: end;
  padding: 0 12px 12px;
}
.crm-prospect-checkout-toggle {
  align-self: center;
  min-height: 38px;
}
.crm-prospect-checkout-product,
.crm-prospect-checkout-product select {
  min-width: 0;
}
.crm-prospect-checkout-qty input {
  text-align: right;
}
.crm-prospect-checkout-body .btn-ghost {
  min-height: 38px;
  white-space: nowrap;
}
.crm-prospect-checkout-body .ops-helper {
  grid-column: 1 / -1;
}
.crm-prospect-reply-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.crm-lead-conversation {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}
.crm-lead-classification-block {
  border-color: rgba(37, 99, 235, .2);
  background: #f8fbff;
}
.crm-lead-classification-block .crm-detail-block-head {
  align-items: center;
}
.crm-online-presence-details > summary {
  cursor: pointer;
}
.crm-lead-conversation-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}
.crm-lead-conversation-toolbar > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.crm-lead-conversation-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(46vh, 520px);
  overflow: auto;
  padding: 12px;
}
.crm-lead-conversation-message {
  width: min(74%, 760px);
}
.crm-lead-conversation-empty {
  display: grid;
  gap: 2px;
  padding: 12px;
  color: #64748b;
  font-size: 13px;
}
.crm-lead-conversation-empty span {
  font-size: 12px;
}
.crm-voice-call-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.crm-voice-call-card,
.crm-voice-call-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}
.crm-voice-call-empty {
  color: #64748b;
  font-size: 13px;
}
.crm-voice-call-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.crm-voice-call-head strong {
  color: #0f172a;
  font-size: 14px;
}
.crm-voice-call-head span,
.crm-voice-call-meta {
  color: #64748b;
  font-size: 12px;
}
.crm-voice-call-error {
  margin-top: 8px;
  color: #991b1b;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.crm-voice-transcript {
  margin-top: 8px;
  border-top: 1px solid #e2e8f0;
  padding-top: 8px;
}
.crm-voice-transcript .label {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.crm-voice-transcript .text {
  margin-top: 4px;
  max-height: 240px;
  overflow: auto;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.crm-voice-insights {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.crm-voice-insights span {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 2px 7px;
}
.crm-conversation-intelligence {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.crm-conversation-intelligence-head,
.crm-conversation-intelligence-actions > div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}
.crm-conversation-intelligence-summary {
  color: #0f172a;
  line-height: 1.5;
  margin: 0;
  white-space: pre-wrap;
}
.crm-conversation-intelligence-detail ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 20px;
}
.crm-conversation-intelligence-actions {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 7px;
  padding-top: 9px;
}
.crm-conversation-intelligence-actions p {
  margin: 0;
}
.crm-conversation-intelligence-settings {
  border-top: 1px solid var(--line);
  padding-top: 9px;
}
.crm-conversation-intelligence-settings-grid {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}
.crm-conversation-intelligence-settings-grid label {
  align-items: center;
  color: #334155;
  display: flex;
  gap: 8px;
  font-size: 13px;
}
.crm-conversation-intelligence-settings-grid input[type="number"] {
  margin-left: auto;
  max-width: 120px;
}
@media (max-width: 720px) {
  .crm-lead-search-row {
    grid-template-columns: 1fr;
  }
  .crm-lead-batch-grid {
    grid-template-columns: 1fr;
  }
  .crm-prospect-actionbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .crm-lead-conversation-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .crm-lead-conversation-message {
    width: 92%;
  }
  .crm-prospect-checkout-body {
    grid-template-columns: 1fr;
  }
  .crm-prospect-checkout-qty input {
    text-align: left;
  }
}
.customer-workspace-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 10px;
  padding: 4px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #f6f8fb;
  overflow-x: auto;
}
.customer-workspace-tabs button {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #526077;
  font-weight: 700;
  cursor: pointer;
}
.customer-workspace-tabs button:hover {
  background: #e9eef6;
  color: #162033;
}
.customer-workspace-tabs button.active {
  background: #fff;
  color: #174ea6;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}
