@keyframes crm-pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes crm-shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}
.wp-db-layout > .wp-db-main {
  min-width: 0;
}

.wp-crm {
  padding: 40px;
}
@media (min-width: 1280px) {
  .wp-crm {
    padding: 48px 56px;
  }
}
@media (max-width: 767px) {
  .wp-crm {
    padding: 24px 20px;
  }
}
@media (max-width: 479px) {
  .wp-crm {
    padding: 20px 14px;
  }
}
.wp-crm__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.wp-crm__title {
  font-size: 28px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 6px;
}
@media (max-width: 767px) {
  .wp-crm__title {
    font-size: 22px;
  }
}
.wp-crm__sub {
  font-size: 14px;
  color: #8BA4C4;
}
.wp-crm__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wp-crm button:focus-visible,
.wp-crm [tabindex]:focus-visible,
.wp-crm-drawer button:focus-visible,
.wp-crm-modal button:focus-visible {
  outline: 2px solid rgba(87, 187, 255, 0.7);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .wp-crm *, .wp-crm-drawer, .wp-crm-overlay, .wp-crm-modal, .wp-crm-modal * {
    animation: none !important;
    transition: none !important;
  }
}
.wp-crm-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid rgba(87, 187, 255, 0.15);
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.wp-crm-tabs::-webkit-scrollbar {
  display: none;
}

.wp-crm-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: none;
  border: none;
  font-family: "Lato", "Helvetica Neue", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #8BA4C4;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s;
}
.wp-crm-tab i {
  font-size: 13px;
}
.wp-crm-tab:hover {
  color: #FFFFFF;
}
.wp-crm-tab.active {
  color: #57BBFF;
}
.wp-crm-tab.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: #57BBFF;
}
.wp-crm-tab__count {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 100px;
  background: rgba(87, 187, 255, 0.12);
  color: #57BBFF;
}
.wp-crm-tab__count--warn {
  background: rgba(234, 62, 46, 0.15);
  color: #EA3E2E;
}
.wp-crm-tab__count:empty {
  display: none;
}

.wp-crm-panel {
  display: none;
}
.wp-crm-panel.active {
  display: block;
}

.wp-crm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1023px) {
  .wp-crm-grid {
    grid-template-columns: 1fr;
  }
}

.wp-crm-span {
  grid-column: 1/-1;
}

.wp-crm-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.wp-crm-card-head .wp-db-card__title {
  margin-bottom: 0;
}

.wp-crm-bar {
  display: grid;
  grid-template-columns: 112px 1fr 40px;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
  width: 100%;
  background: none;
  border: none;
  font-family: "Lato", "Helvetica Neue", Arial, Helvetica, sans-serif;
  text-align: left;
  cursor: pointer;
}
.wp-crm-bar:last-child {
  margin-bottom: 0;
}
.wp-crm-bar:hover .wp-crm-bar__label {
  color: #FFFFFF;
}
.wp-crm-bar__label {
  color: #C8D8EE;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wp-crm-bar__track {
  height: 8px;
  border-radius: 100px;
  background: rgba(87, 187, 255, 0.08);
  overflow: hidden;
}
.wp-crm-bar__fill {
  height: 100%;
  border-radius: 100px;
  background: var(--bar, #57BBFF);
  transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.wp-crm-bar__n {
  text-align: right;
  color: #FFFFFF;
  font-weight: 700;
}

.wp-crm-trend {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 160px;
}
.wp-crm-trend__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  min-width: 0;
}
.wp-crm-trend__bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  width: 100%;
  justify-content: center;
}
.wp-crm-trend__bar {
  width: 16px;
  max-width: 40%;
  min-height: 3px;
  border-radius: 4px 4px 0 0;
  transition: height 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.wp-crm-trend__bar--contacts {
  background: #57BBFF;
}
.wp-crm-trend__bar--won {
  background: #34D399;
}
.wp-crm-trend__label {
  font-size: 11px;
  color: #8BA4C4;
}

.wp-crm-legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #8BA4C4;
}
.wp-crm-legend span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 6px;
  background: var(--dot);
}

.wp-crm-list {
  display: flex;
  flex-direction: column;
}

