/* Shared conversation surfaces and compact, accessible workshop actions. */
.workspace-heading{display:flex;align-items:center;gap:10px;min-height:56px;padding:8px 0 14px;border-bottom:1px solid var(--ui-divider);margin-bottom:16px}
.workspace-heading h1{font-size:19px;line-height:1.3;margin:0;flex:1}
.workspace-head-tools{display:flex;align-items:center;gap:4px;margin-inline-start:auto;flex:none}
.workspace-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:44px;min-height:44px;padding:7px 12px;border:1px solid var(--ui-divider);border-radius:12px;background:var(--ui-surface);color:var(--ui-text);font:inherit;font-size:13px;cursor:pointer}
.workspace-action svg{width:18px;height:18px;flex:none}
.workspace-film-tools{align-self:flex-start}
.workspace-search .workspace-action-label,.workspace-help .workspace-action-label,.workspace-more .workspace-action-label{display:none}
.workspace-action:disabled{opacity:.45;cursor:default}
.workspace-action:focus-visible,.code-view-tabs button:focus-visible{outline:2px solid var(--ui-focus);outline-offset:2px}
html[data-ui] :is(#s-code,#s-local)>.studio-page-hero{display:none}
#s-code>.subtabs,#s-local>.subtabs{margin:0 0 16px}
html[data-ui] #s-code .code-workspace{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(0,1.1fr);gap:20px;align-items:stretch}
#s-code .code-assist-card{order:0;display:flex;flex-direction:column;min-width:0;overflow:auto}
#s-code .code-editor-card{order:1;min-width:0;display:flex;flex-direction:column;overflow:hidden}
html[data-ui] #s-code :is(.code-assist-card,.code-editor-card){height:clamp(620px,calc(100dvh - 310px),800px);min-height:0}
html[data-ui] #s-code :is(.code-assist-card,.code-editor-card){background:var(--ui-surface);border:1px solid var(--ui-divider);border-radius:18px;padding:18px;box-shadow:none}
#s-code .monaco-host{flex:1;min-height:0;height:0;width:100%;max-width:100%;overflow:hidden;border:1px solid var(--ui-divider);border-radius:12px}
.monaco-host:has(.monaco-editor)>.history-empty{display:none}
#s-code .code-toolbar-actions{flex-wrap:wrap;justify-content:flex-end}
#s-code .code-toolbar-actions .code-btn{width:auto;min-width:110px}
#s-code .code-toolbar h2{font-size:16px}
#s-code .code-toolbar .hint{font-size:12px}
.code-welcome{margin:auto 0;text-align:center;padding:20px 6px;color:var(--ui-text-muted)}
.code-welcome h2{font-size:22px;color:var(--ui-text);margin-bottom:8px}
.code-welcome p{font-size:14px;line-height:1.6}
#s-code .code-assist-out{order:0;flex:1;max-height:480px;margin:0 0 16px;overflow:auto;overflow-wrap:anywhere}
.code-composer{margin-top:auto;padding:14px;border:1px solid var(--ui-divider);border-radius:16px;background:var(--ui-bg)}
.code-composer>h2,.code-composer>p:first-of-type{display:none}
.code-composer textarea{min-height:96px;background:transparent;border:0;box-shadow:none;resize:vertical}
.code-composer label{font-size:12px}
.code-composer .ca-context{font-size:12px}
.code-copy{align-self:flex-start;min-height:44px;background:transparent;color:var(--ui-text);border:1px solid var(--ui-divider);border-radius:10px;margin-bottom:12px;padding:8px 12px;cursor:pointer}
.code-extension{margin-top:16px;border-top:1px solid var(--ui-divider);padding-top:8px}
.code-extension>summary{min-height:44px;padding:12px;cursor:pointer;font-size:13px}
.code-extension .extension-download-card{margin-top:8px}
.code-view-tabs{display:none}
html[data-ui] #s-local>.card{background:transparent;border:0;padding:0;box-shadow:none}
#s-local .pc-overview>h2{display:none}
#s-local .pc-overview{font-size:13px}
#s-local .pc-overview.hint{font-size:13px}
.pc-connect-state{max-width:760px;margin:28px auto;padding:28px;border:1px solid var(--ui-divider);border-radius:20px;background:var(--ui-surface)}
.pc-connect-state h2{font-size:24px;margin:0 0 10px}
.pc-connect-state>p{line-height:1.6;color:var(--ui-text-muted);font-size:14px}
.pc-connect-state textarea{margin-top:16px;resize:none;min-height:80px}
#s-local #pcAgentPanel{border:0;padding-top:0}
#s-local .pc-agent-head{padding:10px 0}
#s-local .pc-chat{border:1px solid var(--ui-divider);border-radius:18px;background:var(--ui-surface)}
#s-local .pc-composer{background:var(--ui-bg);border:1px solid var(--ui-divider);border-radius:16px;margin:12px}
@media(max-width:760px),(max-height:500px) and (pointer:coarse){
 body[data-mobile-workspace] .workspace-heading{display:none}
 body[data-mobile-workspace] .workspace-film-tools{display:none}
 body[data-mobile-workspace] .workspace-action{width:44px;height:44px;min-width:44px;flex:0 0 44px;padding:0;background:transparent;border:0}
 body[data-mobile-workspace] .workspace-head-tools{gap:0;margin-inline-start:auto}
 body[data-mobile-workspace] .mobile-workshop-head>.mobile-workshop-logo{display:none}
 body[data-mobile-workspace] .mobile-workshop-head>strong{flex:1;padding-inline:2px}
 body[data-mobile-workspace] #s-chat .chat-main-head{grid-template-columns:44px minmax(0,1fr) 44px 88px 44px;gap:0}
 body[data-mobile-workspace] #s-chat .chat-main-head>.mobile-workshop-logo{display:none}
 body[data-mobile-workspace] #s-chat .chat-main-head>.chat-model-card{grid-column:2}
 body[data-mobile-workspace] #s-chat .chat-main-head>#newChat{grid-column:3}
 body[data-mobile-workspace] #s-chat .chat-main-head>.workspace-head-tools{grid-column:4;grid-row:1}
 body[data-mobile-workspace] #s-chat #chatMoreButton{display:inline-flex!important;grid-column:5;grid-row:1;width:44px;min-width:44px;padding:0}
 body[data-mobile-workspace] #chatMoreButton>span{display:none}
 body[data-mobile-workspace] .mobile-chat-actions{display:none!important}
 body[data-mobile-workspace] #s-code .code-workspace{display:flex;min-height:0;flex-direction:column;gap:12px}
 body[data-mobile-workspace] #s-code[data-code-view=assistant] .code-editor-card,body[data-mobile-workspace] #s-code[data-code-view=editor] .code-assist-card{display:none!important}
 body[data-mobile-workspace] #s-code :is(.code-editor-card,.code-assist-card){padding:12px;min-height:440px;height:auto}
 body[data-mobile-workspace] #s-code .monaco-host{min-height:360px;height:calc(var(--studio-visible-height,100dvh) - 290px)}
 body[data-mobile-workspace] .code-view-tabs{display:flex;gap:4px;margin:0 0 12px;padding:4px;border:1px solid var(--ui-divider);border-radius:12px;background:var(--ui-surface)}
 .code-view-tabs button{flex:1;min-height:44px;border:0;border-radius:8px;background:transparent;color:var(--ui-text);font:inherit}
 .code-view-tabs button[aria-selected=true]{background:var(--ui-control-bg);box-shadow:inset 0 0 0 1px var(--ui-control-border)}
 .code-extension .extension-download-card{display:flex!important}
 .pc-connect-state{margin:12px 0;padding:18px}
 .pc-connect-state h2{font-size:21px}
 #s-local .pc-composer{margin:8px}
 body[data-mobile-workspace]:has(#s-local:not([hidden]) #pcChat:not([hidden])){--pc-nav-space:64px}
 body[data-mobile-workspace]:has(#s-local:not([hidden]) #pcChat:not([hidden])) #appTopbar{display:contents!important}
 body[data-mobile-workspace]:has(#s-local:not([hidden]) #pcChat:not([hidden])) #tabbar{display:flex!important}
 body[data-mobile-workspace] #s-local:has(#pcChat:not([hidden]))>.mobile-workshop-head{position:fixed;inset-inline:12px;top:var(--studio-visible-top,0px);height:56px;margin:0;z-index:8}
 body[data-mobile-workspace] #s-local:not([hidden]) #pcChat:not([hidden]){position:fixed;inset-inline:0;top:calc(var(--studio-visible-top,0px) + 56px);height:calc(var(--studio-visible-height,100dvh) - 56px - var(--pc-nav-space,64px));z-index:6;border:0;border-radius:0;padding-top:0}
 body[data-mobile-workspace][data-mobile-keyboard]:has(#s-local:not([hidden]) #pcChat:not([hidden])){--pc-nav-space:0px}
 body[data-mobile-workspace][data-mobile-keyboard]:has(#s-local:not([hidden]) #pcChat:not([hidden])) #tabbar{display:none!important}
}
@media(max-height:500px) and (pointer:coarse){body[data-mobile-workspace]:has(#s-local:not([hidden]) #pcChat:not([hidden])){--pc-nav-space:52px}}
