
/* Fit the tool window to its research surface, including when the native
   sidebar is visible. Keep enough space for the existing single composer;
   its controls and expanded disclosures remain scrollable. */
.research-conversation.rc-rebuild[data-workspace-open=true]:is([data-workspace-layout=expanded],[data-workspace-layout=window],[data-workspace-layout=alongside]) .rc-shell{--rc-dialogue-height:clamp(240px,32dvh,360px)}
.research-conversation.rc-rebuild[data-workspace-open=true][data-workspace-layout=window] .rc-detail-workspace{position:absolute;inset:12px 12px auto;width:calc(100% - 24px);max-width:calc(100% - 24px);min-width:0;min-height:0}
.research-conversation.rc-rebuild .rc-detail-workspace:has(.original-ui-workspace:not([hidden])) .rc-artifact-header{flex-wrap:wrap}
.research-conversation.rc-rebuild .rc-detail-workspace:has(.original-ui-workspace:not([hidden])) .rc-workspace-controls{min-width:0;flex:1 1 28rem}
.research-conversation.rc-rebuild .rc-detail-workspace:has(.original-ui-workspace:not([hidden])) .rc-workspace-actions{flex-wrap:wrap}
