/* Persistent editing surface: controls scroll, the preview does not. */
.cq-layer-export{margin-left:auto}.cq-drawing-mode .cq-layer-export{display:none}.cq-layer-export .cq-primary{min-height:40px;padding:10px 20px;font-size:.8rem}
.cq-workflow{font-size:.7rem;color:var(--cq-muted);margin:-6px 0 12px;letter-spacing:.035em}.cq-has-source .cq-drop{min-height:66px;padding:10px}.cq-has-source .cq-drop small{display:none}
.cq-recut .cq-mask-tools{margin:0;border:0;padding:6px 0}.cq-recut .cq-mask-tools h3{display:none}.cq-recut>summary{font-size:.8rem}
.cq-scene-row.is-drop-target{border-top:3px solid var(--cq-pink)}.cq-scene-row.is-dragging{opacity:.4}.cq-scene-row{touch-action:none}.cq-scene-select{cursor:grab!important}
/* Keep the decoder on the compositor; display:none can suppress frame callbacks. */
#cq-video{position:fixed;bottom:0;left:0;width:1px;height:1px;opacity:.01;pointer-events:none}
.cq-studio .cq-d-view-controls{display:flex}.cq-studio #cq-canvas{touch-action:none}.cq-studio.cq-d-focus .cq-source,.cq-studio.cq-d-focus .cq-inspector{display:none}
.cq-timing-actions{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:4px}.cq-timing-actions .cq-quiet{font-size:.62rem;padding:4px 8px;min-height:27px}
.cq-studio .cq-d-ruler{cursor:ew-resize;touch-action:none;min-height:22px}.cq-studio .cq-d-ruler:focus-visible{outline:2px solid var(--cq-pink)}
.cq-cel-guide{font-size:.73rem;line-height:1.6;color:var(--cq-muted)}.cq-cel-position{display:block;color:var(--cq-lilac);font-size:.8rem;margin:8px 0;font-variant-numeric:tabular-nums}
.cq-studio .cq-cel-filmstrip button{display:flex;flex-direction:column;align-items:center;gap:3px;padding:4px;min-width:70px;font-size:.6rem}.cq-cel-filmstrip canvas{width:64px;height:36px;border-radius:3px}
@media(min-width:901px){.cq-studio .cq-d-timeline{max-height:160px!important;min-height:106px!important}.cq-studio .cq-cel-filmstrip{max-height:66px!important;min-height:62px!important}.cq-studio .cq-workspace,.cq-studio.cq-drawing-mode .cq-workspace{min-height:480px!important;height:calc(100dvh - 194px)!important}.cq-studio .cq-stage,.cq-studio.cq-drawing-mode .cq-stage{min-height:125px!important}}
.cq-studio .cq-transport{min-width:0;flex-wrap:wrap;gap:5px}.cq-studio #cq-time{min-width:50px;flex:1;width:auto}.cq-studio #cq-clock{white-space:nowrap}
.cq-studio .cq-cel-filmstrip{display:none;flex-shrink:0;min-height:0;padding:8px 4px;border-bottom:1px solid var(--cq-border);overflow-y:hidden}.cq-studio .cq-cel-filmstrip button{padding:0 8px;flex-shrink:0}.cq-studio.cq-drawing-mode .cq-cel-filmstrip:not([hidden]){display:flex}.cq-studio .cq-d-inspector .cq-cels{border-top:0;padding:0 0 12px;margin-bottom:14px;border-bottom:1px solid var(--cq-border)}.cq-studio .cq-d-inspector .cq-cels-head{flex-wrap:wrap}
.cq-studio .cq-heading{display:none}.cq-studio .cq-editor-modes{margin:10px 0 14px;padding:10px 0}.cq-studio .tool-header{margin-bottom:8px}
.cq-studio .cq-stack-panel h2{font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;color:var(--cq-muted);margin-bottom:12px}.cq-scene-stack{display:grid;gap:5px}.cq-scene-row{display:flex;border:1px solid var(--cq-border);border-radius:8px;overflow:hidden}.cq-scene-row button{border:0;background:transparent;color:inherit;min-height:44px;cursor:pointer}.cq-scene-select{display:flex;align-items:center;gap:10px;flex:1;min-width:0;text-align:left;padding:8px}.cq-scene-select span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.78rem}.cq-scene-select[aria-pressed=true]{background:#c4a2ff22;color:var(--cq-lilac)}.cq-scene-eye{width:36px}.cq-scene-row img{width:18px;height:18px}.cq-scene-row button:focus-visible{outline:2px solid var(--cq-lilac);outline-offset:-2px}
.cq-studio #cq-scene-transform h3,.cq-mask-tools h3{font-size:.85rem;margin:12px 0}.cq-mask-tools{border-top:1px solid var(--cq-border);margin-top:18px;padding-top:6px}.cq-mask-actions{display:flex;gap:6px;flex-wrap:wrap}.cq-mask-actions .cq-quiet{font-size:.73rem;display:inline-flex;align-items:center;gap:4px}.cq-mask-actions img{width:15px;height:15px}.cq-studio .cq-segments{flex-wrap:wrap}.cq-studio .cq-segments label:last-child{flex-basis:100%}.cq-studio .cq-style-dock{padding:8px 0;border:0;margin:0}.cq-studio .cq-presets{grid-template-columns:repeat(2,minmax(0,1fr))}.cq-studio .cq-preset{font-size:.67rem}.cq-studio .cq-saved-controls input{max-width:180px}
.cq-studio .cq-base-effects>fieldset{padding-top:12px}.cq-studio .cq-layer-panel>summary{font-size:.78rem}.cq-studio #cq-layer-list{min-height:40px}.cq-studio .cq-result{max-width:800px;margin:18px auto}.cq-studio .cq-result[hidden]{display:none}.cq-shortcuts{font-size:.66rem;color:var(--cq-muted);margin:8px 4px;flex-shrink:0}.cq-studio .cq-transport .cq-quiet{min-width:32px;padding:6px}
.cq-cels{display:none;border-top:1px solid var(--cq-border);padding:10px 4px}.cq-drawing-mode .cq-cels:not([hidden]){display:block}.cq-cels-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.75rem}.cq-cels input[type=checkbox]{accent-color:var(--cq-lilac)}.cq-cels select,.cq-cels input[type=number]{background:var(--cq-panel);border:1px solid var(--cq-border);color:inherit;border-radius:6px;padding:6px;font:inherit}.cq-cels input[type=number]{width:58px}.cq-cels-actions{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin:9px 0;font-size:.7rem}.cq-cels-actions button{font-size:.68rem;padding:6px 9px;min-height:32px}.cq-cel-strip{display:flex;gap:4px;overflow:auto;max-width:100%;padding-bottom:4px}.cq-cel-strip button{min-width:36px;min-height:36px;background:#ffffff05;border:1px solid var(--cq-border);border-radius:6px;color:inherit;cursor:pointer}.cq-cel-strip button[aria-pressed=true]{border-color:var(--cq-lilac);background:#c4a2ff22}.cq-cels .cq-check{font-size:.7rem;margin:8px 0}.cq-cels .cq-caption{font-size:.66rem;margin:6px 0}
@media(min-width:901px){
 .cq-studio .cq-workspace,.cq-studio.cq-drawing-mode .cq-workspace{grid-template-columns:232px minmax(0,1fr) 290px;gap:10px;height:calc(100dvh - 174px);min-height:540px;max-height:1000px;align-items:stretch}
 .cq-studio .cq-workspace>.cq-panel{height:100%;overflow-y:auto;overscroll-behavior:contain;padding:14px;border-radius:12px;scrollbar-width:thin;scrollbar-color:#534764 transparent}
 .cq-studio .cq-inspector,.cq-studio.cq-drawing-mode .cq-d-inspector{grid-column:auto;display:block}.cq-studio .cq-inspector fieldset,.cq-studio .cq-d-inspector fieldset,.cq-studio .cq-d-inspector #cq-d-edit{display:block}
 .cq-studio .cq-workspace>.cq-preview{display:flex;flex-direction:column;overflow:hidden;padding:9px;min-width:0}
 .cq-studio .cq-stage,.cq-studio.cq-drawing-mode .cq-stage{flex:1;min-height:180px;height:auto;max-height:none;aspect-ratio:auto}
 .cq-studio .cq-d-toolbar,.cq-studio .cq-transport,.cq-studio .cq-progress{flex-shrink:0}.cq-studio .cq-d-toolbar{flex-wrap:wrap;gap:5px}.cq-studio .cq-d-toolbar .cq-quiet{font-size:.67rem;padding:6px 8px}
 .cq-studio .cq-d-timeline{flex-shrink:1;max-height:155px;min-height:65px;overflow-y:auto;padding:7px 0}.cq-studio .cq-cels{flex-shrink:0}.cq-studio .cq-d-timeline .cq-caption{display:none}
 .cq-studio.cq-d-focus .cq-workspace{grid-template-columns:minmax(0,1fr);height:calc(100dvh - 174px)}
 .cq-studio .cq-export{position:sticky;bottom:-14px;background:var(--cq-panel);padding:12px 0 8px;border-top:1px solid var(--cq-border);z-index:2}
 .cq-studio .cq-control{margin-top:12px;gap:6px}.cq-studio .cq-control select{min-height:36px;padding:8px}.cq-studio .cq-layer-grid{gap:0 9px}
 .cq-studio.cq-drawing-mode .cq-d-toolbar{padding:6px;min-height:40px}.cq-studio .cq-d-toolbar .cq-quiet{min-height:30px}
 .cq-studio.cq-drawing-mode .cq-transport{padding:6px;margin-top:5px}.cq-studio .cq-transport .cq-quiet{min-height:30px}
 .cq-studio .cq-d-timeline{max-height:82px;min-height:58px;padding:5px 8px;margin-top:5px}.cq-studio .cq-d-timeline h3{display:none}.cq-studio .cq-d-ruler{margin-bottom:3px}.cq-studio .cq-cel-filmstrip{padding:4px;max-height:42px}
 .cq-studio .cq-shortcuts{margin:4px}.cq-studio .cq-d-tool-buttons{left:8px;top:8px;bottom:auto;transform:none;display:flex;flex-direction:row;flex-wrap:wrap;gap:3px;max-width:calc(100% - 16px);padding:4px}.cq-studio:not(.cq-drawing-mode) .cq-d-tool-buttons{display:none}.cq-studio .cq-d-tool-buttons button{width:30px;min-height:30px;height:30px}
}
@media(min-width:901px) and (max-width:1150px){.cq-studio .cq-workspace,.cq-studio.cq-drawing-mode .cq-workspace{grid-template-columns:195px minmax(0,1fr) 240px}.coqueta-shell{padding-inline:12px}.cq-studio .cq-workspace>.cq-panel{padding:10px}}
@media(max-width:900px){.cq-studio .cq-workspace,.cq-studio.cq-drawing-mode .cq-workspace{grid-template-columns:minmax(0,1fr)}.cq-studio .cq-preview{grid-row:1;position:sticky;top:0;z-index:3}.cq-studio .cq-stage{height:280px}.cq-studio .cq-inspector,.cq-studio .cq-inspector fieldset,.cq-studio .cq-d-inspector fieldset,.cq-studio .cq-d-inspector #cq-d-edit{display:block}.cq-studio .cq-d-timeline{max-height:100px;overflow:auto}.cq-studio .cq-shortcuts{display:none}.cq-studio .cq-cels-actions{gap:3px}}
