:root {
  color-scheme: light dark;
  --fg: #1a1a1a;
  --bg: #fafafa;
  --muted: #777;
  --line: #ddd;
  --accent: #2563eb;
}
@media (prefers-color-scheme: dark) {
  :root { --fg: #eee; --bg: #121212; --muted: #999; --line: #333; --accent: #60a5fa; }
}
* { box-sizing: border-box; }
body {
  margin: 0 auto; max-width: 42rem; padding: 1.5rem 1rem 3rem;
  font: 16px/1.5 system-ui, -apple-system, sans-serif; color: var(--fg); background: var(--bg);
}
header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
h1 { margin: 0; font-size: 1.5rem; }
h2 { font-size: 1.1rem; margin: 2rem 0 .5rem; }
.muted { color: var(--muted); font-size: .9rem; }
form { display: flex; gap: .5rem; }
input[type="text"] { flex: 1; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: inherit; }
button { padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: inherit; cursor: pointer; }
button[type="submit"] { border-color: var(--accent); color: var(--accent); }
.list { list-style: none; padding: 0; margin: .75rem 0 0; }
.list li { display: flex; align-items: center; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.list li > span, .list li > a { flex: 1; word-break: break-word; }
.list img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; }
.list li button { padding: .1rem .5rem; }
footer { margin-top: 3rem; }
a { color: var(--accent); }
