:root {
  --bg: #11111b;
  --surface: #1e1e2e;
  --surface2: #313244;
  --text: #cdd6f4;
  --subtext: #a6adc8;
  --accent: #89b4fa;
  --green: #a6e3a1;
  --red: #f38ba8;
  --border: #45475a;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "SF Pro Text", system-ui, -apple-system, sans-serif;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  flex-shrink: 0;
}

#toolbar .brand {
  font-weight: 600;
  letter-spacing: 0.02em;
}

#toolbar .pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(137, 180, 250, 0.12);
  color: var(--accent);
  font-size: 12px;
}

#toolbar .pill.ok {
  background: rgba(166, 227, 161, 0.12);
  color: var(--green);
}

#toolbar .pill.err {
  background: rgba(243, 139, 168, 0.12);
  color: var(--red);
}

#status {
  flex: 1;
  color: var(--subtext);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#meta {
  color: var(--subtext);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

#terminal-wrap {
  flex: 1;
  min-height: 0;
  padding: 6px 8px 8px;
  background: var(--surface);
}

#terminal {
  width: 100%;
  height: 100%;
}

.err {
  color: var(--red);
}

.hint {
  padding: 8px 14px;
  font-size: 12px;
  color: var(--subtext);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.hint kbd {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface2);
  font-family: inherit;
  font-size: 11px;
}
