:root {
  --bg: #0a0f0a;
  --panel: #0f160f;
  --text: #d7ffd7;
  --muted: #8fbf8f;
  --accent: #9fdf9f;
  --border: #3a6b3a;
}
* { box-sizing: border-box; }
body.terminal {
  margin: 0;
  min-height: 100vh;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-family: system-ui, sans-serif;
}
.eyebrow { margin: 0; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; }
h1 { margin: 0.25rem 0 0; font-size: 1.25rem; }
#clock { color: var(--accent); font-size: 0.9rem; }
main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr minmax(220px, 280px);
  min-height: 0;
}
@media (max-width: 800px) { main { grid-template-columns: 1fr; } }
.console {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  min-height: 60vh;
}
.output {
  flex: 1;
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.5;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}
#cmd-input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text);
  font: inherit;
  outline: none;
}
.sidebar {
  border-left: 1px solid var(--border);
  padding: 1rem;
  font-family: system-ui, sans-serif;
  background: var(--panel);
}
.sidebar h2 { font-size: 0.85rem; color: var(--muted); margin: 1rem 0 0.5rem; }
.sidebar h2:first-child { margin-top: 0; }
.sidebar button {
  display: block;
  width: 100%;
  text-align: left;
  margin-bottom: 0.35rem;
  padding: 0.5rem 0.65rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  cursor: pointer;
}
.sidebar button:hover { background: #152515; }
.sidebar dl { margin: 0; font-size: 0.85rem; }
.sidebar dt { color: var(--muted); margin-top: 0.5rem; }
.sidebar dd { margin: 0.15rem 0 0; color: var(--accent); }
