.tabs {
  min-width: 0;
  max-width: 100%;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab {
  white-space: nowrap;
  background: transparent;
  color: var(--muted);
  border-radius: 9px;
  padding: 9px 14px;
  transition: 0.2s;
}
.tab.active {
  background: #d9bd831a;
  color: var(--purple);
}
.tab:hover {
  color: var(--text);
}
.growth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}
.section-heading p {
  font-size: 14px;
  max-width: 600px;
}
.section-gap {
  margin-top: 24px;
}
.section-bottom {
  margin-bottom: 22px;
}
.opportunity {
  display: flex;
  gap: 16px;
  padding: 23px;
  border-bottom: 1px solid var(--line);
}
.opportunity:last-child {
  border: 0;
}
.opportunity p {
  font-size: 14px;
  margin: 6px 0 10px;
}
.op-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 13px;
  background: #d9bd8315;
  color: var(--purple);
  display: grid;
  place-items: center;
}
.op-icon.warm {
  color: #edc58d;
  background: #edc58d13;
}
.op-icon.pink {
  color: #c98d9f;
  background: #c98d9f13;
}
.radar-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 23px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.radar-item b {
  color: var(--text);
  font-size: 18px;
}
.radar-note {
  margin: 20px;
}
.service-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 17px;
}
.service .price del {
  color: var(--muted);
  font-size: 16px;
}
.dimmed {
  opacity: 0.65;
}
.promo-card {
  padding: 24px;
}
.promo-card h2 {
  margin-top: 18px;
}
.promo-card p {
  font-size: 14px;
}
.price {
  color: var(--purple);
  font-size: 30px;
  margin: 16px 0;
}
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}
.tall {
  min-height: 160px;
}
.hidden {
  display: none !important;
}
.campaign-list {
  display: grid;
  gap: 18px;
}
.campaign-card {
  padding: 24px;
}
.campaign-top,
.campaign-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.campaign-top .eyebrow {
  font-size: 11px;
}
.campaign-top p {
  font-size: 14px;
}
.campaign-body {
  white-space: pre-wrap;
  color: #d3ccdf;
  margin: 22px 0;
}
.campaign-footer {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.recipient-picker {
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 0;
  padding: 10px;
}
.recipient-picker legend {
  font-size: 14px;
  padding: 0 8px;
}
.recipient-option {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px;
  border-radius: 8px;
  font-size: 14px;
}
.recipient-option:hover {
  background: #ffffff06;
}
.recipient-option input {
  width: 19px;
  height: 19px;
  accent-color: var(--purple);
  flex-shrink: 0;
}
.recipient-option small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.campaign-preview {
  background: #d9bd830c;
  border: 1px solid #d9bd8333;
  border-radius: 13px;
  padding: 18px;
}
.campaign-preview p {
  white-space: pre-wrap;
  margin: 15px 0;
  color: var(--text);
}
.preview-names {
  font-size: 13px;
  max-height: 100px;
  overflow: auto;
  margin-bottom: 18px;
  color: var(--muted);
}
.recipient-results {
  margin-top: 20px;
}
.recipient-result {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.recipient-result p {
  font-size: 14px;
  white-space: pre-wrap;
}
.qr-display {
  text-align: center;
  padding: 24px 10px;
}
.qr-display img {
  display: block;
  width: min(100%, 280px);
  height: auto;
  margin: 0 auto 20px;
  border-radius: 15px;
  background: white;
}
.qr-display h3 {
  font-size: 19px;
  margin-top: 18px;
}
.qr-placeholder {
  width: 170px;
  height: 170px;
  border: 1px dashed #88634c;
  border-radius: 23px;
  margin: auto;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #d9bd830d, #57263b55);
}
.qr-placeholder .ico {
  width: 56px;
  height: 56px;
  color: var(--purple);
}
.qr-actions {
  justify-content: center;
}
.connect-steps {
  padding-left: 23px;
  font-size: 14px;
  color: var(--muted);
  margin-top: 28px;
}
.connect-steps li {
  padding: 6px;
}
.connected-mark {
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #91dfbd17;
  color: var(--green);
  margin: auto;
}
.connected-mark .ico {
  width: 58px;
  height: 58px;
}
.connection-card {
  padding: 25px 0;
}
.connection-card p {
  font-size: 14px;
  margin-top: 16px;
}
.ai-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.align-left {
  text-align: left;
  padding: 0;
}
.model-status {
  line-height: 1.6;
}
.simulator {
  position: sticky;
  top: 20px;
}
.simulation-messages {
  min-height: 270px;
  max-height: 450px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}
.simulation-note {
  font-size: 12px;
  padding: 10px 18px 18px;
  margin: 0;
}
.contact-import {
  max-height: 350px;
  overflow: auto;
}
.pulsing {
  animation: pulse 2s ease-in-out infinite;
}
.suggestion {
  background: #d9bd830d;
  border: 1px solid #d9bd8330;
  border-radius: 12px;
  padding: 16px;
  margin: 12px 16px;
}
.suggestion p {
  white-space: pre-wrap;
  font-size: 14px;
  color: var(--text);
  margin: 12px 0;
}
.suggestion header {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--purple);
  font-size: 14px;
}
.client-consents {
  display: flex;
  gap: 7px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.progress-track {
  display: none;
}
@keyframes pulse {
  50% {
    opacity: 0.45;
    transform: scale(0.98);
  }
}
@media (max-width: 1100px) {
  .growth-grid,
  .ai-grid {
    grid-template-columns: 1fr;
  }
  .section-heading {
    align-items: flex-start;
  }
  .simulator {
    position: static;
  }
}
@media (max-width: 700px) {
  .tabs {
    gap: 4px;
    flex-wrap: wrap;
    margin-right: 0;
    padding-right: 0;
  }
  .tab {
    font-size: 14px;
    padding: 9px 12px;
  }
  .section-heading {
    flex-wrap: wrap;
  }
  .growth-grid {
    gap: 16px;
  }
  .opportunity {
    padding: 19px;
  }
  .radar-item {
    padding: 17px 19px;
  }
  .campaign-card {
    padding: 18px;
  }
  .campaign-top {
    align-items: flex-start;
  }
  .campaign-top h2 {
    font-size: 17px;
  }
  .campaign-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .promo-card {
    padding: 20px;
  }
  .ai-grid > .settings {
    padding: 19px;
  }
  .connect-steps {
    padding-left: 19px;
  }
  .qr-display {
    padding-top: 10px;
  }
  .section-heading .button {
    font-size: 14px;
  }
  .section-heading .eyebrow {
    font-size: 11px;
  }
  .client-consents .badge {
    font-size: 10px;
  }
  .nav span {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pulsing {
    animation: none;
  }
}
.avatar[data-phone] {
  position: relative;
  overflow: hidden;
}
.profile-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.contact-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  font-size: 12px;
  color: var(--muted);
}
.contact-summary span:last-child {
  color: var(--gold);
}
.contact-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.contact-import {
  min-height: 180px;
  max-height: 340px;
}
.recipient-option:has(input:checked) {
  background: #672d3c33;
}
.recipient-option:has(input:disabled) {
  opacity: 0.55;
}
.appointment-summary {
  padding: 0 0 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.appointment-summary p {
  font-size: 13px;
}
.appointment-summary .badge {
  margin-top: 10px;
}
.appointment-controls {
  margin-top: 23px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.appointment-controls > .caption {
  display: block;
  margin-bottom: 12px;
}
.appointment-row .actions {
  margin-top: 9px;
  gap: 14px;
}
.appointment-row .actions .link {
  font-size: 12px;
  min-height: 32px;
}
.message-image {
  display: block;
  max-width: 280px;
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  border-radius: 9px;
  margin-bottom: 9px;
}
.image-attachment {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin: 8px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #261b22;
}
.image-attachment img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 7px;
}
.image-attachment > span {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.image-attachment small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.attach-button {
  width: 42px;
  min-width: 42px;
  padding: 9px !important;
}
.composer .attach-button .ico {
  width: 18px;
  height: 18px;
}
#message-attachment-preview {
  padding: 0 15px;
}
button:disabled {
  cursor: not-allowed;
}
.date-native:focus-visible {
  opacity: 1;
  position: static;
  height: auto;
  pointer-events: auto;
}
.simulation-messages {
  scroll-behavior: smooth;
}
@media (max-width: 760px) {
  .appointment-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .appointment-row > .time {
    padding-top: 2px;
  }
  .appointment-row > .badge {
    margin-left: auto;
  }
  .appointment-row .actions {
    gap: 7px 13px;
  }
  .appointment-row .actions .link {
    font-size: 11px;
  }
  .contact-import {
    max-height: 40dvh;
  }
  .message-image {
    max-width: 220px;
  }
  .composer {
    gap: 6px;
  }
  .composer .attach-button {
    width: 34px;
    min-width: 34px;
    padding: 6px !important;
  }
  .composer input {
    width: auto;
    min-width: 0;
  }
  .appointment-controls .actions {
    gap: 12px;
  }
  .image-attachment {
    gap: 8px;
  }
  .image-attachment img {
    width: 45px;
    height: 45px;
  }
}

.conversation-mode {
  display: inline-block;
  font-size: 10px;
  color: var(--gold);
  margin-top: 5px;
  line-height: 1.6;
}
