:root {
  --bg: #0b0f14;
  --panel: #0e141b;
  --text: #e5e7eb;
  --cyan: #7dd3fc;
  --accent: #00c896;
  --border: #1f2937;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.window {
  width: 100%;
  max-width: 640px;
  background: var(--panel);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.bar {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

#output {
  padding: 16px;
  flex-grow: 1;
  overflow-y: auto;
}

.line {
  margin-bottom: 8px;
}

.prompt {
  color: var(--cyan);
  margin-right: 8px;
}

.input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-top: 1px solid var(--border);
}

#cli {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font: inherit;
  outline: none;
}

@keyframes blink {
  50% { opacity: 0; }
}

#cli:focus {
  outline: 1px dashed var(--accent);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

footer {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--text);
  text-align: center;
}

@media (max-width: 600px) {
  body {
    padding: 0 8px;
  }
}
