:root{
  color-scheme:dark;
  --page:#101315;
  --surface:#171b1e;
  --surface-low:#14181b;
  --line:#2a3237;
  --line-subtle:#252d31;
  --text:#f2f6f4;
  --soft:#bac6c5;
  --muted:#8f9f9e;
  --mint:#a8f5d2;
  --mint-bright:#baf9dc;
  --mint-low:#21372f;
  --code:"SFMono-Regular",Consolas,"Liberation Mono",monospace;
  font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;
}
*{box-sizing:border-box}
body{margin:0;background:var(--page);color:var(--text);min-width:300px}
button,textarea{font:inherit}
button{cursor:pointer}
button:disabled{cursor:default}
button:focus-visible,a:focus-visible,textarea:focus-visible{outline:2px solid var(--mint);outline-offset:3px}
a{color:inherit;text-decoration:none}
.shell{max-width:1440px;margin:0 auto;padding-inline:clamp(18px,4vw,64px)}
.page-header{background:#131719;border-bottom:1px solid var(--line-subtle)}
.header-inner{height:61px;display:flex;align-items:center;gap:19px}
.brand{display:flex;align-items:center;gap:11px;font-size:1.08rem;font-weight:750;letter-spacing:-.035em;white-space:nowrap}
.brand-light{font-weight:490;color:#d6dedb}
.brand-mark{width:31px;height:31px;background:var(--mint);color:#182b22;border-radius:8px;position:relative;display:block}
.brand-mark i{position:absolute;width:6px;height:6px;border:1.5px solid currentColor;border-radius:2px;top:13px;left:7px}
.brand-mark i:nth-child(2){left:18px;top:7px}
.brand-mark i:nth-child(3){left:18px;top:18px}
.brand-mark::after{content:"";position:absolute;left:13px;top:10px;height:11px;width:5px;border-block:1.5px solid currentColor;border-left:1.5px solid currentColor;border-radius:2px 0 0 2px}
.header-label{border-left:1px solid #343c3e;padding-left:19px;color:var(--muted);font-size:.84rem}
.connection{margin-left:auto;font-size:.82rem;color:var(--soft);display:flex;align-items:center;gap:7px;white-space:nowrap}
.connection i,.state i{display:block;width:6px;height:6px;border-radius:50%;background:#a5aaa7;flex:none}
.connection.live i,.state.running i,.state.done i{background:var(--mint);box-shadow:0 0 10px #9cf2c752}
.state.error i{background:#ff9c8b}
main.shell{padding-top:36px;padding-bottom:44px}
.intro{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:25px}
h1,h2,h3,p{margin:0}
h1{font-weight:760;letter-spacing:-.055em;font-size:clamp(1.95rem,4.1vw,3.18rem);line-height:1.11}
.intro p{color:var(--soft);margin-top:11px;font-size:1rem;line-height:1.6}
.mode-control{display:flex;flex:none;align-items:center;gap:3px;padding:4px;background:#191e21;border:1px solid var(--line);border-radius:9px;margin-bottom:2px}
.mode-control button{border:0;background:transparent;padding:7px 11px;color:var(--soft);border-radius:6px;white-space:nowrap;font-size:.86rem}
.mode-control button[aria-pressed=true]{background:#2b3436;color:var(--text);box-shadow:0 1px 3px #0003}
.mode-control button:disabled{color:#899695}
.request-panel{background:#191e21;border:1px solid #354147;border-radius:13px;overflow:hidden;margin-bottom:22px}
.request-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px 0}
.request-header label{font-weight:680;display:flex;align-items:center;gap:8px}
.avatar{width:34px;height:34px;display:grid;place-items:center;flex:none;border-radius:8px;font-family:var(--code);font-size:.91rem;font-weight:700;background:var(--avatar-bg,#28383b);color:var(--avatar-fg,#bbdeea);border:1px solid var(--avatar-border,#354a4b)}
.avatar.mini{height:25px;width:25px;border-radius:6px;font-size:.76rem}
.cto{--avatar-bg:#243e34;--avatar-fg:#c1ffe1;--avatar-border:#3a604f}
.product{--avatar-bg:#312b3c;--avatar-fg:#e2cafa;--avatar-border:#453652}
.design{--avatar-bg:#392c37;--avatar-fg:#f5c9dd;--avatar-border:#4c3947}
.engineering{--avatar-bg:#263642;--avatar-fg:#bce2ff;--avatar-border:#354c5b}
.quality{--avatar-bg:#3d3528;--avatar-fg:#f8dca4;--avatar-border:#504534}
.support{--avatar-bg:#2c3638;--avatar-fg:#c6dcdd;--avatar-border:#3c4c4e}
.quiet-button{border:1px solid transparent;border-radius:6px;color:var(--soft);background:transparent;font-size:.84rem;padding:5px 8px;line-height:1.35;white-space:nowrap}
.quiet-button:hover:not(:disabled){background:#273033;color:var(--text);border-color:#364247}
.quiet-button:disabled{color:#778381}
#requirement{display:block;width:calc(100% - 30px);min-height:61px;max-height:180px;resize:vertical;margin:8px 15px 0;background:transparent;color:var(--text);border:1px solid transparent;border-radius:6px;padding:6px 1px;line-height:1.55;font-size:1rem}
#requirement::placeholder{color:var(--muted)}
#requirement:focus{border-color:#375349;outline:0}
.request-footer{border-top:1px solid #2c363a;display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 14px 10px 16px;background:#171c1e}
.request-footer>span{font-size:.82rem;color:var(--muted);line-height:1.6}
.primary{border:1px solid #b5f7d8;border-radius:8px;background:var(--mint);color:#112a20;font-weight:760;display:flex;align-items:center;justify-content:center;gap:9px;padding:9px 14px;min-width:112px;white-space:nowrap}
.primary:hover:not(:disabled){background:#cdfce6}
.primary:disabled{opacity:.59}
.run-icon{width:0;height:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:8px solid currentColor}
.workspace{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr);gap:17px;align-items:stretch}
.panel{border:1px solid var(--line);border-radius:13px;background:var(--surface);overflow:hidden}
.panel-header{min-height:73px;padding:15px 16px;display:flex;justify-content:space-between;align-items:flex-start;gap:10px;border-bottom:1px solid var(--line-subtle)}
.panel-header h2,.inspector-head h2{font-size:1.09rem;line-height:1.3;font-weight:730;letter-spacing:-.025em}
.panel-header p,.inspector-head p{font-size:.84rem;margin-top:5px;line-height:1.45;color:var(--muted)}
.panel-caption{margin-top:2px;color:var(--muted);font-size:.84rem;white-space:nowrap}
.panel-caption b{color:var(--soft);font-family:var(--code);font-weight:600}
.graph{position:relative;isolation:isolate;padding:15px 16px 17px;background:radial-gradient(ellipse at 50% 0%,#202c28 0%,transparent 65%),radial-gradient(#35403d 0.7px,transparent 0.7px) 3px 3px/17px 17px, #14191a}
#wires{position:absolute;inset:0;z-index:-1;width:100%;height:100%;pointer-events:none}
.lead{display:flex;justify-content:center;margin-bottom:24px}
.roster{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.agent{position:relative;display:flex;min-height:65px;min-width:0;align-items:center;text-align:left;gap:9px;border-radius:8px;background:#1a2022;border:1px solid #313d41;padding:8px 9px;color:inherit}
.lead .agent{min-width:226px;min-height:62px;background:#1d2b26;border-color:#47665a}
.agent:hover{background:#252f30;border-color:#566e67}
.agent[aria-pressed=true]{border-color:#7ac8a5;box-shadow:0 0 0 1px #7ac8a522,inset 0 0 16px #72ff9c09}
.agent.active:not([aria-pressed=true]){border-color:#598371;background:#202e28}
.agent.complete:not([aria-pressed=true]){border-color:#46594e}
.agent-info{min-width:0;flex:1}
.agent-name{display:block;font-size:.91rem;font-weight:720;line-height:1.15;white-space:nowrap}
.agent-role{display:block;color:var(--muted);font-size:.76rem;margin-top:4px;line-height:1.2}
.agent-state{flex:none;align-self:flex-start;font-size:.68rem;line-height:1.15;color:var(--muted);padding-top:2px;white-space:nowrap}
.agent.active .agent-state{color:var(--mint)}
.agent.complete .agent-state{color:#9cc7b7}
.timeline{display:flex;flex-direction:column;min-height:342px}
.timeline-header{border-bottom:0}
.state{display:flex;align-items:center;gap:6px;font-size:.78rem;border:1px solid #384144;padding:5px 8px;border-radius:6px;color:var(--soft);white-space:nowrap}
.state.running,.state.done{border-color:#416355;color:var(--mint);background:#203129}
.state.error{color:#ffa899}
.progress-track{flex:none;height:2px;background:#2b3438}
#progress-bar{display:block;height:100%;width:0;background:var(--mint);transition:width .25s ease}
.feed-wrap{position:relative;min-height:213px;flex:1;overflow:hidden}
.empty{min-height:213px;height:100%;display:grid;align-content:center;justify-items:center;text-align:center;padding:22px;color:var(--soft)}
.empty[hidden]{display:none}
.empty p{color:var(--muted);margin-top:7px;font-size:.86rem;line-height:1.5}
.empty strong{font-size:.94rem}
.empty-visual{padding:9px 12px;margin-bottom:11px;width:43px;height:42px;background:#222c2d;border:1px solid #384849;border-radius:8px;display:grid;gap:4px;align-content:center}
.empty-visual i{height:1px;width:100%;background:#9fc8bb}
.empty-visual i:last-child{width:65%}
.feed{position:absolute;inset:0;list-style:none;padding:0;margin:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#43524f transparent}
.feed li{position:relative;padding-left:13px}
.feed li::before{content:"";position:absolute;top:0;bottom:0;left:20px;width:1px;background:#374942}
.feed li:first-child::before{top:22px}
.feed li:last-child::before{bottom:calc(100% - 22px)}
.event{display:grid;width:100%;grid-template-columns:15px minmax(0,1fr) auto;gap:8px;align-items:start;border:0;color:inherit;background:transparent;text-align:left;padding:11px 12px 10px 0}
.event:hover,.event[aria-current=true]{background:#212b2a}
.event-dot{position:relative;width:7px;height:7px;border-radius:50%;margin:8px auto 0;background:#889c97;box-shadow:0 0 0 3px #19201f}
.event-dot.dispatch,.event-dot.finish,.event-dot.test{background:var(--mint)}
.event-text{min-width:0}
.event-title{font-size:.88rem;font-weight:650;line-height:1.4;display:block;overflow-wrap:anywhere}
.event-role{color:var(--muted);display:block;font-size:.73rem;margin-top:3px;line-height:1.35;overflow-wrap:anywhere}
.event-time{color:var(--muted);font-family:var(--code);font-size:.69rem;margin-top:3px;white-space:nowrap}
.playback{border-top:1px solid var(--line-subtle);display:flex;gap:5px;padding:7px 12px}
.playback .reset{margin-left:auto}
.inspector{margin-top:17px}
.inspector-head{padding:13px 16px;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line-subtle)}
.inspector-body{display:grid;grid-template-columns:1fr 1fr}
.inspector-body>div{min-width:0;padding:14px 16px 16px}
.inspector-body>div+div{border-left:1px solid var(--line-subtle)}
.inspector-body h3{font-size:.86rem;color:var(--soft);margin-bottom:7px}
.inspector-body p,.evidence-text{font-size:.92rem;line-height:1.55;color:var(--text);white-space:pre-wrap;overflow-wrap:anywhere}
.evidence pre{border:1px solid #33433f;background:#111818;border-radius:6px;padding:9px 10px;margin:0;color:#c2e3d1;white-space:pre-wrap;overflow-wrap:anywhere;font: .81rem/1.58 var(--code)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1140px){.agent-state{display:none}.lead .agent-state,.agent.active .agent-state,.agent.complete .agent-state{display:block}}
@media(max-width:870px){.workspace{grid-template-columns:1fr  minmax(270px,.83fr)}.agent{gap:6px;padding-inline:6px}.agent .avatar{width:28px;height:29px}.agent.active .agent-state,.agent.complete .agent-state{display:none}.lead .agent-state{display:block}}
@media(max-width:725px){main.shell{padding-top:25px}.workspace{grid-template-columns:1fr}.timeline{min-height:290px}.feed-wrap,.empty{min-height:174px}.roster .agent{padding-inline:9px}.roster .avatar{width:32px;height:32px}.agent.active .agent-state,.agent.complete .agent-state{display:block}.header-label{display:none}}
@media(max-width:480px){.intro{align-items:flex-start;flex-direction:column;margin-bottom:17px;gap:12px}.request-footer>span{font-size:.76rem}.graph{padding-inline:10px}.roster{gap:6px}.roster .agent{padding:7px 5px;min-height:61px;gap:5px}.roster .avatar{width:24px;height:25px;font-size:.7rem}.agent-role{font-size:.71rem}.agent.active .agent-state,.agent.complete .agent-state{display:none}.lead .agent-state{display:block}.inspector-body{grid-template-columns:1fr}.inspector-body>div+div{border-left:0;border-top:1px solid var(--line-subtle)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
