/* Compact product controls; Preview is a separate, reversible work surface. */
.toolbar #editor-search{width:34px;height:34px;min-width:34px;padding:7px;border:1px solid var(--studio-border);border-radius:7px;background:var(--studio-control);display:grid;place-items:center}.toolbar #editor-search:hover{background:var(--studio-control)}.toolbar #editor-search svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6}.toolbar #editor-search:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.toolbar-search-expanded{width:min(390px,calc(100vw - 24px));background:var(--studio-control);border:1px solid var(--studio-border);z-index:var(--z-popover,150);padding:12px 14px;border-radius:8px;animation:search-expand .16s ease-out}.toolbar-search-expanded label{font-size:10px;color:var(--studio-secondary);margin:0 24px 7px 0}.toolbar-search-expanded input{height:36px;background:var(--studio-control);border:1px solid var(--studio-border);border-radius:5px;color:var(--studio-text);padding:7px 10px;font:13px Segoe UI,sans-serif}.toolbar-search-expanded .global-command-results{max-height:min(520px,65vh);overflow:auto}.toolbar-search-expanded .global-command-results button,.toolbar-search-expanded .global-command-pages button{position:static}.toolbar-search-expanded .global-command-results button{width:100%;text-align:left;display:flex;justify-content:space-between;gap:12px;padding:9px 7px}.toolbar-search-expanded .global-command-results small{margin:0;flex-shrink:0}.toolbar-search-expanded .global-command-results h3{font-size:10px;color:var(--studio-secondary);margin:12px 7px 5px}.toolbar-search-expanded .global-command-pages{display:flex;align-items:center;justify-content:space-between;margin-top:10px;font-size:10px;color:var(--studio-secondary)}@keyframes search-expand{from{opacity:.4;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}
.collab-header{gap:10px}.collab-cluster .collab-avatar{width:30px;height:30px;min-width:30px;margin-left:-4px;font:10px Segoe UI,sans-serif;border:2px solid var(--studio-border);background:var(--studio-panel-raised)}.presence-initials,.collab-face{position:relative;display:grid;place-items:center;overflow:hidden;width:100%;height:100%;border-radius:inherit;background:var(--avatar-tone,#292d34);color:#e4e4e4}.presence-initials img,.collab-face img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.collab-cluster .collab-cluster-button{font-size:10px;padding:5px;margin-right:4px;white-space:nowrap}.collab-cluster .collab-agent{border-radius:7px;background:var(--studio-panel-raised);color:var(--studio-text);font-size:9px;font-weight:600;margin-left:3px;border-width:1px;border-color:var(--studio-border)}.collab-owner{right:-4px;bottom:-4px;width:16px;height:14px;line-height:12px;font-size:7px;background:var(--studio-panel-raised);border:1px solid var(--studio-border);color:var(--studio-text);border-radius:4px}.collab-avatar[data-presence-status=editing]::after,.collab-agent[data-agent-status=working]::after{content:'';position:absolute;right:0;top:0;width:4px;height:4px;border-radius:50%;background:#a4b5cc}.collab-face{width:32px;height:32px;flex-shrink:0}.collab-face.agent{background:#25232b;color:#ddd6e8;font-size:10px}.collab-dialog .collab-row>button:first-child{min-width:0}.collab-row strong,.collab-row small{overflow:hidden;text-overflow:ellipsis}.collab-row>button>span:last-child{min-width:0}.collab-body h3+ .collab-row{margin-top:4px}
@media(max-width:1480px){.collab-cluster .collab-avatar{display:none}.collab-cluster .collab-cluster-button{font-size:10px;padding:6px 4px;margin:0}.collab-header{gap:6px;margin:0}.publish-tools{gap:4px!important}}@media(max-width:900px){.collab-header{display:flex!important}.collab-cluster+.collab-cluster{padding-left:4px}.toolbar #editor-search{display:grid!important;width:32px;height:32px;min-width:32px}}
.studio-preview-bar{position:fixed;top:12px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;padding:7px 10px 7px 14px;border:1px solid var(--studio-border);border-radius:9px;background:var(--studio-panel-raised);color:var(--studio-text);z-index:160;font:12px Segoe UI,sans-serif;box-shadow:0 3px 12px var(--studio-shadow-color);max-width:calc(100vw - 24px);white-space:nowrap}.studio-preview-bar[hidden]{display:none}.studio-preview-bar select,.studio-preview-bar button{background:var(--studio-control);border:1px solid var(--studio-border);border-radius:5px;padding:6px 9px;font:inherit;color:inherit}.studio-preview-bar :focus-visible{outline:2px solid #4389ff;outline-offset:2px}.preview-size,.preview-message,.studio-preview-bar kbd{font-size:10px;color:var(--studio-secondary)}.preview-message{max-width:180px;overflow:hidden;text-overflow:ellipsis}
.editor.previewing .toolbar,.editor.previewing .rail,.editor.previewing .left-panel,.editor.previewing .inspector,.editor.previewing .workspace>:not(#canvas),.editor.previewing .canvas-meta,.editor.previewing .canvas-tool-rail,.editor.previewing .canvas-breadcrumb,.editor.previewing .viewport-caption,.editor.previewing .studio-ruler,.editor.previewing .ruler-corner{display:none!important}.editor.previewing .workspace{position:fixed;inset:0;display:flex;margin:0;padding:0;z-index:50}.editor.previewing #canvas{flex:1;width:100%;height:100%;margin:0;border:0;border-radius:0;background:var(--studio-panel-raised)}.editor.previewing #canvas-scroll{padding:64px 24px 24px!important}.studio-preview .collab-request,.studio-preview .collab-conflict,.studio-preview .collab-debug,.studio-preview .editor-context-menu,.studio-preview .drag-ghost,.studio-preview .move-pointer-ghost,.studio-preview .plm-color-popover,.studio-preview .manual-guide-menu,.studio-preview .precision-menu,.studio-preview .viewport-menu,.studio-preview .studio-global-search{display:none!important}
.previewing #artboard [data-element],.previewing #artboard [data-element]:hover,.previewing .collab-human-focus,.previewing .collab-agent-focus{outline:none!important;cursor:default}.previewing #artboard .selected-element::after,.previewing.show-element-ids #artboard [data-node]::before,.previewing.show-component-ids #artboard [data-node-type=library-component]::before,.previewing .collab-insert-ghost,.previewing .studio-resize-overlay{display:none!important}.previewing .artboard{box-shadow:none!important}.previewing .empty-layout::before,.previewing .empty-layout::after,.previewing .empty-layout>button{display:none!important}
@media(max-width:600px){.preview-message,.preview-size{display:none}.studio-preview-bar{gap:7px}.editor.previewing #canvas-scroll{padding:58px 0 0!important}}@media(prefers-reduced-motion:reduce){.toolbar-search-expanded{animation:none}}

.editor.previewing #command,.editor.previewing .media-breadcrumbs,.editor.previewing .ruler-scope-indicator,.studio-preview .studio-canvas-overlays{display:none!important}

.previewing .inserted-layout:not([style*="border"]){border-color:transparent!important}

.studio-preview #pilot-safety-banner{display:none!important}
