.live { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.live-bar { display: flex; gap: 8px; align-items: center; }
.live-bar .ask { flex: 1; font: inherit; font-size: 17px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
.live-bar .model-pick { font: inherit; font-size: 15px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
.lane-model { font-size: 14px; color: var(--muted); }
.live-bar button { font: inherit; font-size: 14px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); cursor: pointer; }
.live-bar button:hover { border-color: var(--accent); }
.live-bar kbd { font-size: 11px; color: var(--muted); margin-left: 4px; }
.lanes { flex: 1; min-height: 0; display: grid; gap: 14px; }
.lane { min-height: 0; display: flex; flex-direction: column; background: var(--panel); border-radius: 12px; padding: 12px 14px; }
.lane header { display: flex; gap: 10px; align-items: center; font-size: 17px; }
.lane-status { margin-left: auto; font-size: 13px; color: var(--muted); }
.lane-status.live { color: var(--graph); }
.lane-status.replay { color: var(--code); }
.lane-status.bad { color: var(--react); }
.lane-status.waiting { color: var(--accent); }
.lane-status.waiting::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; border: 2px solid var(--accent); border-right-color: transparent; animation: live-spin 0.8s linear infinite; }
.lane-stats { display: flex; gap: 14px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; margin: 6px 0 8px; }
.lane-stats .clock { color: var(--ink); font-weight: 650; }
.timeline { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; }
.asked { font-size: 15px; padding: 6px 10px; border-left: 3px solid var(--accent); color: var(--ink); }
.step { border-left: 3px solid var(--line); padding: 4px 0 4px 10px; font-size: 13.5px; }
.step .head { display: flex; gap: 8px; align-items: baseline; }
.step .kind { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); min-width: 38px; }
.step .args { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.step .calls-here { font-size: 12px; color: var(--eval); margin-left: auto; white-space: nowrap; }
.step .took { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.step.open > .head .took::after { content: ""; display: inline-block; width: 9px; height: 9px; margin-left: 6px; border-radius: 50%; border: 2px solid var(--accent); border-right-color: transparent; animation: live-spin 0.8s linear infinite; }
.step.stopped > .head .took::after { content: "stopped"; color: var(--react); }
.step.error { border-left-color: var(--react); }
.step.kind-turn { border-left-color: var(--react); }
.step.kind-tool { border-left-color: var(--accent); }
.step.kind-code { border-left-color: var(--rlm); }
.step.kind-node { border-left-color: var(--graph); }
.step.kind-node > .head b { color: var(--graph); }
.step.final { border-left-color: var(--graph); }
.step .children { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.step .children:empty { display: none; }
.step pre { font-size: 12.5px; line-height: 1.45; padding: 8px 10px; margin: 4px 0 0; border-radius: 6px; max-height: 260px; overflow: auto; }
.step pre.code { background: #0b1016; }
.step pre.out { background: #121a22; color: #b9c6d2; max-height: 160px; }
.step .reason { font-size: 13px; color: var(--muted); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.step .reason.expanded { display: block; }
.step .say { font-size: 13.5px; margin-top: 2px; white-space: pre-wrap; }
.step .asks { font-size: 12.5px; margin-top: 2px; }
.step details summary { font-size: 12px; color: var(--muted); cursor: pointer; margin-top: 2px; }
.py-k { color: #c792ea; } .py-s { color: #c3e88d; } .py-c { color: #6b7d8f; font-style: italic; } .py-n { color: #f78c6c; }
.result { display: none; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.result.shown { display: block; }
.result .answer { font-size: 14.5px; line-height: 1.45; max-height: 190px; overflow-y: auto; white-space: pre-wrap; }
.answer-table { width: auto; margin: 6px 0; font-size: 13px; white-space: normal; }
.answer-table th, .answer-table td { padding: 3px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.answer-table th { font-size: 12px; }
.result .grade { margin-top: 6px; font-size: 15px; }
.result .pass { color: var(--graph); font-weight: 700; }
.result .fail { color: var(--react); font-weight: 700; }
.failure { color: var(--react); font-size: 14px; padding: 6px 10px; border-left: 3px solid var(--react); }
.failure pre { font-size: 11.5px; color: var(--muted); max-height: 200px; overflow: auto; }
@keyframes live-spin { to { transform: rotate(360deg); } }
.lanes.rows { display: flex; flex-direction: column; gap: 8px; }
.lane.compact { display: grid; grid-template-columns: 420px 1fr; align-items: center; padding: 10px 14px; flex: none; }
.lane.compact header { cursor: pointer; min-width: 0; }
.lane.compact header .lane-status { margin-left: auto; margin-right: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lane.compact .lane-stats { margin: 0; font-size: 15px; gap: 22px; }
.lane.compact .lane-stats > span { min-width: 72px; }
.lane.compact .lane-stats .lane-grade { margin-left: auto; font-size: 16px; }
.lane.compact .timeline, .lane.compact .result { display: none; }
.lane.compact.expanded { grid-template-rows: auto minmax(0, 1fr) auto; flex: 1 1 0; min-height: 0; overflow: hidden; }
.lane.compact.expanded .timeline { display: flex; grid-column: 1 / -1; align-self: stretch; min-height: 0; margin-top: 8px; }
.lane.compact.expanded .result.shown { display: block; grid-column: 1 / -1; max-height: 90px; overflow-y: auto; }
.lane-stats .lane-grade .pass { color: var(--graph); font-weight: 700; }
.lane-stats .lane-grade .fail { color: var(--react); font-weight: 700; }
.retry { font-size: 13.5px; color: var(--code); padding: 6px 10px; border-left: 3px solid var(--code); }
