/* Agent collaboration: preserve the existing workspace, make every level legible. */
#agentTeamRoot {
  --ag-bg:#101724; --ag-surface:#182233; --ag-soft:#1e2b40; --ag-text:#ecf2fb;
  --ag-muted:#a6b5cc; --ag-line:#34445d; --ag-blue:#73a5ff; --ag-tint:#213757;
  --ag-success:#8cdeb6; --ag-success-bg:#193a32; --ag-warning:#f2ce88;
  --ag-warning-bg:#3a3020; --ag-danger:#ffadb5; --ag-danger-bg:#3d2631;
  color:var(--ag-text); background:var(--ag-bg); font-family:system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif;
  font-size:13px; line-height:1.55; color-scheme:dark;
}
html[data-zq-theme="light"] #agentTeamRoot {
  --ag-bg:#f3f6fa; --ag-surface:#fff; --ag-soft:#f6f8fc; --ag-text:#182b45;
  --ag-muted:#566980; --ag-line:#d6dfeb; --ag-blue:#2463eb; --ag-tint:#edf3ff;
  --ag-success:#18724e; --ag-success-bg:#ecf8f1; --ag-warning:#8c5d10;
  --ag-warning-bg:#fff6e4; --ag-danger:#b42338; --ag-danger-bg:#fff0f1; color-scheme:light;
}
.workspace.collaboration-view .works { background:transparent; }
.workspace.collaboration-view:has(#agentTeamRoot .studio-dialog) { z-index:1600; }
#agentTeamRoot *,#agentTeamRoot *::before,#agentTeamRoot *::after { box-sizing:border-box; }
#agentTeamRoot :is(button,input,select,textarea) { font-family:inherit; }
#agentTeamRoot button { cursor:pointer; }
#agentTeamRoot button:disabled { cursor:not-allowed; opacity:.55; }
#agentTeamRoot :is(button,a,input,select,textarea):focus-visible { outline:3px solid var(--ag-blue); outline-offset:2px; }
#agentTeamRoot [hidden],#agentTeamRoot .studio-format-hidden { display:none!important; }
#agentTeamRoot :is(.studio-app,.studio-conversation,.studio-feed,.studio-stage-rail,.studio-canvas-workspace,.studio-start) { background:var(--ag-bg); color:var(--ag-text); }
#agentTeamRoot .studio-app { grid-template-columns:220px minmax(0,1fr) 260px; }
#agentTeamRoot :is(.studio-sidebar,.studio-rail,.studio-conversation-head) { background:var(--ag-surface); border-color:var(--ag-line); color:var(--ag-text); }
#agentTeamRoot :is(.studio-sidebar-head,.studio-sidebar-foot,.studio-builder-head,.studio-stage-rail,.studio-canvas-toolbar) { border-color:var(--ag-line); }
#agentTeamRoot :is(.studio-sidebar-head,.studio-conversation-head) { min-height:72px; }
#agentTeamRoot .studio-conversation-head { padding:12px 16px; }
#agentTeamRoot .studio-director-title h2 { font-size:16px; }
#agentTeamRoot .studio-head-actions { flex-shrink:0; }
#agentTeamRoot :is(.studio-director-title span,.studio-sidebar-head span,.studio-kicker) { color:var(--ag-blue); font-size:12px; letter-spacing:0; }
#agentTeamRoot :is(.studio-session-search,.studio-sidebar-foot,.studio-session small,.studio-session-empty,.studio-panel p,.studio-panel small,.studio-spec-list b) { color:var(--ag-muted); font-size:12px; }
#agentTeamRoot .studio-session { padding:11px 38px 11px 10px; color:var(--ag-text); border-radius:8px; min-height:62px; }
#agentTeamRoot .studio-session b { color:var(--ag-text); font-size:13px; }
#agentTeamRoot .studio-session:hover { background:var(--ag-soft); }
#agentTeamRoot .studio-session.active { border-color:var(--ag-blue); background:var(--ag-tint); box-shadow:inset 3px 0 var(--ag-blue); }
#agentTeamRoot .studio-session-dot { background:var(--ag-muted); box-shadow:none; }
#agentTeamRoot .studio-session.active .studio-session-dot { background:var(--ag-blue); box-shadow:none; }
#agentTeamRoot .studio-session-delete { width:28px; height:32px; margin:0 5px 0 0; color:var(--ag-muted); opacity:1; }
#agentTeamRoot .studio-session-row .studio-session-delete { background:transparent; border-color:transparent; }
#agentTeamRoot .studio-session-row .studio-session-delete:focus-visible { background:var(--ag-soft); border-color:var(--ag-line); }
#agentTeamRoot .studio-session-delete:hover { background:var(--ag-danger-bg)!important; color:var(--ag-danger)!important; }
#agentTeamRoot :is(.studio-primary,.studio-send) { background:var(--ag-blue); border:1px solid var(--ag-blue); color:#fff; border-radius:8px; min-height:36px; font-size:13px; }
html:not([data-zq-theme="light"]) #agentTeamRoot :is(.studio-primary,.studio-send) { color:#101724; }
#agentTeamRoot .studio-primary:hover { filter:brightness(.96); }
#agentTeamRoot :is(.studio-quiet,.studio-icon-button,.studio-mode,.studio-route-analyze,.studio-pause-control,.studio-undo-delete,.studio-sidebar-head button) { background:var(--ag-surface); color:var(--ag-text); border:1px solid var(--ag-line); border-radius:8px; min-height:36px; font-size:12px; }
#agentTeamRoot :is(.studio-quiet,.studio-icon-button,.studio-mode,.studio-route-analyze,.studio-sidebar-head button):hover { border-color:var(--ag-blue); background:var(--ag-tint); color:var(--ag-blue); }
#agentTeamRoot .studio-mode.auto { background:var(--ag-tint); border-color:var(--ag-line); color:var(--ag-blue); }
#agentTeamRoot .studio-icon-button { width:36px; }
#agentTeamRoot :is(.studio-avatar,.studio-avatar-user) { background:var(--ag-tint); border-color:var(--ag-line); color:var(--ag-blue); }
#agentTeamRoot .studio-stage-rail { min-height:46px; padding:0 16px; }
#agentTeamRoot .studio-stage-rail :is(span,i) { color:var(--ag-muted); font-size:12px; }
#agentTeamRoot .studio-stage-rail i { width:20px; height:20px; border-color:var(--ag-line); background:var(--ag-surface); }
#agentTeamRoot .studio-stage-rail span+span::before { background:var(--ag-line); width:18px; margin:0 7px; }
#agentTeamRoot .studio-stage-rail .active { color:var(--ag-blue); }
#agentTeamRoot .studio-stage-rail .active i { border-color:var(--ag-blue); background:var(--ag-tint); color:var(--ag-blue); box-shadow:none; }
#agentTeamRoot .studio-stage-rail .done,#agentTeamRoot .studio-stage-rail .done i { color:var(--ag-success); border-color:var(--ag-success); background:var(--ag-success-bg); }
#agentTeamRoot .studio-stage-rail .locked,#agentTeamRoot .studio-stage-rail .locked i { color:var(--ag-muted); background:transparent; border-color:var(--ag-line); }
#agentTeamRoot .studio-feed { padding:20px 24px; scrollbar-gutter:stable; }
#agentTeamRoot .studio-message { max-width:100%; }
#agentTeamRoot .studio-message-stack { min-width:0; }
#agentTeamRoot .studio-message-label { color:var(--ag-muted); font-size:12px; flex-wrap:wrap; }
#agentTeamRoot .studio-message-label time { color:var(--ag-muted); }
#agentTeamRoot .studio-message-label button { color:var(--ag-blue); }
#agentTeamRoot .studio-bubble { background:var(--ag-surface); color:var(--ag-text); border-color:var(--ag-line); border-radius:10px; font-size:13px; overflow-wrap:anywhere; }
#agentTeamRoot .studio-message.user .studio-bubble { background:var(--ag-tint); border-color:var(--ag-line); color:var(--ag-text); }
#agentTeamRoot .studio-message.system .studio-bubble { background:var(--ag-soft); color:var(--ag-muted); font-size:12px; }
#agentTeamRoot :is(.studio-conversation-onboarding,.studio-inline-approval,.studio-question-card,.studio-generation-run) .studio-bubble { background:var(--ag-surface); border-color:var(--ag-line); }
#agentTeamRoot :is(.studio-bubble>b,.studio-bubble h3,.studio-question-card>b) { color:var(--ag-text); }
#agentTeamRoot :is(.studio-bubble>p,.studio-bubble>small,.studio-question-card>p) { color:var(--ag-muted); font-size:12px; }
#agentTeamRoot :is(.studio-typing,.studio-composer>div,.studio-paused-banner span) { color:var(--ag-muted); font-size:12px; }
#agentTeamRoot .studio-composer { margin:0 24px 16px; background:var(--ag-surface); border-color:var(--ag-line); border-radius:10px; box-shadow:none; }
#agentTeamRoot .studio-composer:focus-within { border-color:var(--ag-blue); box-shadow:0 0 0 2px var(--ag-tint); }
#agentTeamRoot .studio-composer textarea { color:var(--ag-text); font-size:14px; min-height:68px; }
#agentTeamRoot textarea::placeholder,#agentTeamRoot input::placeholder { color:var(--ag-muted); opacity:1; }
#agentTeamRoot .studio-send { width:36px; height:36px; }
#agentTeamRoot :is(.studio-paused-banner,.studio-composer.paused,.studio-conversation-head.paused,.studio-next-action.paused,.studio-next-action.locked,.studio-spec-gate) { background:var(--ag-warning-bg); color:var(--ag-warning)!important; border-color:var(--ag-warning); box-shadow:none; }
#agentTeamRoot :is(.studio-paused-banner b,.studio-conversation-head.paused .studio-director-title span,.studio-next-action.locked>span,.studio-spec-gate span,.studio-spec-progress b) { color:var(--ag-warning); }
#agentTeamRoot .studio-resume-control { background:var(--ag-success-bg); border-color:var(--ag-success); color:var(--ag-success); }
#agentTeamRoot .studio-stop-control { background:var(--ag-danger-bg); color:var(--ag-danger); border-color:var(--ag-danger); }
#agentTeamRoot .studio-stop-control i { background:currentColor; }
#agentTeamRoot .studio-rail { padding:12px; }
#agentTeamRoot .studio-panel { padding:12px; background:var(--ag-surface); border-color:var(--ag-line); border-radius:10px; }
#agentTeamRoot .studio-panel>header { color:var(--ag-text); font-size:13px; }
#agentTeamRoot .studio-panel>header button { color:var(--ag-blue); font-size:12px; min-height:28px; }
#agentTeamRoot :is(.studio-spec-list span,.studio-route-summary>b,.studio-next-action h3,.studio-member-list button,.studio-canvas-list>button,.studio-route-members span) { color:var(--ag-text); font-size:12px; }
#agentTeamRoot :is(.studio-spec-list span,.studio-canvas-list>button,.studio-route-members span) { border-color:var(--ag-line); overflow-wrap:anywhere; }
#agentTeamRoot :is(.studio-route-members b,.studio-route-summary>small,.studio-next-action>span) { color:var(--ag-blue); }
#agentTeamRoot .studio-member-list button { min-height:40px; border-radius:6px; }
#agentTeamRoot .studio-member-list button:hover { background:var(--ag-soft); }
#agentTeamRoot .studio-member-list b { font-size:12px; }
#agentTeamRoot .studio-member-list small { font-size:11px; color:var(--ag-muted); }
#agentTeamRoot .studio-next-action>div { grid-template-columns:1fr; }
#agentTeamRoot .studio-next-action button { font-size:12px; }
#agentTeamRoot .studio-dialog-backdrop { z-index:1500; padding:24px; background:rgba(11,20,36,.52); backdrop-filter:blur(2px); overscroll-behavior:contain; }
#agentTeamRoot .studio-dialog { background:var(--ag-surface); color:var(--ag-text); border-color:var(--ag-line); border-radius:12px; max-height:calc(100dvh - 48px); scrollbar-gutter:stable; overscroll-behavior:contain; box-shadow:0 20px 65px #0004; }
#agentTeamRoot .studio-dialog>header { position:sticky; top:0; z-index:2; background:var(--ag-surface); border-color:var(--ag-line); gap:16px; padding:16px 20px; }
#agentTeamRoot .studio-dialog>header>div { min-width:0; }
#agentTeamRoot .studio-dialog>header h3 { font-size:19px; color:var(--ag-text); overflow-wrap:anywhere; }
#agentTeamRoot .studio-dialog>header span { color:var(--ag-blue); font-size:12px; }
#agentTeamRoot .studio-dialog>header button { flex:none; width:36px; height:36px; border:1px solid var(--ag-line); border-radius:8px; color:var(--ag-muted); background:var(--ag-soft); font-size:24px; }
#agentTeamRoot .studio-dialog>header button:hover { color:var(--ag-text); border-color:var(--ag-blue); }
#agentTeamRoot .studio-dialog form { padding:18px 20px; }
#agentTeamRoot .studio-dialog :is(label,.studio-dialog-hint,.studio-profile-head p,.studio-profile-section p,.studio-profile-section form p) { color:var(--ag-muted); font-size:12px; }
#agentTeamRoot .studio-dialog label { gap:7px; font-weight:600; }
#agentTeamRoot :is(input,select,textarea):not([type="hidden"]) { min-width:0; border-color:var(--ag-line); border-radius:8px; color:var(--ag-text); }
#agentTeamRoot :is(.studio-dialog input,.studio-dialog select,.studio-dialog textarea,.studio-session-search input,.studio-agent-tools input,.studio-choice-input input,.studio-choice-input textarea,.studio-proposal-editor input,.studio-proposal-editor select,.studio-proposal-editor textarea) { min-height:38px; font-size:13px; line-height:1.5; background:var(--ag-surface); border:1px solid var(--ag-line); padding:8px 10px; }
#agentTeamRoot .studio-dialog textarea { min-height:80px; }
#agentTeamRoot :is(.studio-spec-dialog form>section,.studio-profile-section,.studio-agent-role-context) { border-color:var(--ag-line); background:var(--ag-soft); border-radius:8px; padding:14px; }
#agentTeamRoot :is(.studio-dialog h4,.studio-profile-columns b,.studio-memory-grid b,.studio-agent-role-context b,.studio-agent-role-context span) { color:var(--ag-text); font-size:13px; }
#agentTeamRoot :is(.studio-profile-columns>div,.studio-memory-grid article,.studio-library-grid>article,.studio-library-grid p) { background:var(--ag-surface); border-color:var(--ag-line); border-radius:8px; }
#agentTeamRoot :is(.studio-memory-grid span,.studio-profile-section h4 small,.studio-library-grid>article>header span,.studio-library-grid p.empty,.studio-agent-role-context p) { color:var(--ag-muted); font-size:11px; }
#agentTeamRoot :is(.studio-profile-columns p,.studio-memory-grid p,.studio-library-grid p,.studio-avatar-audit span) { color:var(--ag-text); font-size:12px; }
#agentTeamRoot :is(.studio-library-grid>article>header b,.studio-profile-section h4 small) { color:var(--ag-blue); }
#agentTeamRoot .studio-profile-body { padding:18px 20px; }
#agentTeamRoot .studio-profile-section form { padding:0; }
#agentTeamRoot .studio-profile-section form label { display:grid; }
#agentTeamRoot .studio-isolation-note { color:var(--ag-muted); border-color:var(--ag-blue); background:var(--ag-tint); }
#agentTeamRoot .studio-dialog form>footer { position:sticky; bottom:-18px; margin:16px -20px -18px; padding:12px 20px; border-top:1px solid var(--ag-line); background:var(--ag-surface); z-index:1; flex-wrap:wrap; }
#agentTeamRoot .studio-dialog form>footer button { min-height:38px; }
#agentTeamRoot :is(.studio-composition-summary,.studio-team-recommendation,.studio-manual-team,.studio-agent-picker,.studio-team-seat,.studio-agent-choice,.studio-route-option,.studio-empty-choice,.studio-agent-scope,.studio-route-members.preview span) { background:var(--ag-soft); color:var(--ag-text); border-color:var(--ag-line); border-radius:8px; box-shadow:none; }
#agentTeamRoot :is(.studio-builder-head h4,.studio-agent-picker h5,.studio-composition-summary b,.studio-team-recommendation h4,.studio-manual-team h4,.studio-inline-team h4,.studio-empty-choice b) { color:var(--ag-text); }
#agentTeamRoot :is(.studio-builder-head p,.studio-agent-picker p,.studio-team-recommendation p,.studio-manual-team p,.studio-composition-summary span,.studio-team-seat small,.studio-route-option small,.studio-agent-choice-head small,.studio-agent-select>p,.studio-empty-choice span) { color:var(--ag-muted); font-size:12px; }
#agentTeamRoot :is(.studio-builder-head span,.studio-agent-picker header span,.studio-route-option em,.studio-picker-summary small,.studio-team-recommendation>span) { color:var(--ag-blue); font-size:12px; }
#agentTeamRoot .studio-team-seat { min-height:64px; padding:10px; }
#agentTeamRoot .studio-team-seat :is(b,small) { white-space:normal; overflow-wrap:anywhere; }
#agentTeamRoot .studio-team-seat b { font-size:12px; }
#agentTeamRoot .studio-team-seat em { position:static; grid-column:3; color:var(--ag-muted); font-size:11px; }
#agentTeamRoot :is(.studio-team-seat.active,.studio-agent-choice.selected,.studio-route-option.selected,.studio-proposal-spec.active) { border-color:var(--ag-blue); background:var(--ag-tint); box-shadow:inset 3px 0 var(--ag-blue); }
#agentTeamRoot :is(.studio-team-seat,.studio-agent-choice,.studio-route-option,.studio-choice-card,.studio-proposal-spec):hover { transform:none; background:var(--ag-tint); border-color:var(--ag-blue); }
#agentTeamRoot .studio-seat-order { border-color:var(--ag-line); color:var(--ag-muted); }
#agentTeamRoot .studio-team-seat.active .studio-seat-order { border-color:var(--ag-blue); color:var(--ag-blue); }
#agentTeamRoot .studio-agent-scope { flex-wrap:wrap; }
#agentTeamRoot .studio-agent-scope button { color:var(--ag-muted); min-height:32px; font-size:12px; }
#agentTeamRoot .studio-agent-scope button.active { background:var(--ag-tint); color:var(--ag-blue); box-shadow:inset 0 -2px var(--ag-blue); }
#agentTeamRoot .studio-agent-choice-head i,#agentTeamRoot .studio-agent-tags span { background:var(--ag-soft); color:var(--ag-muted); border-color:var(--ag-line); font-size:11px; }
#agentTeamRoot .studio-agent-select { min-height:150px; padding:12px; }
#agentTeamRoot .studio-agent-choice>footer { color:var(--ag-muted); border-color:var(--ag-line); font-size:11px; }
#agentTeamRoot .studio-agent-choice.selected>footer { color:var(--ag-blue); border-color:var(--ag-line); font-weight:600; }
#agentTeamRoot .studio-agent-choice>footer button { color:var(--ag-blue); background:var(--ag-surface); border-color:var(--ag-line); min-height:30px; font-size:12px; }
#agentTeamRoot :is(.studio-proposal-card,.studio-proposal-editor,.studio-proposal-team,.studio-proposal-actions,.studio-proposal-details,.studio-proposal-spec,.studio-choice-card,.studio-spec-recap span,.studio-intent-examples button,.studio-question-card,.studio-inline-approval .studio-bubble) { background:var(--ag-surface); border-color:var(--ag-line); color:var(--ag-text); box-shadow:none; }
#agentTeamRoot :is(.studio-proposal-card>header,.studio-proposal-actions,.studio-inline-team) { border-color:var(--ag-line); }
#agentTeamRoot :is(.studio-proposal-card h3,.studio-proposal-team h4,.studio-proposal-editor>header,.studio-proposal-specs .studio-proposal-spec>span) { color:var(--ag-text); }
#agentTeamRoot :is(.studio-proposal-card>header>span,.studio-proposal-team>span,.studio-proposal-specs .studio-proposal-spec>b,.studio-proposal-specs.compact .studio-proposal-spec>i,.studio-spec-recap b,.studio-inline-team>span) { color:var(--ag-blue); font-size:12px; }
#agentTeamRoot :is(.studio-proposal-card>header p,.studio-proposal-team p,.studio-proposal-editor>p,.studio-choice-card small,.studio-inline-team>p,.studio-proposal-team>div span) { color:var(--ag-muted); font-size:12px; border-color:var(--ag-line); }
#agentTeamRoot .studio-proposal-team>div b { color:var(--ag-text); }
#agentTeamRoot .studio-proposal-specs .studio-proposal-spec>span { font-size:12px; }
#agentTeamRoot .studio-proposal-specs.compact .studio-proposal-spec { grid-template-columns:70px minmax(0,1fr) auto; min-height:42px; }
#agentTeamRoot .studio-proposal-specs.compact .studio-proposal-spec>span { white-space:normal; overflow-wrap:anywhere; }
#agentTeamRoot .studio-proposal-details { min-height:36px; color:var(--ag-blue); font-size:12px; }
#agentTeamRoot .studio-question-step { border-color:var(--ag-line); color:var(--ag-blue); background:var(--ag-tint); font-size:11px; }
#agentTeamRoot :is(.studio-generation-run.succeeded .studio-bubble,.canvas-status.approved) { background:var(--ag-success-bg); border-color:var(--ag-success); color:var(--ag-success); }
#agentTeamRoot :is(.studio-generation-run.failed .studio-bubble,.studio-generation-run.missing .studio-bubble,.studio-generation-run.awaiting_confirmation .studio-bubble,.canvas-review-note,.canvas-status.revision) { background:var(--ag-danger-bg); border-color:var(--ag-danger); color:var(--ag-danger); }
#agentTeamRoot .studio-generation-run.canceled .studio-bubble { background:var(--ag-soft); border-color:var(--ag-line); }
#agentTeamRoot :is(.studio-proposal-warnings,.canvas-status.review) { background:var(--ag-warning-bg); color:var(--ag-warning); border-color:var(--ag-warning); }
#agentTeamRoot :is(.studio-update-notice,.studio-canvas-toolbar) { background:var(--ag-soft); color:var(--ag-muted); font-size:12px; }
#agentTeamRoot :is(.studio-update-notice button,.studio-proposal-warnings b) { color:var(--ag-blue); }
#agentTeamRoot .studio-canvas { background:var(--ag-surface); border-color:var(--ag-line); box-shadow:none; }
#agentTeamRoot .studio-canvas>header { background:var(--ag-soft); border-color:var(--ag-line); }
#agentTeamRoot .studio-canvas pre { color:var(--ag-text); font-size:13px; }
#agentTeamRoot .studio-canvas footer { border-color:var(--ag-line); flex-wrap:wrap; }
#agentTeamRoot .studio-canvas small { color:var(--ag-blue); }
#agentTeamRoot .canvas-status { color:var(--ag-muted); background:var(--ag-soft); }
#agentTeamRoot .studio-canvas-workspace { min-height:0; flex:1; }
#agentTeamRoot .studio-canvas-board { min-width:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:8px 0; overflow:visible; }
#agentTeamRoot .studio-canvas-node { width:auto; min-width:0; background:var(--ag-surface); border-color:var(--ag-line); box-shadow:none; }
#agentTeamRoot :is(.studio-canvas-head h3,.studio-canvas-node-top b,.studio-start-presets h3) { color:var(--ag-text); }
#agentTeamRoot :is(.studio-canvas-head p,.studio-canvas-node p,.studio-canvas-foot,.studio-start-presets header p,.studio-start-preset small,.studio-start-dropzone small) { color:var(--ag-muted); font-size:12px; }
#agentTeamRoot :is(.studio-canvas-head>div>span,.studio-canvas-node-top>span,.studio-start-presets header span,.studio-start-preset-icon,.studio-start-preset i) { color:var(--ag-blue); }
#agentTeamRoot .studio-canvas-node-top b { white-space:normal; }
#agentTeamRoot .studio-canvas-node-top i { color:var(--ag-muted); font-size:10px; }
#agentTeamRoot .studio-canvas-node button { background:var(--ag-soft); color:var(--ag-blue); border-color:var(--ag-line); min-height:32px; font-size:12px; }
#agentTeamRoot .studio-canvas-link { display:none; }
#agentTeamRoot .studio-canvas-foot { flex-wrap:wrap; border-color:var(--ag-line); }
#agentTeamRoot:has(.studio-start) { overflow:auto; }
#agentTeamRoot .studio-start { min-height:0; padding:40px 24px 24px; grid-template-columns:130px minmax(0,640px); gap:20px; }
#agentTeamRoot .studio-start-orbit { width:125px; height:125px; background:var(--ag-soft); border-color:var(--ag-line); }
#agentTeamRoot .studio-start-orbit::before,#agentTeamRoot .studio-start-orbit::after { border-color:var(--ag-line); }
#agentTeamRoot .studio-start-orbit>span { background:var(--ag-blue); box-shadow:none; }
#agentTeamRoot .studio-start-copy h2 { font-size:24px; }
#agentTeamRoot .studio-start-copy p { color:var(--ag-muted); font-size:13px; line-height:1.75; }
#agentTeamRoot .studio-start-steps { color:var(--ag-muted); }
#agentTeamRoot .studio-start-steps b { color:var(--ag-blue); background:var(--ag-tint); }
#agentTeamRoot .studio-start-presets { background:var(--ag-surface); border-color:var(--ag-line); border-radius:10px; box-shadow:none; margin-top:8px; }
#agentTeamRoot .studio-start-preset { background:var(--ag-soft); border-color:var(--ag-line); color:var(--ag-text); border-radius:8px; }
#agentTeamRoot .studio-start-preset:hover { background:var(--ag-tint); border-color:var(--ag-blue); transform:none; }
#agentTeamRoot .studio-start-preset-icon { border-color:var(--ag-line); }
#agentTeamRoot .studio-start-dropzone { background:var(--ag-soft); color:var(--ag-muted); border-color:var(--ag-line); }
#agentTeamRoot .studio-conversation-onboarding .studio-message-label>span { background:var(--ag-tint); color:var(--ag-blue); border-color:var(--ag-line); font-size:11px; }
#agentTeamRoot .studio-avatar-audit em { color:var(--ag-success); }
#agentTeamRoot .studio-avatar-audit i { background:var(--ag-line); }
#agentTeamRoot .studio-avatar-audit i::before { background:var(--ag-success); }
#agentTeamRoot :is(.studio-loading,.studio-empty) { background:var(--ag-bg); color:var(--ag-muted); }
#agentTeamRoot .studio-empty strong { color:var(--ag-text); }
@media(max-width:1250px) {
  #agentTeamRoot .studio-app { grid-template-columns:185px minmax(0,1fr) 225px; }
  #agentTeamRoot .studio-feed { padding:16px; }
  #agentTeamRoot .studio-composer { margin:0 16px 14px; }
  #agentTeamRoot .studio-proposal-specs.compact { grid-template-columns:1fr; }
}
@media(max-width:1100px) {
  #agentTeamRoot { overflow:auto; }
  #agentTeamRoot .studio-app { grid-template-columns:185px minmax(0,1fr); height:auto; min-height:100%; overflow:visible; }
  #agentTeamRoot .studio-sidebar { grid-row:1 / 3; }
  #agentTeamRoot .studio-conversation { height:calc(100dvh - 110px); min-height:620px; }
  #agentTeamRoot .studio-rail { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; grid-column:2; overflow:visible; border-left:0; border-top:1px solid var(--ag-line); gap:10px; }
  #agentTeamRoot .studio-rail .studio-panel { margin:0; }
  #agentTeamRoot .studio-start-preset-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:720px) {
  #agentTeamRoot { height:calc(100dvh - 74px); }
  #agentTeamRoot .studio-app { display:block; height:auto; }
  #agentTeamRoot .studio-sidebar { border-bottom:1px solid var(--ag-line); }
  #agentTeamRoot .studio-sidebar-head { min-height:52px; padding:8px 12px; }
  #agentTeamRoot .studio-sidebar-head>div { display:flex; align-items:center; gap:8px; }
  #agentTeamRoot .studio-sidebar-head b { margin:0; font-size:14px; }
  #agentTeamRoot .studio-session-search { padding:8px 12px 0; }
  #agentTeamRoot .studio-conversation-list { padding:8px 12px; }
  #agentTeamRoot .studio-session-row { min-width:210px; flex:0 0 210px; }
  #agentTeamRoot .studio-session { min-height:60px; }
  #agentTeamRoot .studio-conversation { height:680px; min-height:0; }
  #agentTeamRoot .studio-conversation-head { min-height:70px; padding:10px 12px; gap:8px; }
  #agentTeamRoot .studio-director-title { gap:8px; }
  #agentTeamRoot .studio-director-title h2 { font-size:14px; }
  #agentTeamRoot .studio-director-title span { font-size:11px; }
  #agentTeamRoot .studio-head-actions { gap:5px; }
  #agentTeamRoot .studio-mode { max-width:84px; padding:0 7px; font-size:11px; }
  #agentTeamRoot .studio-avatar { width:34px; height:34px; }
  #agentTeamRoot .studio-avatar.compact { width:27px; height:27px; }
  #agentTeamRoot .studio-stage-rail { padding:0 12px; flex-shrink:0; }
  #agentTeamRoot .studio-feed { min-height:0; padding:16px 12px; }
  #agentTeamRoot .studio-message { gap:7px; }
  #agentTeamRoot .studio-message>.studio-avatar { width:28px; height:28px; }
  #agentTeamRoot .studio-composer { margin:0 12px 12px; }
  #agentTeamRoot .studio-composer>div { flex-wrap:wrap; gap:8px; }
  #agentTeamRoot .studio-composer>div>nav { margin-left:auto; }
  #agentTeamRoot .studio-composer textarea { font-size:16px; }
  #agentTeamRoot .studio-rail { grid-template-columns:1fr; padding:12px; }
  #agentTeamRoot .studio-dialog-backdrop { padding:8px; }
  #agentTeamRoot .studio-dialog { max-height:calc(100dvh - 16px); border-radius:10px; }
  #agentTeamRoot .studio-dialog>header { padding:12px; gap:10px; }
  #agentTeamRoot .studio-dialog>header h3 { font-size:17px; }
  #agentTeamRoot .studio-dialog form { padding:14px 12px; }
  #agentTeamRoot .studio-dialog form>footer { margin:14px -12px -14px; bottom:-14px; padding:10px 12px; }
  #agentTeamRoot .studio-dialog form>footer button { flex:1 1 110px; }
  #agentTeamRoot .studio-dialog :is(input,select,textarea) { font-size:16px; }
  #agentTeamRoot .studio-profile-body { padding:12px; }
  #agentTeamRoot .studio-profile-section form { padding:0; }
  #agentTeamRoot .studio-dialog-grid,#agentTeamRoot .studio-profile-columns,#agentTeamRoot .studio-memory-grid,#agentTeamRoot .studio-library-grid,#agentTeamRoot .studio-seat-grid,#agentTeamRoot .studio-route-options,#agentTeamRoot .studio-agent-choice-grid { grid-template-columns:minmax(0,1fr); }
  #agentTeamRoot .studio-dialog label { font-size:13px; }
  #agentTeamRoot .studio-agent-picker>header { gap:10px; }
  #agentTeamRoot .studio-agent-tools { grid-template-columns:minmax(0,1fr); }
  #agentTeamRoot .studio-proposal-specs.compact .studio-proposal-spec { grid-template-columns:60px minmax(0,1fr) auto; gap:5px; }
  #agentTeamRoot .studio-canvas-workspace { padding:12px; }
  #agentTeamRoot .studio-canvas-head { flex-wrap:wrap; }
  #agentTeamRoot .studio-canvas-board { grid-template-columns:1fr; }
  #agentTeamRoot .studio-start { grid-template-columns:1fr; padding:24px 18px 16px; text-align:left; }
  #agentTeamRoot .studio-start-orbit { margin:auto; width:84px; height:84px; }
  #agentTeamRoot .studio-start-orbit>div { transform:scale(1.2); }
  #agentTeamRoot .studio-start-copy h2 { font-size:21px; }
  #agentTeamRoot .studio-start-steps { justify-content:flex-start; gap:10px; }
  #agentTeamRoot .studio-start-presets { padding:14px; }
}
@media(prefers-reduced-motion:reduce) { #agentTeamRoot *,#agentTeamRoot *::before,#agentTeamRoot *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
