:root {
  --bg: #0f1420;
  --panel: #161d2e;
  --border: #26304a;
  --text: #e7ebf5;
  --muted: #92a0bd;
  --accent: #4c8dff;
  --ok: #37c98b;
  --off: #6b7690;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
}
.topbar .logo { height: 32px; }
.topbar .brand { font-weight: 600; font-size: 18px; }
.container { max-width: 760px; margin: 40px auto; padding: 0 16px; }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}
h2 { margin-top: 0; }
input {
  width: 100%;
  padding: 10px 12px;
  margin: 6px 0 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0d1220;
  color: var(--text);
}
button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
button.secondary { background: transparent; border: 1px solid var(--border); color: var(--text); }
.error { color: #ff6b6b; margin: 6px 0; }
.device-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.device-row:last-child { border-bottom: none; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.dot.online { background: var(--ok); }
.dot.offline { background: var(--off); }
.muted { color: var(--muted); font-size: 13px; }
.row-actions { display: flex; gap: 8px; }
a.link { color: var(--accent); cursor: pointer; }
