.team-flow { position:relative; z-index:1; margin-top:3rem; padding:clamp(1.15rem,2.7vw,2rem); background:linear-gradient(135deg,#1a1c2aeF,#10252bec); border:1px solid #557580; border-radius:1.2rem; box-shadow:0 1rem 4rem #0008,inset 0 1px #ffffff14; }
.team-flow-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:1.5rem; }.team-flow-kicker { color:#61eee4; font-size:.69rem; font-weight:750; letter-spacing:.14em; }.team-flow h2 { font-size:clamp(1.45rem,2.2vw,2.15rem); margin:.45rem 0; }.team-flow-heading p { color:#c2d4df; }.team-flow-count { white-space:nowrap; color:#b7d4dd; font-size:.82rem; }
.team-flow-stage { display:flex; align-items:center; gap:.9rem; margin:1.4rem 0; padding:1rem 1.15rem; border-radius:.8rem; background:#0b171f; border:1px solid #34525b; }.team-flow-stage strong { color:#e6fffc; }.team-flow-stage p { color:#b8ced5; font-size:.9rem; }.stage-indicator { width:.7rem; height:.7rem; border-radius:50%; background:#53f4df; box-shadow:0 0 1rem #4ef5e1; flex:none; }
.team-flow-actors { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }.team-actor { min-width:0; border:1px solid #385361; border-radius:.95rem; background:#111c28; padding:1rem; transition:border-color .3s,box-shadow .3s; }.team-actor.leader { border-color:#a66cdf; background:linear-gradient(145deg,#271d37,#151a28); }.team-actor[data-state="working"],.team-actor[data-state="thinking"] { border-color:#60d8d6; box-shadow:0 0 1.5rem #37d5c821; }.team-actor[data-state="done"] { border-color:#48bfa4; }
.actor-top { display:flex; align-items:center; gap:.5rem; }.actor-top .sidekick-host { width:105px; height:105px; flex:0 0 105px; }.actor-top .sidekick-host .avatar-fallback,.actor-top .sidekick-host .sidekick-svg { position:absolute; inset:0; width:100%; height:100%; }.sidekick-host.is-ready .avatar-fallback { display:none; }.actor-role { color:#a9c4cd; font-size:.78rem; }.team-actor h3 { font-size:1.25rem; margin:.15rem 0 .3rem; }.actor-status { display:inline-flex; align-items:center; gap:.35rem; color:#d9f4f1; font-size:.76rem; }.actor-status::before { content:''; width:.48rem; height:.48rem; border-radius:50%; background:#6a8291; }.team-actor[data-state="thinking"] .actor-status::before { background:#d0a1ff; }.team-actor[data-state="working"] .actor-status::before { background:#46e7dc; }.team-actor[data-state="done"] .actor-status::before { background:#72e5a9; }
.actor-task { border-top:1px solid #ffffff1c; padding:.8rem .1rem 0; min-height:4.1rem; }.actor-task small { display:block; color:#92aeba; font-size:.65rem; font-weight:700; letter-spacing:.09em; }.actor-task strong { display:block; margin-top:.2rem; font-size:.88rem; line-height:1.35; }
.team-flow-footer { display:flex; flex-wrap:wrap; align-items:center; gap:1rem; margin-top:1.3rem; }.team-progress { display:flex; align-items:center; gap:.35rem; }.team-progress span { height:.3rem; width:1.4rem; border-radius:1rem; background:#536771; }.team-progress span.is-active { background:#51eee0; box-shadow:0 0 .6rem #51eee078; }.team-controls { display:flex; flex-wrap:wrap; gap:.5rem; }.team-controls button { font:inherit; font-size:.78rem; font-weight:650; color:#defaf8; background:#1c3541; border:1px solid #52717d; border-radius:.55rem; padding:.5rem .7rem; cursor:pointer; }.team-controls button:hover { background:#284b55; }.team-result { margin-left:auto; display:flex; align-items:center; gap:.5rem; color:#c5e8e4; font-size:.82rem; }.team-result > span:first-child { display:grid; place-items:center; width:1.6rem; height:1.6rem; border-radius:.45rem; color:#08211d; background:#53e6cc; font-weight:800; }
.team-flow.is-paused .sidekick-svg * { animation-play-state:paused !important; }.team-flow .sidekick-svg .badge-group { opacity:1; }
@media(max-width:800px) { .team-flow-actors { grid-template-columns:1fr; }.team-actor { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:.8rem; }.actor-task { border-top:0; border-left:1px solid #ffffff1c; padding:.2rem .2rem .2rem 1rem; min-height:0; }.team-flow-heading { align-items:flex-start; flex-direction:column; gap:.5rem; } }
@media(max-width:430px) { .actor-top .sidekick-host { width:78px; height:78px; flex-basis:78px; }.team-flow-actors { gap:.6rem; }.team-actor { padding:.7rem; }.team-result { margin-left:0; }.team-flow-stage { align-items:flex-start; } }
@media(prefers-reduced-motion:reduce) { .team-flow *, .team-flow *::before { animation:none !important; transition:none !important; } }
.team-brief { margin-top:1.3rem; padding:1rem 1.15rem; border-left:3px solid #b684ff; background:#281f38; border-radius:.25rem .7rem .7rem .25rem; }
.team-brief span,.team-artifact > span { display:block; color:#b7cbd4; font-size:.65rem; font-weight:750; letter-spacing:.09em; }
.team-brief p { color:#f2eafa; margin:.35rem 0 0; line-height:1.5; }
.team-workspace { display:grid; grid-template-columns:1.5fr 1fr; gap:1rem; margin-top:1rem; }
.team-activity,.team-artifact { min-width:0; padding:1rem 1.15rem; border:1px solid #385361; border-radius:.85rem; background:#0d1b25; }
.team-activity h3 { font-size:.9rem; margin:0 0 .7rem; }
.team-activity ol { margin:0; padding:0 0 0 1.1rem; color:#c3d7df; font-size:.82rem; line-height:1.45; }
.team-activity li { padding:.15rem 0 .15rem .3rem; }
.team-activity li:last-child { color:#e7fffb; }
.team-activity li::marker { color:#55e4d7; }
.team-artifact strong { display:block; color:#64e9de; margin:.25rem 0 .9rem; }
.team-artifact p { margin:.25rem 0 0; font-size:.88rem; overflow-wrap:anywhere; }
.team-flow-actors { position:relative; }
.team-flow[data-phase="2"] .worker .sidekick-host, .team-flow[data-phase="3"] .worker .sidekick-host, .team-flow[data-phase="4"] .worker .sidekick-host { animation:team-dispatch 2.8s ease-in-out infinite; }
.team-flow[data-phase="5"] .worker .sidekick-host { animation:team-return 2.8s ease-in-out infinite; }
.team-flow.is-paused .sidekick-host { animation-play-state:paused !important; }
@keyframes team-dispatch { 0%,100% { transform:translateX(0); } 50% { transform:translateX(8px) translateY(-3px); } }
@keyframes team-return { 0%,100% { transform:translateX(0); } 50% { transform:translateX(-8px) translateY(-3px); } }
@media(max-width:600px) { .team-workspace { grid-template-columns:1fr; } .team-progress span { width:1rem; } }
