.pmo-editor-wrap { display: flex; height: calc(100vh - 60px); overflow: hidden; background: #1E293B; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

/* Toolbar */
.pmo-editor-toolbar { width: 64px; background: #0F172A; display: flex; flex-direction: column; align-items: center; padding: 12px 0; gap: 4px; border-right: 1px solid rgba(255,255,255,.08); flex-shrink: 0; z-index: 10; }
.pmo-tool-btn { width: 44px; height: 44px; border: none; background: none; cursor: pointer; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: rgba(255,255,255,.5); transition: all .15s; font-size: 10px; }
.pmo-tool-btn:hover, .pmo-tool-btn.active { background: rgba(6,182,212,.2); color: #06B6D4; }
.pmo-tool-btn svg { width: 20px; height: 20px; }
.pmo-tool-sep { width: 36px; height: 1px; background: rgba(255,255,255,.1); margin: 6px 0; }

/* Properties panel */
.pmo-editor-props { width: 260px; background: #0F172A; border-right: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; flex-shrink: 0; overflow-y: auto; }
.pmo-props-header { padding: 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.pmo-props-title { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9); }
.pmo-props-body { padding: 14px; flex: 1; }
.pmo-prop-group { margin-bottom: 16px; }
.pmo-prop-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.4); margin-bottom: 6px; display: block; }
.pmo-prop-input { width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; padding: 7px 10px; font-size: 13px; color: #fff; font-family: inherit; transition: border-color .15s; }
.pmo-prop-input:focus { outline: none; border-color: #06B6D4; }
.pmo-prop-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pmo-prop-color { width: 100%; height: 34px; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; cursor: pointer; padding: 2px; background: none; }

/* Canvas area */
.pmo-editor-canvas-area { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.pmo-editor-topbar { height: 50px; background: #1E293B; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; flex-shrink: 0; }
.pmo-editor-topbar-left { display: flex; align-items: center; gap: 10px; }
.pmo-editor-name { font-size: 14px; font-weight: 600; color: #fff; background: none; border: none; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.pmo-editor-name:hover { background: rgba(255,255,255,.06); }
.pmo-editor-actions { display: flex; gap: 8px; }
.pmo-editor-btn { padding: 7px 14px; border-radius: 7px; font-size: 13px; font-weight: 500; cursor: pointer; border: none; transition: all .15s; display: flex; align-items: center; gap: 6px; }
.pmo-editor-btn-secondary { background: rgba(255,255,255,.1); color: #fff; }
.pmo-editor-btn-secondary:hover { background: rgba(255,255,255,.16); }
.pmo-editor-btn-primary { background: #06B6D4; color: #fff; }
.pmo-editor-btn-primary:hover { background: #0891b2; }
.pmo-editor-btn-danger { background: #EF4444; color: #fff; }
.pmo-editor-zoom { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.pmo-editor-zoom button { width: 28px; height: 28px; background: rgba(255,255,255,.1); border: none; border-radius: 6px; color: #fff; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.pmo-editor-zoom span { font-size: 12px; color: rgba(255,255,255,.6); min-width: 36px; text-align: center; }

.pmo-canvas-scroll { flex: 1; overflow: auto; display: flex; align-items: flex-start; justify-content: center; padding: 24px; }
.pmo-canvas-outer { position: relative; transform-origin: top center; }
#pmo-canvas { display: block; cursor: crosshair; box-shadow: 0 8px 40px rgba(0,0,0,.5); }

/* Layer panel */
.pmo-editor-layers { width: 220px; background: #0F172A; border-left: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; flex-shrink: 0; }
.pmo-layers-header { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: space-between; }
.pmo-layers-title { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9); }
.pmo-layers-list { flex: 1; overflow-y: auto; padding: 8px; }
.pmo-layer-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 6px; cursor: pointer; font-size: 12px; color: rgba(255,255,255,.6); transition: all .15s; margin-bottom: 2px; }
.pmo-layer-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.pmo-layer-item.selected { background: rgba(6,182,212,.15); color: #06B6D4; }
.pmo-layer-icon { font-size: 14px; flex-shrink: 0; }
.pmo-layer-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pmo-layer-delete { opacity: 0; font-size: 16px; cursor: pointer; padding: 0 2px; transition: opacity .15s; }
.pmo-layer-item:hover .pmo-layer-delete { opacity: .5; }
.pmo-layer-item:hover .pmo-layer-delete:hover { opacity: 1; color: #EF4444; }

/* Export modal */
.pmo-export-formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.pmo-export-fmt { border: 2px solid rgba(255,255,255,.12); border-radius: 8px; padding: 16px 10px; text-align: center; cursor: pointer; transition: border-color .15s; color: rgba(255,255,255,.8); font-size: 13px; font-weight: 500; }
.pmo-export-fmt:hover, .pmo-export-fmt.selected { border-color: #06B6D4; color: #06B6D4; }
.pmo-export-fmt-icon { font-size: 28px; display: block; margin-bottom: 6px; }

/* Canvas selection handles */
.pmo-canvas-selection { position: absolute; pointer-events: none; border: 2px solid #06B6D4; border-radius: 2px; }
.pmo-resize-handle { position: absolute; width: 10px; height: 10px; background: #fff; border: 2px solid #06B6D4; border-radius: 2px; pointer-events: all; cursor: nwse-resize; }

/* Responsive hide panels on small screens */
@media (max-width: 900px) {
  .pmo-editor-layers { display: none; }
  .pmo-editor-props { width: 200px; }
}
@media (max-width: 600px) {
  .pmo-editor-props { display: none; }
  .pmo-editor-toolbar { width: 50px; }
}
