:root {
  --bg: #1e1f22;
  --panel: #2b2d30;
  --fg: #dfe1e5;
  --muted: #8c8f94;
  --accent: #ff5e5b;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
}
header, footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  background: var(--panel);
}
header h1 { margin: 0; font-size: 18px; letter-spacing: 0.04em; }
header h1 span { color: var(--accent); font-weight: 400; }
.spacer { flex: 1; }
.hint { color: var(--muted); font-size: 12px; }
kbd {
  border: 1px solid #555; border-radius: 3px; padding: 0 4px;
  font: 11px monospace; color: var(--fg);
}
select, button {
  font: inherit; color: var(--fg); background: #3c3f41;
  border: 1px solid #555; border-radius: 4px; padding: 4px 10px;
}
button { cursor: pointer; }
button:hover, select:hover { border-color: var(--accent); }
.examples { display: flex; align-items: center; gap: 8px; color: var(--muted); }
main { flex: 1; padding: 20px; overflow: auto; }
main .executable-fragment-wrapper { max-width: 1100px; margin: 0 auto; }
main .CodeMirror { font-size: 14px; }
footer { justify-content: space-between; font-size: 12px; color: var(--muted); }
footer a { color: var(--fg); }
#toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%);
  background: #000c; color: #fff; padding: 8px 16px; border-radius: 6px;
  opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
#toast.visible { opacity: 1; }

.status::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 6px; background: var(--muted); vertical-align: middle;
}
.status.starting::before { background: #e5c07b; animation: pulse 1s infinite alternate; }
.status.ready::before { background: #98c379; }
.status.error::before { background: var(--accent); }
@keyframes pulse { from { opacity: 0.3; } to { opacity: 1; } }
