.chat-shell .chat-main.has-studio-workspace{height:var(--chat-visible-height,100dvh);min-height:0;overflow:hidden}
.chat-shell .workspace-with-composer.is-studio-workspace{display:block;position:relative;flex:1;min-height:0;overflow:hidden}.chat-shell .is-studio-workspace>.workspace-assistant{display:contents}.chat-shell .is-studio-workspace .workspace-assistant-intro{display:none}.chat-shell .is-studio-workspace>.workspace-catalogue-pane{height:100%;min-width:0;overflow:auto;padding:0 0 calc(var(--chat-compose-height,96px) + 20px);scroll-padding-bottom:calc(var(--chat-compose-height,96px) + 20px)}
.chat-shell .is-studio-workspace .workspace-assistant>.chat-composer-wrap{position:absolute;z-index:45;bottom:0;top:auto;left:0;right:0;margin-inline:auto;transform:none;width:min(900px,100%);max-width:100%;padding:6px 14px max(10px,env(safe-area-inset-bottom));background:var(--chat-bg,#fff)}.composer-material-context{display:flex;align-items:center;gap:8px;min-height:30px;padding:3px 9px;font-size:12px;color:var(--chat-muted,#666)}.composer-material-context>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.composer-material-context>button{margin-left:auto;min-height:36px;padding:5px 9px;white-space:nowrap;border:1px solid var(--chat-line,#ddd);border-radius:10px;background:var(--chat-bg,#fff);color:var(--chat-ink,#111);font-size:11px}.composer-material-feedback{font-size:12px;line-height:18px;margin:2px 9px 6px;color:var(--chat-muted,#666)}
@media(max-width:767px){.chat-shell .is-studio-workspace .workspace-assistant>.chat-composer-wrap{padding-inline:10px}.chat-shell .chat-main.is-composing .is-studio-workspace .workspace-assistant>.chat-composer-wrap{position:fixed;left:0;right:0;top:var(--chat-composer-top,0px);bottom:auto;transform:none;width:100%}.composer-material-context>button{min-height:44px}.chat-shell .is-studio-workspace .unified-composer.is-expanded textarea{min-height:44px;max-height:96px}}
/* Sections whose workspace has no catalogue controls of its own ("Наши работы", "Обучение") use the Studio layout: no near-empty 350px "Задача" column; the composer is docked at the bottom of the section. Sections with a catalogue (Сайты, Автоматизация) keep their layout. */
.chat-shell .chat-main:has(>.workspace-with-composer:not(.is-studio-workspace)>.workspace-catalogue-pane>.workspace-catalogue>.space-visually-hidden:first-child):not(.has-studio-workspace){height:var(--chat-visible-height,100dvh);min-height:0;overflow:hidden}
.chat-shell .workspace-with-composer:not(.is-studio-workspace):has(>.workspace-catalogue-pane>.workspace-catalogue>.space-visually-hidden:first-child){display:block;position:relative;flex:1;min-height:0;overflow:hidden}.chat-shell .workspace-with-composer:not(.is-studio-workspace):has(>.workspace-catalogue-pane>.workspace-catalogue>.space-visually-hidden:first-child)>.workspace-assistant{display:contents}.chat-shell .workspace-with-composer:not(.is-studio-workspace):has(>.workspace-catalogue-pane>.workspace-catalogue>.space-visually-hidden:first-child) .workspace-assistant-intro{display:none}.chat-shell .workspace-with-composer:not(.is-studio-workspace):has(>.workspace-catalogue-pane>.workspace-catalogue>.space-visually-hidden:first-child)>.workspace-catalogue-pane{height:100%;min-width:0;overflow:auto;padding:0 0 calc(var(--chat-compose-height,96px) + 20px);scroll-padding-bottom:calc(var(--chat-compose-height,96px) + 20px)}
.chat-shell .workspace-with-composer:not(.is-studio-workspace):has(>.workspace-catalogue-pane>.workspace-catalogue>.space-visually-hidden:first-child) .workspace-assistant>.chat-composer-wrap{position:absolute;z-index:45;bottom:0;top:auto;left:0;right:0;margin-inline:auto;transform:none;width:min(900px,100%);max-width:100%;padding:6px 14px max(10px,env(safe-area-inset-bottom));background:var(--chat-bg,#fff)}.composer-material-context{display:flex;align-items:center;gap:8px;min-height:30px;padding:3px 9px;font-size:12px;color:var(--chat-muted,#666)}.composer-material-context>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.composer-material-context>button{margin-left:auto;min-height:36px;padding:5px 9px;white-space:nowrap;border:1px solid var(--chat-line,#ddd);border-radius:10px;background:var(--chat-bg,#fff);color:var(--chat-ink,#111);font-size:11px}.composer-material-feedback{font-size:12px;line-height:18px;margin:2px 9px 6px;color:var(--chat-muted,#666)}
@media(max-width:767px){.chat-shell .workspace-with-composer:not(.is-studio-workspace):has(>.workspace-catalogue-pane>.workspace-catalogue>.space-visually-hidden:first-child) .workspace-assistant>.chat-composer-wrap{padding-inline:10px}.chat-shell .chat-main.is-composing .workspace-with-composer:not(.is-studio-workspace):has(>.workspace-catalogue-pane>.workspace-catalogue>.space-visually-hidden:first-child) .workspace-assistant>.chat-composer-wrap{position:fixed;left:0;right:0;top:var(--chat-composer-top,0px);bottom:auto;transform:none;width:100%}.composer-material-context>button{min-height:44px}.chat-shell .workspace-with-composer:not(.is-studio-workspace):has(>.workspace-catalogue-pane>.workspace-catalogue>.space-visually-hidden:first-child) .unified-composer.is-expanded textarea{min-height:44px;max-height:96px}}

/* The active material already has its own Back/action header; do not spend another row on section tabs. */
.chat-shell .workspace-catalogue.content-workspace:has(.cs-editor)>.studio-main-tabs{display:none}
