:root{
  --bg:#f6f6f8;
  --card:#fff;
  --text:#222;
  --muted:#666;
  --accent:#ffd25a;
}

body{
  margin:0;
  font-family: system-ui, sans-serif;
  background:var(--bg);
  color:var(--text);
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px;
  background:#fff;
  border-bottom:1px solid #ddd;
}

.search{
  padding:8px 12px;
  border-radius:18px;
  border:1px solid #ccc;
}

.container{
  padding:24px;
  max-width:1100px;
  margin:0 auto;
}

.section{ margin-bottom:28px; }
.section h2{ font-size:16px; }

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(220px,1fr));
  gap:16px;
}

.card{
  background:var(--card);
  border-radius:10px;
  padding:12px;
  border:1px solid #eee;
  display:flex;
  flex-direction:column;
}

.card-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.avatar{
  width:56px;
  height:56px;
  border-radius:50%;
  background:#ddd;
}

.avatar.initials{
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  color:#fff;
  background:#6aa2c7;
}

.fav-btn{
  background:none;
  border:none;
  font-size:20px;
  cursor:pointer;
}
.fav-btn.fav{ color:var(--accent); }

.card-body{ margin-top:10px; }
.name{ margin:0 0 6px; font-size:15px; }
.empty{ color:var(--muted); }

.footer{
  text-align:center;
  padding:18px;
  border-top:1px solid #eee;
  color:var(--muted);
}