.wp-crm-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  margin: 0 -8px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.wp-crm-item:hover {
  background: rgba(87, 187, 255, 0.05);
}
.wp-crm-item__body {
  flex: 1;
  min-width: 0;
}
.wp-crm-item__title {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wp-crm-item__sub {
  font-size: 12px;
  color: #8BA4C4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wp-crm-item__meta {
  font-size: 12px;
  color: #8BA4C4;
  white-space: nowrap;
}
.wp-crm-item__icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  color: var(--tone, #57BBFF);
  background: rgba(var(--tone-rgb, 87, 187, 255), 0.12);
}

.wp-crm-avatar {
  --size: 36px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  font-size: calc(var(--size) * 0.36);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tone, #57BBFF);
  background: rgba(var(--tone-rgb, 87, 187, 255), 0.14);
  border: 1px solid rgba(var(--tone-rgb, 87, 187, 255), 0.3);
}
.wp-crm-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wp-crm-avatar--sm {
  --size: 22px;
}
.wp-crm-avatar--lg {
  --size: 56px;
}

.wp-crm-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--pill, #57BBFF);
  background: rgba(var(--pill-rgb, 87, 187, 255), 0.12);
  border: 1px solid rgba(var(--pill-rgb, 87, 187, 255), 0.28);
}
.wp-crm-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pill, #57BBFF);
}
.wp-crm-pill--plain::before {
  display: none;
}

.wp-crm-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  color: #C8D8EE;
  background: rgba(87, 187, 255, 0.07);
  border: 1px solid rgba(87, 187, 255, 0.15);
  white-space: nowrap;
}

.wp-crm-muted {
  color: #8BA4C4;
}

.wp-crm-due--overdue {
  color: #EA3E2E;
  font-weight: 700;
}

.wp-crm-due--today {
  color: #F5CE82;
  font-weight: 700;
}

.wp-crm-link {
  color: #57BBFF;
  cursor: pointer;
}
.wp-crm-link:hover {
  text-decoration: underline;
}

.wp-crm-empty {
  text-align: center;
  padding: 48px 20px;
  color: #8BA4C4;
  font-size: 14px;
}
.wp-crm-empty i {
  font-size: 28px;
  color: rgba(87, 187, 255, 0.4);
  margin-bottom: 12px;
  display: block;
}
.wp-crm-empty strong {
  display: block;
  color: #FFFFFF;
  font-size: 15px;
  margin-bottom: 4px;
}
.wp-crm-empty .wp-db-btn {
  margin-top: 16px;
}

.wp-crm-loading {
  height: 14px;
  border-radius: 7px;
  margin: 16px 0;
  background: linear-gradient(90deg, rgba(87, 187, 255, 0.04), rgba(87, 187, 255, 0.12), rgba(87, 187, 255, 0.04));
  background-size: 200% 100%;
  animation: crm-shimmer 1.6s linear infinite;
}

.wp-db-btn--sm {
  padding: 7px 14px;
  font-size: 12px;
}

.wp-db-btn--danger {
  background: rgba(234, 62, 46, 0.1);
  color: #EA3E2E;
  border: 1px solid rgba(234, 62, 46, 0.3);
}
.wp-db-btn--danger:hover {
  background: #EA3E2E;
  color: #FFFFFF;
}

.wp-db-btn--icon {
  padding: 0;
  width: 32px;
  height: 32px;
  justify-content: center;
  background: transparent;
  color: #8BA4C4;
}
.wp-db-btn--icon:hover {
  color: #FFFFFF;
  background: rgba(87, 187, 255, 0.1);
}

select.wp-db-input {
  appearance: none;
  padding-right: 34px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238BA4C4' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 11px;
}
select.wp-db-input option {
  background: #0D1525;
  color: #FFFFFF;
}

textarea.wp-db-input {
  resize: vertical;
  min-height: 84px;
  line-height: 1.55;
}

input[type=date].wp-db-input,
input[type=datetime-local].wp-db-input {
  color-scheme: dark;
}

.wp-crm-check {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1.5px solid rgba(139, 164, 196, 0.6);
  background: transparent;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
.wp-crm-check::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #070B14;
  transform: scale(0);
  transition: transform 0.15s;
}
.wp-crm-check:checked {
  background: #57BBFF;
  border-color: #57BBFF;
}
.wp-crm-check:checked::after {
  transform: scale(1);
}

