/* Large edge targets allow resizing without hunting a corner grip. */
.layout-resizable{position:relative;resize:none!important;box-sizing:border-box}.layout-resize-edge{position:absolute;z-index:12;touch-action:none;user-select:none;outline:none}.layout-resize-edge:after{content:'';position:absolute;inset:0;background:var(--appearance-accent,#c8f36a);opacity:.12;border-radius:3px;transition:opacity .12s}.layout-resize-edge:hover:after,.layout-resize-edge:focus-visible:after,.layout-resize-edge.is-resizing:after{opacity:.8}.layout-resize-edge.edge-e{right:0;top:0;bottom:0;width:7px;cursor:ew-resize}.layout-resize-edge.edge-w{left:0;top:0;bottom:0;width:7px;cursor:ew-resize}.layout-resize-edge.edge-n{top:0;left:0;right:0;height:7px;cursor:ns-resize}.layout-resize-edge.edge-s{bottom:0;left:0;right:0;height:7px;cursor:ns-resize}.layout-resize-edge.edge-se{bottom:0;right:0;width:15px;height:15px;cursor:nwse-resize;z-index:13}.layout-resize-edge.edge-se:after{background:linear-gradient(135deg,transparent 40%,var(--appearance-accent,#c8f36a) 40%,var(--appearance-accent,#c8f36a) 52%,transparent 52%,transparent 64%,var(--appearance-accent,#c8f36a) 64%);opacity:.6}.layout-is-resizing,.layout-is-resizing *{user-select:none!important}.layout-card-sized{display:flex;flex-direction:column;overflow:auto}.layout-card-sized>.card-head,.layout-card-sized>.scene-image{flex:0 0 auto}.layout-card-sized>.card-body,.layout-card-sized>.scene-fields{flex:1;min-height:0;overflow:auto}.director-compose[data-layout-sized=true]{overflow:auto}.layout-scroll-resizable>.layout-resize-edge.edge-s{position:sticky;display:block;margin-top:-7px;min-height:7px;width:100%;left:0;right:0;bottom:0}.modal.layout-resizable{overflow:hidden;display:flex;flex-direction:column}.modal.layout-resizable>.modal-head{flex:0 0 auto}.modal.layout-resizable>.modal-body{overflow:auto;min-height:0;flex:1}.preview-stage.layout-resizable{max-width:100%;overflow:hidden}.project-rail.layout-resizable,#directorDock.layout-resizable{flex-shrink:0}.key-preview.layout-resizable,.overlay-editor.layout-resizable{overflow:auto}.field-area,.scene-field{resize:both;max-width:100%;box-sizing:border-box}#directorDock .director-compose textarea{min-height:70px}.layout-reset-note{font-size:10px;color:#93a8b0;margin:12px 0}.layout-resize-edge[hidden]{display:none}

.layout-card-sized{overflow:hidden}.layout-card-sized>.card-body,.layout-card-sized>.scene-fields{padding-bottom:14px}.preview-stage .layout-resize-edge{z-index:6}.node-inspector.layout-resizable{padding-left:7px}

.timeline-preview-monitor{position:sticky;top:0;z-index:10;background:var(--appearance-panel,#172329);border:1px solid #40545d;border-radius:7px;padding:5px;box-shadow:0 4px 15px #0007;margin-bottom:14px}.timeline-preview-monitor .preview-stage{height:clamp(130px,25vh,250px);aspect-ratio:auto!important;max-height:45vh;width:100%;background:#080d10}.timeline-preview-monitor .timeline-sticky-transport{position:relative;top:auto;z-index:1;margin:0;border:0;box-shadow:none;border-radius:0;padding:5px 3px}.timeline-preview-monitor .timeline-active-scene{flex-basis:auto;max-width:50%;margin-left:auto}.timeline-preview-monitor .time-readout{font-size:10px}

.view-panel.timeline-panel:not([hidden]){display:flex;flex-direction:column;overflow:hidden;gap:8px}.timeline-panel>.page-heading{flex:0 0 auto;margin-bottom:0}.timeline-panel>.timeline-preview-monitor{position:relative;top:auto;flex:0 0 auto;margin:0}.timeline-panel>.timeline-layout{flex:1;min-height:0;overflow:auto;align-content:start;padding:2px 8px 14px 0}.timeline-panel>.timeline-layout>.export-side{position:static}.timeline-panel .page-heading h1{font-size:21px}.timeline-panel .page-heading p{margin:4px 0;font-size:10px}.timeline-panel .page-heading .eyebrow{display:none}@media(max-height:800px){.timeline-panel>.page-heading{display:flex;flex-wrap:wrap;gap:4px}.timeline-panel .page-heading h1{font-size:16px;margin:0}.timeline-panel .page-heading p{display:none}.timeline-panel .heading-actions button,.timeline-panel .heading-actions label{font-size:9px;padding:5px}.timeline-preview-monitor .preview-stage{height:150px}.timeline-preview-monitor .timeline-active-scene{max-width:40%}}

/* A canvas must not contribute its intrinsic dimensions to the preview grid. */
.timeline-preview-monitor .preview-stage{display:block;min-width:0;min-height:0}.timeline-preview-monitor .preview-stage canvas{position:absolute;inset:0;display:block;width:100%!important;height:100%!important;min-width:0;min-height:0;object-fit:contain!important}.timeline-preview-monitor[data-layout-sized=true]{display:flex;flex-direction:column}.timeline-preview-monitor[data-layout-sized=true]>.preview-stage{flex:1;min-height:0;max-height:none!important;width:100%!important;height:auto!important}.timeline-preview-monitor[data-layout-sized=true]>.transport{flex:0 0 auto}.timeline-preview-monitor>.layout-resize-edge.edge-s{height:9px;bottom:0;cursor:ns-resize}

/* Only panel boundaries resize the timeline preview; media always fills its frame. */
.timeline-preview-monitor{display:flex;flex-direction:column;min-height:200px;padding-bottom:12px}.timeline-preview-monitor>.preview-stage{position:relative;flex:1;min-height:100px;max-height:none!important;width:100%!important;height:auto!important;aspect-ratio:auto!important}.timeline-preview-monitor:not([data-layout-sized=true]){height:clamp(230px,35vh,380px)}.timeline-preview-monitor>.transport{flex:0 0 auto}.timeline-preview-monitor>.layout-resize-edge.edge-s{height:10px}.audio-timeline-editor{padding-top:12px}.audio-timeline-editor>.layout-resize-edge.edge-n{height:10px}.timeline-preview-monitor>.layout-resize-edge.edge-s:after,.audio-timeline-editor>.layout-resize-edge.edge-n:after{opacity:.3}

#selectedSoundCaption{flex:0 0 auto;display:flex;align-items:center;gap:8px;padding:5px;font-size:11px}#selectedSoundCaption[hidden]{display:none}#selectedSoundCaption label{flex:1}#selectedSoundCaption textarea{display:block;width:100%;resize:none;box-sizing:border-box;background:#10191e;color:#fff;border:1px solid #68828b;border-radius:4px}#selectedSoundCaption small{max-width:180px}#selectedSoundCaption button{font-size:11px}

#timelineHorizontalScroll{flex:0 0 19px;height:19px;min-height:19px;overflow-x:scroll;overflow-y:hidden;width:100%;background:#10191e;scrollbar-color:#8ba4ad #22343b;scrollbar-width:auto}#timelineHorizontalScroll>div{height:1px;min-height:1px}#timelineHorizontalScroll::-webkit-scrollbar{height:16px}#timelineHorizontalScroll::-webkit-scrollbar-track{background:#22343b}#timelineHorizontalScroll::-webkit-scrollbar-thumb{background:#8ba4ad;border:3px solid #22343b;border-radius:8px}.timeline-preview-monitor{min-height:225px}
