.recontact-main {
  width: 100%;
  max-width: none;
  margin: 0;
}

.recontact-topbar,
.archive-summary {
  width: min(1540px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.lead-copy {
  margin-top: 12px;
  max-width: 760px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.archive-summary {
  grid-template-columns: 1.15fr 1fr 1fr 1.5fr;
}

.range-value {
  font-size: clamp(20px,2vw,32px) !important;
  line-height: 1.15 !important;
}

.archive-section {
  width: 100%;
}

.archive-heading {
  align-items: end;
}

.archive-helper {
  color: var(--muted-2);
  font-size: 11px;
  margin-top: 6px;
}

.archive-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.archive-search,
.archive-select {
  color: #fff;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
}

.archive-search {
  min-width: 360px;
}

.archive-search:focus,
.archive-select:focus {
  border-color: var(--accent);
}

.archive-table-section {
  width: 100%;
}

.archive-table {
  min-width: 1900px;
}

.archive-table th,
.archive-table td {
  vertical-align: top;
}

.client-cell strong,
.contact-cell span,
.cell-sub {
  display: block;
}

.client-cell strong {
  color: #fff;
  font-weight: 900;
}

.client-cell span,
.cell-sub {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 10px;
}

.contact-cell {
  min-width: 240px;
}

.contact-cell span + span {
  margin-top: 5px;
}

.contact-cell a {
  color: #dcdcdc;
  text-decoration: none;
}

.contact-cell a:hover {
  color: var(--accent);
}

.packages-cell {
  max-width: 360px;
  white-space: normal;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  display: inline-flex;
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #cfcfcf;
  background: #171717;
  font-size: 9px;
  font-weight: 750;
}

.recency-pill,
.archive-status {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.recency-pill.green { color: var(--success); background: rgba(95,211,141,.10); }
.recency-pill.yellow { color: var(--warning); background: rgba(242,193,78,.10); }
.recency-pill.orange { color: #ff9d4d; background: rgba(255,157,77,.10); }
.recency-pill.red { color: var(--danger); background: rgba(255,107,107,.10); }
.recency-pill.neutral { color: var(--muted); background: #1d1d1d; }

.archive-status.active { color: var(--success); background: rgba(95,211,141,.10); }
.archive-status.onboarding { color: #79c8ff; background: rgba(121,200,255,.10); }
.archive-status.on_hold { color: var(--warning); background: rgba(242,193,78,.10); }
.archive-status.alumni { color: var(--muted); background: #1d1d1d; }
.archive-status.unknown { color: var(--muted); background: #1d1d1d; }

.money-cell {
  color: var(--accent);
  font-weight: 900;
}

.notes-cell {
  min-width: 320px;
  max-width: 420px;
  white-space: normal;
  color: #bdbdbd;
  line-height: 1.45;
}

@media (max-width: 1050px) {
  .archive-summary { grid-template-columns: repeat(2,1fr); }
  .archive-heading { align-items: stretch; flex-direction: column; }
  .archive-controls { width:100%; flex-wrap:wrap; }
  .archive-search { min-width:0; flex:1 1 100%; }
}

@media (max-width: 720px) {
  .archive-summary { grid-template-columns:1fr; }
  .archive-controls { display:grid; grid-template-columns:1fr; }
}
