:root { --bg:#1e1f22; --panel:#262729; --fg:#e6e6e6; --accent:#3b82f6; --err:#ff6b6b; --ok:#4ade80; }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--fg); font:15px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif; display:flex; flex-direction:column; min-height:100vh; }
header { display:flex; align-items:center; justify-content:space-between; padding:10px 16px; background:var(--panel); }
h1 { margin:0; font-size:18px; }
.status { font-size:13px; padding:2px 10px; border-radius:999px; background:#333; }
.status.ok { color:var(--ok); } .status.loading { color:#fbbf24; }
.toolbar { display:flex; gap:8px; flex-wrap:wrap; padding:10px 16px; }
button, select { font:inherit; padding:7px 14px; border-radius:6px; border:0; background:var(--accent); color:#fff; cursor:pointer; }
button.secondary, select { background:#3a3b3f; }
button:disabled { opacity:.5; cursor:not-allowed; }
button small { opacity:.75; }
main { flex:1; display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:0 16px 16px; min-height:0; }
@media (max-width:800px) { main { grid-template-columns:1fr; } }
.pane { display:flex; flex-direction:column; min-height:300px; background:var(--panel); border-radius:8px; overflow:hidden; }
.CodeMirror { flex:1; height:100%; min-height:300px; font-size:15px; }
.label { padding:6px 12px; font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:#9aa0a6; background:#2d2e31; }
#output { flex:1; margin:0; padding:12px; overflow:auto; font:14px/1.5 ui-monospace,Menlo,Consolas,monospace; white-space:pre-wrap; }
#output .err { color:var(--err); }
.stdin-inline { font:inherit; color:#fff; background:transparent; border:0; border-bottom:1px solid #6b7280; outline:none; padding:0 2px; max-width:100%; caret-color:#fbbf24; }
.stdin-inline:focus { border-bottom-color:var(--accent); }
