.crm h1 {
  margin: 0;
}
.crm h2 {
  margin: 8px 0;
}
.crm .eyebrow {
  margin-bottom: 12px;
}
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  margin: 24px 0;
}
.tabs a {
  padding: 10px 16px;
  border-radius: 7px;
  white-space: nowrap;
}
.tabs a[aria-current="page"] {
  background: #ff7646;
  color: #101217;
}
.tabs a:hover {
  background: #2a2f3a;
  color: #fff;
}
.search {
  max-width: 420px;
  margin: 20px 0;
}
.kanban {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 24px;
  min-height: 290px;
  align-items: flex-start;
}
.column {
  flex: 0 0 280px;
  background: #11151e;
  border: 1px solid var(--line);
  border-top: 3px solid var(--stage);
  border-radius: 9px;
  padding: 14px;
}
.column h3 {
  font-size: 16px;
  margin: 0;
}
.column .actions {
  margin: 0 0 14px;
}
.stage-edit {
  border: 0;
  background: transparent;
  color: #bbc3d5;
  min-width: 44px;
  min-height: 44px;
  font-size: 18px;
}
.lead-card {
  background: var(--panel);
  border: 1px solid #394153;
  padding: 14px;
  margin: 12px 0;
  border-radius: 8px;
  cursor: grab;
}
.lead-card:hover {
  border-color: #ff9875;
}
.lead-card .card-title {
  font: inherit;
  font-weight: 650;
  text-align: left;
  border: 0;
  background: none;
  color: #f7f6f3;
  padding: 0;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.lead-card .details {
  font-size: 12px;
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.lead-card .card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.lead-card .card-top input {
  margin-top: 4px;
}
.tag {
  display: inline-block;
  font-size: 11px;
  border: 1px solid #495267;
  padding: 2px 7px;
  border-radius: 20px;
  margin: 4px 4px 0 0;
  color: #e0e5ed;
}
.tag.good {
  color: #81e0b4;
  border-color: #276448;
}
.column.drop-target {
  border-color: var(--accent);
}
.empty {
  padding: 35px 20px;
  text-align: center;
  background: var(--panel);
  border-radius: 10px;
}
.empty a,
.text-link {
  color: #ff9875;
  text-decoration: underline;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.full {
  grid-column: 1/-1;
}
textarea {
  width: 100%;
  resize: vertical;
  min-height: 90px;
  font: inherit;
  color: var(--text);
  background: #0c0e13;
  border: 1px solid #555d6e;
  border-radius: 6px;
  padding: 12px;
}
.crm label {
  margin-bottom: 12px;
}
.crm .consent {
  align-items: center;
}
.crm .consent a {
  color: #ff9875;
}
.crm input[type="checkbox"] {
  margin-right: 2px;
}
dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: 90vh;
  overflow: auto;
  background: #151923;
  color: var(--text);
  border: 1px solid #555d6e;
  border-radius: 14px;
  padding: 26px;
}
dialog::backdrop {
  background: #000b;
}
dialog .actions {
  margin-top: 0;
}
dialog h2 {
  font-size: 24px;
  overflow-wrap: anywhere;
}
dialog p,
dialog pre {
  overflow-wrap: anywhere;
}
dialog pre {
  white-space: pre-wrap;
  font: inherit;
  font-size: 14px;
  max-height: 45vh;
  overflow: auto;
}
.activity-row,
.list-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.list-row .actions {
  margin: 8px 0;
}
.list-row p {
  margin: 4px 0;
}
.list-row button {
  text-align: left;
}
.danger {
  color: #ff9f9f !important;
}
.dialpad {
  display: grid;
  grid-template-columns: repeat(3, 55px);
  gap: 8px;
}
.dialpad button {
  background: #222939;
  color: #fff;
  border: 1px solid #555d6e;
  border-radius: 6px;
  padding: 12px;
  font: inherit;
}
.crm .button {
  font-size: 14px;
  padding: 10px 16px;
}
.crm .panel h2 {
  margin-bottom: 12px;
}
.crm .fine {
  font-size: 12px;
}
.step-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin: 16px 0;
}
.crm #growth {
  font-size: 13px;
}
#phone-status {
  font-weight: 650;
  color: #ffb396;
}
#enrich-history,
#call-history {
  overflow-x: auto;
}
#board-empty {
  margin-top: 0;
}
.message-button {
  display: block;
  width: 100%;
  background: none;
  color: inherit;
  border: 0;
  padding: 10px 0;
  font: inherit;
}
.message-button:hover {
  color: #ff9875;
}
.reviews-form {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.crm #business-form .consent {
  flex-wrap: wrap;
}
.crm #business-form .consent input {
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .crm .tabs {
    gap: 2px;
  }
  .tabs a {
    padding: 10px;
  }
  .column {
    flex-basis: 270px;
  }
  dialog {
    padding: 18px;
  }
  .crm .actions h1 {
    font-size: 34px;
  }
  .crm .actions {
    gap: 12px;
  }
  .crm nav {
    gap: 12px;
  }
  .crm .button {
    min-height: 44px;
  }
  .crm #business-form .consent {
    display: block;
  }
  .crm #business-form .consent input {
    display: inline-block;
    vertical-align: middle;
  }
  .crm .kanban {
    max-width: 100%;
  }
}
.crm .tag {
  background: #222b3b;
}
header nav a {
  white-space: nowrap;
}
#user-button {
  min-width: 32px;
  flex-shrink: 0;
}
