:root { --bg: #0d1117; --bg-2: #161b22; --bg-3: #1c2330; --border: #2a3240; --fg: #e6edf3; --muted: #8b949e; --accent: #58a6ff; --green: #3fb950; --yellow: #d29922; --red: #f85149; --purple: #bc8cff; --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; } * { box-sizing: border-box; } html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 14px; } body { display: flex; flex-direction: column; } /* ---------- top bar ---------- */ .topbar { display: flex; align-items: center; gap: 16px; padding: 12px 18px; background: var(--bg-2); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; } .brand { display: flex; align-items: center; gap: 12px; } .logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, #1f6feb, #8957e5); font-size: 20px; } .title { font-weight: 650; letter-spacing: 0.2px; } .sub { color: var(--muted); font-size: 12px; font-family: var(--mono); } .spacer { flex: 1; } .status { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; border: 1px solid var(--border); background: var(--bg-3); } .status.running { color: var(--accent); border-color: #1f6feb55; background: #1f6feb1a; } .status.paused { color: var(--yellow); border-color: #d2992255; background: #d299221a; } .status.waiting-answer { color: var(--purple); border-color: #bc8cff55; background: #bc8cff1a; } .status.done { color: var(--green); border-color: #3fb95055; background: #3fb9501a; } .status.done-with-errors, .status.error { color: var(--red); border-color: #f8514955; background: #f851491a; } .status.aborted { color: var(--yellow); border-color: #d2992255; background: #d299221a; } .controls { display: flex; gap: 8px; } button { font: inherit; font-size: 13px; color: var(--fg); background: var(--bg-3); border: 1px solid var(--border); border-radius: 7px; padding: 7px 12px; cursor: pointer; transition: background 0.12s, border-color 0.12s; } button:hover { background: #232c3a; border-color: #3a4456; } button.danger { color: #ffb4ae; border-color: #f8514955; } button.danger:hover { background: #f851491a; } button.primary { background: #1f6feb; border-color: #1f6feb; color: #fff; } button.primary:hover { background: #2f7cf6; } button:disabled { opacity: 0.45; cursor: not-allowed; } /* ---------- stats ---------- */ .stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--bg-2); } .stat { background: var(--bg-3); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; min-width: 0; } .stat .k { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; } .stat .v { font-size: 18px; font-weight: 650; margin-top: 3px; font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .stat .v small { font-size: 12px; color: var(--muted); font-weight: 400; } .bar { height: 6px; border-radius: 4px; background: #263041; margin-top: 8px; overflow: hidden; } .bar > i { display: block; height: 100%; background: linear-gradient(90deg, #1f6feb, #8957e5); } /* ---------- main ---------- */ main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(360px, 44%) 1fr; gap: 14px; padding: 14px 18px 18px; } .panel { min-height: 0; display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; } .panel h2 { margin: 0; padding: 12px 14px; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; background: var(--bg-2); } .hint { color: var(--muted); font-weight: 400; font-size: 11px; } .hint b { color: var(--accent); } /* ---------- iterations ---------- */ .iterations { overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; } .iter { border: 1px solid var(--border); border-radius: 10px; background: var(--bg-3); padding: 11px 12px; } .iter.running { border-color: #1f6feb88; box-shadow: 0 0 0 1px #1f6feb33 inset; } .iter.failed { border-color: #f8514977; } .iter .head { display: flex; align-items: baseline; gap: 8px; } .iter .num { font-family: var(--mono); color: var(--muted); font-size: 12px; } .iter .topic { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); } .badge.completed { color: var(--green); border-color: #3fb95055; } .badge.failed { color: var(--red); border-color: #f8514955; } .badge.interrupted { color: var(--yellow); border-color: #d2992255; } .badge.running { color: var(--accent); border-color: #1f6feb55; } .iter .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 7px; color: var(--muted); font-size: 12px; font-family: var(--mono); } .iter .stage { margin-top: 6px; font-size: 12px; } .iter .stage .lbl { color: var(--muted); } .iter .summary { margin-top: 7px; color: #c9d1d9; font-size: 12.5px; line-height: 1.45; } .iter .files { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 5px; } .chip { font-family: var(--mono); font-size: 11px; background: #202a38; border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; color: #a5b3c4; } .iter .bar { margin-top: 8px; } .qlist { margin: 7px 0 0; padding-left: 16px; color: var(--purple); font-size: 12px; } .empty { color: var(--muted); padding: 16px; text-align: center; } /* ---------- log ---------- */ .log { flex: 1; overflow-y: auto; padding: 12px 14px; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; } .log .line { padding: 1px 0; } .log .t { color: #4d5866; margin-right: 8px; } .log .section { color: var(--purple); font-weight: 650; border-top: 1px solid #232c3a; margin-top: 8px; padding-top: 6px; } .log .tool { color: var(--accent); } .log .metric { color: var(--muted); } .log .agent { color: #d5dee7; } .log .reasoning { color: #6e7681; font-style: italic; } .log .warn { color: var(--yellow); } .log .error { color: var(--red); } .log .answer { color: var(--green); } .log .system { color: #6cb6ff; } .log .stderr { color: #b98a00; } /* ---------- modal ---------- */ .modal { position: fixed; inset: 0; background: #000000aa; display: grid; place-items: center; z-index: 50; backdrop-filter: blur(2px); } .modal.hidden { display: none; } .modal-card { width: min(680px, 92vw); max-height: 86vh; overflow-y: auto; background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; } .modal-card h3 { margin: 0 0 4px; } .muted { color: var(--muted); margin: 0 0 14px; font-size: 12.5px; } .q { margin-bottom: 14px; } .q label { display: block; margin-bottom: 6px; font-weight: 550; } .q .opts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; } .q input[type="text"] { width: 100%; font: inherit; font-family: var(--mono); font-size: 13px; color: var(--fg); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; } .q input[type="text"]:focus { outline: none; border-color: var(--accent); } .modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; } @media (max-width: 980px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } main { grid-template-columns: 1fr; } }