:root {
  color-scheme: dark;
  --bg: #0f1115;
  --panel: #171a21;
  --line: #262b36;
  --line-interactive: #646e80;
  --text: #e6e8ec;
  --muted: #9aa3b2;
  --accent: #53fc18;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
}

main {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

h1 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

p.sub {
  color: var(--muted);
  margin: 0 0 28px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

button,
a.button {
  display: inline-block;
  background: var(--accent);
  color: #0b0d10;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

button:focus-visible,
a.button:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

a.button.secondary,
button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-interactive);
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.status {
  font-size: 13px;
  color: var(--muted);
}

.status.live {
  color: var(--accent);
}

#chat {
  height: 460px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}

.msg {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.msg time {
  color: #8a91a0;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.msg .who {
  font-weight: 600;
}

.msg .badge {
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 4px;
  color: var(--muted);
}

.empty {
  color: var(--muted);
  padding: 24px 0;
  text-align: center;
}

.uyari {
  border-left: 3px solid #f59e0b;
  padding-left: 12px;
  color: var(--muted);
}

select {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line-interactive);
  border-radius: 8px;
  padding: 9px;
  font: inherit;
}
