.crm-page {
  --crm-panel: #121d2b;
  --crm-line: #ffffff12;
  --crm-muted: #8f9cab;
  --crm-accent: #d6c4a6;
  color: #f0efeb;
  min-width: 0;
}
.crm-page .page-heading {
  align-items: flex-start;
  gap: 20px;
}
.crm-page .page-heading h1 {
  font-size: 34px;
  letter-spacing: -1.3px;
  font-weight: 550;
  line-height: 1.2;
}
.crm-page .page-heading p {
  color: var(--crm-muted);
  line-height: 1.6;
}
.crm-page .page-heading .eyebrow {
  color: var(--crm-accent);
  letter-spacing: 2px;
  font-size: 10px;
}
.crm-page .page-heading > .btn {
  flex-shrink: 0;
  margin-top: 20px;
}
.crm-page .btn.primary,
.crm-form-actions .btn.primary {
  background: #d6c4a6;
  color: #121a24;
  border: 1px solid #d6c4a6;
  box-shadow: none;
}
.crm-page .btn.primary:hover,
.crm-form-actions .btn.primary:hover {
  background: #e2d4bb;
}
.crm-page .btn.ghost,
.crm-form-actions .btn.ghost {
  background: transparent;
  color: #c9cdd1;
  border-color: #ffffff1a;
}
.crm-page .btn.text {
  color: var(--crm-accent);
}
.crm-page :is(button, a, input, select, textarea):focus-visible,
.crm-form-fields :is(input, select, textarea, button):focus-visible {
  outline: 2px solid #d6c4a6;
  outline-offset: 3px;
}
.crm-demo-note {
  font-size: 12px;
  color: #c5b697;
  margin: 0 0 20px;
}
.crm-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--crm-line);
  background: linear-gradient(110deg, #182331, #111b28);
  border-radius: 14px;
  margin: 28px 0 26px;
  padding: 22px 0;
}
.crm-metrics > div {
  padding: 0 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid var(--crm-line);
}
.crm-metrics > div:last-child {
  border: 0;
}
.crm-metrics span {
  font-size: 12px;
  color: var(--crm-muted);
}
.crm-metrics strong {
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.6px;
  font-variant-numeric: tabular-nums;
}
.crm-metrics small {
  font-size: 12px;
  margin-left: 8px;
  color: var(--crm-muted);
  font-weight: 400;
}
.crm-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.crm-view-switch {
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--crm-line);
  background: #0c1520;
  border-radius: 9px;
  flex-shrink: 0;
}
.crm-view-switch button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 9px 14px;
  color: var(--crm-muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.crm-view-switch button[aria-pressed='true'] {
  background: #26313d;
  color: #eee8db;
  box-shadow: 0 1px 4px #0003;
}
.crm-view-switch .icon {
  width: 15px;
  height: 15px;
}
.crm-search {
  margin-left: auto;
  width: min(330px, 100%);
}
.crm-search input,
.crm-filters select,
.crm-status-control select,
.crm-table select,
.crm-detail-status select {
  font: inherit;
  color: #dfe1e3;
  background: #131e2b;
  border: 1px solid #ffffff14;
  border-radius: 7px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.crm-search input {
  width: 100%;
  font-size: 12px;
  padding: 12px 15px;
}
.crm-search input::placeholder {
  color: #7f8c9b;
}
.crm-toolbar > .icon-button {
  color: #8f9cab;
  flex-shrink: 0;
  border: 1px solid var(--crm-line);
  border-radius: 7px;
}
.crm-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}
.crm-filters label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--crm-muted);
}
.crm-filters select {
  font-size: 11px;
  padding: 8px 24px 8px 10px;
  max-width: 200px;
  background: #0e1926;
}
.crm-results-label {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  color: #8492a2;
  font-size: 11px;
}
.crm-results-label .btn {
  font-size: 11px;
  padding: 6px;
}
.crm-pipeline {
  display: grid;
  grid-template-columns: repeat(7, minmax(246px, 1fr));
  align-items: start;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: #46515e transparent;
  min-height: 440px;
}
.crm-column {
  background: #111b27;
  border: 1px solid #ffffff09;
  border-radius: 10px;
  min-height: 360px;
  padding: 13px 10px 10px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.crm-column-heading {
  padding: 3px 4px 16px;
}
.crm-column-heading > div {
  display: flex;
  align-items: center;
  gap: 7px;
}
.crm-column-heading h2 {
  font-size: 11px;
  font-weight: 550;
  margin: 0;
  white-space: nowrap;
}
.crm-column-count {
  font-size: 10px;
  color: #97a3b0;
  background: #ffffff09;
  padding: 2px 6px;
  border-radius: 4px;
}
.crm-column-heading > strong {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #7e8c9b;
  margin: 7px 0 0 14px;
}
.crm-stage-dot {
  height: 6px;
  width: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #bec7d0;
}
.crm-stage-contacted .crm-stage-dot {
  background: #acb5c7;
}
.crm-stage-consultation .crm-stage-dot {
  background: #baac96;
}
.crm-stage-offer .crm-stage-dot {
  background: #cfb992;
}
.crm-stage-negotiation .crm-stage-dot {
  background: #d8c6a6;
}
.crm-stage-won .crm-stage-dot {
  background: #84b89b;
}
.crm-stage-lost .crm-stage-dot {
  background: #b17d78;
}
.crm-column-cards {
  display: grid;
  gap: 10px;
  min-height: 226px;
  align-content: start;
}
.crm-card {
  padding: 13px;
  background: #1a2634;
  border: 1px solid #ffffff0c;
  box-shadow: 0 3px 6px #050c1410;
  border-radius: 8px;
  cursor: grab;
  min-width: 0;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.crm-card:hover {
  border-color: #d6c4a644;
}
.crm-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.crm-card-source {
  color: #8d9bac;
  font-size: 9px;
  letter-spacing: 0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crm-card .crm-edit {
  width: 24px;
  height: 24px;
  color: #7d8a99;
}
.crm-card .crm-edit .icon {
  width: 13px;
  height: 13px;
}
.crm-card-link {
  display: block;
  color: #f0eeea;
  text-decoration: none;
}
.crm-card h3 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}
.crm-card-link > p {
  font-size: 11px;
  color: #a8b0ba;
  line-height: 1.5;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.crm-card-location {
  font-size: 10px;
  color: #8d9aaa;
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0 0 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.crm-card-location .icon {
  height: 12px;
  width: 12px;
  flex-shrink: 0;
}
.crm-card-value {
  font-size: 14px;
  font-weight: 550;
  color: #ded1b9;
  letter-spacing: 0.1px;
  font-variant-numeric: tabular-nums;
}
.crm-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 13px;
  margin-top: 14px;
  border-top: 1px solid #ffffff09;
}
.crm-next {
  font-size: 9px;
  color: #93a0ad;
  line-height: 1.5;
}
.crm-next.overdue {
  color: #d6a780;
}
.crm-person {
  display: flex;
  flex-shrink: 0;
}
.crm-person > span:first-child {
  height: 25px;
  width: 25px;
  display: grid;
  place-items: center;
  background: #ffffff09;
  border: 1px solid #ffffff0b;
  color: #b5bec9;
  border-radius: 50%;
  font-size: 8px;
}
.crm-status-control {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-top: 11px;
}
.crm-status-control select {
  font-size: 10px;
  padding: 5px 22px 5px 8px;
  background: #15202d;
  color: #8e9aa8;
  width: 100%;
  border-color: #ffffff08;
  cursor: pointer;
}
.crm-status-control select:focus {
  color: #ece7db;
}
.crm-save-label {
  font-size: 9px;
  white-space: nowrap;
  color: #d6c4a6;
}
.crm-column-empty {
  display: grid;
  place-items: center;
  min-height: 214px;
  border: 1px dashed #ffffff0b;
  border-radius: 8px;
  color: #556577;
  font-size: 11px;
}
.crm-column-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: none;
  width: 100%;
  padding: 14px 0 5px;
  color: #657487;
  font-size: 10px;
  cursor: pointer;
}
.crm-column-add:hover {
  color: #d6c4a6;
}
.crm-column-add .icon {
  height: 12px;
  width: 12px;
}
.crm-column.is-drag-over {
  background: #d6c4a610;
  border-color: #d6c4a688;
}
.crm-card.is-dragging {
  opacity: 0.4;
  cursor: grabbing;
}
.crm-card.is-saving {
  opacity: 0.65;
  cursor: progress;
}
.crm-help {
  font-size: 11px;
  color: #7d8c9f;
  line-height: 1.7;
  margin-top: 14px;
}
.crm-sr-only {
  position: absolute !important;
  height: 1px !important;
  width: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.crm-empty {
  padding: 60px 24px;
  text-align: center;
  border: 1px solid #ffffff10;
  border-radius: 12px;
  background: #111c29;
  color: #9aa6b5;
}
.crm-empty h2 {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: #e9e7e1;
  margin: 0 0 12px;
}
.crm-empty h3 {
  color: #e2e1dd;
  font-size: 17px;
}
.crm-empty p {
  font-size: 13px;
  line-height: 1.8;
  max-width: 500px;
  margin: 0 auto 22px;
}
.crm-empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: #d6c4a6;
  background: #d6c4a60d;
  border: 1px solid #d6c4a615;
  border-radius: 15px;
  margin: 0 auto 20px;
}
.crm-table-wrap {
  border: 1px solid var(--crm-line);
  border-radius: 10px;
  overflow: auto;
  background: #111c29;
}
.crm-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 950px;
  text-align: left;
  font-size: 12px;
}
.crm-table th {
  font-size: 10px;
  letter-spacing: 0.3px;
  color: #7f8ea0;
  font-weight: 500;
  background: #15202d;
}
.crm-table th,
.crm-table td {
  padding: 17px 16px;
  border-bottom: 1px solid #ffffff09;
}
.crm-table tr:last-child td {
  border-bottom: 0;
}
.crm-table td {
  color: #bbc4cf;
}
.crm-table a {
  color: #e2e4e5;
  text-decoration: none;
}
.crm-table a:hover {
  color: #d6c4a6;
}
.crm-table a small {
  display: block;
  font-size: 11px;
  color: #8491a1;
  margin-top: 6px;
}
.crm-table select {
  padding: 8px;
  font-size: 11px;
  background: #1b2837;
  max-width: 150px;
}
.crm-nowrap {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.crm-back {
  display: inline-block;
  color: #94a0af;
  font-size: 12px;
  text-decoration: none;
  margin: 2px 0 28px;
}
.crm-back:hover {
  color: #d6c4a6;
}
.crm-detail-status {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: #8190a2;
  padding-top: 22px;
}
.crm-detail-status select {
  font-size: 12px;
  padding: 10px 28px 10px 12px;
  color: #d4c3a8;
  border-color: #d6c4a633;
}
.crm-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 28px;
}
.crm-detail-actions .btn {
  font-size: 11px;
}
.crm-tabs {
  display: flex;
  gap: 28px;
  overflow: auto;
  border-bottom: 1px solid var(--crm-line);
  margin-bottom: 26px;
}
.crm-tabs a {
  padding: 15px 0;
  color: #8290a1;
  text-decoration: none;
  white-space: nowrap;
  font-size: 12px;
  border-bottom: 2px solid transparent;
}
.crm-tabs a[aria-current='page'] {
  color: #dac9ac;
  border-bottom-color: #dac9ac;
}
.crm-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 20px;
}
.crm-panel {
  border: 1px solid #ffffff10;
  background: #121d2b;
  border-radius: 12px;
  padding: 25px;
  color: #e4e4e0;
  min-width: 0;
}
.crm-panel h2 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 20px;
  letter-spacing: -0.3px;
}
.crm-panel h3 {
  font-size: 14px;
  font-weight: 500;
}
.crm-panel .section-head {
  align-items: center;
  margin-bottom: 4px;
}
.crm-panel .section-head h2 {
  margin-bottom: 0;
}
.crm-tag {
  font-size: 10px;
  padding: 6px 9px;
  border: 1px solid #d6c4a626;
  background: #d6c4a60a;
  color: #caba9f;
  border-radius: 5px;
  white-space: nowrap;
}
.crm-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 26px;
  row-gap: 23px;
  margin: 27px 0 12px;
}
.crm-details dt {
  color: #7f8ea0;
  font-size: 10px;
  margin: 0 0 9px;
}
.crm-details dd {
  color: #d3d7dc;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
  overflow-wrap: anywhere;
}
.crm-details-single {
  grid-template-columns: 1fr;
}
.crm-contact-name {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
}
.crm-contact-avatar {
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  background: #d6c4a613;
  color: #d6c4a6;
  border: 1px solid #d6c4a61c;
  border-radius: 10px;
  font-size: 13px;
  flex-shrink: 0;
}
.crm-contact-name strong {
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.crm-contact-name small {
  display: block;
  font-size: 10px;
  color: #7f8da0;
  margin-top: 6px;
}
.crm-notes {
  grid-column: 1/-1;
}
.crm-preserve {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  color: #aab5c3;
  line-height: 1.9;
}
.crm-notes > small {
  display: block;
  font-size: 10px;
  color: #728196;
  margin-top: 20px;
}
.crm-linked-list {
  margin-top: 22px;
}
.crm-linked-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid #ffffff0d;
}
.crm-linked-list strong {
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.crm-linked-list small {
  display: block;
  color: #7f8fa2;
  font-size: 11px;
  margin-top: 8px;
}
.crm-form-fields {
  padding: 0;
  border: 0;
  margin: 0;
  min-width: 0;
}
.crm-form-fields .form-field label {
  font-size: 12px;
}
.crm-form-fields :is(input, select, textarea) {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 13px;
  padding: 11px 12px;
  border: 1px solid #ffffff1a;
  border-radius: 7px;
  background: #101c29;
  color: #e0e3e5;
  min-width: 0;
  color-scheme: dark;
}
.crm-form-fields textarea {
  resize: vertical;
}
.crm-form-fields .form-grid {
  gap: 18px;
}
.crm-form-fields input::placeholder,
.crm-form-fields textarea::placeholder {
  color: #637389;
}
.crm-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 25px;
}
.crm-form-error:not(:empty) {
  border: 1px solid #d38f7950;
  background: #d38f7910;
  color: #e6baa8;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.crm-form-fields:disabled {
  opacity: 0.65;
}
.crm-form-fields:disabled :is(input, button, select, textarea) {
  cursor: wait;
}
.crm-page select option {
  background: #172331;
  color: #e2e2df;
}
.crm-page button:disabled {
  opacity: 0.6;
  cursor: wait;
}
@media (min-width: 1800px) {
  .crm-pipeline {
    grid-template-columns: repeat(7, minmax(210px, 1fr));
  }
}
@media (max-width: 1100px) {
  .crm-detail-grid {
    grid-template-columns: 1fr;
  }
  .crm-metrics > div {
    padding: 0 20px;
  }
  .crm-pipeline {
    grid-template-columns: repeat(7, 252px);
  }
}
@media (max-width: 680px) {
  .crm-page .page-heading {
    flex-wrap: wrap;
  }
  .crm-page .page-heading h1 {
    font-size: 29px;
  }
  .crm-page .page-heading > .btn {
    margin-top: 0;
  }
  .crm-metrics {
    padding: 17px 0;
    margin: 22px 0;
  }
  .crm-metrics > div {
    padding: 0 12px;
    gap: 8px;
  }
  .crm-metrics span {
    font-size: 9px;
    line-height: 1.5;
  }
  .crm-metrics strong {
    font-size: 19px;
    letter-spacing: -0.4px;
  }
  .crm-metrics small {
    font-size: 9px;
    margin-left: 4px;
  }
  .crm-toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .crm-view-switch {
    order: 1;
  }
  .crm-search {
    order: 3;
    width: 100%;
    margin: 0;
  }
  .crm-toolbar > .icon-button {
    order: 2;
    margin-left: auto;
  }
  .crm-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0 4px;
  }
  .crm-filters label {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    font-size: 9px;
    min-width: 0;
  }
  .crm-filters select {
    font-size: 10px;
    padding: 8px 5px;
    max-width: 100%;
    width: 100%;
  }
  .crm-pipeline {
    grid-template-columns: repeat(7, minmax(245px, 75vw));
    gap: 10px;
    min-height: 420px;
    scroll-snap-type: x proximity;
  }
  .crm-column {
    scroll-snap-align: start;
  }
  .crm-detail-status {
    padding-top: 0;
  }
  .crm-tabs {
    gap: 23px;
  }
  .crm-panel {
    padding: 20px;
  }
  .crm-details {
    gap: 23px 18px;
  }
  .crm-detail-actions {
    gap: 7px;
  }
  .crm-detail-actions .btn {
    padding: 9px 12px;
  }
  .crm-form-actions {
    flex-direction: column-reverse;
  }
  .crm-form-actions .btn {
    justify-content: center;
  }
  .crm-back {
    margin-bottom: 22px;
  }
  .crm-empty {
    padding: 40px 19px;
  }
  .crm-empty h2 {
    font-size: 19px;
  }
  .crm-metrics strong {
    overflow-wrap: anywhere;
  }
}
@media (prefers-reduced-motion: reduce) {
  .crm-card,
  .crm-column {
    transition: none;
  }
}
.crm-query-state {
  padding: 38px 20px;
  border: 1px solid #ffffff0d;
  border-radius: 10px;
  color: #98a5b4;
  background: #111c29;
  font-size: 13px;
  text-align: center;
}
.crm-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: #8190a2;
  font-size: 11px;
}
.crm-pagination .btn {
  padding: 8px 11px;
  font-size: 11px;
  white-space: nowrap;
}
.crm-pagination .btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.crm-column .crm-pagination {
  gap: 5px;
  font-size: 9px;
}
.crm-column .crm-pagination .btn {
  padding: 7px 5px;
  font-size: 9px;
}
.crm-column-cards {
  max-height: 68vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #46515e transparent;
  padding-right: 3px;
}
.crm-column-cards[aria-busy='true'] {
  opacity: 0.55;
  pointer-events: none;
}
.crm-order-label {
  margin-left: auto;
  color: #687b8d;
  font-size: 10px;
}
.crm-source-filter input {
  font: inherit;
  font-size: 11px;
  color: #dfe1e3;
  background: #0e1926;
  border: 1px solid #ffffff14;
  border-radius: 7px;
  max-width: 190px;
  min-width: 0;
  padding: 8px 10px;
}
.crm-filters .crm-source-missing {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
.crm-source-missing input {
  width: 13px;
  height: 13px;
  accent-color: #d6c4a6;
}
.crm-filters input:disabled {
  opacity: 0.4;
}
.crm-filters input::placeholder {
  color: #8291a0;
}
@media (max-width: 680px) {
  .crm-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .crm-source-filter input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 5px;
    font-size: 10px;
  }
  .crm-filters .crm-source-missing {
    align-self: end;
    min-height: 32px;
  }
  .crm-pagination {
    font-size: 10px;
  }
  .crm-order-label {
    display: none;
  }
  .crm-column-cards {
    max-height: 62vh;
  }
}
/* Customer journey: a bounded, evidence-based overview inside the lead detail. */
.crm-journey {
  container-type: inline-size;
  background: var(--surface, #fff);
  color: var(--ink, #1f2937);
  border: 1px solid var(--line, #e6e8ed);
  border-radius: 18px;
  padding: clamp(18px, 3vw, 30px);
  margin: 0 0 24px;
  min-width: 0;
  box-shadow: 0 7px 28px #25344805;
}
.crm-journey :is(h2, h3, h4, p) {
  overflow-wrap: anywhere;
}
.crm-journey h2 {
  font-size: 24px;
  letter-spacing: -0.035em;
  margin: 0 0 8px;
  color: var(--ink, #1f2937);
}
.crm-journey h3 {
  font-size: 17px;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}
.crm-journey h4 {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 8px;
}
.crm-journey p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted, #667085);
  margin: 8px 0;
}
.crm-journey header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.crm-journey header .eyebrow {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted, #667085);
  margin: 0 0 8px;
}
.crm-journey .btn {
  font-size: 13px;
  min-height: 40px;
  white-space: normal;
  text-align: center;
}
.crm-journey-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  padding: 22px 0 24px;
  margin: 12px 0 22px;
  border-bottom: 1px solid var(--line, #e6e8ed);
}
.crm-journey-step {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  color: var(--muted, #667085);
  padding: 0 5px;
}
.crm-journey-step:before {
  content: '';
  position: absolute;
  height: 2px;
  left: 0;
  right: 0;
  top: 18px;
  background: var(--line, #e6e8ed);
}
.crm-journey-step:first-child:before {
  left: 50%;
}
.crm-journey-step:last-child:before {
  right: 50%;
}
.crm-journey-step > span:first-child,
.crm-journey-step > b:first-child {
  display: grid;
  place-items: center;
  position: relative;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: var(--bg, #f7f8fa);
  border: 2px solid var(--line, #e6e8ed);
  color: var(--muted, #667085);
  font-size: 13px;
  font-weight: 600;
  z-index: 1;
}
.crm-journey-step svg {
  height: 17px;
  width: 17px;
}
.crm-journey-step strong {
  font-size: 12px;
  line-height: 1.5;
}
.crm-journey-step small {
  font-size: 11px;
  line-height: 1.5;
  max-width: 135px;
}
.crm-journey-step[data-state='done'] > :first-child,
.crm-journey-step[data-state='complete'] > :first-child,
.crm-journey-step[data-state='recorded'] > :first-child {
  background: var(--action, #344454);
  border-color: var(--action, #344454);
  color: #fff;
}
.crm-journey-step[data-state='current'] > :first-child,
.crm-journey-step[data-state='active'] > :first-child {
  border-color: var(--action, #344454);
  color: var(--action, #344454);
  background: var(--accent-light, #edf1f5);
  box-shadow: 0 0 0 5px var(--accent-light, #edf1f5);
}
.crm-journey-step[data-state='blocked'] > :first-child {
  background: #fff5e4;
  border-color: #cba56b;
  color: #785821;
}
.crm-journey-step[data-state='restricted'] > :first-child,
.crm-journey-step[data-state='unknown'] > :first-child {
  border-style: dashed;
}
.crm-journey-next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 22px;
  border: 1px solid var(--line, #e6e8ed);
  border-radius: 13px;
  background: var(--accent-light, #edf1f5);
  margin-bottom: 20px;
}
.crm-journey-next h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.crm-journey-next p {
  margin: 6px 0;
}
.crm-journey-next .btn {
  flex: none;
}
.crm-journey-blockers {
  border: 1px solid #ead8b5;
  background: #fff8ec;
  border-radius: 12px;
  padding: 15px 19px;
  margin: 16px 0;
  color: #76582c;
  list-style: none;
}
.crm-journey-blockers li {
  font-size: 13px;
  line-height: 1.65;
  padding: 4px 0;
}
.crm-journey-blockers li + li {
  border-top: 1px solid #ead8b580;
}
.crm-journey-collections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.crm-journey-collection {
  border: 1px solid var(--line, #e6e8ed);
  border-radius: 13px;
  padding: 18px;
  min-width: 0;
}
.crm-journey-collection > header {
  align-items: center;
  margin-bottom: 12px;
}
.crm-journey-collection > header h3 {
  font-size: 16px;
  margin: 0;
}
.crm-journey-count {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 8px;
  background: var(--bg, #f7f8fa);
  border-radius: 7px;
  color: var(--muted, #667085);
}
.crm-journey-records {
  display: grid;
  gap: 0;
}
.crm-journey-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line, #e6e8ed);
  min-width: 0;
}
.crm-journey-record > div {
  min-width: 0;
}
.crm-journey-record h4,
.crm-journey-record strong {
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--ink, #1f2937);
}
.crm-journey-record p,
.crm-journey-record small {
  font-size: 12px;
  color: var(--muted, #667085);
  line-height: 1.6;
}
.crm-journey-record .btn {
  flex: none;
  font-size: 12px;
  padding: 8px 10px;
  min-height: 36px;
}
.crm-journey-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line, #e6e8ed);
  padding-top: 14px;
  margin-top: 7px;
  font-size: 11px;
  color: var(--muted, #667085);
}
.crm-journey-pagination .btn {
  padding: 7px 10px;
  font-size: 12px;
  min-height: 35px;
}
.crm-journey-followup {
  border-top: 1px solid var(--line, #e6e8ed);
  margin-top: 22px;
  padding-top: 20px;
}
.crm-journey-followup dl,
.crm-journey-next dl {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 14px 0;
}
.crm-journey-followup dt,
.crm-journey-next dt {
  font-size: 11px;
  color: var(--muted, #667085);
  margin-bottom: 5px;
}
.crm-journey-followup dd,
.crm-journey-next dd {
  font-size: 13px;
  color: var(--ink, #1f2937);
  margin: 0;
  line-height: 1.6;
}
.crm-journey-state {
  padding-block: 32px;
}
.crm-journey-error {
  padding: 18px 22px;
  border: 1px solid #e5c4ba;
  border-radius: 13px;
  background: #fff4ef;
  color: #8c4938;
  margin-bottom: 16px;
}
.crm-journey-error p {
  font-size: 13px;
  line-height: 1.6;
  margin-top: 0;
}
.crm-journey-note {
  font-size: 12px !important;
  color: var(--muted, #667085);
  line-height: 1.6;
}
.crm-journey .btn:disabled {
  cursor: default;
  opacity: 0.5;
}
.crm-journey .btn:focus-visible {
  outline: 2px solid var(--action, #344454);
  outline-offset: 3px;
}
@container (max-width:760px) {
  .crm-journey-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 0;
  }
  .crm-journey-step:nth-child(3):before {
    right: 50%;
  }
  .crm-journey-step:nth-child(4):before {
    left: 50%;
  }
  .crm-journey-collections {
    grid-template-columns: 1fr;
  }
  .crm-journey-next {
    align-items: flex-start;
    flex-direction: column;
  }
  .crm-journey-next .btn {
    align-self: flex-start;
  }
}
@container (max-width:440px) {
  .crm-journey h2 {
    font-size: 22px;
  }
  .crm-journey header {
    flex-direction: column;
    gap: 10px;
  }
  .crm-journey-step strong {
    font-size: 12px;
  }
  .crm-journey-step small {
    font-size: 11px;
  }
  .crm-journey-next {
    padding: 17px;
  }
  .crm-journey-next .btn {
    width: 100%;
  }
  .crm-journey-record {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
  .crm-journey-collection {
    padding: 15px;
  }
  .crm-journey-pagination {
    flex-wrap: wrap;
    justify-content: center;
  }
  .crm-journey-pagination span {
    width: 100%;
    text-align: center;
    order: -1;
  }
  .crm-journey-followup dl {
    display: grid;
    grid-template-columns: 1fr;
  }
}
.crm-journey-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.crm-journey-heading > .btn {
  flex: none;
}
.crm-journey .crm-journey-step-marker {
  flex: none;
}
.crm-journey-step > div {
  display: grid;
  gap: 5px;
  justify-items: center;
  min-width: 0;
}
.crm-journey-blockers strong,
.crm-journey-blockers span {
  display: block;
}
.crm-journey-blockers span {
  margin-top: 3px;
  color: #78664d;
  font-size: 12px;
}
.crm-journey-blockers li[data-tone='danger'] strong {
  color: #9b4937;
}
.crm-journey-blockers li[data-tone='info'] strong {
  color: #495e72;
}
.crm-journey-collection > .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.crm-journey-collection > .section-head h3 {
  margin: 0;
}
.crm-journey .crm-tag {
  color: var(--muted, #667085);
  background: var(--bg, #f7f8fa);
  border-color: var(--line, #e6e8ed);
  font-size: 11px;
}
.crm-journey-record strong,
.crm-journey-record small {
  display: block;
  overflow-wrap: anywhere;
}
.crm-journey-record .crm-tag {
  display: inline-block;
  margin-top: 7px;
  white-space: normal;
}
.crm-journey-followup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.crm-journey-followup > .btn {
  flex: none;
}
.crm-journey-followup small,
.crm-journey-updated {
  font-size: 12px;
  color: var(--muted, #667085);
  line-height: 1.6;
}
.crm-journey-next > div {
  flex: 1;
}
.crm-journey-next dl {
  flex: none;
  max-width: 35%;
  gap: 10px 24px;
}
.crm-journey-next .overdue dd {
  color: #a0533b;
}
.crm-journey .crm-help {
  margin-top: 15px;
}
.crm-journey-updated {
  display: block;
  margin-top: 12px;
}
@container (max-width:760px) {
  .crm-journey-next dl {
    max-width: none;
    width: 100%;
    margin: 0;
  }
  .crm-journey-followup {
    align-items: flex-start;
    flex-direction: column;
  }
}
@container (max-width:440px) {
  .crm-journey-heading {
    flex-direction: column;
  }
  .crm-journey-heading > .btn {
    align-self: flex-start;
  }
  .crm-journey .crm-journey-step-marker {
    width: 33px;
    height: 33px;
  }
  .crm-journey-step:before {
    top: 16px;
  }
  .crm-journey-collection > .section-head {
    align-items: flex-start;
  }
  .crm-journey-collection > .section-head .crm-tag {
    font-size: 10px;
  }
}
.crm-journey-demo {
  font-size: 12px;
  color: var(--muted, #667085);
  padding: 11px 15px;
  background: var(--accent-light, #edf1f5);
  border: 1px solid var(--line, #e6e8ed);
  border-radius: 10px;
  margin: 0 0 12px;
}
