:root {
  --bg: #0c1210;
  --panel: #151f1b;
  --ink: #e8f0ec;
  --muted: #a8bdb4;
  --accent: #3dba8a;
  --line: rgba(232, 240, 236, 0.12);
  --warn: #c4a574;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "IBM Plex Sans", sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100svh;
  padding: 1.5rem;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.logo { font-family: Manrope, sans-serif; font-weight: 800; font-size: 1.25rem; }
.logo span { color: var(--accent); }
.tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tab {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 0.45rem 0.8rem;
  font-family: Manrope, sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: 2px;
}
.tab.active {
  color: #06110c;
  background: var(--accent);
  border-color: var(--accent);
}
.meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
}
.hitl {
  color: #06110c;
  background: var(--warn);
  padding: 0.15rem 0.45rem;
  font-weight: 700;
  border-radius: 2px;
}
.hidden { display: none; }
.muted { color: var(--muted); }
.stage {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .stage { grid-template-columns: 1fr 1fr; min-height: 52vh; }
}
.pane {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pane h2 {
  font-family: Manrope, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}
label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
textarea, pre {
  flex: 1;
  min-height: 220px;
  width: 100%;
  background: #0a0f0d;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.85rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  resize: vertical;
}
pre { white-space: pre-wrap; overflow: auto; }
.actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
button.run {
  background: var(--accent);
  color: #06110c;
  border: 0;
  font-family: Manrope, sans-serif;
  font-weight: 700;
  padding: 0.65rem 1rem;
  cursor: pointer;
  border-radius: 2px;
}
button.run:disabled { opacity: 0.5; cursor: wait; }
.side {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .side { grid-template-columns: 1fr 1fr; }
}
.side h3 {
  font-family: Manrope, sans-serif;
  font-size: 0.85rem;
  margin-bottom: 0.45rem;
}
.side ul {
  list-style: none;
  display: grid;
  gap: 0.35rem;
}
.side li {
  font-size: 0.85rem;
  color: var(--muted);
  border-left: 2px solid var(--accent-dim, #2a8f68);
  padding-left: 0.55rem;
}
.hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 1rem;
}
.hint a { color: var(--accent); }
.hint code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
}