.wp-crm-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #C8D8EE;
  cursor: pointer;
}
.wp-crm-check-row label {
  cursor: pointer;
  font-weight: 500;
}

.wp-crm-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.wp-crm-toolbar .wp-db-input {
  width: auto;
  min-width: 140px;
}
.wp-crm-toolbar__spacer {
  flex: 1;
}

.wp-crm-search {
  position: relative;
  flex: 1 1 260px;
  max-width: 420px;
}
.wp-crm-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8BA4C4;
  font-size: 13px;
  pointer-events: none;
}
.wp-crm-search .wp-db-input {
  width: 100%;
  padding-left: 38px;
}

.wp-crm-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.wp-crm-chip {
  padding: 6px 14px;
  border-radius: 100px;
  font-family: "Lato", "Helvetica Neue", Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #8BA4C4;
  background: transparent;
  border: 1px solid rgba(87, 187, 255, 0.15);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.wp-crm-chip:hover {
  color: #FFFFFF;
  border-color: rgba(87, 187, 255, 0.4);
}
.wp-crm-chip.active {
  color: #57BBFF;
  background: rgba(87, 187, 255, 0.1);
  border-color: rgba(87, 187, 255, 0.4);
}

.wp-crm-bulk {
  display: none;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 16px;
  margin-bottom: 12px;
  background: rgba(245, 206, 130, 0.07);
  border: 1px solid rgba(245, 206, 130, 0.25);
  border-radius: 12px;
  font-size: 13px;
  color: #F5CE82;
  font-weight: 700;
}
.wp-crm-bulk.show {
  display: flex;
}
.wp-crm-bulk .wp-db-input {
  width: auto;
  min-width: 130px;
  padding: 7px 12px;
  font-size: 13px;
}

.wp-crm-tablewrap {
  background: #0C1628;
  border: 1px solid rgba(87, 187, 255, 0.15);
  border-radius: 16px;
  overflow-x: auto;
}

.wp-crm-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}
.wp-crm-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8BA4C4;
  white-space: nowrap;
  background: rgba(7, 11, 20, 0.5);
  border-bottom: 1px solid rgba(87, 187, 255, 0.15);
}
.wp-crm-table th.sortable {
  cursor: pointer;
  user-select: none;
}
.wp-crm-table th.sortable:hover {
  color: #FFFFFF;
}
.wp-crm-table th.sorted {
  color: #57BBFF;
}
.wp-crm-table th i {
  margin-left: 6px;
  font-size: 10px;
}
.wp-crm-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: #C8D8EE;
  border-bottom: 1px solid rgba(87, 187, 255, 0.06);
  vertical-align: middle;
}
.wp-crm-table tbody tr {
  cursor: pointer;
  transition: background 0.15s;
}
.wp-crm-table tbody tr:hover {
  background: rgba(87, 187, 255, 0.05);
}
.wp-crm-table tbody tr.selected {
  background: rgba(87, 187, 255, 0.09);
}
.wp-crm-table tbody tr:last-child td {
  border-bottom: none;
}
.wp-crm-table .col-check {
  width: 44px;
  padding-right: 0;
}
.wp-crm-table .col-tags {
  max-width: 200px;
}
.wp-crm-table:not(.cust-mode) .col-cust {
  display: none;
}
.wp-crm-table .col-cust {
  white-space: nowrap;
}
@media (max-width: 1023px) {
  .wp-crm-table .col-tags, .wp-crm-table .col-followup {
    display: none;
  }
  .wp-crm-table {
    min-width: 640px;
  }
}

.wp-crm-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.wp-crm-contact__name {
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}
.wp-crm-contact__sub {
  font-size: 12px;
  color: #8BA4C4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.wp-crm-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.wp-crm-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 4px 0;
  font-size: 13px;
  color: #8BA4C4;
}
.wp-crm-pager__btns {
  display: flex;
  gap: 8px;
}

