.import-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 18px;
}
.import-panel > div:last-child {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.import-panel p {
  max-width: 720px;
  color: var(--muted);
}
#legacyImportFeedback {
  font-size: 10px;
  font-weight: 850;
  color: var(--green);
}
.connection-state {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
}
.connection-state.online {
  background: #e7f7f0;
  color: var(--green);
}
.connection-state.warning {
  background: #fff2d7;
  color: var(--amber);
}
.source-badge {
  display: inline-flex;
  padding: 2px 6px;
  border-radius: 999px;
  font-style: normal;
  font-weight: 850;
}
.source-badge.web { background: #e8f6fd; color: var(--blue); }
.source-badge.manual { background: #eeeafd; color: #5e4ec5; }
.city-access {
  margin: 16px 0 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 12px;
}
.city-access legend { padding: 0 6px; font-size: 10px; font-weight: 850; }
.city-access label { display: flex; align-items: center; gap: 7px; margin: 0; font-weight: 650; }
.city-access input { width: auto; }
.section-note {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.customer-search {
  max-width: 520px;
  margin: 0 0 18px;
}
.customer-table { display: grid; }
.customer-row {
  display: grid;
  grid-template-columns: 42px minmax(220px,1.5fr) minmax(210px,1fr) minmax(130px,.55fr) 22px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 5px;
  border: 0;
  border-top: 1px solid #e8eef3;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.customer-row:first-child { border-top: 0; }
.customer-row:hover { background: #f8fbfd; }
.customer-row::after { content: '›'; color: #8291a6; font-size: 25px; }
.customer-row > span:not(.avatar) { display: grid; gap: 4px; min-width: 0; }
.customer-row strong { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.customer-row small { color: var(--muted); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.customer-hero {
  margin-bottom: 18px;
  padding: 25px 28px;
  border: 1px solid #cfe2ec;
  border-radius: 18px;
  background: linear-gradient(120deg,#fff,#edf8fd);
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.customer-hero h2 { margin: 8px 0; font-size: 31px; }
.customer-hero p:last-child { color: var(--muted); }
.customer-detail-grid { grid-template-columns: minmax(0,1.45fr) minmax(300px,.55fr); }
.customer-summary .facts { grid-template-columns: 1fr; margin-top: 18px; }
.customer-jobs { margin-top: 18px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.contact-actions .secondary { padding: 9px 12px; font-size: 10px; }
.message-list article.customer_email { border-left-color: var(--blue); }
.message-list article.customer_sms { border-left-color: #5e4ec5; }
@media (max-width: 760px) {
  .import-panel {
    align-items: stretch;
    flex-direction: column;
  }
  .city-access { grid-template-columns: 1fr; }
  .customer-row { grid-template-columns: 38px minmax(0,1fr) 20px; }
  .customer-row > span:nth-child(3), .customer-row > span:nth-child(4) { display: none; }
  .customer-hero { flex-direction: column; padding: 22px 18px; }
  .customer-detail-grid { grid-template-columns: 1fr; }
}
