:root {
  --bg: #101418;
  --panel: #1a2128;
  --line: #2c3640;
  --text: #e8eef3;
  --muted: #93a1ad;
  --accent: #d4a012;
  --ok: #3dba8b;
  --bad: #e06b6b;
  --font: "Segoe UI", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

body {
  padding: 28px 32px 48px;
}

.eyebrow {
  margin: 0 0 4px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
}

.lede {
  color: var(--muted);
  line-height: 1.5;
}

code {
  font-size: 0.92em;
}

.auth {
  min-height: 80vh;
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 28px;
}

label {
  display: block;
  margin: 16px 0 6px;
  color: var(--muted);
  font-size: 13px;
}

input {
  width: 100%;
  background: #0d1114;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: var(--accent);
  color: #16120a;
  font-weight: 600;
  padding: 10px 16px;
}

.auth-card button {
  margin-top: 16px;
  width: 100%;
}

.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 14px 16px;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.stat strong {
  font-size: 26px;
  font-weight: 600;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tabs button {
  background: var(--panel);
  color: var(--muted);
  border: 1px solid var(--line);
}

.tabs button.active {
  background: var(--accent);
  color: #16120a;
}

.toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.toolbar input {
  flex: 1;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
  background: #151b21;
  position: sticky;
  top: 0;
}

tr:hover td {
  background: #1f272f;
}

.mono {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
}

.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.pill.ok {
  background: #1b3a30;
  color: var(--ok);
}

.pill.bad {
  background: #3a2222;
  color: var(--bad);
}

.devices {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.error {
  color: var(--bad);
  margin-top: 12px;
}

.empty {
  color: var(--muted);
  padding: 24px;
}