.wp-crm-boardbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.wp-crm-boardstats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #8BA4C4;
}
.wp-crm-boardstats b {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.wp-crm-board {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 16px;
  min-height: 440px;
}

.wp-crm-col {
  flex: 0 0 292px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 250px);
  background: rgba(12, 22, 40, 0.8);
  border: 1px solid rgba(87, 187, 255, 0.15);
  border-top: 3px solid var(--stage, #57BBFF);
  border-radius: 14px;
}
.wp-crm-col__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px 4px;
}
.wp-crm-col__title {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
}
.wp-crm-col__count {
  font-size: 11px;
  font-weight: 700;
  color: #8BA4C4;
  background: rgba(87, 187, 255, 0.08);
  border-radius: 100px;
  padding: 1px 8px;
  margin-left: 8px;
}
.wp-crm-col__sum {
  padding: 0 16px 12px;
  font-size: 12px;
  color: #8BA4C4;
  border-bottom: 1px solid rgba(87, 187, 255, 0.07);
}
.wp-crm-col__list {
  flex: 1;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  overflow-y: auto;
  border-radius: 0 0 12px 12px;
  transition: background 0.2s;
}
.wp-crm-col__list:empty::before {
  content: "Drop deals here";
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  font-size: 12px;
  color: rgba(139, 164, 196, 0.7);
  border: 1.5px dashed rgba(87, 187, 255, 0.18);
  border-radius: 10px;
}
.wp-crm-col__list.is-over {
  background: rgba(87, 187, 255, 0.06);
}
.wp-crm-col--won .wp-crm-deal__amount {
  color: #34D399;
}
.wp-crm-col--lost .wp-crm-deal {
  opacity: 0.75;
}

