:root {
  --bg: #1e1e1e;
  --surface: #252526;
  --surface-2: #2d2d2d;
  --hover: #2a2d2e;
  --line: #3e3e42;
  --text: #cccccc;
  --bright: #e7e7e7;
  --muted: #9d9d9d;
  --faint: #6a6a6a;
  --blue: #007acc;
  --blue-dim: rgba(0, 122, 204, 0.15);
  --keyword: #569cd6;
  --string: #ce9178;
  --green: #4ec9b0;
  --red: #f14c4c;
  --font: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
}

a { color: var(--keyword); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--bright); }

:focus-visible {
  outline: 1px solid var(--blue);
  outline-offset: 2px;
}

.page {
  width: min(780px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 2.5rem;
}

.hero {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--bright);
  letter-spacing: -0.02em;
}

.lede {
  margin-top: 0.4rem;
  color: var(--muted);
}

.countline {
  margin-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

#stat-tracked {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--green);
  line-height: 1;
}

.count-badge { display: block; opacity: 0.95; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.95rem 1rem 1rem;
}

.panel h2 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.75rem;
}

#search {
  width: 100%;
  height: 34px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  padding: 0 10px;
  margin-bottom: 0.65rem;
  outline: none;
}

#search:focus {
  border-color: var(--blue);
  background: #1b1b1b;
}

#search::placeholder { color: var(--faint); }

.people { list-style: none; }

.people li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid rgba(62, 62, 66, 0.55);
  cursor: pointer;
}

.people li:last-child { border-bottom: 0; }

.people li:hover,
.people li:focus-visible {
  background: var(--blue-dim);
}

.person {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 3px;
  background: var(--surface-2);
  display: block;
  flex-shrink: 0;
}

.names { min-width: 0; }

.display {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--keyword);
  min-width: 0;
}

.display span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verified-badge {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.handle {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--string);
}

.added {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  white-space: nowrap;
}

.empty {
  color: var(--muted);
  padding: 1rem 0.25rem;
  font-size: 14px;
}

.more {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  border: 0;
  background: transparent;
  color: var(--keyword);
  font: inherit;
  font-size: 13px;
  font-family: var(--mono);
  text-align: left;
  padding: 0.65rem 0.35rem 0.15rem;
  cursor: pointer;
}

.more:hover { color: var(--bright); }
.more[hidden] { display: none; }

.foot {
  margin-top: 1.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 12px;
  font-family: var(--mono);
}

@media (max-width: 860px) {
  .page { width: min(720px, calc(100% - 1.25rem)); padding-top: 1.35rem; }
}
