:root {
  --bg: #f5f7fb;
  --text: #0f172a;
  --muted: #475569;
  --card: #ffffff;
  --border: #e2e8f0;
  --primary: #0ea5e9;
  --star: #f59e0b;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, Noto Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif; color: var(--text); background: var(--bg); }

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

.topbar { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.title { margin: 0; font-size: 28px; }
.search { flex: 0 1 360px; padding: 10px 12px; border-radius: 999px; border: 1px solid var(--border); background: #fff; outline: none; }
.search:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,165,233,.15); }

.section { margin-top: 8px; }
.section-title { font-size: 18px; margin: 20px 0 10px; }
.count { color: var(--muted); font-weight: normal; }

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

.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.card-head { display: grid; grid-template-columns: 56px 1fr 24px; align-items: center; gap: 12px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid #00000010; }
.avatar.placeholder { display: grid; place-items: center; background: #e2e8f0; color: #1f2937; font-weight: 700; }
.card-title { margin: 0; font-size: 18px; }
.fav { appearance: none; border: none; background: transparent; cursor: pointer; font-size: 18px; color: #94a3b8; }
.fav.active { color: var(--star); }
.card-body { margin-top: 10px; color: var(--muted); }
.card-body strong { color: var(--text); margin-right: 6px; }

.empty { margin: 32px 0; color: var(--muted); }