.wp-crm-deal {
  background: #0D1525;
  border: 1px solid rgba(87, 187, 255, 0.15);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: grab;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.wp-crm-deal:hover {
  border-color: rgba(87, 187, 255, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.wp-crm-deal:active {
  cursor: grabbing;
}
.wp-crm-deal.is-dragging {
  opacity: 0.4;
}
.wp-crm-deal__title {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.35;
  margin-bottom: 6px;
}
.wp-crm-deal__contact {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #8BA4C4;
  min-width: 0;
}
.wp-crm-deal__contact span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wp-crm-deal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: #8BA4C4;
}
.wp-crm-deal__amount {
  font-size: 14px;
  font-weight: 900;
  color: #F5CE82;
}

.wp-crm-tasklist {
  background: #0C1628;
  border: 1px solid rgba(87, 187, 255, 0.15);
  border-radius: 16px;
  overflow: hidden;
}

.wp-crm-task {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(87, 187, 255, 0.06);
  cursor: pointer;
  transition: background 0.15s;
}
.wp-crm-task:last-child {
  border-bottom: none;
}
.wp-crm-task:hover {
  background: rgba(87, 187, 255, 0.04);
}
.wp-crm-task__check {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  border: 2px solid rgba(139, 164, 196, 0.5);
  background: transparent;
  color: transparent;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s;
}
.wp-crm-task__check:hover {
  border-color: #34D399;
  color: #34D399;
}
.wp-crm-task.done .wp-crm-task__check {
  background: #34D399;
  border-color: #34D399;
  color: #070B14;
}
.wp-crm-task.done .wp-crm-task__title {
  text-decoration: line-through;
  color: #8BA4C4;
}
.wp-crm-task__body {
  flex: 1;
  min-width: 0;
}
.wp-crm-task__title {
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
}
.wp-crm-task__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 4px;
  font-size: 12px;
  color: #8BA4C4;
}
.wp-crm-task__prio--high {
  color: #EA3E2E;
  font-weight: 700;
}

.wp-crm-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(7, 11, 20, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.wp-crm-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.wp-crm-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 310;
  width: min(620px, 100vw);
  display: flex;
  flex-direction: column;
  background: #0D1525;
  border-left: 1px solid rgba(87, 187, 255, 0.15);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.45);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.wp-crm-drawer.open {
  transform: none;
}
.wp-crm-drawer__head {
  padding: 22px 24px 0;
  border-bottom: 1px solid rgba(87, 187, 255, 0.15);
  flex-shrink: 0;
}
.wp-crm-drawer__id {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.wp-crm-drawer__name {
  font-size: 20px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.wp-crm-drawer__sub {
  font-size: 13px;
  color: #8BA4C4;
}
.wp-crm-drawer__close {
  margin-left: auto;
  align-self: flex-start;
}
.wp-crm-drawer__quick {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.wp-crm-drawer__selects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
@media (max-width: 767px) {
  .wp-crm-drawer__selects {
    grid-template-columns: 1fr;
  }
}
.wp-crm-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 22px 24px 32px;
}
.wp-crm-drawer__foot {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 14px 24px;
  border-top: 1px solid rgba(87, 187, 255, 0.15);
}

.wp-crm-dtabs {
  display: flex;
  gap: 2px;
  margin: 0 -6px;
}

.wp-crm-dtab {
  position: relative;
  padding: 10px 14px;
  background: none;
  border: none;
  font-family: "Lato", "Helvetica Neue", Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #8BA4C4;
  cursor: pointer;
}
.wp-crm-dtab:hover {
  color: #FFFFFF;
}
.wp-crm-dtab.active {
  color: #57BBFF;
}
.wp-crm-dtab.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  background: #57BBFF;
  border-radius: 2px;
}
.wp-crm-dtab span {
  margin-left: 6px;
  font-size: 11px;
  color: #8BA4C4;
}

.wp-crm-composer {
  background: #0C1628;
  border: 1px solid rgba(87, 187, 255, 0.15);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 22px;
}
.wp-crm-composer .wp-db-input {
  margin-top: 10px;
}
.wp-crm-composer__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.wp-crm-composer__row .wp-db-input {
  margin-top: 10px;
}
.wp-crm-composer__foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.wp-crm-seg {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.wp-crm-seg button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  font-family: "Lato", "Helvetica Neue", Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #8BA4C4;
  cursor: pointer;
  transition: all 0.15s;
}
.wp-crm-seg button:hover {
  color: #FFFFFF;
  background: rgba(87, 187, 255, 0.06);
}
.wp-crm-seg button.active {
  color: #57BBFF;
  background: rgba(87, 187, 255, 0.1);
  border-color: rgba(87, 187, 255, 0.3);
}

.wp-crm-tl {
  position: relative;
}
.wp-crm-tl__item {
  position: relative;
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
}
.wp-crm-tl__item::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 1px;
  background: rgba(87, 187, 255, 0.15);
}
.wp-crm-tl__item:last-child::before {
  display: none;
}
.wp-crm-tl__icon {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--tone, #57BBFF);
  background: rgba(var(--tone-rgb, 87, 187, 255), 0.12);
  border: 1px solid rgba(var(--tone-rgb, 87, 187, 255), 0.3);
  z-index: 1;
}
.wp-crm-tl__card {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  background: #0C1628;
  border: 1px solid rgba(87, 187, 255, 0.15);
  border-radius: 12px;
}
.wp-crm-tl__item--system .wp-crm-tl__card {
  background: transparent;
  border-color: transparent;
  padding: 6px 0;
}
.wp-crm-tl__item--pinned .wp-crm-tl__card {
  border-color: rgba(245, 206, 130, 0.4);
}
.wp-crm-tl__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.wp-crm-tl__title {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}
.wp-crm-tl__body {
  font-size: 13px;
  color: #C8D8EE;
  margin-top: 4px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.55;
}
.wp-crm-tl__meta {
  font-size: 11px;
  color: #8BA4C4;
  margin-top: 6px;
}
.wp-crm-tl__tools {
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.15s;
}
.wp-crm-tl__card:hover .wp-crm-tl__tools, .wp-crm-tl__card:focus-within .wp-crm-tl__tools {
  opacity: 1;
}
.wp-crm-tl__item--system .wp-crm-tl__title {
  font-weight: 500;
  color: #8BA4C4;
  font-size: 12px;
}
@media (hover: none) {
  .wp-crm-tl__tools {
    opacity: 1;
  }
}

.wp-crm-kv {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px 16px;
  font-size: 13px;
  margin-bottom: 22px;
}
.wp-crm-kv dt {
  color: #8BA4C4;
}
.wp-crm-kv dd {
  color: #FFFFFF;
  word-break: break-word;
}
@media (max-width: 479px) {
  .wp-crm-kv {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .wp-crm-kv dd {
    margin-bottom: 10px;
  }
}

.wp-crm-section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8BA4C4;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wp-crm-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(7, 11, 20, 0.75);
}
.wp-crm-modal.open {
  display: flex;
}
.wp-crm-modal__box {
  width: min(640px, 100%);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  background: #0D1525;
  border: 1px solid rgba(87, 187, 255, 0.15);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: crm-pop 0.22s cubic-bezier(0.25, 1, 0.5, 1);
}
.wp-crm-modal__box--sm {
  width: min(440px, 100%);
}
.wp-crm-modal__box--lg {
  width: min(780px, 100%);
}
.wp-crm-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 14px;
}
.wp-crm-modal__head h3 {
  font-size: 18px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}
