:root {
  color-scheme: dark;
  --bg: #0b0f12;
  --panel: #141a1f;
  --line: #232c33;
  --text: #e8eef2;
  --muted: #8b9aa5;
  --accent: #41d692;
  --danger: #d65041;
}

* { box-sizing: border-box; }

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

.shell { max-width: 1200px; margin: 0 auto; padding: 18px; display: grid; gap: 14px; }
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .columns { grid-template-columns: 1fr; } }

.topbar { display: flex; justify-content: space-between; align-items: center; }
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; color: var(--muted); }
h1 { margin: 2px 0 0; font-size: 22px; }
h2 { margin: 0; font-size: 15px; }
h3 { margin: 8px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

.status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); }
.dot.ok { background: var(--accent); }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 10px; align-content: start; }
.panelHeader { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

button {
  background: #1d262d; color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 14px; font-size: 13px; cursor: pointer;
}
button.small { padding: 4px 9px; font-size: 12px; }
button.danger { color: var(--danger); }

input, select {
  background: #1d262d; color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; font-size: 13px;
}

.rowInline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rowInline input { flex: 1; min-width: 140px; }

.muted { color: var(--muted); font-size: 12px; margin: 2px 0; }
code { font-size: 11px; color: #a9c7b8; word-break: break-all; }

.badge {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  font-size: 10px; background: #1d262d; border: 1px solid var(--line); color: var(--muted);
}

.service { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; border-bottom: 1px solid var(--line); padding: 8px 0; }
.service:last-of-type { border-bottom: 0; }
.serviceActions { display: flex; align-items: center; gap: 8px; }
.switch input { width: 18px; height: 18px; accent-color: var(--accent); }

.dashRows { display: grid; gap: 8px; }
.slot { color: var(--accent); font-weight: 700; }

.events { display: grid; gap: 6px; max-height: 420px; overflow-y: auto; }
.event { border-left: 2px solid var(--line); padding-left: 10px; font-size: 13px; display: grid; gap: 2px; }
.etype { color: var(--accent); font-weight: 600; }
