.editor-mode #canvas-area{display:block;padding:0;overflow:auto;min-width:0;min-height:0}
#zoomStage{position:relative;flex-shrink:0;overflow:hidden;overflow:clip}
.editor-mode #canvas-area{overscroll-behavior:contain;overflow-anchor:none}
body.editor-mode{overflow:hidden}
@media(max-width:760px),(max-height:600px) and (max-width:1000px){
 .editor-mode .design-toolbar>.ui-toolbar-left{flex-wrap:wrap}
 .editor-mode .design-toolbar>.ui-toolbar-right{flex-shrink:0}
 .editor-mode #app>.zoom-controls{right:8px;bottom:8px;gap:3px}
 .editor-mode #app>.zoom-controls .zoom-btn{float:none;min-width:36px;height:36px}
}
@media(max-width:365px){
 .editor-mode .design-toolbar{padding-inline:4px}
 .editor-mode .workspace-actions #studioFullscreen{display:none}
}
.editor-mode #canvas-container{position:absolute;transform-origin:0 0;transition:none;flex-shrink:0;margin:0}
.editor-mode #app{position:relative;min-width:0}
.editor-mode #app>.zoom-controls{position:absolute;right:12px;bottom:12px;z-index:6}
.editor-mode .design-column{min-width:0;overflow:hidden}
.editor-mode #selectionActions{display:none}
#contextMenu .context-menu-item{gap:9px;min-height:34px;align-items:center}
#contextMenu .context-menu-item svg,.template-category-edit svg{width:17px;height:17px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#contextMenu #cmDelete{color:#9b5f52!important}
.template-photo-preview{display:block;width:100%;height:auto;aspect-ratio:3;object-fit:contain;background:#fff;border-radius:3px}
.template-category-edit{display:inline-flex;align-items:center;gap:5px;font-size:10px;padding:6px}
#templateCategoryDialog label{display:flex;flex-direction:column;gap:8px;font-size:12px;margin:18px 0}
#templateCategoryDialog input{width:100%}
