/* Collaboration is a bounded process canvas inside the enterprise workspace. */
#agentCollaboration{--stage-ink:#10254b;--stage-blue:#315fd8;--stage-line:#dce5f3;margin:0 0 28px;border:1px solid var(--stage-line);border-radius:14px;overflow:hidden;background:#fff;color:#172b47}
.acHead{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 26px;border-bottom:1px solid var(--stage-line)}
.acHead h2{font-size:20px;line-height:1.4;margin:0 0 6px;font-weight:650}.acHead p{margin:0;color:#586c87;font-size:13px;line-height:1.6}.acHead button{border:1px solid #c7d5e9;background:#fff;color:#244b91;border-radius:7px;padding:10px 14px;min-height:44px;white-space:nowrap;font:inherit;font-size:13px}
.acBody{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr)}
.acCanvas{background:radial-gradient(ellipse at 50% 46%,#23498d 0%,#132e58 44%,#102440 100%);position:relative;min-width:0;padding:22px 24px 16px;color:#fff}
.acCanvasTop{display:flex;justify-content:space-between;gap:16px;align-items:center;font-size:12px;color:#c1d1e9}.acCanvasTop strong{font-size:13px;font-weight:500;color:#e1edff}.acCanvasTop span{overflow-wrap:anywhere}
.acTopology{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,.8fr) minmax(0,1fr);grid-template-rows:repeat(3,minmax(74px,1fr));gap:14px 26px;min-height:276px;margin:18px 0}
.acEdges{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}.acEdges path{stroke:#7899cb;stroke-width:1;fill:none;opacity:.42}.acEdges path[data-active=true]{stroke:#99d4ff;stroke-width:2;opacity:.9;stroke-dasharray:5 9;animation:acFlow 2.8s linear infinite}
.acNode{z-index:1;min-width:0;position:relative;border:1px solid #59759d;border-radius:9px;background:#163257;color:#f1f6ff;text-align:left;padding:12px 14px;cursor:pointer;font:inherit;transition:border-color .2s,background .2s;display:flex;flex-direction:column;justify-content:center;gap:6px}
.acNode[data-side=right]{grid-column:3}.acNode[data-side=left]{grid-column:1}.acNode b{font-size:14px;line-height:1.4;font-weight:550;overflow-wrap:anywhere}.acNode span{font-size:12px;color:#bfd0e7;display:flex;gap:7px;align-items:center}.acNode i{width:6px;height:6px;border-radius:50%;background:#8094b3;flex-shrink:0}.acNode[data-state=running]{border-color:#91c8ff;background:#204979}.acNode[data-state=running] i{background:#97d5ff;animation:acBreathe 2.4s ease-in-out infinite}.acNode[data-state=done] i{background:#6ce0b5}.acNode[data-state=failed] i{background:#ff9daa}.acNode[data-state=waiting] i{background:#ffd18a}.acNode[aria-pressed=true]{outline:2px solid #aacdff;outline-offset:3px}.acNode:hover{background:#244777}
.acHub{z-index:1;grid-column:2;grid-row:1/4;align-self:center;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}.acHubIcon{width:76px;height:76px;border:1px solid #81a9e4;border-radius:24px;display:grid;place-items:center;background:#28559c;box-shadow:0 0 40px #70aaff20}.acHubIcon svg{width:34px;height:34px;stroke:#e2f0ff}.acHub b{font-size:16px;font-weight:550}.acHub small{font-size:12px;line-height:1.6;color:#b8cde8}.acHub em{font-style:normal;font-size:12px;color:#a1e5cd}
.acLegend{display:flex;flex-wrap:wrap;gap:14px;color:#c7d4e6;font-size:11px;line-height:1.6}.acLegend span{display:flex;align-items:center;gap:6px}.acLegend i{height:6px;width:6px;border-radius:50%;background:#8eadd2}.acLegend .done{background:#6ce0b5}.acLegend .wait{background:#ffd18a}.acLegend .failed{background:#ff9daa}.acCanvasNote{margin:12px 0 0;font-size:11px;color:#afc1da;line-height:1.6}
.acInspector{padding:24px 26px;min-width:0;display:flex;flex-direction:column;gap:16px}.acInspector h3{font-size:19px;line-height:1.5;margin:0;letter-spacing:0;font-weight:600}.acInspector p{margin:0;font-size:13px;line-height:1.9;color:#506580;overflow-wrap:anywhere;white-space:pre-line}.acInspector dl{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:0;padding:16px 0;border-block:1px solid #e3eaf4;font-size:12px}.acInspector dt{color:#61738b;margin-bottom:8px}.acInspector dd{margin:0;color:#1a3150;font-size:14px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.acTools{list-style:none;margin:0;padding:0;display:grid;gap:10px}.acTools li{display:flex;align-items:baseline;gap:10px;font-size:12px;color:#4d627f;overflow-wrap:anywhere}.acTools li>span:first-child{font-size:11px;color:#6e83a4;min-width:14px}.acTools li>small{margin-left:auto;white-space:nowrap;color:#667b96}.acRecordLink{border:0;background:none;color:#2454b9;min-height:44px;padding:10px 0;text-align:left;font:inherit;font-size:13px;margin-top:auto;align-self:flex-start}.acFooter{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:14px 26px;border-top:1px solid var(--stage-line);background:#f7f9fd;font-size:12px;color:#58708e}.acFooter strong{color:#274e8c;font-weight:550}
#agentCollaboration button:focus-visible{outline:3px solid #96b7ff;outline-offset:3px}
#agentCollaboration[data-motion=paused] *,#agentCollaboration[data-motion=paused] *:before{animation-play-state:paused!important}
@keyframes acFlow{to{stroke-dashoffset:-42}}@keyframes acBreathe{0%,100%{opacity:.65}50%{opacity:1}}
@media(min-width:1700px){.acTopology{min-height:318px;gap:22px 36px}.acNode b{font-size:16px}.acInspector p{font-size:14px}}
@media(max-width:1050px){.acBody{grid-template-columns:1fr}.acInspector{border-top:1px solid #dce5f3;display:grid;grid-template-columns:1fr 1fr}.acInspector h3,.acInspector>p{grid-column:1/-1}.acInspector dl{border:0;padding:0}.acRecordLink{margin-top:0}.acTopology{min-height:276px}}
@media(max-width:560px){.acHead{padding:18px;align-items:flex-start;gap:12px}.acHead h2{font-size:18px}.acHead p{font-size:12px}.acHead button{font-size:12px;padding:10px}.acCanvas{padding:18px 14px}.acTopology{grid-template-columns:minmax(0,1fr) 76px minmax(0,1fr);gap:12px 10px;min-height:270px}.acNode{padding:10px 9px}.acNode b{font-size:12px}.acNode span{font-size:11px;gap:5px}.acHubIcon{width:58px;height:58px;border-radius:18px}.acHub b{font-size:13px}.acHub small{font-size:10px}.acHub em{font-size:11px}.acInspector{padding:20px;grid-template-columns:1fr}.acInspector h3,.acInspector>p{grid-column:auto}.acInspector dl{padding:12px 0;border-block:1px solid #e3eaf4}.acFooter{padding:14px 18px}.acCanvasTop{align-items:flex-start;flex-wrap:wrap;gap:5px}}
@media(prefers-reduced-motion:reduce){.acEdges path,.acNode i{animation:none!important}.acNode{transition:none}}
