:root {
  --bg: #0f1724;
  --card: #0b1220;
  --muted: #94a3b8;
  --accent: #7c3aed;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  color: #e6eef8;
  background: #071027;
}

.wrap {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  background: #0b1220;
  border-bottom: 1px solid #1e293b;
}

.brand {
  font-weight: 700;
  font-size: 18px;
}

.meta {
  font-size: 12px;
  color: var(--muted);
}

.status {
  font-size: 13px;
  color: var(--muted);
  margin-left: auto;
}

.main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 40%;
  overflow: hidden;
}

.left, .right {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 6px 20px rgba(2,6,23,0.6);
}

.controls {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

textarea.code {
  flex: 1;
  width: 100%;
  border-radius: 8px;
  padding: 12px;
  background: #061025;
  border: none;
  color: #dbeafe;
  font-family: ui-monospace, monospace;
  font-size: 14px;
  resize: none;
  overflow: auto;
}

.output {
  flex: 1;
  overflow: auto;
  background: #020612;
  border-radius: 8px;
  padding: 10px;
  font-family: ui-monospace, monospace;
  color: #e6eef8;
  font-size: 14px;
  white-space: pre-wrap;
}

textarea.stdin {
  width: 100%;
  height: 100px;
  border-radius: 8px;
  padding: 8px;
  background: #051025;
  border: none;
  color: #e6eef8;
  font-family: ui-monospace, monospace;
  resize: none;
}

button {
  background: linear-gradient(180deg, #6d28d9, #5b21b6);
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

button.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.small {
  padding: 6px 8px;
  font-size: 13px;
}

.examples {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: 6px;
}

.example {
  background: #071a36;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}

#timeout {
  width: 70px;
  padding: 6px;
  border-radius: 6px;
  background: #02122a;
  border: none;
  color: #e6eef8;
}
