.contacts {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.contacts__nav {
  flex-shrink: 0;
  background: $bg;
}

.contacts__nav-row {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 12px;
}

.contacts__back {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: $fg;
}

.contacts__back-icon {
  transform: rotate(180deg);
}

.contacts__title {
  flex: 1;
  text-align: center;
  color: $fg;
  font: 700 16px / 1 $font-display;
}

.contacts__nav-spacer {
  width: 36px;
}

.contacts__search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 20px 4px;
  padding: 0 14px;
  height: 40px;
  border-radius: $radius-pill;
  background: rgba(31, 23, 66, 0.68);
  border: 1px solid rgba(216, 180, 255, 0.1);
}

.contacts__search-icon {
  color: $muted;
}

.contacts__search-input {
  flex: 1;
  height: 40px;
  color: $fg;
  font: 400 14px / 40px $font-body;
}

.contacts__search-ph {
  color: $muted;
}

.contacts__scroll {
  flex: 1;
  min-height: 0;
}

.contacts__list {
  display: flex;
  flex-direction: column;
  padding: 8px 20px 24px;
}

.contacts__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(216, 180, 255, 0.05);
}

.contacts__left {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contacts__meta {
  flex: 1;
  min-width: 0;
}

.contacts__name {
  display: block;
  color: $fg;
  font: 600 15px / 1.3 $font-body;
}

.contacts__bio {
  display: block;
  margin-top: 2px;
  color: $muted;
  font: 400 12px / 1.3 $font-body;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contacts__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.contacts__friend-tag {
  padding: 3px 8px;
  border-radius: $radius-pill;
  background: rgba(216, 180, 255, 0.14);
  color: $accent;
  font: 600 10px / 1 $font-body;
}

.contacts__follow {
  padding: 7px 16px;
  border-radius: $radius-pill;
  background: linear-gradient(135deg, $accent, $accent-2);
  color: $primary-on;
  font: 600 12px / 1 $font-body;
}

.contacts__follow--on {
  background: transparent;
  border: 1px solid rgba(216, 180, 255, 0.3);
  color: $muted;
}

.contacts__empty {
  text-align: center;
  color: $muted;
  font: 400 13px / 1.6 $font-body;
  padding: 48px 20px;
}
