/* Design tokens, the reset, and the controls every screen shares.
   Loaded first — everything else assumes these variables exist. */

:root {
  --bg: #0e1116; --panel: #161b22; --panel2: #1c232d; --border: #2a323d;
  --text: #e6edf3; --muted: #8b949e; --accent: #7c5cff; --accent2: #2ea043;
  --user: #24406b; --assistant: #21262d; --dislike: #d9534f;
  --discord: #5865f2;
}

* { box-sizing: border-box; }

body {
  margin: 0; font: 15px/1.5 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg); color: var(--text); height: 100vh; display: flex; flex-direction: column;
}

select, input, button, textarea {
  font: inherit; color: var(--text); background: var(--panel2);
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px;
}
button { cursor: pointer; background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
button.secondary { background: var(--panel2); color: var(--text); border-color: var(--border); font-weight: 500; }
button.danger { background: var(--panel2); color: #f0a3a3; border-color: color-mix(in srgb, var(--dislike) 45%, var(--border)); font-weight: 500; }
button:disabled { opacity: .5; cursor: not-allowed; }

.hint { color: var(--muted); font-size: 12px; }
label { font-size: 12px; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); display: inline-block; }
.dot.up { background: var(--accent2); } .dot.down { background: #f85149; }
h2.section { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 0; }
.row { display: flex; gap: 6px; }
.row.grow > * { flex: 1; }
