:root {
  --bg: #1a1b1e;
  --card: #25262b;
  --card-2: #2c2e33;
  --border: #373a40;
  --text: #e9ecef;
  --muted: #909296;
  --blurple: #5865f2;
  --danger: #e03131;
  --warn: #e8912d;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

.center { min-height: 100vh; display: grid; place-items: center; }

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; background: var(--card); border-bottom: 1px solid var(--border);
}
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar form { margin: 0; }

.wrap { max-width: 860px; margin: 24px auto; padding: 0 16px; display: grid; gap: 18px; }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.card.login { max-width: 380px; text-align: center; }

h1 { margin-top: 0; }
h2 { margin: 0 0 12px; font-size: 1.05rem; }

.label { display: block; margin-bottom: 6px; font-weight: 600; }

select {
  width: 100%; padding: 10px; border-radius: 8px;
  background: var(--card-2); color: var(--text); border: 1px solid var(--border);
}

.row-between { display: flex; justify-content: space-between; align-items: center; }
.actions { display: flex; gap: 8px; }

.channels { display: grid; gap: 6px; margin-top: 12px; max-height: 340px; overflow: auto; }
.channel {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; background: var(--card-2); border-radius: 8px;
}
.channel input { width: 16px; height: 16px; }
.channel .parent { color: var(--muted); font-size: .82rem; margin-left: auto; }
.channel .stat { margin-left: auto; font-size: .82rem; }
.channel.done { outline: 1px solid #2f9e44; }
.channel.error { outline: 1px solid var(--danger); }
.channel.running { outline: 1px solid var(--blurple); }

.modes { display: grid; gap: 10px; margin-top: 8px; }

.btn {
  cursor: pointer; border: 1px solid var(--border); background: var(--card-2);
  color: var(--text); padding: 10px 14px; border-radius: 8px; font: inherit;
  text-decoration: none; display: inline-flex; flex-direction: column; align-items: flex-start;
}
.btn small { color: var(--muted); font-weight: 400; margin-top: 2px; }
.btn:hover { filter: brightness(1.12); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { flex-direction: row; padding: 7px 12px; }
.btn-discord { background: var(--blurple); border-color: var(--blurple); align-items: center; justify-content: center; }
.btn-danger { border-color: var(--danger); }
.btn-warn { border-color: var(--warn); }
