
/* V38 — preserve V36 stage/timeline proportions, fix only interactions and alignment */
@media(max-width:650px){
 body .mode-editor .content-shell .editor-top{display:grid!important;grid-template-columns:minmax(0,1fr) 68px minmax(135px,auto)!important;align-items:center!important;gap:5px!important;padding:6px 7px!important;width:100%!important;min-width:0!important}
 body .mode-editor .editor-top-left{min-width:0!important;width:100%!important;overflow:hidden!important;align-items:center!important}
 body .mode-editor .editor-top .v24-format-host{grid-column:2!important;min-width:0!important;width:68px!important;max-width:68px!important}
 body .mode-editor .editor-top #ratio-select,body .mode-editor .editor-top .v24-format-host label{width:68px!important;max-width:68px!important;box-sizing:border-box!important}
 body .mode-editor .editor-top .editor-actions{grid-column:3!important;width:100%!important;min-width:0!important;max-width:none!important;gap:5px!important;display:flex!important;justify-content:flex-end!important;align-items:center!important}
 body .mode-editor .editor-top .editor-actions label{flex:0 0 35px!important;width:35px!important;min-width:35px!important;height:40px!important}
 body .mode-editor .editor-top .editor-actions [data-action="export"]{flex:1 1 auto!important;min-width:0!important;max-width:none!important;width:auto!important;height:40px!important;min-height:40px!important;padding:0 6px!important;font-size:11px!important}
 body .mode-editor .editor-top .v20-editor-name{min-width:0!important;width:100%!important}
 body .mode-editor .editor-top #project-name{width:100%!important;max-width:none!important;min-width:0!important;white-space:nowrap!important;text-overflow:ellipsis!important}
 body .mode-editor .editor-layout>.tab-row .tab{height:59px!important;min-height:59px!important;box-sizing:border-box!important;align-items:center!important;justify-content:center!important;display:flex!important;flex-direction:column!important;gap:3px!important}
 body .mode-editor .editor-layout>.tab-row .tab svg{display:block!important;width:23px!important;height:23px!important;flex:0 0 23px!important}
 body .mode-editor .editor-layout>.tab-row .tab small{display:block!important;line-height:1.2!important;font-size:10px!important}
}
.v34-clip-images{touch-action:none!important;user-select:none!important;-webkit-user-select:none!important;-webkit-touch-callout:none!important;cursor:grab!important}
.v34-clip-images:active{cursor:grabbing!important}
.v34-clip-group.dragging{filter:drop-shadow(0 0 12px rgba(238,188,110,.9));z-index:9}
.v38-caption-overlay{position:absolute;left:6%;width:88%;text-align:center;transform:translateY(-50%);z-index:8;pointer-events:none;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.28;letter-spacing:.01em;font-weight:900;text-shadow:0 2px 0 #08101e,2px 2px 5px #08101e,-2px -2px 6px #08101e,0 0 12px #08101e;padding:5px 8px;border-radius:7px;background:rgba(0,0,0,.38)}
.v38-caption-overlay[hidden]{display:none!important}

.v34-trim-handle{width:22px!important;min-width:22px!important;touch-action:none!important}.v34-trim-handle i{height:28px!important}.v34-clip{overflow:visible!important}.v34-reorder{width:24px!important;height:24px!important;top:1px!important}.v34-clip-images{touch-action:pan-y!important}.v34-clip-group.dragging .v34-clip-images{cursor:grabbing!important;transform:scale(1.01)}
