.workflow-mode-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 0 14px;flex-shrink:0;flex-wrap:wrap}
.workflow-modes{display:flex;gap:4px;padding:4px;background:#eae6f4a1;border:1px solid #e2daee;border-radius:13px;max-width:100%}
.workflow-modes button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:9px 17px;background:transparent;border:1px solid transparent;border-radius:9px;font-size:13px;font-weight:600;color:#766781;white-space:nowrap}
.workflow-modes button span{font-size:12px;font-weight:400}.workflow-modes button.active{background:#fffffff0;border-color:#e3d9ed;color:#655091;box-shadow:0 2px 6px #7c66a410}
.workflow-chat-indicator{font-size:12px;color:#77618f}.workflow-panel{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:9px 2px 30px;scrollbar-width:thin;scrollbar-color:#d6cde5 transparent}
.workflow-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:10px 0 15px}.workflow-heading .eyebrow{font-size:10px;letter-spacing:2px}.workflow-heading h2{font-size:24px;font-weight:550;line-height:1.5;margin:8px 0}.workflow-heading p{font-size:13px;line-height:1.8;color:#776582;margin:0;max-width:620px}.workflow-heading>.button{flex-shrink:0}
.workflow-scope{font-size:12px;color:#74607e;line-height:1.8;padding:11px 14px;background:#eae9f7a3;border:1px solid #dfdaee;border-radius:11px;margin:0 0 18px}.workflow-loading{font-size:13px;color:#776582;padding:15px 0}
.workflow-other{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#edf0fab0;border:1px solid #d9ddef;border-radius:12px;padding:12px 16px;margin-bottom:16px;font-size:13px;color:#68628a}.workflow-other .text-button{flex-shrink:0}
.workflow-history{display:flex;align-items:center;gap:10px;margin-bottom:16px;font-size:12px;color:#796483}.workflow-history select{min-width:0;flex:1;max-width:580px;padding:10px;border:1px solid #ded4e9;border-radius:9px;background:#ffffffbd;color:#675374;font:inherit;min-height:40px}.workflow-history select:focus-visible{outline:3px solid #b4a2cf}.workflow-history>.icon-button{font-size:22px}
.workflow-form{padding:22px;border-radius:18px;margin-bottom:22px}.workflow-form>label,.workflow-steer>label{display:block;font-size:14px;font-weight:600;margin:0 0 11px;color:#60516d}.workflow-form textarea,.workflow-steer textarea{width:100%;border:1px solid #ded5eb;border-radius:12px;background:#fff9;padding:13px 15px;font-size:15px;line-height:1.8;resize:vertical;min-height:110px}.workflow-form textarea::placeholder,.workflow-steer textarea::placeholder{color:#95819f}
.workflow-upload-row{display:flex;align-items:center;gap:14px;margin-top:14px;flex-wrap:wrap}.workflow-upload-row>span{font-size:12px;color:#7d6888}.workflow-upload-row .button{font-size:12px;background:#eee7f6;border-color:#e0d6ed}.workflow-upload-row .icon{width:16px;height:16px}
.workflow-file-list{margin:13px 0 0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:8px}.workflow-file-list li{display:flex;align-items:center;gap:10px;max-width:100%;border:1px solid #e4ddec;background:#fffc;border-radius:9px;padding:3px 3px 3px 12px;font-size:12px;color:#6a5579}.workflow-file-list li>span{min-width:0;overflow-wrap:anywhere}.workflow-file-list small{white-space:nowrap;color:#887394}.workflow-file-list .icon-button{min-width:34px;min-height:34px}.workflow-file-list .icon{width:14px;height:14px}
.workflow-submit-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:18px}.workflow-submit-row p{font-size:12px;color:#7c6689;line-height:1.8;margin:0}.workflow-submit-row>.button{flex-shrink:0}
.workflow-overview{padding:22px;border-radius:18px}.workflow-run-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.workflow-status{font-size:12px;font-weight:600;border-radius:20px;padding:6px 10px;background:#ece5f7;color:#725790}.workflow-status[data-status=running],.workflow-status[data-status=queued]{background:#e8e8fb;color:#645990}.workflow-status[data-status=completed]{background:#e4f0e9;color:#447461}.workflow-status[data-status=failed],.workflow-status[data-status=blocked]{background:#f5e5eb;color:#925c6e}.workflow-round{font-size:13px;color:#776482}.workflow-run-top>small{font-size:11px;color:#8b7993;margin-left:auto}.workflow-overview h3{font-size:17px;font-weight:600;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:17px 0 10px}.workflow-summary{font-size:13px;line-height:1.8;color:#766480;white-space:pre-wrap;overflow-wrap:anywhere}.workflow-run-error{font-size:13px;color:#8e425d;line-height:1.8;white-space:pre-wrap;background:#fff4f7;border:1px solid #edd4de;padding:12px;border-radius:10px}
.workflow-stages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;padding:0;margin:21px 0;gap:8px}.workflow-stages li{display:flex;align-items:center;gap:10px;padding:13px 11px;border:1px solid #e4ddec;background:#f3f0f8;border-radius:12px;color:#8e7a9b}.workflow-stages li>span{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#e7dfef;font-size:12px;flex-shrink:0}.workflow-stages li strong{font-size:13px;font-weight:550;display:block}.workflow-stages li small{font-size:10px;display:block;margin-top:3px}.workflow-stages li.active{border-color:#b9a6d6;background:#eee7fa;color:#634989}.workflow-stages li.active>span{background:#8f79b8;color:white}
.workflow-control-row{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #e6deef;padding-top:15px}.workflow-control-row>p{font-size:12px;line-height:1.8;color:#836b90;margin:0}.workflow-control-row>div{display:flex;gap:8px;flex-shrink:0}.workflow-control-row .button{font-size:12px;padding:9px 13px}
.workflow-steer{padding:20px 2px;margin:4px 0 16px}.workflow-steer>div{display:flex;gap:12px;align-items:stretch}.workflow-steer textarea{min-height:75px;resize:vertical;font-size:13px}.workflow-steer button{flex-shrink:0}.workflow-steer small{display:block;color:#7c6788;font-size:12px;margin-top:9px;line-height:1.7}
.workflow-results-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(230px,1fr);gap:18px;margin:20px 0}.workflow-section{min-width:0;border:1px solid #e6e0ef;background:#ffffff85;border-radius:15px;padding:16px}.workflow-section h3{font-size:14px;font-weight:600;margin:0}.workflow-section .section-heading{margin-bottom:14px}.workflow-section .section-heading>span{font-size:11px;color:#85718f}.workflow-empty{font-size:12px;line-height:1.85;color:#8b7895;margin:12px 0}.workflow-side-results{min-width:0;display:flex;flex-direction:column;gap:16px}
.workflow-step{border-bottom:1px solid #e7dfef}.workflow-step:last-child{border-bottom:0}.workflow-step>summary{display:flex;align-items:center;gap:11px;list-style:none;cursor:pointer;min-height:65px;padding:10px 0}.workflow-step>summary::-webkit-details-marker{display:none}.workflow-step-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:10px;background:#ede6f7;color:#8a72aa;flex-shrink:0}.workflow-step summary strong{display:block;font-size:13px;color:#6b547b;font-weight:550}.workflow-step summary small{display:block;font-size:11px;color:#8c7796;margin-top:5px}.workflow-step-arrow{margin-left:auto;color:#a08cab;transition:transform .15s}.workflow-step[open] .workflow-step-arrow{transform:rotate(180deg)}.workflow-step-content{font-size:13px;color:#65546f;line-height:1.85;padding:0 0 16px;max-height:540px;overflow:auto}.workflow-step-content pre{max-width:100%;overflow:auto;white-space:pre;font-size:12px;background:#f0eaf6;padding:12px;border-radius:9px}
.workflow-checkpoint{padding:11px 0;border-bottom:1px solid #e7dfef}.workflow-checkpoint:first-child{padding-top:0}.workflow-checkpoint strong{font-size:13px;color:#6f5780;font-weight:550}.workflow-checkpoint small{display:block;font-size:11px;color:#8a7594;margin-top:5px;line-height:1.6}.workflow-checkpoint p{font-size:12px;color:#806a8d;line-height:1.8;overflow-wrap:anywhere;margin:8px 0}.workflow-checkpoint .text-button{font-size:12px;min-height:36px;padding:5px 0}.workflow-best{font-size:10px;background:#eee2fa;color:#8b60a9;border-radius:5px;padding:3px 6px;margin-left:5px}.workflow-small-note{font-size:11px;color:#8c7795;line-height:1.8;margin-bottom:0}
.workflow-artifact{display:flex;align-items:center;gap:7px;border-top:1px solid #eae2f1;min-width:0}.workflow-artifact:first-child{border-top:0}.workflow-file-preview{display:flex;align-items:center;gap:8px;flex:1;min-width:0;text-align:left;border:0;background:transparent;padding:12px 0;font-size:12px;color:#776083}.workflow-file-preview>span:last-child{min-width:0;overflow-wrap:anywhere}.workflow-file-preview .icon{width:15px;height:15px}.workflow-artifact>.icon-button{flex-shrink:0;min-width:38px;min-height:40px}.workflow-artifact>.icon-button .icon{width:17px;height:17px}
.workflow-events{font-size:12px;color:#826d8d;padding:15px 2px}.workflow-events>summary{cursor:pointer;min-height:30px}.workflow-events ol{list-style:none;padding:0;margin:0}.workflow-events li{display:flex;gap:16px;padding:9px 0;border-top:1px solid #e6ddef;line-height:1.8}.workflow-events time{white-space:nowrap;color:#927e9c;font-size:11px;min-width:92px}.workflow-events li>span{overflow-wrap:anywhere;white-space:pre-wrap;min-width:0}.workflow-file-content{white-space:pre;overflow:auto;max-height:65dvh;padding:16px;font:13px/1.8 Consolas,monospace;background:#eee8f6;border-radius:12px}
.workflow-raw-result{margin:10px 0}.workflow-raw-result>summary{cursor:pointer;font-size:12px;color:#856a96;min-height:32px}.memory-detail-kind{font-size:12px;color:#82649b}.memory-provenance{border-top:1px solid #e3d9ec;margin-top:18px;padding-top:13px}.memory-provenance h3{font-size:13px;font-weight:600}.memory-provenance p{font-size:12px;color:#826b8e;line-height:1.8}.memory-provenance .button{font-size:12px;margin:0 8px 8px 0}
@media(max-width:1000px){.workflow-modes button{padding:9px 13px}.workflow-modes button span{display:none}.workflow-results-grid{grid-template-columns:1fr}.workflow-side-results{display:grid;grid-template-columns:1fr 1fr}.workflow-stages li{gap:7px;padding:11px 8px}.workflow-stages li>span{width:23px;height:23px}}
@media(max-width:720px){.workflow-mode-row{padding-bottom:12px;gap:8px}.workflow-modes{flex:1}.workflow-modes button{flex:1;min-height:42px;font-size:13px;padding:8px 12px}.workflow-chat-indicator{font-size:11px;margin-left:3px}.workflow-heading{margin-top:7px;gap:10px;align-items:flex-start}.workflow-heading h2{font-size:20px}.workflow-heading p{font-size:12px}.workflow-heading>.button{font-size:12px;padding:9px 11px}.workflow-heading .eyebrow{font-size:9px}.workflow-scope{font-size:11px;padding:10px 12px;line-height:1.9}.workflow-form,.workflow-overview{padding:16px}.workflow-form>label,.workflow-steer>label{font-size:13px}.workflow-form textarea{font-size:16px;min-height:125px}.workflow-upload-row{gap:9px}.workflow-upload-row>span{font-size:11px}.workflow-submit-row{align-items:flex-start;flex-direction:column;gap:12px}.workflow-submit-row>.button{width:100%}.workflow-submit-row p{font-size:11px}.workflow-history{flex-wrap:wrap;gap:8px}.workflow-history>label{flex-basis:100%}.workflow-history select{font-size:13px;min-height:44px}.workflow-run-top{gap:8px}.workflow-run-top>small{flex-basis:100%;margin-left:0;margin-top:2px}.workflow-overview h3{font-size:15px}.workflow-stages{gap:6px;margin:17px 0}.workflow-stages li{padding:10px 4px;flex-direction:column;text-align:center;gap:7px}.workflow-stages li strong{font-size:12px}.workflow-stages li small{font-size:9px}.workflow-stages li>span{width:22px;height:22px;font-size:11px}.workflow-control-row{flex-direction:column;align-items:stretch;gap:12px}.workflow-control-row>div{justify-content:flex-end;flex-wrap:wrap}.workflow-steer{padding:17px 1px;margin-bottom:6px}.workflow-steer>div{flex-direction:column;gap:8px}.workflow-steer textarea{font-size:16px;min-height:80px}.workflow-steer button{align-self:flex-end;min-height:44px;font-size:12px}.workflow-steer small{font-size:11px}.workflow-side-results{grid-template-columns:1fr}.workflow-results-grid{gap:12px}.workflow-section{padding:14px}.workflow-events li{flex-direction:column;gap:3px}.workflow-events time{font-size:10px}.workflow-file-list .icon-button,.workflow-artifact>.icon-button{min-width:44px;min-height:44px}.workflow-checkpoint .text-button{min-height:44px}.workflow-other{flex-wrap:wrap;gap:5px;font-size:12px}.workflow-panel{padding-bottom:calc(25px + env(safe-area-inset-bottom))}.composer-actions:has(#continue-response:not([hidden])) .composer-model{display:none}}
@media(prefers-reduced-motion:reduce){.workflow-step-arrow{transition:none}}

/* V2 keeps workspace manifests compact and reads full files only on request. */
.workflow-profile-setting{display:grid;grid-template-columns:auto minmax(160px,1fr) auto;gap:10px 14px;align-items:center;padding:17px 0 0;margin-top:15px;border-top:1px solid #e3daec}
.workflow-profile-setting>label,.workflow-profile-form>label{font-size:13px;color:#705981;font-weight:600}.workflow-profile-setting select,.workflow-profile-form select{min-width:0;min-height:42px;padding:10px 12px;border:1px solid #dcd1e9;border-radius:10px;background:#fffc;color:#685075;font:inherit;font-size:13px}.workflow-profile-setting>.text-button{font-size:12px}.workflow-profile-setting>p,.workflow-profile-setting>ul{grid-column:1/-1;margin:0;color:#80688d;font-size:12px;line-height:1.8}.workflow-profile-setting>ul{list-style:none;padding:0}.workflow-profile-setting li{padding:6px 0}.workflow-profile-setting li strong{font-weight:550;display:block}.workflow-profile-setting li span{display:block;color:#8a6f95;overflow-wrap:anywhere}.workflow-profile-setting .available strong{color:#4e7665}.workflow-profile-setting .unavailable strong{color:#8b6b44}
.workflow-execution{margin-top:17px;padding:18px;background:#ffffffa1;border:1px solid #e3daec;border-radius:15px}.workflow-execution h3{font-size:14px;margin:0;font-weight:600}.workflow-execution .section-heading{margin-bottom:11px}.workflow-execution .section-heading>span{font-size:12px}.workflow-test-status{font-size:13px;font-weight:600;color:#7e648a;margin:8px 0;line-height:1.7}.workflow-test-status[data-status=passed]{color:#44735d}.workflow-test-status[data-status=failed]{color:#974e63}.workflow-test-status[data-status=blocked]{color:#916b3f}.workflow-test-reason{font-size:12px;color:#806289;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}.workflow-test-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0}.workflow-test-counts>div{padding:12px 9px;border-radius:10px;border:1px solid #e4dcec;background:#f7f3fc;text-align:center}.workflow-test-counts dt{font-size:11px;color:#80698d}.workflow-test-counts dd{font-size:20px;color:#675173;font-variant-numeric:tabular-nums;margin:6px 0 0}.workflow-test-output{margin:11px 0;font-size:12px;color:#7d658b}.workflow-test-output>summary{cursor:pointer;line-height:1.8;min-height:32px}.workflow-test-output pre,.workflow-file-diff pre,.workflow-step-json{max-height:400px;overflow:auto;font:12px/1.8 Consolas,"Cascadia Code",monospace;white-space:pre;background:#f1eaf7;padding:13px;border:1px solid #e5d9ee;border-radius:10px;color:#6b5279}
.workflow-profile-form{border-top:1px solid #e2d8eb;padding-top:14px;margin-top:16px}.workflow-profile-form>label{display:block;margin-bottom:9px}.workflow-profile-form>div{display:flex;gap:10px}.workflow-profile-form select{flex:1}.workflow-profile-form .button{font-size:12px;flex-shrink:0}.workflow-profile-form>p{font-size:12px;line-height:1.8;color:#80678d;margin:10px 0 0}
.workflow-step-summary{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;font-size:12px;color:#846b90;line-height:1.8;margin-top:7px}.workflow-step>summary>div{min-width:0;flex:1}.workflow-step-arrow{flex-shrink:0}.workflow-artifact-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding-bottom:11px;border-bottom:1px solid #e7def0;margin-bottom:5px}.workflow-artifact-actions>.button{font-size:12px;min-height:38px;padding:8px 11px}.workflow-artifact-actions>.text-button{font-size:12px;min-height:36px}.workflow-file-preview small{display:block;color:#92779c;font-size:10px;margin-top:5px}.workflow-checkpoint-actions{display:flex;gap:18px;align-items:center;flex-wrap:wrap}.workflow-file-diff{margin:13px 0;border-bottom:1px solid #e5d9ec;padding-bottom:10px}.workflow-file-diff>summary{cursor:pointer;font-size:13px;line-height:1.9;padding:6px 0;color:#6d507e;overflow-wrap:anywhere}.workflow-file-diff>summary strong{font-weight:600}.workflow-file-diff>summary span{display:block;color:#90769c;font-size:11px;margin-left:14px}
@media(max-width:720px){.workflow-profile-setting{grid-template-columns:1fr auto;gap:9px}.workflow-profile-setting>label{grid-column:1/-1}.workflow-profile-setting select{font-size:16px;min-height:44px}.workflow-profile-setting>.text-button{font-size:11px;min-height:44px}.workflow-profile-setting>p,.workflow-profile-setting>ul{font-size:11px}.workflow-execution{padding:14px}.workflow-test-counts{gap:6px}.workflow-test-counts>div{padding:10px 5px}.workflow-test-counts dt{font-size:10px}.workflow-test-counts dd{font-size:18px}.workflow-profile-form>div{flex-wrap:wrap}.workflow-profile-form select{font-size:16px;min-width:180px;min-height:44px}.workflow-profile-form .button{margin-left:auto}.workflow-artifact-actions>.button,.workflow-artifact-actions>.text-button,.workflow-checkpoint-actions>.text-button,.workflow-test-output>summary{min-height:44px}.workflow-step-summary{font-size:11px}.workflow-execution .section-heading>span{font-size:11px}.workflow-test-output pre,.workflow-file-diff pre{font-size:11px}}
