:root {
  color-scheme: dark;
  --bg: #090d14;
  --bar: #0f1623;
  --border: #1e293b;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --ok: #22c55e;
  --warn: #f59e0b;
  --err: #ef4444;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
#topbar {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: var(--bar);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  user-select: none;
  gap: 10px;
}
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); flex-shrink: 0; }
.dot.ready { background: var(--ok); }
.dot.error { background: var(--err); }
.title { font-weight: 600; color: var(--text); white-space: nowrap; }
#status-text { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
button {
  background: #162032;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px 9px;
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
}
button:hover { border-color: var(--accent); }
#terminal-wrap { width: 100%; height: calc(100dvh - 36px); padding: 4px 6px; background: var(--bg); }
#terminal { width: 100%; height: 100%; }
