.sc-mobile-timeline-bar{display:none}
@media(max-width:759px){
.editor-shell.editor-compact .editor-workspace{grid-template-rows:minmax(0,1fr) clamp(210px,30dvh,250px)!important}
.editor-shell.editor-compact.sc-mobile-timeline-expanded .editor-workspace{grid-template-rows:minmax(0,1fr) min(50dvh,440px)!important}
.editor-shell.editor-compact.sc-mobile-preview-focused .editor-workspace{grid-template-rows:minmax(0,1fr) 0!important}
.editor-shell.editor-compact [data-timeline-pan]{touch-action:pan-x pan-y!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.editor-shell.editor-compact [data-testid=timeline-track-headers-scroll]{touch-action:pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.editor-shell.editor-compact [data-timeline-clip]{touch-action:pan-x pan-y!important;font-size:12px}
.editor-shell.editor-compact [data-timeline-trim],.editor-shell.editor-compact [data-timeline-move]{touch-action:none!important}
.editor-shell.editor-compact #editor-panel-timeline{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.editor-shell.editor-compact #editor-panel-timeline[hidden]{display:none!important}
.editor-shell.editor-compact #editor-panel-timeline>.sc-mobile-timeline-bar{display:flex;flex:0 0 44px;height:44px;min-height:44px;align-items:center;gap:4px;padding:2px 5px;border-bottom:1px solid var(--border);background:var(--bg-1);color:var(--fg);z-index:25;overflow:hidden}
.sc-mobile-timeline-bar button{flex:0 0 40px;min-width:40px;min-height:40px;height:40px;border:1px solid var(--border);border-radius:7px;background:var(--bg-2);color:var(--fg);font:600 17px system-ui;touch-action:manipulation}
.sc-mobile-timeline-bar .sc-timeline-size{flex:1 1 auto;min-width:85px;text-align:left;font-size:12px;padding:4px 7px;white-space:nowrap;background:#e0f0e9;color:#145c52;border-color:#b4d1c4}
.sc-mobile-timeline-bar .sc-timeline-fit{flex-basis:48px;width:48px;font-size:11px}
.sc-mobile-timeline-bar .sc-timeline-zoom-label{flex:0 0 36px;font:11px ui-monospace,monospace;text-align:center;color:var(--fg-muted)}
.editor-shell.editor-compact #editor-panel-timeline>.flex-1{min-height:0;flex:1 1 0%}
.sc-mobile-timeline-bar button:focus-visible{outline:2px solid #166b61;outline-offset:-2px}
}
@media(max-width:759px) and (max-height:520px){
.editor-shell.editor-compact .editor-workspace{grid-template-rows:minmax(0,1fr)!important}
.editor-shell.editor-compact.sc-mobile-timeline-expanded .editor-workspace{grid-template-columns:minmax(100px,35%) minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important}
}

/* Native touch scrolling also applies to tablets wider than the phone breakpoint. */
@media(any-pointer:coarse){
.editor-shell [data-timeline-pan],.editor-shell [data-timeline-clip]{touch-action:pan-x pan-y!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.editor-shell [data-timeline-trim],.editor-shell [data-timeline-move]{touch-action:none!important}
.editor-shell [data-timeline-trim]{min-width:14px}
.editor-shell .editor-touch-move{min-width:32px;min-height:32px}
}
