body {
  background: #f5f6fa;
  margin: 0;
  font-family: system-ui, sans-serif;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  padding: 2rem 1rem 1rem 1rem;
  background: hwb(210 0% 69%);
  color: #fff;
}

.topbar h1 {
  flex: 1 1 100%;
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
  text-align: center;
  color: #fff;
}

.topbar input[type="search"] {
  flex: 2 1 60%;
  min-width: 180px;
  border-radius: 0.5rem;
  border: none;
  padding: 0.5rem;
}

.contact-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin: 2rem 0;
}

@media (min-width: 700px) {
  .contact-list {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.contact-card {
  background: #fff;
  border-radius: 0.7rem;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.10);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e3f2fd;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 2rem;
  color: #1976d2;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-text {
  font-weight: bold;
}

.info {
  flex: 1;
}

.fav-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: #bbb;
  cursor: pointer;
  position: absolute;
  top: 0.7rem;
  right: 1rem;
  transition: color 0.2s;
}

.fav-btn.fav,
.fav-btn:hover {
  color: #ffd600;
}