:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eef0f3;
  --text: #1a1d23;
  --text-dim: #62666f;
  --border: #e2e4e9;
  --accent: #2f6feb;
  --accent-2: #17824e;
  --chip-bg: #eaf1ff;
  --chip-text: #2f6feb;
  --call: #2f6feb;
  --wa: #22b357;
  --shadow: 0 1px 2px rgba(20, 20, 30, 0.06), 0 1px 8px rgba(20, 20, 30, 0.04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #171a21;
    --surface-2: #1e222b;
    --text: #eef0f3;
    --text-dim: #9aa0ac;
    --border: #272c36;
    --accent: #5b9bff;
    --accent-2: #35c281;
    --chip-bg: #1c2942;
    --chip-text: #7fb1ff;
    --call: #5b9bff;
    --wa: #35c281;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.25);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  padding-bottom: 84px;
}

header.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 16px 12px;
}

header.top h1 {
  margin: 0 0 2px;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}

header.top p.sub {
  margin: 0 0 10px;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 12px;
}

.search svg { flex: none; opacity: 0.55; }

.search input {
  border: none;
  background: transparent;
  outline: none;
  color: var(--text);
  font-size: 0.95rem;
  width: 100%;
}

.search input::placeholder { color: var(--text-dim); }

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 14px 12px 8px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 14px 10px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-new {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--accent-2);
  background: var(--chip-bg);
  padding: 2px 7px;
  border-radius: 999px;
}

.poc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-top: 1px solid var(--border);
}

.poc-row:first-of-type { border-top: none; }

.poc-name {
  font-size: 0.92rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 8px;
}

.poc-actions {
  display: flex;
  gap: 8px;
  flex: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.08s ease;
}

.icon-btn:active { transform: scale(0.92); }

.icon-btn.call { background: color-mix(in srgb, var(--call) 14%, transparent); color: var(--call); }
.icon-btn.wa { background: color-mix(in srgb, var(--wa) 14%, transparent); color: var(--wa); }

.icon-btn svg { width: 18px; height: 18px; }

.person-card .sport-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.chip {
  font-size: 0.76rem;
  background: var(--chip-bg);
  color: var(--chip-text);
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.person-card .person-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.person-card h2 {
  margin: 0;
  font-size: 1rem;
}

.empty {
  text-align: center;
  color: var(--text-dim);
  padding: 40px 16px;
  font-size: 0.9rem;
}

nav.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
}

nav.tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.7rem;
  padding: 6px 0 2px;
  border-radius: 10px;
}

nav.tabbar a.active {
  color: var(--accent);
}

nav.tabbar a svg { width: 21px; height: 21px; }
