/* Additive controls: the original Pagework layout and palette are retained. */
.ve-dialog button:focus-visible,.ve-dialog input:focus-visible,.ve-dialog select:focus-visible{outline:2px solid #91b9ff;outline-offset:2px}
.ve-dialog button:disabled{opacity:.4;cursor:not-allowed}
.ve-screen #ve-player{background:transparent;transform-origin:center;pointer-events:none}
.ve-screen .ve-text-layer{position:absolute;z-index:5;text-align:center;white-space:pre-wrap;max-width:90%;font-weight:700;line-height:1.2;cursor:move;touch-action:none;user-select:none;transform-origin:center;min-width:12px;min-height:12px}
.ve-screen .ve-text-layer.selected{outline:1px dashed #80aeff;outline-offset:6px}
.ve-screen .ve-text-layer .ve-layer-content{pointer-events:none;display:block;white-space:pre-wrap}
.ve-screen .ve-text-layer svg{display:block;width:100%;height:auto}
.ve-handle{position:absolute;width:11px;height:11px;right:-11px;bottom:-11px;background:#edf3ff;border:2px solid #4a8dff;border-radius:2px;cursor:nwse-resize;touch-action:none;z-index:7}
.ve-rotate-handle{right:calc(50% - 5px);top:-28px;bottom:auto;border-radius:50%;cursor:grab}
.ve-rotate-handle:before{content:'';position:absolute;width:1px;height:15px;top:8px;left:3px;background:#81adff}
.ve-video-selection{position:absolute;inset:0;border:1px dashed #80aeff;z-index:4;touch-action:none;cursor:move;pointer-events:auto;transform-origin:center}
.ve-video-selection[hidden]{display:none}
.ve-video-selection .ve-handle{right:4px;bottom:4px}.ve-video-selection .ve-rotate-handle{right:calc(50% - 5px);top:7px;bottom:auto}
#ve-effect-canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;z-index:1;transform-origin:center}
#ve-effect-canvas[hidden]{display:none}
.ve-screen.ve-transparent{background-color:#15171e;background-image:linear-gradient(45deg,#252832 25%,transparent 25%),linear-gradient(-45deg,#252832 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#252832 75%),linear-gradient(-45deg,transparent 75%,#252832 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}
.ve-motion-targets{display:flex;gap:5px;margin-bottom:9px}.ve-motion-targets button{flex:1;padding:6px 3px;background:#242832;border:1px solid #3a3e49;border-radius:5px;color:#aab2c0;font:inherit;font-size:10px}.ve-motion-targets button.active{background:#273b5e;color:#c0d6ff;border-color:#5286d6}
.ve-editor-note{font-size:10px;color:#929bab;line-height:1.5;margin:6px 0 0}
.ve-inline-tools{display:flex;gap:5px;flex-wrap:wrap;margin:7px 0}.ve-inline-tools button{background:#252932;border:1px solid #383d49;color:#dfe3eb;border-radius:5px;padding:5px 8px;font:inherit;font-size:10px;cursor:pointer}
.ve-inline-tools button.active{background:#244b3c;color:#9eeacb;border-color:#438e70}
.ve-history{display:flex;gap:3px}.ve-history button{width:26px;padding:4px;font-size:15px}
.ve-keyframe-item>button:first-child{margin:0;flex:1;text-align:left;color:#c6d8f9}
.ve-clip-block{touch-action:none}.ve-trim-grip{position:absolute;top:0;bottom:0;width:6px;background:#ffffff30;cursor:ew-resize}.ve-trim-grip.left{left:0}.ve-trim-grip.right{right:0}
.ve-sticker-block{background:linear-gradient(90deg,#806434,#61502e);border-color:#dfb56a}
.ve-key-row{height:27px;min-height:27px}.ve-key-row .ve-lane-label{height:26px;font-size:9px}.ve-key-row .ve-lane-track{height:26px}.ve-key-row .ve-key-marker{top:7px;width:10px;height:10px}
.ve-editor-main{position:relative}.ve-preview-toolbar .ve-toolbar-hint{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ve-import-project{font-size:10px!important}.ve-dialog #ve-status{max-width:430px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ve-dialog #ve-status[role=status]{color:#a4adbd}
.ve-mobile-tools{display:none}.ve-media-content [hidden]{display:none!important}
@media(max-width:1050px){.ve-project-name{min-width:90px}.ve-dialog #ve-status{max-width:200px}.ve-toolbar-hint{display:none}.ve-history{gap:0}}
@media(max-width:760px){.ve-mobile-tools{display:flex;gap:4px}.ve-mobile-tools button{font:inherit;font-size:10px;color:#d4def0;background:#27334a;border:1px solid #455670;border-radius:4px;padding:5px}.ve-preview-toolbar{padding:0 6px;gap:5px}.ve-soft-button{font-size:10px;padding:5px}.ve-dialog .ve-workspace{position:relative;display:block}.ve-editor-main{height:100%}.ve-media-panel.ve-mobile-open,.ve-inspector.ve-mobile-open{display:block;position:absolute;top:42px;bottom:34px;z-index:20;max-width:88%;width:290px;box-shadow:0 8px 28px #000a;overflow:auto}.ve-media-panel.ve-mobile-open{left:0;display:grid;grid-template-columns:52px 1fr}.ve-inspector.ve-mobile-open{right:0}.ve-project-name{min-width:50px}.ve-project-name b{max-width:120px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ve-topbar .ve-import-project{display:none}.ve-topbar{height:48px}.ve-zoom{font-size:0}.ve-zoom input{width:54px}.ve-history button{width:22px}.ve-timeline-toolbar{flex-wrap:wrap;gap:2px}.ve-transport{gap:4px}.ve-transport span{font-size:9px}.ve-dialog .ve-export{display:inline-block;font-size:9px;padding:6px!important}.ve-add-website{max-width:90px}.ve-video-selection .ve-handle{width:15px;height:15px}}
