:root {
  --bg: #0f1419;
  --panel: #172029;
  --panel-2: #1f2a35;
  --ink: #e8edf2;
  --muted: #8b98a5;
  --line: #3a4652;
  --accent: #5ab0f0;
  --react: #e08a5a;
  --rlm: #5a9cf0;
  --graph: #4fbf7a;
  --code: #e0c34f;
  --eval: #b08cf0;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Inter", "Segoe UI", system-ui, sans-serif; }
code, pre { font-family: "JetBrains Mono", "SF Mono", Menlo, monospace; }
.muted { color: var(--muted); }
.top { display: flex; align-items: center; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.top h1 { font-size: 20px; margin: 0; }
.spacer { flex: 1; }
.budget { position: relative; width: 180px; height: 22px; border-radius: 11px; background: var(--panel-2); overflow: hidden; }
.budget .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(90, 176, 240, 0.45); }
.budget .label { position: relative; display: block; text-align: center; font-size: 12px; line-height: 22px; }
main { padding: 18px 24px 40px; display: flex; flex-direction: column; gap: 18px; }
select, input, button { font: inherit; font-size: 15px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
button { cursor: pointer; background: var(--panel-2); }
button:hover { border-color: var(--accent); }
button.primary { background: var(--accent); color: #0d1116; border-color: var(--accent); font-weight: 650; }
button.link { background: none; border: none; color: var(--muted); padding: 0; }
.ask-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.3fr) 140px auto; gap: 10px; }
.message { min-height: 20px; margin: 0; color: var(--react); font-size: 14px; }
.workbench { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 14px; align-items: start; }
.builder { background: var(--panel); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.builder-head { display: flex; gap: 10px; align-items: center; }
.builder-head .preset { flex: 1; }
.builder-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.builder label { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.builder select { font-size: 14px; padding: 6px 8px; }
.steps-row input { width: 180px; padding: 0; }
.steps-value { color: var(--ink); font-variant-numeric: tabular-nums; min-width: 24px; }
.tools { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.tools label { font-size: 13px; color: var(--ink); cursor: pointer; }
.tools code { font-size: 12.5px; }
.instructions summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.instructions .edited { color: var(--code); margin-left: 6px; font-size: 12px; }
.instructions textarea { width: 100%; margin-top: 8px; font: 12.5px/1.45 "JetBrains Mono", "SF Mono", Menlo, monospace; color: var(--ink); background: #0b1016; border: 1px solid var(--line); border-radius: 8px; padding: 10px; resize: vertical; }
.board .setup { font-size: 12.5px; color: var(--muted); }
.lanes { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; height: 760px; }
.lanes .lane { min-width: 0; }
.boards { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.board { background: var(--panel); border-radius: 12px; padding: 16px 18px; }
.board h2 { font-size: 17px; margin: 0 0 6px; color: var(--accent); }
.board table { width: 100%; border-collapse: collapse; font-size: 14px; }
.board th, .board td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.board th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.board td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.board .pass { color: var(--graph); font-weight: 700; }
.board .fail { color: var(--react); font-weight: 700; }
.board .hint { color: var(--muted); font-size: 13px; }
.board button { font-size: 13px; padding: 4px 10px; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 650; color: #0d1116; }
.t-react { background: var(--react); }
.t-rlm { background: var(--rlm); }
.t-graph { background: var(--graph); }
.overlay { position: fixed; inset: 0; background: rgba(5, 8, 12, 0.85); display: flex; align-items: center; justify-content: center; }
.overlay[hidden] { display: none; }
.overlay .card { background: var(--panel); border-radius: 14px; padding: 26px 30px; width: 360px; display: flex; flex-direction: column; gap: 14px; }
.overlay h2 { margin: 0; }
.overlay label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
@media (max-width: 1000px) {
  .workbench, .boards { grid-template-columns: 1fr; }
  .lanes { height: auto; }
  .lanes .lane { height: 520px; }
  .ask-row { grid-template-columns: 1fr; }
}
.builder [hidden] { display: none !important; }
