@layer legacy {
/* Group coordination control plane */
.studio-index-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.studio-index-card,
.studio-index-empty {
  min-height:230px;
  padding:22px;
  display:flex;
  flex-direction:column;
  color:var(--ink);
  border-top:1px solid var(--divider);
  background:transparent;
}
.studio-index-card h3 { margin:8px 0 6px; font:650 22px/1.2 "Songti SC","STSong",serif; }
.studio-index-card p,.studio-index-empty p { color:var(--text-soft); line-height:1.68; }
.studio-index-card footer {
  margin-top:auto;
  padding-top:18px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:var(--muted);
  border-top:1px solid rgba(80,71,57,.08);
}
.studio-index-card footer strong { color:var(--gold-soft); }
.studio-page-header { margin-bottom:18px; }
.coordination-hero {
  min-height:210px;
  padding:26px;
  display:grid;
  grid-template-columns:150px minmax(0,1fr) auto;
  gap:28px;
  align-items:center;
  overflow:hidden;
  border-left:3px solid var(--accent-fg);
  background:var(--cc-surface-focus);
}
.coordination-score {
  width:138px;
  height:138px;
  padding:10px;
  border-radius:50%;
  display:grid;
  place-items:center;
  position:relative;
  background:conic-gradient(
    var(--coordination-color) calc(var(--coordination-score) * 3.6deg),
    rgba(76,82,78,.08) 0
  );
  box-shadow:0 18px 45px rgba(55,50,41,.12);
}
.coordination-score::before {
  content:"";
  position:absolute;
  inset:10px;
  border-radius:50%;
  background:linear-gradient(145deg,#fffefb,#eee8dc);
  box-shadow:inset 0 1px 0 #fff;
}
.coordination-score > div,.coordination-score > small { position:relative; z-index:1; }
.coordination-score > div { align-self:end; display:flex; align-items:baseline; justify-content:center; }
.coordination-score strong { font:650 43px/1 "Songti SC","STSong",serif; }
.coordination-score span { color:var(--muted); font-size:10px; }
.coordination-score small { align-self:start; margin-top:5px; color:var(--text-soft); font-size:10px; font-weight:760; }
.coordination-score.score-healthy { --coordination-color:#2f8069; }
.coordination-score.score-watch { --coordination-color:#bd8734; }
.coordination-score.score-risk { --coordination-color:#b7483b; }
.coordination-hero-copy { min-width:0; }
.coordination-hero-copy h2 { margin:3px 0 8px; font:650 clamp(25px,2.5vw,36px)/1.2 "Songti SC","STSong",serif; }
.coordination-hero-copy > p { max-width:780px; margin:0; color:var(--text-soft); line-height:1.7; }
.coordination-health-row { margin-top:18px; display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.coordination-health-row > span:last-child { color:var(--muted); font-size:10px; }
.coordination-hero-controls { display:grid; gap:8px; min-width:128px; }
.coordination-metrics {
  margin-top:16px;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
}
.coordination-metric {
  min-height:142px;
  padding:19px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  overflow:hidden;
}
.coordination-metric::before {
  content:"";
  position:absolute;
  width:96px;
  height:96px;
  right:-32px;
  top:-38px;
  border-radius:50%;
  background:var(--metric-color,rgba(80,91,87,.08));
  filter:blur(2px);
}
.coordination-metric strong { font:650 34px/1 "Songti SC","STSong",serif; }
.coordination-metric > span { margin-top:7px; font-size:11px; font-weight:780; }
.coordination-metric small { margin-top:5px; color:var(--muted); line-height:1.45; }
.coordination-metric.metric-danger { --metric-color:rgba(177,72,59,.13); }
.coordination-metric.metric-warning { --metric-color:rgba(189,135,52,.15); }
.coordination-metric.metric-success { --metric-color:rgba(47,128,105,.12); }
.coordination-metric.metric-info { --metric-color:rgba(56,111,180,.12); }
.coordination-primary-grid {
  margin-top:18px;
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(320px,.62fr);
  gap:18px;
  align-items:start;
}
.coordination-secondary-grid {
  margin-top:18px;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(360px,.9fr);
  gap:18px;
  align-items:start;
}
.coordination-workflow-panel,
.coordination-risk-panel,
.coordination-load,
.coordination-governance,
.studio-kanban-panel,
.studio-team-panel,
.studio-timeline-panel {
  padding:20px;
}
.coordination-workflow-panel { min-height:780px; overflow:hidden; }
.coordination-workflow-panel > .card-header { margin-bottom:14px; }
.workflow-legend { display:flex; flex-wrap:wrap; gap:6px; justify-content:flex-end; }
.workflow-legend span { padding:4px 7px; border-radius:999px; color:var(--muted); background:rgba(80,91,87,.07); font-size:9px; }
.workflow-legend span::before { content:""; width:6px; height:6px; display:inline-block; margin-right:5px; border-radius:50%; background:#87918d; }
.workflow-legend .is-doing::before { background:#397bd4; }
.workflow-legend .is-review::before { background:#8064bd; }
.workflow-legend .is-blocked::before { background:#b94336; }
.workflow-legend .is-done::before { background:#3d8b68; }
.studio-workflow-shell {
  display:grid;
  grid-template-columns:minmax(0,1fr) 280px;
  gap:12px;
  min-width:0;
}
.studio-workflow-editor { min-width:0; }
.studio-workflow-inspector {
  min-width:0;
  height:clamp(520px,70vh,780px);
  padding:17px;
  overflow:auto;
  border-radius:22px;
  background:var(--cc-surface-data);
  box-shadow:none;
}
.workflow-inspector-empty { min-height:200px; display:grid; place-content:center; text-align:center; color:var(--muted); }
.workflow-inspector-empty strong { color:var(--ink); }
.workflow-inspector-empty p { max-width:190px; font-size:10px; line-height:1.55; }
.workflow-inspector-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; }
.workflow-inspector-heading span { color:var(--muted); font-size:9px; }
.workflow-inspector-heading h4 { margin:4px 0 0; font-size:17px; line-height:1.3; }
.studio-workflow-inspector > p { color:var(--text-soft); font-size:11px; line-height:1.6; }
.workflow-inspector-facts { display:grid; gap:7px; margin:15px 0; }
.workflow-inspector-facts > div { padding:9px 2px; border-top:1px solid var(--divider); border-radius:0; background:transparent; }
.workflow-inspector-facts dt { color:var(--muted); font-size:8px; text-transform:uppercase; letter-spacing:.08em; }
.workflow-inspector-facts dd { margin:3px 0 0; overflow-wrap:anywhere; font-size:10px; line-height:1.5; }
.workflow-blocker { padding:11px; border-radius:13px; background:var(--red-soft); color:var(--danger); }
.workflow-blocker p { margin:4px 0 0; font-size:10px; line-height:1.5; }
.workflow-inspector-actions { display:flex; flex-wrap:wrap; gap:6px; }
.coordination-risk-panel { min-height:780px; max-height:980px; overflow:hidden; }
.coordination-risk-list { margin-top:14px; max-height:850px; padding-right:4px; display:grid; gap:9px; overflow:auto; }
.coordination-risk {
  padding:13px;
  border-radius:0;
  background:transparent;
  box-shadow:inset 3px 0 0 var(--risk-color,rgba(80,91,87,.18));
}
.coordination-risk.risk-critical { --risk-color:#9f302a; }
.coordination-risk.risk-high { --risk-color:#c0523e; }
.coordination-risk.risk-medium { --risk-color:#bc8735; }
.coordination-risk.risk-low { --risk-color:#4e8271; }
.coordination-risk.is-acknowledged { opacity:.62; }
.coordination-risk-heading { display:flex; gap:6px; align-items:center; }
.coordination-risk-heading strong { min-width:0; font-size:11px; line-height:1.35; }
.coordination-risk p { margin:8px 0 4px; color:var(--text-soft); font-size:10px; line-height:1.55; }
.coordination-risk > small { color:var(--muted); font-size:9px; line-height:1.45; }
.coordination-risk-actions { margin-top:10px; display:flex; flex-wrap:wrap; gap:5px; }
.coordination-positive { min-height:180px; display:grid; place-content:center; text-align:center; }
.coordination-positive strong,.coordination-positive span { display:block; }
.coordination-positive strong { color:var(--jade); }
.coordination-positive span { max-width:250px; margin-top:6px; color:var(--muted); font-size:10px; }
.coordination-load-list { margin-top:16px; display:grid; gap:9px; }
.coordination-load-row {
  min-height:70px;
  padding:10px 12px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:11px;
  align-items:center;
  border-radius:var(--radius-sm);
  background:var(--cc-surface-row);
}
.coordination-load-row.is-over-configured { background:rgba(177,72,59,.075); }
.coordination-load-main { min-width:0; }
.coordination-load-main > div { display:flex; justify-content:space-between; gap:8px; }
.coordination-load-main strong,.coordination-load-main span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.coordination-load-main span { color:var(--muted); font-size:9px; }
.coordination-load-main i,.coordination-component i,.studio-work-progress i {
  height:6px;
  display:block;
  overflow:hidden;
  border-radius:999px;
  background:rgba(80,91,87,.09);
}
.coordination-load-main i { margin-top:8px; }
.coordination-load-main i b,.coordination-component i b,.studio-work-progress i b {
  height:100%;
  display:block;
  border-radius:inherit;
  background:linear-gradient(90deg,#b4873e,#3b8a72);
}
.is-over-configured .coordination-load-main i b { background:linear-gradient(90deg,#b4873e,#b94336); }
.coordination-load-number { min-width:42px; text-align:right; }
.coordination-load-number strong { font-size:20px; }
.coordination-load-number span { color:var(--muted); font-size:9px; }
.coordination-components { margin:16px 0; display:grid; gap:8px; }
.coordination-component > div { display:flex; justify-content:space-between; gap:10px; margin-bottom:4px; font-size:9px; }
.coordination-component span { color:var(--text-soft); }
.coordination-component strong { color:var(--ink); }
.coordination-component i { height:5px; }
.governance-form {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
.governance-form label { min-width:0; }
.governance-form label > span { font-size:9px; }
.governance-form input,.governance-form select { min-height:38px; }
.governance-check { grid-column:1/-1; display:flex; flex-direction:row; align-items:center; gap:8px; padding:10px; border-radius:var(--radius-sm); background:var(--cc-surface-row); }
.governance-check input { width:18px; min-height:18px; margin:0; accent-color:var(--gold); }
.governance-form > button,.governance-form > p { grid-column:1/-1; }
.studio-agent-runtime { margin-top:18px; width:100%; padding:22px; }
.agent-runtime-toolbar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.agent-runtime-toolbar #agent-runtime-sync { color:var(--muted); font-size:10px; }
.agent-runtime-list { margin-top:16px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
.agent-runtime-run {
  min-width:0;
  padding:16px;
  border-radius:var(--radius-sm);
  background:var(--cc-surface-data);
  box-shadow:none;
}
.agent-runtime-run.is-active { box-shadow:inset 3px 0 0 #b88735; }
.agent-runtime-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.agent-runtime-heading > div { min-width:0; }
.agent-runtime-heading span { color:var(--muted); font-size:8px; font-weight:760; letter-spacing:.05em; }
.agent-runtime-heading h4 { margin:4px 0 0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font:650 17px/1.3 "Songti SC","STSong",serif; }
.agent-runtime-progress { margin-top:13px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:9px; }
.agent-runtime-progress i { height:7px; overflow:hidden; border-radius:999px; background:rgba(76,87,83,.1); }
.agent-runtime-progress i b { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#b88735,#3b8a72); transition:width .35s ease; }
.agent-runtime-progress span { color:var(--muted); font-size:8px; }
.agent-runtime-facts { margin-top:9px; display:flex; gap:5px; flex-wrap:wrap; }
.agent-runtime-facts span { padding:4px 7px; border-radius:999px; background:rgba(57,72,68,.055); color:var(--text-soft); font-size:8px; }
.agent-runtime-members { margin-top:12px; display:grid; gap:5px; }
.agent-runtime-member {
  min-width:0;
  padding:7px 8px;
  display:grid;
  grid-template-columns:9px minmax(0,1fr) auto auto;
  align-items:center;
  gap:7px;
  border-top:1px solid var(--divider);
  border-radius:0;
  background:transparent;
}
.agent-runtime-member.is-synthesis { background:rgba(195,147,65,.09); }
.agent-runtime-member.agent-runtime-research-member {
  padding: 2px 0 8px;
  display: block;
  border-radius: 0;
  background: transparent;
}
.agent-runtime-member.agent-runtime-research-member.is-synthesis {
  padding-left: 10px;
  border-left: 2px solid color-mix(in srgb, #b88735 54%, transparent);
}
.agent-runtime-member-facts {
  padding: 3px 2px 0 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
}
.agent-runtime-member > div { min-width:0; }
.agent-runtime-member strong,.agent-runtime-member small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.agent-runtime-member strong { font-size:11px; }
.agent-runtime-member small,.agent-runtime-member > span { color:var(--muted); font-size:9px; }
.agent-state-dot { width:7px; height:7px; border-radius:50%; background:#9b9d99; box-shadow:0 0 0 3px rgba(100,105,101,.08); }
.agent-state-dot.state-running,.agent-state-dot.state-synthesizing { background:#b88735; animation:pulse 1.6s ease-in-out infinite; }
.agent-state-dot.state-completed { background:#2f8069; }
.agent-state-dot.state-failed,.agent-state-dot.state-cancelled { background:#b7483b; }
.agent-state-dot.state-cancelling,.agent-state-dot.state-cancel_requested { background:#b86f35; animation:pulse 1.6s ease-in-out infinite; }
.agent-runtime-result { margin-top:11px; padding:10px 12px; border-radius:12px; background:rgba(47,128,105,.075); }
.agent-runtime-result strong { color:var(--jade); font-size:9px; }
.agent-runtime-result p { max-height:74px; margin:4px 0 0; overflow:auto; color:var(--text-soft); font-size:9px; line-height:1.55; }
.agent-runtime-candidate {
  margin-top:10px;
  overflow:hidden;
  border-radius:12px;
  background:rgba(47,128,105,.055);
  box-shadow:inset 0 0 0 1px rgba(47,128,105,.1);
}
.agent-runtime-candidate > summary {
  padding:11px 12px;
  cursor:pointer;
  color:var(--jade);
  font-size:10px;
  font-weight:760;
}
.agent-runtime-candidate-body { max-height:430px; padding:0 12px 12px; overflow:auto; display:grid; gap:9px; }
.agent-runtime-candidate-body section { padding:10px 2px; border-top:1px solid var(--divider); border-radius:0; background:transparent; }
.agent-runtime-candidate-body h5 { margin:0 0 5px; color:var(--ink); font-size:10px; }
.agent-runtime-candidate-body p,.agent-runtime-candidate-body ul { margin:0; color:var(--text-soft); font-size:10px; line-height:1.6; }
.agent-runtime-candidate-body ul { padding-left:18px; }
.agent-runtime-candidate-body li + li { margin-top:4px; }
.agent-runtime-candidate-body small { color:var(--muted); font-size:9px; }
.agent-runtime-candidate-body .is-failure { background:rgba(183,72,59,.07); }
.agent-runtime-review-action { padding:11px; display:flex; align-items:center; justify-content:space-between; gap:10px; border-radius:10px; background:rgba(195,147,65,.09); }
.agent-runtime-review-action p { margin:0; color:var(--text-soft); font-size:9px; }
.agent-runtime-error,.agent-runtime-cancel-note { margin:9px 0 0; padding:8px 10px; border-radius:10px; color:#88433a; background:rgba(183,72,59,.08); font-size:8px; line-height:1.5; }
.agent-runtime-actions { margin-top:12px; display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.agent-runtime-actions small { color:var(--muted); font-size:8px; }
.agent-runtime-empty { min-height:160px; grid-column:1/-1; display:grid; place-content:center; text-align:center; }
.agent-runtime-empty strong { color:var(--jade); }
.agent-runtime-empty p { max-width:560px; margin:7px auto 0; color:var(--muted); font-size:10px; line-height:1.6; }
.agent-delegation-context { padding:13px; display:grid; gap:5px; border-radius:14px; background:rgba(47,128,105,.07); }
.agent-delegation-context p { margin:0; color:var(--text-soft); line-height:1.6; }
.agent-delegation-context span { color:var(--muted); font-size:9px; }
.research-formation-planner { min-width:0; margin:4px 0 0; padding:16px 0 0; border:0; border-top:1px solid var(--divider); }
.research-formation-planner > legend { padding:0 10px 0 0; color:var(--ink); font-size:11px; font-weight:720; }
.research-formation-planner > p { margin:0 0 12px; color:var(--muted); font-size:10px; line-height:1.6; }
.research-formation-planner > label { display:grid; gap:6px; }
.research-formation-planner > details { margin-top:8px; border:0; background:transparent; }
.research-formation-planner > details > summary { cursor:pointer; color:var(--text-soft); font-size:10px; }
.research-formation-options { padding:10px 0 0; display:grid; grid-template-columns:minmax(0,1fr) 120px; gap:10px; }
.research-formation-options label { display:grid; gap:6px; }
.research-formation-action { margin-top:10px; display:flex; justify-content:flex-end; }
.research-formation-preview { min-height:52px; margin-top:8px; padding:10px 0; border-top:1px solid var(--divider); border-bottom:1px solid var(--divider); }
.research-formation-preview > .loading { min-height:40px; }
.research-formation-list { display:grid; gap:0; }
.research-formation-list article { min-width:0; padding:8px 0; display:grid; grid-template-columns:minmax(150px,.7fr) minmax(0,1.3fr); gap:12px; border-bottom:1px solid color-mix(in srgb,var(--divider) 72%,transparent); }
.research-formation-list article:last-child { border-bottom:0; }
.research-formation-list article > div { min-width:0; display:grid; gap:2px; }
.research-formation-list strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ink); font-size:10px; }
.research-formation-list span,.research-formation-preview small { color:var(--muted); font-size:9px; line-height:1.5; }
.research-formation-list p,.research-formation-coverage { margin:0; color:var(--text-soft); font-size:9px; line-height:1.55; }
.research-formation-coverage { margin-top:8px; }
.research-formation-planner > .governance-check { margin-top:10px; }
.studio-kanban-panel { margin-top:18px; width:100%; max-width:100%; overflow:hidden; }
.studio-kanban {
  margin-top:15px;
  padding:11px;
  display:grid;
  grid-template-columns:repeat(5,minmax(260px,1fr));
  gap:10px;
  overflow-x:auto;
  border-radius:20px;
  background:rgba(232,226,214,.55);
}
.studio-kanban-column {
  min-height:410px;
  padding:8px;
  border-radius:16px;
  background:transparent;
  transition:background .16s,box-shadow .16s;
}
.studio-kanban-column.drag-over { background:rgba(195,147,65,.13); box-shadow:inset 0 0 0 2px rgba(195,147,65,.28); }
.studio-kanban-stack { display:grid; gap:8px; }
.studio-work-card {
  padding:13px;
  border-radius:14px;
  background:var(--cc-surface-row);
  box-shadow:0 8px 22px rgba(63,54,42,.07),inset 0 0 0 1px rgba(70,64,54,.05);
  cursor:pointer;
}
.studio-work-card[draggable="true"] { cursor:grab; }
.studio-work-card.is-dragging { opacity:.48; }
.studio-work-card.is-blocked { box-shadow:inset 3px 0 0 #b94336,0 8px 22px rgba(63,54,42,.07); }
.studio-work-heading { display:flex; justify-content:space-between; gap:8px; }
.studio-work-heading h4 { margin:0; font-size:12px; line-height:1.4; }
.studio-work-heading > span { width:20px; height:20px; display:grid; place-items:center; border-radius:50%; color:#fff; background:#b94336; font-weight:800; }
.studio-work-card > p { min-height:34px; margin:6px 0 9px; color:var(--text-soft); font-size:9px; line-height:1.5; }
.studio-work-card > small { display:block; margin-top:8px; color:var(--muted); font-size:8px; overflow-wrap:anywhere; }
.studio-work-progress { margin-top:9px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px; align-items:center; }
.studio-work-progress span { color:var(--muted); font-size:8px; }
.studio-team-panel,.studio-timeline-panel { min-height:480px; }
.studio-event-list { margin-top:14px; max-height:430px; overflow:auto; }
.studio-event { display:grid; grid-template-columns:15px minmax(0,1fr); gap:9px; padding:0 0 14px; position:relative; }
.studio-event > i { width:9px; height:9px; margin-top:4px; border-radius:50%; background:var(--gold); box-shadow:0 0 0 4px rgba(195,147,65,.1); }
.studio-event::before { content:""; position:absolute; left:4px; top:15px; bottom:1px; width:1px; background:rgba(80,91,87,.1); }
.studio-event strong { font-size:10px; }
.studio-event p { margin:3px 0; color:var(--text-soft); font-size:9px; line-height:1.5; }
.studio-event small { color:var(--muted); font-size:8px; }
.studio-message-form { margin-top:12px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:7px; }
.review-evidence-summary { padding:14px 2px 14px 14px; border-left:2px solid var(--divider-strong); border-radius:0; background:transparent; }
.review-evidence-summary strong { display:block; margin-top:8px; }
.review-evidence-summary strong:first-child { margin-top:0; }
.review-evidence-summary p,.review-evidence-summary ul { color:var(--text-soft); line-height:1.55; }

@media (max-width:1400px) {
  .coordination-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .studio-workflow-shell { grid-template-columns:minmax(0,1fr) 250px; }
}
@media (max-width:1180px) {
  .studio-index-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .coordination-primary-grid,.coordination-secondary-grid { grid-template-columns:1fr; }
  .coordination-risk-panel { min-height:0; max-height:none; }
  .coordination-risk-list { max-height:none; }
}
@media (max-width:900px) {
  .agent-runtime-list { grid-template-columns:1fr; }
  .coordination-hero { grid-template-columns:auto minmax(0,1fr); }
  .coordination-score { width:112px; height:112px; }
  .coordination-score strong { font-size:34px; }
  .coordination-hero-controls { grid-column:1/-1; display:flex; flex-wrap:wrap; }
  .studio-workflow-shell { grid-template-columns:1fr; }
  .studio-workflow-inspector { height:auto; min-height:240px; }
  .coordination-workflow-panel { min-height:0; }
}
@media (max-width:680px) {
  .studio-index-grid,.coordination-metrics { grid-template-columns:1fr; }
  .studio-index-card,.studio-index-empty { min-height:0; }
  .studio-page-header .toolbar-pills { width:100%; display:grid; grid-template-columns:1fr; }
  .coordination-hero { padding:20px; grid-template-columns:1fr; justify-items:start; }
  .coordination-score { justify-self:center; }
  .coordination-hero-controls { width:100%; display:grid; grid-template-columns:1fr; }
  .coordination-workflow-panel,.coordination-risk-panel,.coordination-load,.coordination-governance,.studio-agent-runtime,.studio-kanban-panel,.studio-team-panel,.studio-timeline-panel { padding:15px; }
  .coordination-workflow-panel > .card-header,.coordination-load > .card-header,.coordination-governance > .card-header { align-items:flex-start; flex-direction:column; }
  .workflow-legend { justify-content:flex-start; }
  .governance-form { grid-template-columns:1fr; }
  .governance-check,.governance-form > button,.governance-form > p { grid-column:auto; }
  .coordination-load-main > div { display:grid; }
  .studio-kanban { grid-template-columns:repeat(5,250px); }
  .studio-message-form { grid-template-columns:1fr; }
  .agent-runtime-review-action { align-items:stretch; flex-direction:column; }
  .research-formation-options,.research-formation-list article { grid-template-columns:1fr; }
}
}

@layer pages {
  .studio-page-header {
    align-items: end;
    gap: var(--space-5);
    margin-bottom: var(--space-4);
  }
  .studio-page-header .page-title { max-width: 920px; }
  .studio-page-header h1 { text-wrap: balance; }
  .studio-page-header p { max-width: 760px; }

  .coordination-lens-tabs {
    position: sticky;
    top: calc(var(--topbar) + var(--space-2));
    z-index: 24;
    width: 100%;
    max-width: 980px;
    margin: 0 auto var(--space-7);
    padding: 0;
    display: flex;
    gap: 2px;
    overflow-x: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: inset 0 -1px 0 var(--divider);
    scrollbar-width: none;
  }
  .coordination-lens-tabs::-webkit-scrollbar { display: none; }
  .coordination-lens-tabs button {
    min-width: 86px;
    min-height: var(--touch-target);
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 0;
    color: var(--text-secondary);
    background: transparent;
    font-weight: 720;
  }
  .coordination-lens-tabs button b {
    min-width: 20px;
    padding: 2px 6px;
    border-radius: 999px;
    color: var(--text-muted);
    background: var(--surface-subtle);
    font-size: 10px;
  }
  .coordination-lens-tabs button:is(.active,[aria-selected="true"]) {
    color: var(--text-primary);
    background: transparent;
    box-shadow: inset 0 -2px 0 var(--collective-color, var(--accent-fg));
  }
  .coordination-lens-tabs button:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
  }
  .coordination-lens-panels,
  .coordination-lens-panels > [role="tabpanel"] { min-width: 0; }
  .coordination-lens-panels > [role="tabpanel"][hidden] { display: none; }
  .coordination-lens-panels > [role="tabpanel"]:focus { outline: 0; }
  .coordination-lens-panels > [role="tabpanel"]:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 5px;
    border-radius: var(--radius-lg);
  }

  .coordination-cockpit {
    --collective-color: var(--info-fg);
    position: relative;
    isolation: isolate;
    padding: clamp(20px,3vw,38px);
    overflow: hidden;
    border: 0;
    border-left: 3px solid color-mix(in srgb,var(--collective-color) 72%,transparent);
    border-radius: 0;
    background:
      radial-gradient(circle at 8% 2%, color-mix(in srgb,var(--collective-color) 13%,transparent), transparent 38%),
      var(--cc-surface-focus);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }
  .coordination-cockpit.state-paused { --collective-color: var(--text-muted); }
  .coordination-cockpit.state-critical { --collective-color: var(--danger-fg); }
  .coordination-cockpit.state-intervene { --collective-color: var(--warning-fg); }
  .coordination-cockpit.state-flowing,
  .coordination-cockpit.state-completed { --collective-color: var(--success-fg); }
  .coordination-cockpit.state-forming { --collective-color: var(--accent-fg); }

  .coordination-cockpit-main {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0,1fr) minmax(180px,auto);
    gap: clamp(16px,2.5vw,30px);
    align-items: center;
  }
  .collective-orb {
    position: relative;
    width: clamp(72px,8vw,108px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
      radial-gradient(circle at 32% 28%,rgba(255,255,255,.95),transparent 18%),
      radial-gradient(circle at 60% 66%,color-mix(in srgb,var(--collective-color) 74%,white),transparent 48%),
      color-mix(in srgb,var(--collective-color) 30%,white);
    box-shadow:
      inset -12px -13px 24px rgba(15,22,18,.12),
      inset 12px 10px 24px rgba(255,255,255,.62),
      0 18px 44px color-mix(in srgb,var(--collective-color) 18%,transparent);
  }
  .collective-orb::before,
  .collective-orb::after {
    content: "";
    position: absolute;
    inset: -9px;
    border: 1px solid color-mix(in srgb,var(--collective-color) 26%,transparent);
    border-radius: 47% 53% 51% 49%;
    animation: collective-orbit 14s linear infinite;
  }
  .collective-orb::after {
    inset: -16px 0;
    opacity: .5;
    animation-direction: reverse;
    animation-duration: 21s;
  }
  .collective-orb i {
    width: 24%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255,255,255,.8);
    box-shadow: 0 0 22px rgba(255,255,255,.7);
  }
  .collective-orb span {
    position: absolute;
    width: 7px;
    aspect-ratio: 1;
    transform: translate(38px,-13px);
    border-radius: 50%;
    background: var(--collective-color);
    box-shadow: 0 0 14px var(--collective-color);
  }
  @keyframes collective-orbit { to { transform: rotate(1turn); } }

  .coordination-cockpit-copy { min-width: 0; }
  .coordination-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .coordination-cockpit-copy h2 {
    max-width: 760px;
    margin: 8px 0;
    font: 650 clamp(25px,3.2vw,46px)/1.15 "Songti SC","STSong",serif;
    letter-spacing: -.025em;
    text-wrap: balance;
    overflow-wrap: anywhere;
  }
  .coordination-cockpit-copy > p {
    max-width: 760px;
    margin: 0;
    color: var(--text-secondary);
    font-size: clamp(13px,1.2vw,15px);
    line-height: 1.72;
  }
  .coordination-state-facets {
    max-width: 760px;
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .coordination-state-facets > div {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .coordination-state-facets small {
    color: var(--text-muted);
    font-size: 10px;
  }
  .coordination-provenance { margin-top: 13px; }
  .coordination-provenance summary {
    width: max-content;
    min-height: 32px;
    display: flex;
    align-items: center;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 11px;
  }
  .coordination-provenance > div {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  .coordination-provenance span {
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--text-muted);
    background: var(--surface-subtle);
    font-size: 10px;
    overflow-wrap: anywhere;
  }
  .coordination-primary-action {
    min-width: 0;
    display: grid;
    gap: 8px;
    justify-items: stretch;
  }
  .coordination-primary-action .button {
    min-height: 46px;
    border-radius: var(--radius-sm);
    white-space: normal;
  }
  .coordination-primary-action small {
    max-width: 220px;
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
  }

  .coordination-axis-grid {
    margin-top: clamp(22px,3vw,34px);
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 0;
    overflow: visible;
    border-radius: 0;
    background: transparent;
  }
  .coordination-axis {
    min-width: 0;
    padding: 16px;
    background: transparent;
  }
  .coordination-axis + .coordination-axis { border-left: 1px solid var(--divider); }
  .coordination-axis > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
  }
  .coordination-axis > div > span {
    color: var(--text-muted);
    font-size: 11px;
  }
  .coordination-axis > strong {
    margin-top: 12px;
    display: block;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  .coordination-axis > small {
    margin-top: 6px;
    display: block;
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.55;
  }

  .coordination-attention-preview {
    margin-top: clamp(22px,3vw,34px);
    padding-top: clamp(18px,2.5vw,28px);
    border-top: 1px solid var(--divider);
  }
  .coordination-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: var(--space-3);
  }
  .coordination-section-heading h3 { margin: 4px 0 0; }
  .coordination-attention-list {
    margin-top: 14px;
    display: grid;
    gap: 8px;
  }
  .coordination-attention-item {
    --attention-color: var(--warning-fg);
    min-width: 0;
    padding: 17px 16px 17px 19px;
    position: relative;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: inset 3px 0 0 color-mix(in srgb,var(--attention-color) 72%,transparent);
  }
  .coordination-attention-item.severity-critical,
  .coordination-attention-item.severity-high { --attention-color: var(--danger-fg); }
  .coordination-attention-heading {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
  }
  .coordination-attention-heading strong {
    min-width: 0;
    flex: 1 1 260px;
    overflow-wrap: anywhere;
  }
  .coordination-attention-item dl {
    margin: 11px 0 0;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
  }
  .coordination-attention-item dl > div {
    min-width: 0;
    padding-left: 11px;
    border-left: 1px solid var(--divider);
  }
  .coordination-attention-item dt {
    color: var(--text-muted);
    font-size: 9px;
  }
  .coordination-attention-item dd {
    margin: 3px 0 0;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }
  .coordination-attention-action {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .coordination-attention-action > span {
    min-width: 0;
    color: var(--text-muted);
    font-size: 9px;
    overflow-wrap: anywhere;
  }
  .coordination-attention-action > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
  }
  .coordination-calm {
    min-height: 130px;
    padding: 20px;
    display: grid;
    place-content: center;
    text-align: center;
    border-radius: var(--radius-md);
    background: var(--surface-subtle);
  }
  .coordination-calm strong,
  .coordination-calm span { display: block; }
  .coordination-calm strong { color: var(--success-fg); }
  .coordination-calm span {
    max-width: 560px;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.55;
  }

  .coordination-workflow-panel,
  .coordination-command-strip,
  .coordination-decisions,
  .coordination-risk-panel,
  .coordination-load,
  .coordination-governance,
  .coordination-method,
  .studio-agent-runtime,
  .studio-team-panel,
  .studio-timeline-panel,
  .studio-kanban-panel {
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .coordination-workflow-panel,
  .coordination-command-strip,
  .coordination-decisions,
  .coordination-risk-panel,
  .coordination-load,
  .coordination-governance,
  .coordination-method { padding: clamp(16px,2.3vw,26px); }

  .coordination-workflow-panel { min-height: min(780px,calc(var(--viewport-block) - 150px)); }
  .workflow-lazy-placeholder {
    min-height: 480px;
    display: grid;
    place-content: center;
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    background: var(--surface-subtle);
    text-align: center;
  }
  .studio-workflow-shell {
    grid-template-columns: minmax(0,1fr) minmax(240px,300px);
    gap: 12px;
  }
  .studio-workflow-inspector {
    border-radius: var(--radius-md);
    background: var(--surface-subtle);
    box-shadow: none;
  }

  .coordination-view-disclosure {
    margin-top: var(--space-4);
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--surface-cluster);
    overflow: clip;
  }
  .coordination-view-disclosure > summary {
    min-height: 56px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
  }
  .coordination-view-disclosure > summary small { color: var(--text-muted); }
  .coordination-view-disclosure .studio-kanban-panel { margin-top: 0; }

  .coordination-command-strip {
    display: grid;
    grid-template-columns: minmax(260px,1fr) minmax(0,1.25fr);
    gap: var(--space-5);
    align-items: center;
  }
  .coordination-command-strip h3 { margin: 4px 0; }
  .coordination-command-strip p {
    margin: 0;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.55;
  }
  .coordination-command-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
  }
  .coordination-command-actions .button { min-height: 40px; border-radius: var(--radius-sm); }

  .coordination-secondary-grid {
    margin-top: var(--space-4);
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: var(--space-4);
  }
  .coordination-decisions,
  .coordination-risk-panel { min-height: 0; max-height: none; }
  .coordination-decision-list { margin-top: 14px; display: grid; gap: 1px; background: var(--divider); }
  .coordination-decision-list article {
    min-width: 0;
    padding: 13px 0;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto auto;
    gap: 12px;
    align-items: center;
    background: transparent;
  }
  .coordination-decision-list article > div { min-width: 0; }
  .coordination-decision-list strong,
  .coordination-decision-list small { display: block; overflow-wrap: anywhere; }
  .coordination-decision-list small {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.5;
  }
  .coordination-decision-list article > span {
    color: var(--text-muted);
    font-size: 10px;
    white-space: nowrap;
  }
  .coordination-risk-panel .coordination-attention-list.is-full {
    max-height: 620px;
    padding-right: 4px;
    overflow: auto;
  }
  .coordination-method p {
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.65;
  }
  .coordination-method dl { margin: 14px 0 0; display: grid; gap: 1px; background: var(--divider); }
  .coordination-method dl > div {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    background: transparent;
  }
  .coordination-method dt { color: var(--text-muted); font-size: 10px; }
  .coordination-method dd {
    margin: 0;
    font-size: 10px;
    text-align: right;
    overflow-wrap: anywhere;
  }

  .coordination-load-row,
  .agent-runtime-run,
  .studio-work-card {
    border: 0;
    background: var(--cc-surface-row);
    box-shadow: none;
  }
  .studio-kanban-column {
    border: 0;
    border-left: 1px solid var(--divider);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .studio-kanban-column:first-child { border-left: 0; }
  .agent-runtime-run.is-active,
  .studio-work-card.is-blocked { box-shadow: inset 3px 0 0 var(--warning-fg); }
  .studio-kanban {
    border: solid var(--divider);
    border-width: 1px 0;
    border-radius: 0;
    background: transparent;
  }

  body.visual-motion-paused .collective-orb::before,
  body.visual-motion-paused .collective-orb::after { animation-play-state: paused; }

  @media (max-width: 1100px) {
    .coordination-cockpit-main { grid-template-columns: auto minmax(0,1fr); }
    .coordination-primary-action {
      grid-column: 1 / -1;
      grid-template-columns: minmax(170px,max-content) minmax(0,1fr);
      align-items: center;
      justify-items: start;
    }
    .coordination-primary-action small { max-width: none; text-align: left; }
    .coordination-command-strip { grid-template-columns: 1fr; }
    .coordination-command-actions { justify-content: flex-start; }
    .studio-workflow-shell { grid-template-columns: 1fr; }
    .studio-workflow-inspector { height: auto; min-height: 230px; }
    .coordination-workflow-panel { min-height: 0; }
  }

  @media (max-width: 780px) {
    .studio-page-header { margin-bottom: var(--space-3); }
    .coordination-lens-tabs {
      top: calc(var(--topbar) + 4px);
      width: 100%;
      justify-content: flex-start;
      border-radius: var(--radius-lg);
    }
    .coordination-lens-tabs button { min-width: max(78px,24%); padding-inline: 10px; }
    .coordination-cockpit-main { grid-template-columns: 1fr; justify-items: start; }
    .collective-orb { width: 76px; }
    .collective-orb span { transform: translate(27px,-10px); }
    .coordination-primary-action {
      width: 100%;
      grid-column: auto;
      grid-template-columns: 1fr;
      justify-items: stretch;
    }
    .coordination-primary-action small { text-align: left; }
    .coordination-axis-grid,
    .coordination-attention-item dl,
    .coordination-secondary-grid { grid-template-columns: 1fr; }
    .coordination-axis-grid { gap: 1px; }
    .coordination-attention-action { align-items: stretch; flex-direction: column; }
    .coordination-attention-action > div { display: grid; justify-content: stretch; }
    .coordination-attention-action .button { width: 100%; min-height: var(--touch-target); }
    .coordination-section-heading { align-items: flex-start; }
    .coordination-decision-list article { grid-template-columns: minmax(0,1fr) auto; }
    .coordination-decision-list article .button { grid-column: 1 / -1; width: 100%; }
    .coordination-command-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .coordination-command-actions .button { width: 100%; min-height: var(--touch-target); white-space: normal; }
  }

  @media (max-width: 520px) {
    .studio-page-header .hero-kicker { font-size: 9px; }
    .studio-page-header h1 { font-size: clamp(29px,10vw,40px); }
    .coordination-cockpit { padding: 18px 14px; border-radius: 22px; }
    .coordination-cockpit-copy h2 { font-size: clamp(24px,8.5vw,34px); }
    .coordination-axis,
    .coordination-attention-item,
    .coordination-workflow-panel,
    .coordination-command-strip,
    .coordination-decisions,
    .coordination-risk-panel,
    .coordination-load,
    .coordination-governance,
    .coordination-method { padding: 14px; }
    .coordination-lens-tabs button { min-width: 76px; }
    .coordination-lens-tabs button b { min-width: 18px; padding-inline: 4px; }
    .coordination-section-heading { display: grid; }
    .coordination-command-actions { grid-template-columns: 1fr; }
    .coordination-decision-list article { grid-template-columns: 1fr; }
    .coordination-decision-list article .button { grid-column: auto; }
    .coordination-method dl > div { display: grid; }
    .coordination-method dd { text-align: left; }
    .workflow-legend { justify-content: flex-start; }
    .studio-kanban { grid-template-columns: repeat(5,minmax(230px,82vw)); }
  }

  @media (prefers-reduced-motion: reduce) {
    .collective-orb::before,
    .collective-orb::after { animation: none; }
  }
}

@layer pages {
  .studio-summon-lane {
    margin: 0 0 clamp(18px,3vw,34px);
    padding: clamp(18px,2.4vw,30px) 0;
    border: solid color-mix(in srgb,var(--divider) 72%,transparent);
    border-width: 1px 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .studio-summon-lane .card-header { padding-inline: clamp(2px,1vw,12px); }
  .summon-lane-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 11px;
  }
  .summon-lane-list {
    margin-top: 18px;
    display: grid;
    gap: 1px;
    background: color-mix(in srgb,var(--divider) 60%,transparent);
  }
  .summon-lane-item {
    min-width: 0;
    padding: 15px 10px;
    display: grid;
    grid-template-columns: 24px minmax(0,1fr) auto;
    align-items: center;
    gap: 13px;
    background: color-mix(in srgb,var(--canvas) 82%,transparent);
  }
  .summon-lane-item:hover { background: color-mix(in srgb,var(--accent-bg) 22%,transparent); }
  .summon-lane-pulse {
    width: 20px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb,var(--accent-fg) 32%,transparent);
    border-radius: 50%;
  }
  .summon-lane-pulse i {
    width: 6px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--accent-fg);
    box-shadow: 0 0 14px color-mix(in srgb,var(--accent-fg) 72%,transparent);
  }
  .summon-lane-item.is-running .summon-lane-pulse,
  .summon-lane-item.is-queued .summon-lane-pulse,
  .summon-lane-item.is-cancelling .summon-lane-pulse { animation: summon-pulse 1.8s ease-in-out infinite; }
  .summon-lane-item.is-completed .summon-lane-pulse i { background: var(--success-fg); }
  .summon-lane-item.is-failed .summon-lane-pulse i,
  .summon-lane-item.is-blocked .summon-lane-pulse i { background: var(--danger-fg); }
  .summon-lane-main { min-width: 0; }
  .summon-lane-main > div {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
  }
  .summon-lane-main > div strong { font-size: 14px; }
  .summon-lane-main > p {
    margin: 4px 0 7px;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.5;
  }
  .summon-lane-main > .summon-state-axes {
    margin: 0 0 8px;
    gap: 5px;
  }
  .summon-state-axes span {
    padding: 2px 7px;
    border: 1px solid color-mix(in srgb,var(--divider) 72%,transparent);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 9px;
  }
  .summon-lane-main > span {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }
  .summon-lane-main > span i {
    padding: 2px 7px;
    border-radius: 999px;
    background: color-mix(in srgb,var(--accent-bg) 38%,transparent);
    color: var(--text-soft);
    font-size: 10px;
    font-style: normal;
  }
  .summon-lane-main > span small { color: var(--text-muted); }
  .summon-lane-empty {
    min-height: 110px;
    padding: 20px 10px;
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(90deg,color-mix(in srgb,var(--accent-bg) 15%,transparent),transparent 48%);
  }
  .summon-lane-empty strong { display: block; margin-bottom: 5px; }
  .summon-lane-empty p { margin: 0; color: var(--text-soft); }
  .summon-pause-truth {
    margin: 12px 8px 0;
    color: var(--warning-fg);
    font-size: 11px;
  }

  .summon-orbit {
    width: 58px;
    aspect-ratio: 1;
    position: relative;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 32%,rgba(255,255,255,.9),color-mix(in srgb,var(--accent-bg) 70%,transparent) 18%,transparent 58%);
  }
  .summon-orbit::before,
  .summon-orbit::after {
    content: "";
    position: absolute;
    inset: 9px 2px;
    border: 1px solid color-mix(in srgb,var(--accent-fg) 34%,transparent);
    border-radius: 50%;
    transform: rotate(34deg);
  }
  .summon-orbit::after { transform: rotate(-34deg); }
  .summon-orbit i {
    width: 15px;
    aspect-ratio: 1;
    border-radius: 45% 55% 52% 48%;
    background: linear-gradient(145deg,#fff,var(--accent-fg));
    box-shadow: 0 0 24px color-mix(in srgb,var(--accent-fg) 58%,transparent);
    animation: summon-core 3.6s ease-in-out infinite;
  }
  .summon-orbit b,
  .summon-orbit em {
    width: 5px;
    aspect-ratio: 1;
    position: absolute;
    border-radius: 50%;
    background: var(--accent-fg);
    animation: summon-orbit 4.6s linear infinite;
  }
  .summon-orbit em { animation-direction: reverse; animation-duration: 6s; }

  .summon-command-form { display: grid; gap: 18px; }
  .summon-command-intro {
    padding: 4px 2px 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid var(--divider);
  }
  .summon-command-intro strong { font-size: 16px; }
  .summon-command-intro p { margin: 5px 0 0; color: var(--text-soft); line-height: 1.6; }
  .summon-intent-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 13px;
  }
  .summon-intent-grid > label {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 6px;
  }
  .summon-intent-grid > label > span { color: var(--text-soft); font-size: 11px; font-weight: 720; }
  .summon-intent-grid > label > small { color: var(--text-muted); font-size: 10px; line-height: 1.5; }
  .summon-intent-grid .full { grid-column: 1 / -1; }
  .summon-advanced-settings {
    padding: 10px 0;
    border: solid var(--divider);
    border-width: 1px 0;
  }
  .summon-advanced-settings > summary {
    cursor: pointer;
    color: var(--text-soft);
    font-size: 12px;
  }
  .summon-advanced-settings > .summon-intent-grid { margin-top: 13px; }
  .summon-context-picker {
    padding: 10px 0;
    border: solid var(--divider);
    border-width: 1px 0;
  }
  .summon-context-picker summary { cursor: pointer; color: var(--text-soft); font-size: 12px; }
  .summon-context-picker > div { margin-top: 9px; display: grid; gap: 5px; }
  .summon-context-picker label { display: flex; align-items: center; gap: 8px; font-size: 11px; }
  .summon-resolve-action {
    padding-top: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  .summon-resolve-action span { color: var(--text-muted); font-size: 10px; }
  .summon-preview:empty { display: none; }
  .summon-preview {
    padding-top: 18px;
    border-top: 1px solid var(--divider);
  }
  .summon-preview-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
  }
  .summon-preview-heading h4 { margin: 4px 0 0; font-size: 18px; }
  .summon-target-tabs {
    margin: 16px 0 10px;
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--divider);
  }
  .summon-target-tabs button {
    margin-bottom: -1px;
    padding: 9px 12px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
  }
  .summon-target-tabs button.is-active { border-bottom-color: var(--accent-fg); color: var(--ink); }
  .summon-target-tabs button span { margin-left: 4px; font-size: 10px; }
  .summon-target-panel { display: grid; gap: 1px; background: var(--divider); }
  .summon-target-panel[hidden] { display: none; }
  .summon-target {
    min-width: 0;
    padding: 13px 9px;
    display: grid;
    grid-template-columns: 18px 34px minmax(0,1fr);
    align-items: start;
    gap: 10px;
    background: color-mix(in srgb,var(--canvas) 92%,transparent);
    cursor: pointer;
  }
  .summon-target:has(input:checked) { background: color-mix(in srgb,var(--accent-bg) 35%,var(--canvas)); }
  .summon-target.is-disabled { opacity: .48; cursor: not-allowed; }
  .summon-target input { margin-top: 8px; }
  .summon-target-avatar {
    width: 32px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb,var(--accent-bg) 60%,transparent);
    color: var(--accent-fg);
    font-size: 10px;
    font-weight: 800;
  }
  .summon-target-main { min-width: 0; }
  .summon-target-main > span:first-child { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
  .summon-target-main em { color: var(--text-muted); font-size: 9px; font-style: normal; }
  .summon-target-main > small { display: block; margin-top: 3px; color: var(--text-muted); }
  .summon-target-main p { margin: 6px 0; color: var(--text-soft); font-size: 11px; line-height: 1.5; }
  .summon-target-capabilities { display: flex; gap: 5px; flex-wrap: wrap; }
  .summon-target-capabilities i {
    padding: 2px 6px;
    border-radius: 999px;
    background: color-mix(in srgb,var(--accent-bg) 34%,transparent);
    color: var(--text-muted);
    font-size: 9px;
    font-style: normal;
  }
  .summon-target-empty,
  .summon-preview-stale,
  .summon-preview-error {
    padding: 18px;
    background: color-mix(in srgb,var(--accent-bg) 20%,transparent);
    color: var(--text-soft);
    font-size: 12px;
  }
  .summon-preview-error { color: var(--danger-fg); }
  .summon-gap,
  .summon-context-proof {
    margin-top: 12px;
    display: grid;
    grid-template-columns: max-content minmax(0,1fr);
    gap: 10px;
    color: var(--text-soft);
    font-size: 11px;
  }
  .summon-gap strong { color: var(--warning-fg); }
  .summon-boundaries { margin-top: 12px; color: var(--text-muted); font-size: 11px; }
  .summon-boundaries summary { cursor: pointer; }
  .summon-boundaries li { margin: 6px 0; line-height: 1.55; }
  .summon-confirm {
    margin-top: 16px;
    padding: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    border: solid var(--divider);
    border-width: 1px 0;
    color: var(--text-soft);
    font-size: 11px;
  }
  .summon-dispatch-button { margin-top: 12px; width: 100%; }
  .summon-modal-actions { margin-top: -8px; }

  @keyframes summon-pulse {
    50% { transform: scale(1.12); box-shadow: 0 0 0 7px color-mix(in srgb,var(--accent-bg) 25%,transparent); }
  }
  @keyframes summon-core {
    50% { transform: rotate(25deg) scale(1.12); }
  }
  @keyframes summon-orbit {
    from { transform: rotate(0deg) translateX(23px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(23px) rotate(-360deg); }
  }

  @media (max-width: 780px) {
    .summon-lane-item { grid-template-columns: 22px minmax(0,1fr); }
    .summon-lane-item > .button { grid-column: 2; justify-self: start; }
    .summon-lane-actions { width: 100%; justify-content: flex-start; }
    .summon-intent-grid { grid-template-columns: 1fr; }
    .summon-intent-grid .full { grid-column: auto; }
  }
  @media (max-width: 520px) {
    .studio-summon-lane .card-header { display: grid; }
    .summon-lane-actions .button { width: 100%; }
    .summon-command-intro { align-items: flex-start; }
    .summon-orbit { width: 46px; }
    .summon-target-tabs { overflow-x: auto; }
    .summon-target-tabs button { white-space: nowrap; }
    .summon-preview-heading { display: grid; }
  }
  @media (prefers-reduced-motion: reduce) {
    .summon-lane-pulse,
    .summon-orbit i,
    .summon-orbit b,
    .summon-orbit em { animation: none; }
  }

  body.visual-motion-paused .summon-lane-pulse,
  body.visual-motion-paused .summon-orbit i,
  body.visual-motion-paused .summon-orbit b,
  body.visual-motion-paused .summon-orbit em { animation-play-state: paused; }
}
