.canvas-panel{position:sticky;top:85px}.studio-controls details{border-top:1px solid #6d405b;padding-top:14px;margin-top:16px}.studio-controls summary{font-weight:800;cursor:pointer;margin-bottom:16px;color:#ffc7df}.studio-controls input[type=checkbox]{width:18px;min-height:18px;accent-color:#ff77ad}.check{display:flex;align-items:center;gap:9px;font-size:13px;margin:12px 0}.scene-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:14px}.scene-tabs button{flex:1}.scene-tabs button[aria-pressed=true]{background:#ff77ad;color:#25121c}.stage{min-height:380px;padding:12px}.surface{width:min(100%,340px);max-height:69vh;max-width:calc(69vh * 9 / 16);overflow:hidden}.surface.landscape{max-width:100%;width:min(100%,760px);max-height:none}.studio-motion{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.studio-alert-layer{position:absolute;left:0;top:0;transform-origin:0 0;pointer-events:none;overflow:hidden}.studio-alert{position:absolute;text-align:center;width:420px;max-width:80%;padding:28px 38px;border:2px solid var(--color);border-radius:26px;background:linear-gradient(145deg,#1f0d1df0,#3c152de6);box-shadow:0 15px 90px #0008,0 0 40px var(--color);transform:translate(-50%,-50%);color:white}.studio-alert h3{font:700 24px 'Segoe UI',Arial;margin:8px 0;overflow-wrap:anywhere}.studio-alert p{font:18px 'Segoe UI',Arial;color:#ffd5eb;margin:5px 0;overflow-wrap:anywhere}.studio-alert .sunny-widget{max-width:100%}.studio-alert:has(.sw-ghost){position:static;transform:none;margin:0 auto}.studio-alert-layer .sw-ghost{position:absolute;inset:0;width:100%;height:100%;--ghost-travel:calc(var(--studio-width) / 2 - 70px);pointer-events:none}.studio-alert-layer .sw-ghost .sw-main{top:var(--alert-y);font-size:90px}.studio-alert-layer .sw-ghost.sw-size-small .sw-main{font-size:65px}.studio-alert-layer .sw-ghost.sw-size-large .sw-main{font-size:120px}.studio-status{font-size:12px;color:#e0bad0;line-height:1.6;margin:12px 0;min-height:20px}.scene-notice{font-size:12px;color:#ffbadd;border-left:3px solid #ff77ad;padding-left:10px}.field input[type=file]{font-size:11px;padding:7px}.studio-controls .group button{flex:1}.studio-stamp{position:absolute;bottom:8px;left:8px;font:600 10px 'Segoe UI',sans-serif;letter-spacing:.08em;color:#fff;background:#21131fcc;padding:5px 8px;border-radius:6px;pointer-events:none}.studio-controls .field{margin-bottom:14px}.studio-controls .helper a{white-space:normal}.studio-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}.studio-controls .field input[type=range]{padding:0;accent-color:#ff77ad}@media(max-width:800px){.canvas-panel{position:static;grid-row:1}.surface{max-height:65vh;max-width:calc(65vh * 9 / 16)}.stage{min-height:280px}.studio-controls details{margin-top:12px}}
.surface{max-height:calc(100vh - 330px);max-width:calc((100vh - 330px) * 9 / 16)}.stage{min-height:280px}.surface.landscape{max-width:100%;max-height:none}@media(max-width:800px){.surface{max-height:65vh;max-width:calc(65vh * 9 / 16)}}

.canvas-panel{max-height:calc(100vh - 105px);overflow:auto}@media(max-width:800px){.canvas-panel{max-height:none;overflow:visible}}

.frame-row{display:flex;gap:7px;margin:7px 0}.frame-row button:first-child{flex:1;text-align:left}.frame-row button[aria-pressed=true]{border-color:#ff77ad}#clearFrames,#clearEdge{margin:8px 0;width:100%}

.preview-frame-handles{position:absolute;pointer-events:none;z-index:5;border:1px dashed #fff9;box-sizing:border-box}.preview-frame-handles[hidden]{display:none}.preview-frame-handle{position:absolute;width:32px!important;height:32px!important;min-height:0!important;padding:0!important;border:0!important;background:transparent!important;pointer-events:auto;touch-action:none;transform:translate(-50%,-50%);border-radius:0!important}.preview-frame-handle:after{content:'';display:block;width:12px;height:12px;margin:10px;background:#fff1f7;border:2px solid #ff6dac;border-radius:3px;box-sizing:border-box;box-shadow:0 0 5px #0008}.preview-frame-handle.nw{left:0;top:0;cursor:nwse-resize}.preview-frame-handle.ne{left:100%;top:0;cursor:nesw-resize}.preview-frame-handle.sw{left:0;top:100%;cursor:nesw-resize}.preview-frame-handle.se{left:100%;top:100%;cursor:nwse-resize}.preview-frame-handle:focus-visible{outline:2px solid #ff9cc6;outline-offset:0}#canvas{touch-action:none;cursor:move}