.wp-crm-modal__body {
  padding: 6px 24px 20px;
  overflow-y: auto;
  font-size: 14px;
  color: #C8D8EE;
  line-height: 1.6;
}
.wp-crm-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid rgba(87, 187, 255, 0.15);
}

.wp-crm-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
@media (max-width: 767px) {
  .wp-crm-form {
    grid-template-columns: 1fr;
  }
}
.wp-crm-form .wp-db-field {
  margin-bottom: 0;
}
.wp-crm-form .full {
  grid-column: 1/-1;
}
.wp-crm-form__sec {
  grid-column: 1/-1;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(87, 187, 255, 0.15);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8BA4C4;
}

.wp-crm-stage-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 84px 104px auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.wp-crm-stage-row input[type=color] {
  width: 36px;
  height: 38px;
  padding: 3px;
  border-radius: 9px;
  border: 1px solid rgba(87, 187, 255, 0.15);
  background: rgba(7, 11, 20, 0.6);
  cursor: pointer;
}
.wp-crm-stage-row .wp-db-input {
  padding: 9px 12px;
}
.wp-crm-stage-row__tools {
  display: flex;
}
@media (max-width: 479px) {
  .wp-crm-stage-row {
    grid-template-columns: 36px 1fr;
  }
  .wp-crm-stage-row .wp-db-input[type=number], .wp-crm-stage-row select {
    grid-column: auto;
  }
}

.wp-crm-drop {
  display: block;
  padding: 30px 20px;
  text-align: center;
  color: #8BA4C4;
  border: 2px dashed rgba(87, 187, 255, 0.15);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.wp-crm-drop i {
  display: block;
  font-size: 26px;
  color: rgba(87, 187, 255, 0.5);
  margin-bottom: 10px;
}
.wp-crm-drop strong {
  color: #FFFFFF;
}
.wp-crm-drop:hover, .wp-crm-drop.over {
  border-color: rgba(87, 187, 255, 0.5);
  background: rgba(87, 187, 255, 0.05);
}
.wp-crm-drop input {
  display: none;
}

.wp-crm-importlog {
  margin-top: 14px;
  max-height: 160px;
  overflow-y: auto;
  padding: 10px 14px;
  font-size: 12px;
  color: #8BA4C4;
  border: 1px solid rgba(87, 187, 255, 0.15);
  border-radius: 10px;
  background: rgba(7, 11, 20, 0.5);
}

.wp-crm-picker {
  position: relative;
}
.wp-crm-picker__results {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 5;
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
  background: #0D1525;
  border: 1px solid rgba(87, 187, 255, 0.3);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.wp-crm-picker__results.open {
  display: block;
}
.wp-crm-picker__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-family: "Lato", "Helvetica Neue", Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  text-align: left;
  cursor: pointer;
}
.wp-crm-picker__item small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #8BA4C4;
}
.wp-crm-picker__item:hover, .wp-crm-picker__item:focus-visible {
  background: rgba(87, 187, 255, 0.1);
  outline: none;
}
.wp-crm-picker__none {
  padding: 10px;
  font-size: 13px;
  color: #8BA4C4;
}

.wp-crm-source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
.wp-crm-source-row .wp-db-input {
  padding: 9px 12px;
}
.wp-crm-source-row .wp-crm-check-row {
  white-space: nowrap;
}
@media (max-width: 479px) {
  .wp-crm-source-row {
    grid-template-columns: 1fr auto;
  }
  .wp-crm-source-row .wp-crm-stage-row__tools {
    grid-column: 1/-1;
  }
}

.wp-crm-picker__add {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
  padding: 10px;
  border: none;
  border-top: 1px solid rgba(87, 187, 255, 0.15);
  border-radius: 0 0 8px 8px;
  background: transparent;
  font-family: "Lato", "Helvetica Neue", Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #57BBFF;
  text-align: left;
  cursor: pointer;
}
.wp-crm-picker__add:hover, .wp-crm-picker__add:focus-visible {
  background: rgba(87, 187, 255, 0.08);
  outline: none;
}

