.contacts-split {
  display: grid;
  grid-template-columns: minmax(250px, 36%) minmax(0, 1fr);
  min-height: 650px;
  overflow: hidden;
}
.contacts-list {
  border-right: 1px solid var(--line);
}
#contact-list {
  max-height: calc(100dvh - 260px);
  overflow: auto;
}
.contact-row {
  display: flex;
  width: 100%;
  align-items: center;
  text-align: left;
  gap: 13px;
  padding: 17px 20px;
  border: 0;
  border-bottom: 1px solid #edf0ee;
  border-radius: 0;
  white-space: normal;
}
.contact-row[aria-current="true"] {
  background: var(--soft);
  border-left: 3px solid var(--accent);
  padding-left: 17px;
}
.avatar {
  background: #eaf1ed;
  color: #447b68;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
  flex-shrink: 0;
  font-size: 13px;
}
.contact-row .text {
  min-width: 0;
  flex: 1;
}
.contact-row strong,
.contact-row small {
  display: block;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.contact-row strong {
  font-size: 13px;
  font-weight: 600;
}
.contact-row small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.contact-detail {
  padding: 32px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.contact-symbol {
  font-size: 50px;
  color: #93b1a1;
}
.profile-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 25px;
}
.profile-top .avatar {
  width: 70px;
  height: 70px;
  font-size: 22px;
}
.profile-top h2 {
  font-size: 25px;
  margin: 0 0 5px;
}
.profile-top p {
  margin: 0;
  color: var(--muted);
}
.contact-detail dl {
  margin-top: 28px;
}
.contact-detail dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 20px 0 5px;
}
.contact-detail dd {
  margin: 0 0 7px;
  white-space: pre-wrap;
}
.profile-photo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}
.address-edit {
  padding: 14px;
  background: var(--paper);
  border-radius: 8px;
  margin-bottom: 12px;
}
.address-edit .toolbar {
  justify-content: space-between;
  margin-bottom: 10px;
}
.address-edit .form-grid {
  gap: 9px;
}
.address-edit label {
  font-size: 11px;
}
.contact-list-empty {
  padding: 45px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
#import-form {
  display: grid;
  gap: 16px;
}
@media (max-width: 1000px) {
  .contacts-split {
    grid-template-columns: 270px minmax(0, 1fr);
  }
  .contact-detail {
    padding: 25px 20px;
  }
}
@media (max-width: 800px) {
  .contacts-split {
    grid-template-columns: 1fr;
  }
  .contact-detail {
    border-top: 1px solid var(--line);
  }
  .contacts-list {
    border: 0;
  }
  #contact-list {
    max-height: 380px;
  }
  .contact-detail:has(.empty) {
    display: none;
  }
}
@media (max-width: 600px) {
  .contacts-split {
    min-height: 0;
  }
  .profile-top {
    gap: 12px;
  }
  .profile-top h2 {
    font-size: 22px;
  }
  .contact-detail {
    padding: 24px 18px;
  }
  .contact-row {
    padding: 16px;
  }
  .page-heading .search {
    width: 100%;
  }
}
