/* ClipSpeedAI task progress sits inside the independently scrolling agent panel. */
.studio-agent-edit-steps{list-style:none;margin:14px 0 4px;padding:0;display:grid;gap:14px}.studio-agent-edit-steps[hidden]{display:none!important}.studio-agent-edit-steps li{display:grid;grid-template-columns:22px minmax(0,1fr);gap:9px;align-items:start}.studio-agent-edit-check{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#7040d9;color:white;font-size:11px}.studio-agent-edit-steps strong{display:block;font-size:12px;line-height:1.5;font-weight:600}.studio-agent-edit-steps small{display:block;color:#81758f;font-size:10px;line-height:1.6}.studio-edit-helpers{margin-top:20px;font-size:11px;color:#716a80}.studio-edit-helpers summary{cursor:pointer}.studio-edit-helpers .studio-creative-toolbar{margin-block:12px}.studio-edit-helpers .studio-command-suggestions{display:flex;flex-wrap:wrap;gap:6px}.studio-agent-task[data-state="saved"] .studio-agent-indicator{background:#7040d9}
#page-studio .studio-panel-heading[hidden],#studioAgentTask[hidden],#studioAgentSections[hidden],#studioAgentSectionHeading[hidden],#studioAgentNote[hidden]{display:none!important}
.studio-agent-task{margin:0 0 20px;padding:14px;background:#fff;border:1px solid #e6e3eb;border-radius:12px;color:#27252e;min-width:0}
.studio-agent-head{display:flex;align-items:center;gap:9px;margin-bottom:13px}.studio-agent-avatar{display:block;width:32px;height:32px;object-fit:contain;border-radius:9px;background:#f2eefb;padding:3px;box-sizing:border-box}.studio-agent-identity{display:grid;gap:1px;min-width:0}.studio-agent-identity strong{font-size:12px;line-height:1.35;font-weight:650}.studio-agent-identity span{font-size:10px;color:#78717f}.studio-agent-indicator{margin-left:auto;width:6px;height:6px;border-radius:50%;background:#9871db}.studio-agent-task[data-state="ready"] .studio-agent-indicator{background:#548163}.studio-agent-task[data-state="failed"] .studio-agent-indicator{background:#ba665e}.studio-agent-task[data-state="cancelled"] .studio-agent-indicator{background:#89828c}
.studio-agent-title{font-size:13px!important;line-height:1.5;margin:0 0 3px;font-weight:650;letter-spacing:0!important}.studio-agent-detail{font-size:11px;line-height:1.5;color:#78717f;margin:0 0 12px}.studio-agent-steps{list-style:none;display:grid;gap:6px;margin:0 0 15px;padding:0}.studio-agent-steps li{display:grid;grid-template-columns:14px minmax(0,1fr);gap:6px;align-items:center;font-size:10px;line-height:1.35;color:#8b8690}.studio-agent-step-icon{font-size:11px;text-align:center;line-height:15px}.studio-agent-steps li[data-state="complete"]{color:#5f7466}.studio-agent-steps li[data-state="active"]{color:#7549b1;font-weight:600}.studio-agent-steps li[data-state="failed"]{color:#a95751}.studio-agent-steps li[data-state="cancelled"]{color:#78717f}
.studio-agent-section-heading{font-size:8px;letter-spacing:.12em;font-weight:650;color:#88818d;margin:0 0 7px}.studio-agent-sections{max-height:216px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d8d2df transparent;display:grid;gap:6px;padding:1px 3px 1px 1px;outline-offset:2px}.studio-agent-sections:focus-visible{outline:2px solid #8c63c8}.studio-agent-section{display:grid;grid-template-columns:40px minmax(0,1fr);position:relative;column-gap:8px;row-gap:4px;padding:7px;border:1px solid #eeebf1;border-radius:7px;background:#fbfafc;min-width:0}.studio-agent-section[data-state="active"]{border-color:#c9b3e8;background:#f7f2fc}.studio-agent-section[data-state="failed"]{border-color:#e8cbc7;background:#fff9f8}.studio-agent-section-visual{position:relative;width:40px;height:35px;border-radius:4px;overflow:hidden;background:#e9e5ed;grid-row:1/3}.studio-agent-section-visual img{height:100%;width:100%;object-fit:cover;opacity:.86}.studio-agent-section-number{position:absolute;bottom:2px;left:3px;line-height:12px;font-size:8px;font-variant-numeric:tabular-nums;background:#22202abb;color:white;border-radius:2px;padding:0 3px}.studio-agent-section-copy{display:grid;gap:2px;min-width:0}.studio-agent-section-title{font-size:10px;font-weight:550;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#4c4654}.studio-agent-section-source,.studio-agent-section-output{font-size:9px;line-height:1.35;font-variant-numeric:tabular-nums;color:#867e8e}.studio-agent-section-status{grid-column:2;font-size:9px;line-height:1.25;color:#96909d}.studio-agent-section[data-state="active"] .studio-agent-section-status{color:#8051bd;font-weight:600}.studio-agent-section[data-state="prepared"] .studio-agent-section-status,.studio-agent-section[data-state="ready"] .studio-agent-section-status{color:#5e8066}.studio-agent-section[data-state="failed"] .studio-agent-section-status{color:#ad5d55}.studio-agent-note{margin:10px 0 0;color:#8a8292;font-size:9px;line-height:1.6}
#studioTimeline [data-agent-progress="active"]{outline:2px solid #a981e0;outline-offset:-2px;animation:studio-agent-section-arrival .65s ease-out 1}
@keyframes studio-agent-section-arrival{from{box-shadow:inset 0 0 0 5px #a981e077}to{box-shadow:inset 0 0 0 0 #a981e000}}
@media(max-height:850px){.studio-agent-task{padding:12px;margin-bottom:15px}.studio-agent-sections{max-height:174px}.studio-agent-steps{gap:5px;margin-bottom:12px}.studio-agent-head{margin-bottom:10px}}
@media(prefers-reduced-motion:reduce){#studioTimeline [data-agent-progress="active"]{animation:none!important}.studio-agent-task *{animation:none!important;transition:none!important}}
/* A clear brand anchor and readable small type on the light workstation. */
.studio-agent-task{border-color:#e4dbea;box-shadow:0 2px 8px #39224705}.studio-agent-avatar{width:36px;height:36px;padding:4px}.studio-agent-identity strong{font-size:14px;color:#3e2e53}.studio-agent-title{font-size:14px!important}.studio-agent-identity span,.studio-agent-detail{color:#706778}.studio-agent-steps li,.studio-agent-section-heading,.studio-agent-note{color:#736b7b}.studio-agent-section-source,.studio-agent-section-output{color:#716878}.studio-agent-section-status{color:#746b7d}.studio-agent-section[data-state="prepared"] .studio-agent-section-status,.studio-agent-section[data-state="ready"] .studio-agent-section-status{color:#52715a}.studio-agent-steps li[data-state="blocked"]{color:#906057}
.studio-process-agent{display:flex;align-items:center;justify-content:center;gap:9px;margin:0 0 3px;color:#654383;font-size:14px;font-weight:600;letter-spacing:-.15px}.studio-process-agent img{width:31px;height:31px;object-fit:contain;border-radius:8px;background:#f0eaf8;padding:3px;box-sizing:border-box}#studioProcessing .studio-eyebrow[hidden]{display:none!important}
/* Reuse the app's existing .cs-avatar gold-bolt mark and brand gradient verbatim. */
.studio-elite-mark{position:relative;width:38px;height:38px;padding:0;border-radius:12px;background:linear-gradient(135deg,#a855f7 0%,#6366f1 100%);display:flex;align-items:center;justify-content:center;font-size:18px;line-height:1;box-shadow:0 6px 18px rgba(168,85,247,.5),inset 0 1px 0 rgba(255,255,255,.25);flex-shrink:0}
/* One task, condensed journey; native disclosure preserves keyboard behavior. */
.studio-agent-details{margin:0 0 13px}.studio-agent-journey{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;list-style:none;cursor:pointer;padding:9px 0;border-block:1px solid #eee8f3}.studio-agent-journey::-webkit-details-marker,.studio-agent-section-summary::-webkit-details-marker{display:none}.studio-agent-journey:focus-visible,.studio-agent-section-summary:focus-visible{outline:2px solid #9366c8;outline-offset:3px;border-radius:3px}.studio-agent-major{display:flex;align-items:center;gap:5px;min-width:0;font-size:10px;color:#716778}.studio-agent-major-number{display:inline-grid;place-items:center;width:17px;height:17px;border:1px solid #ded5e7;border-radius:50%;font-size:9px;flex-shrink:0}.studio-agent-major:not(:last-child)::after{content:'›';color:#b1a4bf;margin-left:auto}.studio-agent-major[data-state="active"]{color:#7541a7;font-weight:650}.studio-agent-major[data-state="active"] .studio-agent-major-number{border-color:#bd9bda;background:#eee4f9}.studio-agent-major[data-state="complete"] .studio-agent-major-number{background:#eff5ee;border-color:#d2e2d2;color:#52715a}.studio-agent-major[data-state="blocked"]{color:#965247}.studio-agent-details .studio-agent-steps{padding:12px 0 0;margin-bottom:0}.studio-agent-section{display:block;padding:0}.studio-agent-section-summary{display:grid;grid-template-columns:40px minmax(0,1fr) 9px;gap:8px;align-items:center;padding:7px;cursor:pointer;list-style:none}.studio-agent-section-summary::after{content:'›';color:#9c8ca9;font-size:12px;justify-self:end}.studio-agent-section[open] .studio-agent-section-summary::after{transform:rotate(90deg)}.studio-agent-section-copy{gap:4px}.studio-agent-section-status{grid-column:auto}.studio-agent-section-timing{display:grid;gap:3px;padding:0 8px 9px 55px}.studio-agent-section-visual{display:block;grid-row:auto}
.studio-agent-ribbon{display:flex;align-items:center;gap:8px;height:34px;min-height:34px;box-sizing:border-box;flex-shrink:0;padding:5px 18px;border-bottom:1px solid #e8e0ee;background:#faf7fd;color:#51435f;font-size:10px;overflow:hidden}.studio-agent-ribbon[hidden]{display:none!important}.studio-agent-ribbon .studio-elite-mark{width:21px;height:21px;border-radius:6px;font-size:11px;box-shadow:0 2px 7px #a855f733}.studio-agent-ribbon strong{font-weight:600;white-space:nowrap}.studio-agent-ribbon-status{color:#74637f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.studio-agent-ribbon[data-state="ready"] .studio-agent-ribbon-status{color:#52715a}.studio-agent-ribbon[data-state="failed"] .studio-agent-ribbon-status{color:#a25148}
@media(min-width:801px){.studio-stage:has(#studioAgentRibbon:not([hidden])){grid-template-rows:minmax(200px,1fr) calc(var(--timeline-height) + 34px)}}
.studio-agent-journey{padding-right:12px}.studio-agent-journey::after{content:'⌄';position:absolute;right:0;top:10px;color:#826d94;font-size:11px}.studio-agent-details[open]>.studio-agent-journey::after{content:'⌃'}
/* Conversation first: one accepted instruction, one folded task, one composer. */
#studioAgentBrief[hidden],#studioAgentSectionDetails[hidden],#studioSelection[data-section-id=""],#studioSelection:not([data-section-id]){display:none!important}
.studio-agent-brief{margin:0 0 14px 20px;padding:11px 13px;border:1px solid #e7deee;border-radius:12px 12px 3px 12px;background:#f7f1fc;color:#493556;min-width:0}
.studio-agent-brief-label{display:block;font-size:9px;font-weight:600;line-height:1.5;color:#87708f;margin-bottom:4px}
.studio-agent-brief p{font-size:12px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.studio-agent-brief[data-handoff="accepted"]{animation:studio-agent-brief-handoff .32s ease-out 1}
@keyframes studio-agent-brief-handoff{from{opacity:.35;transform:translateX(-16px)}to{opacity:1;transform:translateX(0)}}
.studio-agent-task{padding:11px 12px;margin-bottom:15px;box-shadow:none;border-color:#e9e1ed}
.studio-agent-head{gap:7px;margin-bottom:8px}.studio-agent-head .studio-elite-mark{width:24px;height:24px;border-radius:7px;font-size:12px;box-shadow:0 2px 6px #a855f722}.studio-agent-identity strong{font-size:11px}
.studio-agent-title{font-size:12px!important}.studio-agent-detail{font-size:10px;margin-bottom:8px}.studio-agent-details{margin-bottom:0}.studio-agent-journey{padding-block:8px}.studio-agent-note{margin-top:8px}
.studio-agent-section-details{margin-top:12px;border-top:1px solid #eee8f3;padding-top:9px}.studio-agent-section-heading{font-size:10px;letter-spacing:0;line-height:1.5;font-weight:500;color:#796684;cursor:pointer;margin:0}.studio-agent-section-heading:focus-visible{outline:2px solid #9366c8;outline-offset:3px}
.studio-agent-section-details[open]>.studio-agent-section-heading{margin-bottom:8px}.studio-agent-sections{gap:0;max-height:200px;padding:0 3px 0 0}.studio-agent-section{border:0;border-bottom:1px solid #eee8f3;border-radius:0;background:transparent}.studio-agent-section-summary{grid-template-columns:minmax(0,1fr) 9px;padding:8px 1px}.studio-agent-section-visual{display:none}.studio-agent-section-copy{display:flex;align-items:center;justify-content:space-between;gap:8px}.studio-agent-section-status{flex-shrink:0}.studio-agent-section-timing{padding:0 1px 8px}
#studioPanel-edit .studio-conversation{min-height:0;overflow:auto}#studioPanel-edit .studio-composer-dock{flex:0 0 auto;position:relative}
#studioAgentDetails:not([open])>:not(summary),#studioAgentSectionDetails:not([open])>:not(summary){display:none!important}
@media(prefers-reduced-motion:reduce){.studio-agent-brief[data-handoff="accepted"]{animation:none!important}}
/* Full receipts stay available without repeating a wall of completed work. */
.studio-recent-changes{margin:4px 0 12px;border-bottom:1px solid #ece7f0;padding-bottom:8px}
.studio-recent-changes>summary{cursor:pointer;font-size:10px;line-height:1.6;color:#796684;padding:4px 0}
.studio-recent-changes>summary:focus-visible{outline:2px solid #9366c8;outline-offset:3px;border-radius:3px}
.studio-recent-change-rows{max-height:260px;overflow:auto;margin-top:4px;padding-right:4px}
.studio-recent-change-rows .studio-feed-item{padding:8px 0}.studio-recent-change-rows .studio-feed-item strong{font-size:11px}
.studio-feed-item[data-presentation="compact"]{padding:7px 0;border-bottom:0}.studio-feed-item[data-presentation="compact"] strong{font-size:11px}
#studioRecentChanges[hidden],#studioRecentChanges:not([open])>.studio-recent-change-rows{display:none!important}
