:root {
  --bg: #0e0e10;
  --panel: #17171a;
  --border: #2a2a2e;
  --text: #eee;
  --muted: #999;
  --accent: #2d6cdf;
  --green: #2ecc71;
  --yellow: #f1c40f;
  --red: #a33;
}

* { box-sizing: border-box; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

header.topbar h1 { font-size: 18px; margin: 0; }
header.topbar nav a { margin-left: 20px; color: var(--muted); font-size: 14px; }
header.topbar nav a:hover { color: var(--text); }

main { max-width: 1080px; margin: 0 auto; padding: 28px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

.card .value { font-size: 26px; font-weight: 600; }
.card .label { color: var(--muted); font-size: 13px; margin-top: 4px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dot.offline { background: #666; }
.dot.waiting { background: var(--green); }
.dot.in-session { background: var(--yellow); }

button, .btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  display: inline-block;
}
button.danger, .btn.danger { background: var(--red); }
button.ghost, .btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }

form.inline { display: inline; }
form.stack { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
form.row { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }

input, select, textarea {
  background: #1a1a1c;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 10px;
  border-radius: 5px;
  font-size: 14px;
  font-family: inherit;
}

.section { margin-bottom: 32px; }
.section h2 { font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }

.error { color: #f66; margin-bottom: 12px; }
.muted { color: var(--muted); }

.login-box {
  max-width: 340px;
  margin: 80px auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}
.login-box h1 { font-size: 20px; margin-top: 0; }
