body.workspace-mode .assistant-panel{width:100%;max-width:none}
body.workspace-portal.business-focused .business-toolbar>.portal-heading-actions>:not(#focusBusiness){display:none!important}
body.workspace-portal.business-focused .business-toolbar>.portal-heading-actions{margin-left:auto}
body.workspace-portal.business-assistant-open #workspaceAssistant.assistant-expanded[popover]{max-width:none;max-height:none;margin:0;box-sizing:border-box}
#workspaceAssistant.assistant-expanded[popover]::backdrop{background:#fff}
body.workspace-mode #assistant.has-messages .assistant-panel{width:100%;max-width:none;margin:0;padding:12px clamp(16px,2vw,32px)}
body.workspace-mode #assistant.has-messages .chat-thread{min-height:0;width:100%;max-width:none}
body.workspace-mode #assistant.has-messages .chat-message.assistant{width:100%;max-width:none}
body.workspace-mode #assistant.has-messages .conversation-dock{width:100%;max-width:none}
/* One compact header; the host no longer adds a second title bar. */
body.workspace-portal .assistant.assistant-expanded>.assistant-shell-main{padding:10px clamp(14px,2vw,32px) 12px}
body.workspace-portal .assistant.assistant-expanded .assistant-heading{margin-bottom:8px;padding-bottom:8px;gap:6px}
body.workspace-portal .assistant.assistant-expanded .portal-modes button{padding:4px 13px}
body.workspace-portal .assistant.assistant-expanded #portalMessages,
body.workspace-portal .assistant.assistant-expanded #assistantForm,
body.workspace-portal .assistant.assistant-expanded .assistant-conversation-title{width:100%;max-width:none}
body.workspace-portal .assistant.assistant-expanded.assistant-has-messages #portalMessages,
body.workspace-portal .assistant.assistant-expanded.assistant-has-messages #assistantForm{width:100%;max-width:none}
body.workspace-portal .assistant.assistant-expanded #assistantInput{height:48px;min-height:48px;max-height:120px;padding:10px 14px}
body.workspace-portal .assistant.assistant-expanded .portal-heading-actions{margin-left:auto;gap:6px}
body.standalone-assistant.assistant-full-view.development-inline-open .development-host-active>.assistant-shell-main>.assistant-heading{display:flex!important}
body.standalone-assistant.assistant-full-view.development-inline-open .development-host-active .portal-heading-actions{display:flex!important}
body.standalone-assistant.assistant-full-view.development-inline-open .development-host-active .portal-heading-actions>:not(.embedded-conversation-toggle){display:none!important}
body.chat-display-development #engineering{max-width:none;width:100%;padding-inline:clamp(12px,2vw,32px)}
@media(max-width:760px){body.standalone-assistant.assistant-full-view .assistant-expanded>.assistant-shell-main{padding:8px 12px max(10px,env(safe-area-inset-bottom))}body.workspace-portal .assistant.assistant-expanded .portal-heading-actions{flex-basis:auto;flex-wrap:wrap}body.workspace-portal .assistant.assistant-expanded .portal-modes button{padding:4px 10px!important}}

/* The web workspace uses the same window layout from the first conversation.
   Keep the introduction scrollable so its content cannot push the composer
   below the window on smaller screens. */
body.workspace-mode:not(.billing-open):not(.code-open) #appView,
body.workspace-mode:not(.workspace-has-messages):not(.billing-open):not(.code-open) #appView{display:flex;flex-direction:column;height:100dvh;min-height:0;overflow:hidden}
body.workspace-mode:not(.billing-open):not(.code-open) #appView #assistant{display:flex;align-items:stretch;flex:1 1 auto;min-height:0;overflow:hidden}
body.workspace-mode:not(.billing-open):not(.code-open) #assistant>.assistant-panel{flex:1 1 auto;align-self:stretch;display:flex;flex-direction:column;width:100%;max-width:none;height:auto;min-height:0;margin:0;padding:12px clamp(16px,2vw,32px);overflow:hidden}
body.workspace-mode:not(.billing-open):not(.code-open) #assistant>.assistant-panel>.workspace-intro{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding-bottom:12px;overscroll-behavior:contain}
body.workspace-mode:not(.billing-open):not(.code-open) #assistant>.assistant-panel>.conversation-dock{display:flex;flex-direction:column;flex:0 0 auto;width:100%;min-height:0;max-height:60%;margin-top:auto;overflow:visible}
body.workspace-mode:not(.billing-open):not(.code-open) #assistantForm{width:100%;max-width:none;min-height:0}
body.workspace-mode:not(.billing-open):not(.code-open) .assistant-composer textarea{height:56px;min-height:48px;max-height:min(140px,22dvh)}
body.workspace-mode .conversation-dock>.office-stage,body.workspace-mode .conversation-dock>.life-stage,body.workspace-mode .conversation-dock>.design-stage{order:-1;flex:0 1 auto;min-height:0;max-height:30dvh;overflow:auto;overscroll-behavior:contain}
body.workspace-mode .assistant-panel .legacy-task-head{flex:none}
body.workspace-mode #assistant.has-messages .chat-thread{flex:1 1 auto;min-height:0;max-height:none;overflow:auto}
body.workspace-portal .assistant.assistant-expanded:not(.assistant-has-messages)>.assistant-shell-main>.assistant-shell-welcome{flex:1 1 auto;min-height:0;overflow:auto;display:flex;flex-direction:column;justify-content:center;margin:0 auto 16px}
body.workspace-portal .assistant.assistant-expanded:not(.assistant-has-messages) .assistant-shell-welcome h1{margin-bottom:24px}
body.workspace-portal .assistant.assistant-expanded:not(.assistant-has-messages) #assistantForm{margin-top:auto}
@media(max-width:760px){body.workspace-mode:not(.billing-open):not(.code-open) #assistant>.assistant-panel{padding:10px 12px max(10px,env(safe-area-inset-bottom))}body.workspace-mode .conversation-dock>.office-stage,body.workspace-mode .conversation-dock>.life-stage,body.workspace-mode .conversation-dock>.design-stage{max-height:24dvh}}

/* Start with the input above examples; active threads keep their bottom dock. */
body.workspace-mode:not(.billing-open):not(.code-open) #assistant:not(.has-messages)>.assistant-panel>.workspace-intro{flex:0 0 auto;max-height:32dvh;padding-bottom:8px}
body.workspace-mode:not(.billing-open):not(.code-open) #assistant:not(.has-messages)>.assistant-panel>.conversation-dock{margin-top:0;max-height:none}
body.workspace-mode:not(.billing-open):not(.code-open) #assistant>.assistant-panel>.workspace-start-cards{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;margin-top:12px}
body.workspace-mode:not(.billing-open):not(.code-open) .workspace-start-cards>.office-stage,body.workspace-mode:not(.billing-open):not(.code-open) .workspace-start-cards>.life-stage,body.workspace-mode:not(.billing-open):not(.code-open) .workspace-start-cards>.design-stage{width:100%;max-width:none;margin:0}
body.workspace-mode .workspace-start-cards .design-gallery{margin-top:12px}
body.workspace-mode #assistant.has-messages>.assistant-panel>.workspace-start-cards,body.development-mode .workspace-start-cards{display:none}
