:root {
  color-scheme: dark;
  --bg: #0b0f1a;
  --panel: #131a2a;
  --text: #e5edff;
  --muted: #94a3b8;
  --accent: #00d4ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.app {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.card {
  background: var(--panel);
  border: 1px solid #1f2b45;
  border-radius: 12px;
  padding: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

input,
button {
  border-radius: 8px;
  border: 1px solid #2e3b5f;
  padding: 10px;
  background: #0c1426;
  color: var(--text);
}

button {
  cursor: pointer;
}

button:hover {
  border-color: var(--accent);
}

.muted {
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 260px;
  overflow: auto;
}

.list li {
  border-bottom: 1px solid #1f2b45;
  padding: 8px 0;
}
