.agent-studio{width:100%;max-width:960px;margin:20px auto 32px;color:var(--agent-ink)}.agent-studio[hidden]{display:none}.agent-studio .agent-workflow-context{position:relative;gap:12px;border-bottom:1px solid var(--agent-line);padding:0 0 18px}.agent-stage{font-size:12px!important}.agent-message{margin:22px 0;padding:0 0 22px;border-bottom:1px solid var(--agent-line)}.agent-user-message{background:var(--agent-control);padding:14px 18px;border-radius:16px 16px 3px 16px;margin-left:auto;max-width:85%;white-space:pre-wrap}.agent-short-reply{white-space:pre-wrap;line-height:1.85;margin:20px 0 10px}.agent-document-card{padding:20px;border:1px solid var(--agent-line);border-radius:14px;background:var(--agent-surface);margin:16px 0}.agent-document-card h3,.agent-plan-card h3{font-size:18px;margin:9px 0}.agent-document-card small,.agent-message>small{color:var(--agent-muted)}.agent-plan-card{margin:18px 0}.agent-plan-card .agent-plan-price{font-size:15px;font-weight:600;margin:18px 0 10px}.agent-plan-card>button{background:var(--agent-ink);color:var(--agent-surface);min-width:110px}.agent-plan-card .agent-plan-parameters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.agent-plan-parameters fieldset{min-width:0}.agent-plan-parameters .conversation-duration{grid-column:1/-1}.agent-studio .agent-document-reader{width:min(920px,calc(100vw - 32px));max-height:85vh;margin:auto;padding:26px;border:1px solid var(--agent-line);border-radius:16px;background:var(--agent-surface);color:var(--agent-ink)}.agent-document-reader::backdrop{background:#000a}.agent-document-heading{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.agent-document-heading h2{flex:1;font-size:20px}.agent-workflow pre.agent-document-body,.agent-document-page pre{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;font:inherit;max-height:none;padding:20px 0}.agent-legacy-workflow{margin:20px 0}.agent-studio-intro{color:var(--agent-muted);line-height:1.9}.agent-document-page{background:#111;color:#eee;font:16px/1.8 system-ui,sans-serif;margin:0;padding:30px}.agent-document-page main{max-width:900px;margin:auto}.agent-document-page a{color:inherit}.agent-document-page header{border-bottom:1px solid #444}.agent-document-page button{background:#eee;color:#111;border:0;border-radius:8px;padding:10px 16px;cursor:pointer}@media(max-width:640px){.agent-studio{margin:12px 0}.agent-plan-card .agent-plan-parameters{grid-template-columns:1fr}.agent-document-card,.agent-plan-card{padding:14px}.agent-user-message{max-width:94%}.agent-studio .agent-document-reader{padding:18px}.agent-document-page{padding:18px}}

body.agent-conversation .conversation-heading,body.agent-conversation .context-note,body.agent-conversation #message-list>.studio-welcome{display:none!important}
body.agent-conversation .conversation{padding-top:24px}
body.agent-conversation .agent-studio{margin-top:0}
.agent-project-tools{font-size:12px;color:var(--agent-muted);margin:12px 0}.agent-project-tools>summary{width:max-content}.agent-studio .agent-project-tools .agent-workflow-context{border:0;padding:12px 0}.agent-project-tools select{max-width:340px}.agent-workflow-notice:empty{display:none}.agent-billing-details{font-size:12px;color:var(--agent-muted);margin:10px 0}.agent-billing-details summary{width:max-content}.agent-billing-details p{margin:5px 0}.agent-receiving{font-size:12px;color:var(--agent-muted)}

/* Agent guidance uses the same neutral surfaces as the existing composer. */
.agent-preferences-menu,.agent-stage-dock{--agent-ink:#ededed;--agent-muted:#aaa;--agent-surface:#202020;--agent-control:#2b2b2b;--agent-line:#444}
body[data-account-theme=light] .agent-preferences-menu,body[data-account-theme=light] .agent-stage-dock{--agent-ink:#252525;--agent-muted:#626262;--agent-surface:#fff;--agent-control:#eee;--agent-line:#ccc}
body.agent-conversation .agent-studio{max-width:880px;line-height:1.75}
.agent-studio .agent-message{margin:0 0 34px;padding:0;border:0;min-width:0}
.agent-message-date{display:block;margin:0 0 14px;color:var(--agent-muted);font-size:12px}
.agent-user-message{width:fit-content;margin-top:0;margin-bottom:26px;overflow-wrap:anywhere}
.agent-short-reply{font-size:15px;overflow-wrap:anywhere}
.agent-studio .agent-document-card{max-width:620px;padding:18px 20px;background:var(--agent-surface);border-color:var(--agent-line);display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:16px}
.agent-document-card:before{content:'MD';grid-row:1/5;align-self:start;border-radius:7px;background:var(--agent-control);color:var(--agent-ink);font-size:13px;font-weight:700;padding:18px 8px;text-align:center}
.agent-document-card>*{grid-column:2}.agent-document-card h3{font-size:16px;margin:3px 0}.agent-document-card p{font-size:12px;color:var(--agent-muted);margin:3px 0 8px}.agent-document-card .agent-workflow-actions{gap:6px;margin:0}.agent-document-card button{font-size:12px;padding:6px 10px;margin:3px 0}
.agent-studio .agent-plan-card{max-width:680px;padding:22px;border-color:var(--agent-line)}
.agent-plan-summary h3{font-size:17px;margin:7px 0}.agent-plan-summary p{color:var(--agent-muted);font-size:13px;margin:8px 0 14px;overflow-wrap:anywhere}.agent-plan-specs{display:flex;flex-wrap:wrap;gap:8px}.agent-plan-specs span{background:var(--agent-control);padding:5px 10px;border-radius:6px;font-size:12px;overflow-wrap:anywhere}
.agent-studio .agent-guidance-actions,.agent-result-next{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:14px 0 0}.agent-guidance-actions small,.agent-result-next small{flex-basis:100%}.agent-studio .agent-guidance-actions button,.agent-result-next button{font-size:12px;margin:0;border-color:var(--agent-line);border-radius:18px;padding:7px 13px}
.agent-project-tools{margin-top:30px}.agent-billing-details summary{font-size:11px;opacity:.8}
.agent-task-progress{padding:12px 0 18px;max-width:620px}.agent-progress-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}.agent-progress-line strong{font-size:14px;font-weight:500}.agent-progress-line small{margin-left:auto}.agent-task-progress .agent-step-status{display:block;margin-top:8px}.agent-progress-note{font-size:12px;line-height:1.7;margin:6px 0;color:var(--agent-muted)}
.agent-spinner{display:inline-block;width:14px;height:14px;flex:0 0 14px;border:2px solid var(--agent-line);border-top-color:var(--agent-ink);border-radius:50%;animation:agent-spin 1s linear infinite;box-sizing:border-box}
.agent-progress-track{height:3px;background:var(--agent-control);border-radius:3px;overflow:hidden}.agent-progress-track>span{display:block;height:100%;background:var(--agent-ink);opacity:.65}.agent-progress-track.indeterminate>span{width:30%;animation:agent-travel 1.8s ease-in-out infinite}
.agent-media-pending{min-height:190px;border:1px solid var(--agent-line);border-radius:10px;background:var(--agent-control);display:flex;align-items:center;justify-content:center;gap:12px;font-size:13px;color:var(--agent-muted);padding:20px;text-align:center}
.agent-stage-dock{width:100%;max-width:880px;margin:0 auto 7px;padding:10px 16px;display:flex;align-items:center;gap:10px;background:var(--agent-surface);color:var(--agent-ink);border:1px solid var(--agent-line);border-radius:14px;text-align:left;font-size:12px;cursor:pointer;box-sizing:border-box}.agent-stage-dock[hidden]{display:none!important}.agent-stage-dock>span:nth-child(2){flex:1}.agent-stage-dot{width:6px;height:6px;border-radius:50%;background:#a9caba}
.agent-studio .agent-plan-dialog{box-sizing:border-box;width:min(660px,calc(100vw - 24px));max-height:calc(100dvh - 48px);overflow:auto;margin:auto;border:1px solid var(--agent-line);border-radius:18px;background:var(--agent-surface);color:var(--agent-ink);padding:24px}.agent-plan-dialog::backdrop{background:#000a;backdrop-filter:blur(3px)}.agent-dialog-heading{display:flex;align-items:center;justify-content:space-between;font-size:18px;font-weight:600}.agent-dialog-heading button{font-size:12px}.agent-dialog-note{font-size:12px;color:var(--agent-muted);margin:4px 0 18px}.agent-plan-dialog>.agent-plan-price{padding-top:12px;border-top:1px solid var(--agent-line)}.agent-plan-dialog>button{width:100%;background:var(--agent-ink);color:var(--agent-surface);padding:12px;margin:0}.agent-plan-dialog .agent-plan-parameters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.agent-plan-dialog .studio-param-group{min-width:0}.agent-plan-dialog .agent-step-editor>button{font-size:12px}.agent-plan-dialog input,.agent-plan-dialog select{width:100%}
.agent-preferences-menu .custom-settings-grid{display:block}.agent-preference-layout{display:grid;grid-template-columns:minmax(0,240px) minmax(0,1fr);gap:22px;color:var(--agent-ink)}.agent-preference-models{display:flex;flex-direction:column;gap:5px;max-height:350px;overflow:auto;padding-right:12px;border-right:1px solid var(--agent-line)}
.agent-preferences-menu button.agent-preference-model{width:100%;display:flex;align-items:center;gap:10px;flex-shrink:0;text-align:left;padding:10px 9px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--agent-ink);font:inherit;font-size:12px;line-height:1.55;cursor:pointer;white-space:normal}.agent-preference-model>span:nth-child(2){flex:1}.agent-preferences-menu .agent-preference-model[aria-checked=true]{border-color:var(--agent-line);background:var(--agent-control)}.agent-preferences-menu .agent-preference-model:disabled{opacity:.4;cursor:default}.agent-preference-fields{min-width:0;display:flex;flex-direction:column;gap:12px;font-size:13px}.agent-preference-fields>strong{font-size:14px}.agent-preference-fields>p{line-height:1.9;color:var(--agent-muted);margin:0}.agent-preference-fields>small{font-size:12px;line-height:1.8;color:var(--agent-muted);margin-top:auto}.agent-preference-fields fieldset{min-width:0}.agent-preference-fields label{display:grid;gap:6px}.agent-preference-fields select{max-width:100%;width:100%}.agent-preferences-menu .custom-note{margin-top:18px}
@keyframes agent-spin{to{transform:rotate(360deg)}}@keyframes agent-travel{0%{transform:translateX(-100%)}100%{transform:translateX(450%)}}
@media(prefers-reduced-motion:reduce){.agent-spinner,.agent-progress-track.indeterminate>span{animation:none}.agent-progress-track.indeterminate>span{width:100%;opacity:.25}}
@media(max-width:640px){body.agent-conversation .conversation{padding-top:14px}.agent-studio .agent-document-card{padding:14px;column-gap:12px}.agent-document-card .agent-workflow-actions{grid-column:1/-1;margin-top:8px}.agent-studio .agent-plan-card{padding:16px}.agent-studio .agent-plan-dialog{padding:18px;max-height:calc(100dvh - 24px)}.agent-plan-dialog .agent-plan-parameters{grid-template-columns:1fr}.agent-preference-layout{grid-template-columns:minmax(0,1fr);gap:16px}.agent-preference-models{max-height:156px;border-right:0;border-bottom:1px solid var(--agent-line);padding:0 0 10px}.agent-stage-dock{font-size:11px}.agent-media-pending{min-height:140px}.agent-project-tools select{max-width:100%}}

.agent-preferences-menu>.custom-note{display:block;width:100%;max-width:none;box-sizing:border-box;line-height:1.8}.agent-preference-fields>label>select{padding:9px 10px;border-radius:7px;border:1px solid var(--agent-line);background:var(--agent-control);color:var(--agent-ink)}.agent-preference-fields>.structured-field{order:4}.agent-preference-fields>.structured-field input[type=checkbox]{width:17px;height:17px;accent-color:#888}
.agent-plan-dialog .studio-param-choice[aria-pressed=true]{background:var(--agent-control)!important;border-color:var(--agent-muted)!important;color:var(--agent-ink)!important}.agent-plan-dialog .structured-field input[type=checkbox]{width:18px;height:18px;accent-color:#888}.agent-plan-dialog .studio-ratio-shape{border-color:var(--agent-muted)!important}
body.agent-conversation[data-account-theme=light] .chat-composer-wrap{background:#fff!important;border-color:#d7d7d7!important;color:#252525!important}body.agent-conversation[data-account-theme=light] .chat-composer-wrap :is(#chat-editor,#chat-input,.composer-mode-button){color:#252525!important}body.agent-conversation[data-account-theme=light] .chat-composer-wrap :is(.chat-tools button,.chat-compatibility){color:#626262!important}

/* v64: one readable, editable private document surface. */
.agent-studio .agent-document-reader{box-sizing:border-box;width:min(1100px,calc(100vw - 28px));height:90dvh;max-height:90dvh;padding:22px 30px;overflow:auto}.agent-document-toolbar,.agent-document-actions{display:flex;gap:7px;flex-wrap:wrap;align-items:center;padding:12px 0;border-bottom:1px solid var(--agent-line,#444)}.agent-document-toolbar{position:sticky;top:-22px;z-index:1;background:var(--agent-surface,#202020)}.agent-document-toolbar button,.agent-document-actions button{font:inherit;font-size:12px;border-radius:7px;border:1px solid var(--agent-line,#444);padding:7px 12px;background:var(--agent-control,#292929);color:inherit;cursor:pointer}.agent-document-actions{position:sticky;bottom:-22px;background:var(--agent-surface,#202020);border-top:1px solid var(--agent-line,#444);border-bottom:0}.agent-rich-document{font:15px/1.85 system-ui,sans-serif;max-width:800px;min-height:240px;margin:24px auto;outline:none;overflow-wrap:anywhere;white-space:normal}.agent-rich-document h1{font-size:28px;line-height:1.45;margin:32px 0 22px}.agent-rich-document h2{font-size:22px;line-height:1.5;margin:30px 0 14px}.agent-rich-document h3{font-size:18px;margin:26px 0 12px}.agent-rich-document p{margin:10px 0}.agent-rich-document ul,.agent-rich-document ol{padding-left:26px;margin:12px 0}.agent-rich-document li{margin:7px 0}.agent-rich-document blockquote{margin:16px 0;padding:4px 16px;border-left:3px solid var(--agent-line,#555);color:var(--agent-muted,#aaa)}.agent-rich-document pre{white-space:pre-wrap;padding:14px;background:var(--agent-control,#2b2b2b);border-radius:7px}.agent-rich-document table{border-collapse:collapse;width:100%;margin:18px 0;table-layout:fixed}.agent-rich-document td,.agent-rich-document th{padding:9px;border:1px solid var(--agent-line,#444);text-align:left}.agent-rich-document a{color:inherit;text-decoration:underline}.agent-document-note{font-size:12px;color:var(--agent-muted,#aaa)}.agent-document-citation{display:flex;align-items:center;gap:12px;margin:0 0 8px;font-size:12px;max-width:100%;overflow-wrap:anywhere;padding:5px 8px}.agent-document-citation[hidden]{display:none}.agent-document-citation button{font:inherit;border:0;background:transparent;color:inherit;text-decoration:underline;cursor:pointer}.agent-plan-specs[role=button]{cursor:pointer}.agent-plan-specs[role=button]:hover{outline:1px solid var(--agent-line);border-radius:7px}.agent-plan-dialog .agent-plan-review{display:flex;align-items:start;gap:8px;font-size:12px}.agent-plan-dialog .agent-plan-review input{width:18px;flex:0 0 18px;margin-top:4px}.agent-document-page{--agent-ink:#eee;--agent-surface:#202020;--agent-control:#292929;--agent-muted:#aaa;--agent-line:#444}.agent-document-page main{max-width:1100px}.agent-document-page #content{padding:20px 30px;background:var(--agent-surface);border-radius:12px}.agent-document-page .agent-document-heading h2{font-size:19px}.agent-document-toolbar[hidden]{display:none}
@media(max-width:640px){.agent-studio .agent-document-reader{padding:14px;height:94dvh;max-height:94dvh}.agent-document-heading h2{flex-basis:100%;font-size:17px}.agent-rich-document{font-size:14px}.agent-rich-document h1{font-size:23px}.agent-rich-document h2{font-size:20px}.agent-document-page #content{padding:14px}.agent-document-toolbar{top:-14px}.agent-document-actions{bottom:-14px}.agent-document-citation{flex-wrap:wrap}}

/* v65: controls stay in view; only the private document body scrolls. */
.agent-studio .agent-document-reader[open],.agent-document-page #content:has(.agent-document-controls){display:flex;flex-direction:column;overflow:hidden;padding:0}
.agent-document-controls{flex:0 0 auto;padding:16px 24px 0;background:var(--agent-surface,#202020);border-bottom:1px solid var(--agent-line,#444);z-index:1}
.agent-document-controls .agent-document-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.agent-document-controls h2{flex:1;min-width:160px;margin:0;font-size:18px;overflow-wrap:anywhere}.agent-document-controls .agent-document-toolbar,.agent-document-controls .agent-document-actions{position:static;border:0;padding:8px 0;margin:0}.agent-document-controls .agent-document-actions{justify-content:flex-end}.agent-document-controls .agent-document-toolbar{border-top:1px solid var(--agent-line,#444);gap:4px}.agent-document-controls button{margin:0!important}
.agent-document-scroll{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 30px}.agent-document-reader>.agent-document-note,.agent-document-page #content>.agent-document-note{flex:0 0 auto;margin:0;padding:8px 24px;min-height:18px}.agent-document-page #content:has(.agent-document-controls){height:calc(100dvh - 120px);min-height:360px}
.agent-studio .agent-plan-actions{display:flex;gap:8px;margin-top:16px}.agent-studio .agent-plan-card .result-actions,.agent-studio .agent-result-next{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.agent-studio .agent-result-next{border-top:1px solid var(--agent-line);padding-top:14px}.agent-studio .agent-plan-card :is(.result-actions,.agent-result-next) :is(a,button){box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:36px;margin:0;padding:8px 12px;border-radius:8px;font:inherit;font-size:12px;line-height:1.5;border:1px solid var(--agent-line);background:var(--agent-control);color:var(--agent-ink);text-decoration:none}.agent-studio .agent-result-next>small{width:100%;color:var(--agent-muted)}.agent-preview-image{cursor:zoom-in}.agent-preview-image:focus-visible{outline:2px solid var(--agent-ink);outline-offset:3px}
.agent-studio .agent-media-preview{box-sizing:border-box;width:min(1200px,calc(100vw - 24px));height:92dvh;max-height:92dvh;padding:18px;border:1px solid var(--agent-line);border-radius:14px;background:var(--agent-surface);color:var(--agent-ink);overflow:hidden}.agent-media-preview[open]{display:flex;flex-direction:column;gap:12px}.agent-media-preview::backdrop{background:#000c}.agent-media-preview-heading{display:flex;justify-content:space-between;align-items:center;flex:0 0 auto}.agent-media-preview-heading button{margin:0}.agent-studio .agent-media-preview>img,.agent-studio .agent-media-preview>video{width:100%;height:100%;min-height:0;max-height:none;max-width:none;object-fit:contain;flex:1 1 auto;border-radius:0}
@media(max-width:640px){.agent-document-controls{padding:12px 14px 0}.agent-document-controls h2{font-size:16px}.agent-document-controls .agent-document-actions{justify-content:flex-start}.agent-document-scroll{padding:0 16px}.agent-document-controls .agent-document-toolbar{flex-wrap:nowrap;overflow-x:auto}.agent-document-controls .agent-document-toolbar button{white-space:nowrap;flex-shrink:0}.agent-studio .agent-plan-card :is(.result-actions,.agent-result-next) :is(a,button){flex:1 0 auto}}

/* Equal-width options stay aligned even when the final row is incomplete. */
body.composer-refined .agent-preferences-menu .studio-param-choices.studio-ratios,.agent-studio .agent-plan-parameters .studio-param-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;justify-content:initial}
.agent-preferences-menu .studio-param-choices>*,.agent-plan-parameters .studio-param-choices>*{min-width:0;width:100%;margin:0;box-sizing:border-box}
.agent-preferences-menu .structured-field{display:flex;flex-direction:column;gap:6px;margin:0;min-width:0}
.agent-preferences-menu .structured-field select{width:100%;min-width:0;box-sizing:border-box}
.agent-document-actions select{height:38px;border:1px solid #555;border-radius:7px;background:var(--agent-surface,#262626);color:inherit;padding:0 10px;font:inherit}
.agent-document-actions{align-items:center;gap:8px;flex-wrap:wrap}

/* v69: stable continuous waiting animation; there is no invented completion %. */
.agent-progress-track.indeterminate>span{animation:agent-travel 2.4s linear infinite;will-change:transform}
.agent-progress-track:not(.indeterminate)>span{transition:width .6s ease}
.agent-moderation-notice{display:block;font-size:12px;line-height:1.7;color:var(--agent-muted);margin:10px 0}
.agent-studio .agent-plan-dialog .agent-plan-parameters{grid-template-columns:minmax(0,1fr);gap:18px}
.agent-studio .agent-plan-dialog .agent-plan-parameters .studio-param-group{margin:0;padding:0;border:0;min-width:0}
.agent-studio .agent-plan-dialog .agent-plan-parameters .studio-param-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,1fr));gap:8px}
.agent-studio .agent-plan-dialog .agent-plan-parameters .studio-param-choices.studio-ratios{grid-template-columns:repeat(5,minmax(0,1fr))}
.agent-studio .agent-plan-dialog .studio-param-choice{min-width:0;width:100%;min-height:44px;white-space:normal;word-break:normal;line-height:1.4;padding:10px 8px}
.agent-studio .agent-plan-dialog .studio-param-choices:has(>:only-child){grid-template-columns:minmax(0,1fr)}
.agent-studio .agent-plan-dialog .studio-param-choices:has(>:only-child) .studio-param-choice{white-space:nowrap;max-width:none}
.agent-studio .agent-plan-dialog .live-param-note{font-size:12px;line-height:1.6;grid-column:1/-1;margin:0;color:var(--agent-muted)}
.agent-studio .agent-plan-dialog .structured-field{width:100%;margin:0}
@media(prefers-reduced-motion:reduce){.agent-progress-track.indeterminate>span{animation:none}.agent-progress-track:not(.indeterminate)>span{transition:none}}

.agent-studio .agent-plan-dialog .studio-param-choices:has(>:nth-child(4):last-child){grid-template-columns:repeat(4,minmax(0,1fr))}

/* v70: one persistent timeline for Agent and manual media. */
body.studio-continuous .conversation-heading,body.studio-continuous .context-note,body.studio-continuous #message-list>.studio-welcome{display:none!important}
body.studio-continuous .conversation{padding-top:24px}
body.studio-continuous #message-list{display:flex;flex-direction:column;gap:0;max-width:880px;margin-inline:auto;width:100%}
body.studio-continuous .agent-studio,body.studio-continuous .agent-studio-messages{display:contents}
body.studio-continuous .agent-message{width:100%;margin:0 0 34px;padding:0;border:0;min-width:0}
body.studio-continuous .user-message{align-self:flex-end;max-width:85%;margin:16px 0 26px;padding:14px 18px;border-radius:16px 16px 3px 16px;background:var(--agent-control);overflow-wrap:anywhere}
body.studio-continuous .assistant-message{display:block;width:100%;margin-bottom:34px;padding:0;color:var(--agent-ink)}
body.studio-continuous .assistant-copy{width:100%;max-width:680px}
body.studio-continuous .turn-result img,body.studio-continuous .turn-result video{max-width:100%;max-height:440px;object-fit:contain;border-radius:8px}
body.studio-continuous .turn-result .agent-media-preview{width:100%;max-height:80vh;max-width:900px;background:var(--agent-surface);color:var(--agent-ink);border:1px solid var(--agent-line);border-radius:12px}
body.studio-continuous .turn-result .agent-media-preview img,body.studio-continuous .turn-result .agent-media-preview video{max-height:65vh}
.agent-short-reply{white-space:normal}.agent-short-reply p{white-space:pre-wrap;margin:10px 0}.agent-short-reply a{color:inherit;text-decoration:underline;text-underline-offset:3px}.agent-short-reply pre{white-space:pre-wrap}.agent-short-reply table{border-collapse:collapse;max-width:100%}.agent-short-reply td,.agent-short-reply th{padding:8px;border:1px solid var(--agent-line)}
.agent-result-description,.agent-result-guidance{font-size:13px;line-height:1.8;overflow-wrap:anywhere}.agent-result-guidance{flex-basis:100%;color:var(--agent-muted);margin:0 0 5px}
.plan-prompt-tools{display:flex;justify-content:flex-end;gap:8px;margin:8px 0}.plan-prompt-tools button{font-size:12px}
.plan-reference-section{min-width:0;grid-column:1/-1;margin:18px 0}.plan-reference-section h4{font-size:14px;margin:0}.plan-reference-hint,.plan-reference-empty{font-size:12px;color:var(--agent-muted);line-height:1.6}
.plan-reference-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}.plan-reference-card{min-width:0;border:1px solid var(--agent-line);border-radius:9px;padding:8px;background:var(--agent-control)}
.agent-step-editor .plan-reference-thumb{display:flex;align-items:center;justify-content:center;position:relative;padding:0;width:100%;height:104px;overflow:hidden;border:0;background:#161616}
.plan-reference-thumb img,.plan-reference-thumb video{display:block;width:100%;height:100%;object-fit:contain}.plan-video-mark{position:absolute;bottom:5px;right:5px;background:#111c;color:white;padding:2px 6px;font-size:11px}
.plan-reference-name{display:block;font-size:11px;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:6px 0}.plan-reference-actions{display:flex;flex-wrap:wrap;gap:4px}.agent-step-editor .plan-reference-actions button{font-size:11px;padding:5px 7px;margin:0;min-width:0}
.plan-reference-picker{margin-top:14px}.plan-reference-picker summary{font-size:13px;cursor:pointer}
.plan-prompt-dialog,.plan-reference-preview{margin:auto;width:min(800px,calc(100vw - 32px));max-height:85vh;box-sizing:border-box;padding:22px;border-radius:14px;border:1px solid var(--agent-line);background:var(--agent-surface);color:var(--agent-ink)}
.plan-prompt-dialog::backdrop,.plan-reference-preview::backdrop{background:#000a}.plan-prompt-dialog[open]{display:flex;flex-direction:column;gap:14px}.plan-prompt-dialog textarea{box-sizing:border-box;display:block;width:100%;height:50vh;min-height:200px;resize:vertical;padding:14px;line-height:1.9;background:var(--agent-control);color:var(--agent-ink);border:1px solid var(--agent-line);border-radius:8px}.plan-prompt-dialog small{font-size:12px;color:var(--agent-muted)}
.plan-reference-preview img,.plan-reference-preview video{max-width:100%;max-height:60vh;object-fit:contain}.plan-reference-preview .result-actions{display:none}
@media(max-width:600px){.plan-reference-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.plan-prompt-dialog,.plan-reference-preview{padding:14px}.plan-prompt-dialog textarea{height:55vh}.agent-short-reply{font-size:14px}}

.manual-media-progress .agent-step-status,.manual-media-progress .agent-progress-note{display:none}.manual-media-progress .agent-task-progress{padding-bottom:0}.studio-continuous .turn-status{font-size:12px;color:var(--agent-muted);line-height:1.8}

/* v71: one composition surface, shared by pending plan and conversation. */
.agent-plan-binding{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;padding:8px 4px;color:var(--agent-muted,#aaa)}.agent-plan-binding[hidden]{display:none}.agent-plan-binding>span{flex:1}.agent-plan-binding button{font:inherit;padding:5px 9px;border:1px solid var(--agent-line,#444);border-radius:7px;background:var(--agent-control,#2b2b2b);color:inherit}
.agent-step-editor>label[hidden]{display:none!important}.plan-shared-composer{grid-column:1/-1;min-width:0}.plan-shared-composer:empty{display:none}.plan-shared-composer .chat-input-row{display:flex;align-items:flex-start;gap:14px;border:1px solid var(--agent-line,#444);border-radius:12px;background:var(--agent-control,#292929);padding:14px;min-height:160px;box-sizing:border-box;margin:0;width:100%}.plan-shared-composer .rich-prompt{flex:1;min-width:0;min-height:140px;max-height:40vh;overflow:auto;color:var(--agent-ink,#eee);font-size:14px;line-height:1.85;white-space:pre-wrap}.plan-shared-composer .composer-media-tray{flex:0 0 auto;max-width:180px}.plan-shared-composer .composer-media-tray.has-many{max-width:100%;flex-basis:100%}.plan-shared-composer .chat-input-row:has(.has-many){flex-wrap:wrap}.plan-prompt-dialog .rich-prompt{min-height:42vh;max-height:60vh}.agent-plan-dialog .reference-menu,.plan-prompt-dialog .reference-menu{z-index:100}.plan-prompt-tools{flex-wrap:wrap}
body.studio-continuous .assistant-message{width:100%;padding:0;margin:0 0 30px;box-sizing:border-box;display:block;border:0;border-radius:0;background:transparent;box-shadow:none}body.studio-continuous .assistant-copy{box-sizing:border-box;width:100%;max-width:680px;margin:0;padding:24px;border:1px solid var(--agent-line,#444);border-radius:16px;background:var(--agent-surface,#202020);color:var(--agent-ink,#eee)}body.studio-continuous .assistant-copy .turn-status{margin:0 0 14px}body.studio-continuous .assistant-copy .turn-result{margin:0}body.studio-continuous .assistant-copy .agent-result-description{margin:0 0 16px}body.studio-continuous .assistant-copy .agent-result-next{margin-top:18px;padding-top:16px;border-top:1px solid var(--agent-line,#444);display:flex;flex-wrap:wrap;gap:8px}body.studio-continuous .assistant-copy .agent-result-next>small{flex-basis:100%;margin:0 0 4px;color:var(--agent-muted,#aaa)}body.studio-continuous .assistant-copy :is(.agent-result-next,.result-actions)>:is(button,a){box-sizing:border-box;border:1px solid var(--agent-line,#444);border-radius:8px;padding:8px 12px;background:var(--agent-control,#2b2b2b);color:var(--agent-ink,#eee);font-family:inherit;font-size:12px;line-height:1.5;text-decoration:none;cursor:pointer;box-shadow:none}body.studio-continuous .assistant-copy .result-actions{display:flex;flex-wrap:wrap;gap:8px;padding:0;margin-top:12px}body.studio-continuous .assistant-copy .agent-result-next button:hover{background:var(--agent-line,#444)}body.studio-continuous .conversation{padding-top:24px}
@media(max-width:600px){body.studio-continuous .assistant-copy{padding:16px}.plan-shared-composer .chat-input-row{gap:8px;padding:10px}.plan-shared-composer .composer-media-tray{max-width:100px}.plan-shared-composer .rich-prompt{font-size:13px}}
