.demo-canvas .editor-frame{position:absolute;z-index:3;box-sizing:border-box;min-width:0;min-height:0;isolation:isolate;cursor:move;touch-action:none}
.editor-frame .frame-content{position:absolute;inset:0;overflow:hidden;background:var(--frame-fill);pointer-events:none}
.editor-frame .frame-content>img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;object-fit:cover!important;transform-origin:center;border:0!important;opacity:1!important;animation:none!important;border-radius:0!important}
.editor-frame .frame-outline{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.editor-frame .frame-title{position:absolute;inset:10%;display:flex;align-items:center;justify-content:center;text-align:center;overflow-wrap:anywhere;line-height:1.2;white-space:pre-wrap;pointer-events:none;z-index:2}
.editor-frame[data-editor-frame=original]{border:var(--frame-border) solid var(--frame-stroke);border-radius:var(--frame-radius)}
.editor-frame[data-editor-frame=original] .frame-content{border-radius:inherit}
.editor-frame:is([data-editor-frame=phone],[data-editor-frame=computer],[data-editor-frame=billboard],[data-editor-frame=sign]){background:#192027;border:var(--frame-border) solid var(--frame-stroke);border-radius:12px}
.editor-frame[data-editor-frame=phone]{border-radius:12% / 6%}
.editor-frame[data-editor-frame=phone] .frame-content{inset:7% 5%;border-radius:8% / 4%}
.editor-frame[data-editor-frame=phone]::after{content:'';position:absolute;top:2%;left:38%;width:24%;height:1.5%;border-radius:10px;background:var(--frame-stroke)}
.editor-frame[data-editor-frame=computer]{background:linear-gradient(90deg,transparent 40%,#192027 40% 60%,transparent 60%);border:0;border-radius:0}
.editor-frame[data-editor-frame=computer] .frame-content{inset:0 0 20%;border:8px solid #192027;border-radius:8px}
.editor-frame[data-editor-frame=computer]::after{content:'';position:absolute;bottom:0;left:20%;width:60%;height:5%;background:#192027;border-bottom:var(--frame-border) solid var(--frame-stroke);border-radius:6px}
.editor-frame[data-editor-frame=billboard]{background:linear-gradient(90deg,transparent 12%,#59616a 12% 17%,transparent 17% 83%,#59616a 83% 88%,transparent 88%);border:0;border-radius:0}
.editor-frame[data-editor-frame=billboard] .frame-content{inset:0 0 22%;border:var(--frame-border) solid var(--frame-stroke);background:var(--frame-fill)}
.editor-frame[data-editor-frame=sign] .frame-content{inset:3%;border:var(--frame-border) solid var(--frame-stroke)}
.frame-palette{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.frame-palette button{min-height:46px!important;padding:5px!important;display:grid;justify-items:center;gap:3px}
.frame-palette svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.5}
.frame-controls{display:grid;gap:8px}.frame-controls .frame-row{display:grid;grid-template-columns:1fr 1fr;gap:6px}.frame-controls label{min-width:0;margin:0!important}.frame-controls input,.frame-controls textarea{width:100%;min-width:0}.frame-controls input[type=color]{height:27px;padding:2px!important}.frame-controls textarea{min-height:56px!important}
.frame-drop-target{outline:3px solid #9bdac6!important;outline-offset:3px}

.organized-editor .frame-controls button,.organized-editor .frame-palette button{background:#29382e;color:#e8e7df;border:1px solid #71816b88;border-radius:4px;font:11px/1.3 Arial;min-height:28px;padding:4px 6px}.organized-editor .frame-controls button:disabled{opacity:.5}

.editor-frame[data-editor-frame=original][data-filled=false]:not(.element-picked){pointer-events:none}.editor-frame .frame-edge{position:absolute;pointer-events:auto}.frame-edge.top,.frame-edge.bottom{left:0;right:0;height:max(9px,var(--frame-border))}.frame-edge.top{top:calc(-1 * var(--frame-border))}.frame-edge.bottom{bottom:calc(-1 * var(--frame-border))}.frame-edge.left,.frame-edge.right{top:0;bottom:0;width:max(9px,var(--frame-border))}.frame-edge.left{left:calc(-1 * var(--frame-border))}.frame-edge.right{right:calc(-1 * var(--frame-border))}

.organized-editor .editor-controls:has(.frame-controls:not([hidden])) .element-layer-menu{display:none!important}

/* Model panels keep their original layout slots, but their surface is movable. */
.demo-canvas:has(>.editor-frame[data-editor-frame=panel]){isolation:isolate}
.demo-canvas .editor-frame[data-editor-frame=panel]{z-index:-1;border-radius:var(--frame-radius);background:transparent}
.editor-frame[data-editor-frame=panel] .frame-content{border-radius:inherit}

/* Captions are separate editable elements inside the support's clipped screen. */
.demo-canvas .frame-content>[data-frame-parent]{pointer-events:auto!important;cursor:move;white-space:pre-wrap;min-height:0;}
.frame-text-tools{display:grid;gap:8px;margin-top:12px}.frame-text-tools p{font-size:12px;line-height:1.4}.frame-text-list{display:grid;gap:6px}.frame-text-list button{text-align:left!important;white-space:normal!important;overflow-wrap:anywhere}
