:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: #0d1b2d;
  --panel-2: #11243a;
  --line: #203a55;
  --text: #edf5ff;
  --muted: #94a9bf;
  --accent: #67e8c5;
  --accent-deep: #0f766e;
  --warning: #f5c451;
  --danger: #fa7d7d;
  --ready: #69a7ff;
}

* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 20% -20%, #15355b 0, var(--bg) 45%); color: var(--text); font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.shell { max-width: 1440px; margin: 0 auto; padding: 32px 24px 56px; }
.topbar { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 28px; }
.eyebrow { color: var(--accent); letter-spacing: .12em; font-size: 11px; font-weight: 700; text-transform: uppercase; }
h1 { margin: 6px 0 4px; font-size: clamp(28px, 3vw, 44px); line-height: 1.04; }
h2 { margin: 0; font-size: 22px; }
h3 { margin: 0; font-size: 16px; }
.muted { color: var(--muted); }
.badge, .status { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px; font-size: 12px; white-space: nowrap; }
.badge { color: var(--accent); border-color: rgba(103,232,197,.4); }
.grid { display: grid; gap: 18px; }
.two { grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); }
.panel { background: linear-gradient(145deg, rgba(17,36,58,.94), rgba(10,24,41,.94)); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 16px 40px rgba(0,0,0,.16); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { color: #c8d8e8; font-size: 13px; }
input, select, textarea { width: 100%; color: var(--text); background: rgba(5,15,27,.68); border: 1px solid #29445f; border-radius: 10px; padding: 10px 12px; outline: none; }
textarea { min-height: 220px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(103,232,197,.12); }
.button { border: 0; border-radius: 10px; background: var(--accent); color: #04231e; font-weight: 800; padding: 10px 14px; }
.button.secondary { background: transparent; border: 1px solid #3b5874; color: #d9e8f7; }
.button:disabled { cursor: not-allowed; opacity: .45; }
.actions { display: flex; gap: 10px; align-items: center; margin-top: 16px; }
.notice { border-left: 3px solid var(--accent); background: rgba(103,232,197,.08); padding: 12px 14px; border-radius: 0 8px 8px 0; margin: 0 0 18px; }
.error { border-color: var(--danger); background: rgba(250,125,125,.1); }
.runs { display: grid; gap: 10px; }
.run { display: grid; gap: 2px; padding: 14px; border: 1px solid transparent; border-radius: 12px; background: rgba(4,14,25,.34); }
.run:hover, .run.active { border-color: #406384; background: rgba(21,53,91,.36); }
.run-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta { color: var(--muted); font-size: 12px; }
.workspace { display: grid; grid-template-columns: minmax(280px,.8fr) minmax(0,1.2fr); gap: 18px; }
.steps { display: grid; gap: 8px; }
.step { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 12px; border-radius: 11px; border: 1px solid transparent; background: rgba(4,14,25,.34); }
.step.ready { border-color: rgba(105,167,255,.55); }
.step.completed { border-color: rgba(103,232,197,.35); }
.step.locked { opacity: .5; }
.step-number { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; color: #bfd6ed; background: #17344f; }
.step.completed .step-number { color: #04231e; background: var(--accent); }
.status.ready { color: #a7c9ff; border-color: rgba(105,167,255,.5); }
.status.completed { color: var(--accent); border-color: rgba(103,232,197,.4); }
.status.locked { color: var(--muted); }
.prompt { white-space: pre-wrap; background: #06101c; border: 1px solid #233d59; border-radius: 12px; padding: 16px; max-height: 480px; overflow: auto; color: #d4e5f4; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.stage-card { display: grid; gap: 16px; }
.empty { padding: 26px; border: 1px dashed #385573; border-radius: 14px; color: var(--muted); text-align: center; }
.statline { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.statline strong { color: var(--text); }
.copy-note { color: var(--accent); font-size: 12px; min-height: 18px; }
@media (max-width: 880px) { .two, .workspace { grid-template-columns: 1fr; } .topbar { display: grid; } }
@media (max-width: 580px) { .shell { padding: 22px 14px 40px; } .panel { padding: 16px; } .form-grid { grid-template-columns: 1fr; } .field.full { grid-column: auto; } .step { grid-template-columns: 24px 1fr; } .step .status { display: none; } }

