/* Guided workspace: the existing agent tree remains the process view. */
.guided-workspace .agent-layout{grid-template-columns:minmax(0,1fr) minmax(390px,1fr);align-items:start}
.guided-workspace .agent-map>.section-heading .step-badge{display:none}
.guided-workspace .agent-map>.section-heading h2{font-size:22px}
.guided-workspace #status.hidden{display:none}
.guided-workspace .agent-hierarchy{max-height:760px;overflow:auto}
.guide-panel{position:sticky;top:84px;border:1px solid #ccdae4;border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 12px 40px #15334d0b}
.guide-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;border-bottom:1px solid #e1e8ee}
.guide-header h3{margin:0;font-size:17px}.guide-header p{margin:3px 0 0;color:#69778a;font-size:12px}
.guide-status{border-radius:20px;padding:5px 10px;background:#e8f4ef;color:#25654e;font-size:11px;font-weight:700;white-space:nowrap}
.guide-messages{height:390px;min-height:220px;overflow:auto;padding:20px;display:flex;flex-direction:column;gap:16px;background:linear-gradient(180deg,#f7fafc,#fff);scroll-behavior:smooth}
.guide-message{max-width:94%;align-self:flex-start}.guide-message.user{align-self:flex-end;max-width:88%}
.guide-message-label{font-size:10px;letter-spacing:.08em;text-transform:uppercase;font-weight:800;color:#65798b;margin:0 0 5px}
.guide-message-body{padding:12px 14px;border:1px solid #dce5ed;border-radius:3px 14px 14px;background:#fff;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;font-size:13px}
.guide-message.user .guide-message-body{background:#173f65;color:#fff;border-color:#173f65;border-radius:14px 3px 14px 14px}
.guide-message.notice .guide-message-body{background:#f0f6fa;color:#476174;font-size:12px}
.guide-controls{padding:14px 20px;border-top:1px solid #e1e8ee;background:#fff}
.guide-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}.guide-actions:empty{display:none}
.guide-actions button,.guide-actions a{font-size:12px;padding:9px 12px}.guide-actions button.secondary{background:#f0f5f9;color:#234961;border:1px solid #ccdbe5}
.guide-composer textarea{min-height:76px;max-height:180px;font-size:13px;resize:vertical}
.guide-composer label{margin:0 0 6px}.guide-composer-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:9px}
.guide-hint{font-size:11px;color:#6b7c8c;max-width:300px}.guide-composer select{margin-bottom:9px;font-size:12px}
.guide-file{padding:10px;border:1px dashed #b5cbdc;border-radius:10px;margin-bottom:10px}.guide-file input{font-size:12px;border:0;padding:0;min-height:28px}
.guide-error{color:#922b40;background:#fff1f3;border-radius:8px;padding:10px;margin-bottom:10px;white-space:pre-wrap;font-size:12px}
.guide-details{border-top:1px solid #e1e8ee;padding:10px 20px;font-size:12px}.guide-details summary{cursor:pointer;color:#587083}.guide-details .event-chat{height:230px;margin-top:10px}
.guide-panel button:focus-visible,.guide-panel a:focus-visible{outline:3px solid #56a5ca;outline-offset:3px}
.guided-workspace #rebuttal-card{display:none}.guided-workspace .review-workspace{grid-template-columns:minmax(230px,.65fr) minmax(0,1.6fr)}
.guide-settings-note{padding:10px 14px;background:#eaf3fa;border-radius:10px;margin-bottom:15px;color:#355d78}
.guided-workspace .control-panel[hidden]{display:none!important}
.guide-interaction{max-height:440px;overflow:auto;padding:2px 3px 12px;margin-bottom:12px;border-bottom:1px solid #dce5ed}
.guide-interaction.hidden{display:none}.guide-interaction h4{margin:0 0 10px;font-size:14px}
.guide-role{display:flex;gap:10px;align-items:flex-start;padding:10px;border:1px solid #dce5ed;border-radius:10px;cursor:pointer;background:#f8fbfd}
.guide-role input{width:17px;min-height:17px;margin:3px 0;flex-shrink:0;accent-color:#1769a1}
.guide-role strong,.guide-role small{display:block}.guide-role small{font-size:11px;font-weight:400;color:#617587;margin-top:3px;line-height:1.5}
.guide-finding{border:1px solid #cad9e4;border-radius:10px;padding:12px;margin:10px 0;background:#f9fbfd}
.guide-finding summary{font-weight:700;font-size:12px;cursor:pointer;color:#254b69}
.guide-finding p{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.guide-required-action{border-left:3px solid #daa055;padding-left:9px}
.guide-finding textarea{min-height:100px;font-size:12px}.guide-finding select{font-size:12px}
.guide-finding-state{font-size:11px;color:#527665;display:inline-block;margin-right:10px}
.guide-finding button,.guide-saved-note button{font-size:11px;padding:6px 9px;background:#e9f0f5;color:#315671;margin-top:8px}
.guide-saved-note{padding:10px;border:1px solid #dce5ed;border-radius:8px;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}
.guide-saved-note button{display:block}
.guide-panel:has(.guide-interaction:not(.hidden)) .guide-messages{height:210px;min-height:160px}
.guide-review-turn{width:100%;max-width:100%}
.guide-review-turn .guide-interaction{max-height:440px;padding:16px;margin:0;border:1px solid #ccdce8;border-radius:3px 16px 16px;background:#f3f8fc;white-space:normal}
.guide-review-turn .guide-finding{background:#fff}
.guide-review-turn .guide-actions{margin:14px 0 0;padding-top:12px;border-top:1px solid #ccdce8}
.guide-panel:has(.guide-review-turn .guide-interaction:not(.hidden)) .guide-messages{height:660px;min-height:300px}
.guide-review-turn:has(.guide-interaction.hidden){display:none}
@media(max-width:600px){.guide-panel:has(.guide-review-turn .guide-interaction:not(.hidden)) .guide-messages{height:540px}.guide-review-turn .guide-interaction{max-height:400px;padding:12px}}
@media(max-width:1050px){.guided-workspace .agent-layout{grid-template-columns:1fr}.guide-panel{position:static;grid-row:1}.guided-workspace .agent-hierarchy{max-height:460px}.guide-messages{height:360px}}
@media(max-width:600px){.guide-header,.guide-controls,.guide-messages{padding:14px}.guided-workspace .review-workspace{grid-template-columns:1fr}.guide-composer-footer{align-items:flex-end}.guide-hint{max-width:220px}}
@media(prefers-reduced-motion:reduce){.guide-messages{scroll-behavior:auto}}

/* Viewport shell applies only to the tool; the public product pages keep page scrolling. */
html:has(#site-workspace:not(.hidden)),body:has(#site-workspace:not(.hidden)){height:100%;overflow:hidden}
body:has(#site-workspace:not(.hidden)) main{width:100%;max-width:none;height:100dvh;margin:0;padding:0 14px 12px;display:flex;flex-direction:column;overflow:hidden}
body:has(#site-workspace:not(.hidden)) .site-header{position:static;flex:none;margin:0 -14px 10px;width:auto}
body:has(#site-workspace:not(.hidden)) .site-header-inner{max-width:none;padding:10px 20px;min-height:0}
body:has(#site-workspace:not(.hidden)) .site-footer,body:has(#site-workspace:not(.hidden)) #back-to-top{display:none}
#site-workspace.guided-workspace:not(.hidden){display:flex;flex:1;min-height:0;flex-direction:column;gap:10px;margin:0;padding:0;overflow:hidden}
.guided-workspace .product-intro{flex:none;padding:0 6px;margin:0;align-items:center;gap:12px}
.guided-workspace .product-intro h1{font-size:19px;line-height:1.3;margin:0;letter-spacing:-.02em}
.guided-workspace .product-intro .eyebrow{display:none}
.guided-workspace .product-intro .disclaimer{font-size:10px;padding:5px 9px;max-width:410px;margin:0}
.guided-workspace .workflow-tabs{position:static;flex:none;margin:0;padding:4px;border-radius:10px}
.guided-workspace .workflow-tab{padding:7px 10px}
.ide-views{flex:1;min-height:0;min-width:0;overflow:hidden}
.ide-view{height:100%;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 2px}
.ide-view[hidden]{display:none!important}
.ide-view[data-ide-tab="workflow"]{display:flex;flex-direction:column;overflow:hidden}
.guided-workspace .agent-map{flex:1;min-height:0;display:flex;flex-direction:column;margin:0;padding:10px;overflow:hidden;border-radius:12px}
.guided-workspace .agent-map>.section-heading{display:none}
.guided-workspace .workflow-progress{flex:none;margin:0 0 9px;padding:7px 11px;font-size:12px}
.guided-workspace .agent-layout{flex:1;min-height:0;min-width:0;display:grid;grid-template-columns:minmax(260px,.85fr) minmax(360px,1.15fr);grid-template-rows:minmax(0,1fr);gap:12px;align-items:stretch}
.guided-workspace .agent-hierarchy{height:100%;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;align-content:start}
.guided-workspace .guide-panel{position:static;top:auto;min-height:0;min-width:0;display:flex;flex-direction:column;overflow:hidden;border-radius:12px}
.guided-workspace .guide-header{flex:none;padding:12px 16px}
.guided-workspace .guide-header h3{font-size:15px}
.guided-workspace .guide-messages,.guided-workspace .guide-panel:has(.guide-interaction:not(.hidden)) .guide-messages{flex:1;height:auto;min-height:70px;padding:14px 16px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.guided-workspace .guide-messages>.guide-message{flex-shrink:0}
.guided-workspace .guide-controls{flex:0 1 auto;min-height:0;max-height:65%;overflow:auto;padding:10px 16px;overscroll-behavior:contain}
.guided-workspace .guide-controls:has(>#guide-actions:empty):not(:has(>.guide-interaction:not(.hidden))):has(>#guide-composer.hidden):has(>#guide-file.hidden):has(>#guide-error.hidden){display:none}
.guided-workspace .guide-controls>.guide-interaction{max-height:none;overflow:visible}
.guided-workspace .guide-review-turn .guide-interaction{max-height:none;overflow:visible}
.guided-workspace .guide-composer textarea{min-height:65px;max-height:130px}
.guided-workspace .ide-view[data-ide-tab="review"]>.card,.guided-workspace .ide-view[data-ide-tab="results"]>.card{margin:0 0 12px}
.guided-workspace .review-workspace .panel{max-height:75dvh;overflow:auto}
@media(max-width:760px){
 body:has(#site-workspace:not(.hidden)) main{padding:0 6px 6px}
 body:has(#site-workspace:not(.hidden)) .site-header{margin:0 -6px 6px}
 body:has(#site-workspace:not(.hidden)) .site-header-inner{padding:7px 10px}
 .guided-workspace .product-intro{display:none}
 .guided-workspace .agent-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(100px,.32fr)}
 .guided-workspace .guide-panel{grid-row:1}.guided-workspace .agent-hierarchy{grid-row:2}
 .guided-workspace .agent-map{padding:6px}.guided-workspace .guide-header p{display:none}
 .guided-workspace .guide-controls{max-height:65%;padding:9px 12px}
 .guided-workspace .guide-messages,.guided-workspace .guide-panel:has(.guide-interaction:not(.hidden)) .guide-messages{min-height:45px;padding:10px 12px}
}
.guide-workflow-updates{flex:0 0 auto;width:100%;min-width:0;box-sizing:border-box;border:1px solid #ccdae4;border-radius:12px;background:#f4f8fb;overflow:hidden}.guide-workflow-updates h4{margin:0;padding:10px 12px;font-size:13px;border-bottom:1px solid #ccdae4}.guide-workflow-count{font-weight:400}.guide-workflow-feed{height:220px;overflow-y:auto;overscroll-behavior-y:contain;padding:10px 12px;box-sizing:border-box;scrollbar-gutter:stable;overflow-wrap:anywhere}.guide-workflow-feed .guide-message{max-width:100%;margin-bottom:12px}.guide-workflow-feed:focus-visible{outline:2px solid #297c95;outline-offset:-2px}html[data-theme="dark"] .guide-workflow-updates{background:#203443;color:#edf5fa;border-color:#456071}@media(max-width:760px){.guide-workflow-feed{height:170px}}
.guide-streaming{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.guide-messages{overflow-anchor:none}
