/* O mesmo painel ocupa a janela nativa ou retorna à lateral. */
.copilot-heading-row h2{min-width:0}
.copilot-panel:not([data-window-mode=detached]) .copilot-header{cursor:grab;touch-action:none;user-select:none}
.copilot-header.is-dragging{cursor:grabbing!important}
#copilot-window-drag{display:inline-flex;align-items:center;gap:10px;border-radius:4px}
#copilot-window-drag:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}
.copilot-host-notice{align-self:center;margin:auto;padding:24px;font-family:"Segoe UI",sans-serif;font-size:14px}
.copilot-form-actions{justify-content:space-between}
.connect-shell.copilot-open.copilot-detached .workspace-body{grid-template-columns:minmax(0,1fr)}
.connect-shell.copilot-open.copilot-detached .main-content{display:block;grid-column:1;grid-row:1}
.connect-shell.copilot-open.copilot-detached .main-content.editor-page-open{display:flex}
.connect-shell.copilot-open.copilot-detached .main-content:has(>.compact-list-page:not([hidden])){display:flex}
body.copilot-detached-host{display:flex;box-sizing:border-box;min-width:0;height:100dvh;margin:0;padding:0;overflow:hidden;background:var(--surface)}
.copilot-detached-host>.copilot-panel{flex:1;width:100%;height:100%;margin:0;border:0;min-width:0}
.copilot-detached-host .copilot-form{flex-shrink:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