.wp-crm-newco {
  margin-top: 10px;
  padding: 14px;
  background: #0C1628;
  border: 1px solid rgba(87, 187, 255, 0.3);
  border-radius: 12px;
}
.wp-crm-newco .wp-db-field {
  margin-bottom: 10px;
}
.wp-crm-newco__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.wp-crm-radios {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #C8D8EE;
}
.wp-crm-radios label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.wp-crm-radios input[type=radio] {
  accent-color: #57BBFF;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.wp-crm-drawer__back {
  margin: 0 0 12px -8px;
}

.wp-crm-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
@media (max-width: 479px) {
  .wp-crm-kpis {
    grid-template-columns: 1fr;
  }
}

.wp-crm-kpi {
  padding: 12px 14px;
  background: #0C1628;
  border: 1px solid rgba(87, 187, 255, 0.15);
  border-radius: 12px;
}
.wp-crm-kpi b {
  display: block;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}
.wp-crm-kpi span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8BA4C4;
}

.wp-crm-cos {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.wp-crm-cos:empty {
  display: none;
  margin: 0;
}

.wp-crm-co {
  display: grid;
  grid-template-columns: minmax(80px, 0.8fr) minmax(120px, 1.2fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #C8D8EE;
  background: rgba(87, 187, 255, 0.08);
  border: 1px solid rgba(87, 187, 255, 0.25);
  border-radius: 12px;
}
.wp-crm-co--default {
  border-color: rgba(87, 187, 255, 0.55);
}
.wp-crm-co--default .wp-crm-co__name::after {
  content: "Default";
  margin-left: 8px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #57BBFF;
  background: rgba(87, 187, 255, 0.14);
  border-radius: 999px;
}
.wp-crm-co__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wp-crm-co__title.wp-db-input {
  margin: 0;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 400;
}
.wp-crm-co__first, .wp-crm-co__x {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 11px;
  color: #8BA4C4;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s;
}
.wp-crm-co__first:hover {
  color: #F5CE82;
  background: rgba(245, 206, 130, 0.16);
}
.wp-crm-co__x:hover {
  color: #FFFFFF;
  background: rgba(234, 62, 46, 0.35);
}
@media (max-width: 767px) {
  .wp-crm-co {
    grid-template-columns: 1fr auto auto;
  }
  .wp-crm-co__title.wp-db-input {
    grid-column: 1/-1;
    grid-row: 2;
  }
}

.wp-crm-needname {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  padding: 2px 8px;
  font-family: "Lato", "Helvetica Neue", Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  color: #F5CE82;
  background: rgba(245, 206, 130, 0.12);
  border: 1px solid rgba(245, 206, 130, 0.35);
  border-radius: 999px;
}

button.wp-crm-needname {
  cursor: pointer;
  transition: background 0.15s;
}
button.wp-crm-needname:hover, button.wp-crm-needname:focus-visible {
  background: rgba(245, 206, 130, 0.24);
  outline: none;
}

.wp-crm-contact__name--unknown {
  font-style: italic;
}

.wp-crm-namehint {
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #F5CE82;
  background: rgba(245, 206, 130, 0.08);
  border: 1px solid rgba(245, 206, 130, 0.25);
  border-radius: 10px;
}

.wp-crm-note-editor {
  min-width: 0;
}
.wp-crm-note-editor .wp-nt-rich {
  min-height: 110px;
}

.wp-crm-note-read {
  min-height: 0;
  margin: 10px 0;
}
.wp-crm-note-read [data-remove-block] {
  display: none;
}

.wp-crm-note-dialog {
  width: min(840px, 100%);
}
.wp-crm-note-dialog > div:last-child {
  display: block;
}

.wp-crm-note-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 12px;
}
.wp-crm-note-file span {
  overflow-wrap: anywhere;
  min-width: 0;
}

[data-crm-note-status] {
  font-size: 12px;
  color: #8BA4C4;
}

.wp-crm-note-comparison {
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#crm-modal-confirm {
  z-index: 20250;
}

#wp-db-toast {
  z-index: 20300;
}

.wp-nt-context {
  z-index: 20150;
}
