/* Phone workspace: keep the image clear and retain the original editor actions. */
.sc-mobile-options-toggle,.sc-mobile-timeline-toggle,.sc-mobile-focus-toggle{display:none}
@media(max-width:759px){
.editor-shell.editor-compact>header{display:grid!important;grid-template-columns:84px minmax(45px,1fr) auto 40px!important;grid-template-areas:"home project export options"!important;grid-template-rows:44px!important;gap:4px!important;min-height:56px!important;height:56px!important;flex:0 0 auto!important;padding:6px!important;align-items:center!important;flex-wrap:nowrap!important}
.editor-shell.editor-compact>header>[data-editor-header=home]{grid-area:home;min-width:0!important;padding:0!important;height:44px!important}
.editor-shell.editor-compact>header>[data-editor-header=home] img{width:82px!important;max-width:100%;max-height:28px}
.editor-shell.editor-compact>header>[data-editor-header=project]{grid-area:project;min-width:0!important;width:auto!important;max-width:100%;position:static!important;display:flex!important;height:44px!important;margin:0!important}
.editor-shell.editor-compact>header>[data-editor-header=project] button{min-width:0!important;max-width:100%;height:44px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;padding:3px!important}
.editor-shell.editor-compact>header>[data-editor-header=export]{grid-area:export;position:static!important;width:auto!important;margin:0!important;height:44px}
.editor-shell.editor-compact>header>[data-editor-header=export] button{min-height:44px!important;font-size:11px!important;padding-inline:7px!important}
.editor-shell.editor-compact>header>:is([data-editor-header=mode],[data-editor-header=language],[data-editor-header=pin]){display:none!important;position:static!important;margin:0!important}
.editor-shell.editor-compact>header>.sc-mobile-options-toggle{grid-area:options;display:grid;place-items:center;width:40px;min-width:40px;min-height:44px;border:1px solid var(--border);border-radius:9px;background:var(--bg-1);color:var(--fg);font-size:22px;touch-action:manipulation}
.editor-shell.editor-compact>header[data-sc-mobile-options=open]{grid-template-rows:44px 44px!important;grid-template-areas:"home project export options" "mode mode language pin"!important;height:104px!important}
.editor-shell.editor-compact>header[data-sc-mobile-options=open]>[data-editor-header=mode]{display:flex!important;grid-area:mode;height:44px!important;max-width:100%;width:100%}
.editor-shell.editor-compact>header[data-sc-mobile-options=open]>[data-editor-header=mode] button{font-size:11px!important;min-height:40px!important;white-space:normal}
.editor-shell.editor-compact>header[data-sc-mobile-options=open]>[data-editor-header=language]{display:flex!important;grid-area:language;justify-self:end;width:44px;height:44px}
.editor-shell.editor-compact>header[data-sc-mobile-options=open]>[data-editor-header=pin]{display:flex!important;grid-area:pin;min-width:40px!important;width:40px;height:44px}
.editor-shell.editor-compact .editor-workspace{grid-template-rows:minmax(0,1fr) 150px!important;gap:6px!important;padding:4px!important;min-height:0}
.editor-shell.editor-compact.sc-mobile-timeline-expanded .editor-workspace{grid-template-rows:minmax(0,1fr) min(44dvh,340px)!important}
.editor-shell.editor-compact.sc-mobile-preview-focused .editor-workspace{grid-template-rows:minmax(0,1fr) 0!important;row-gap:0!important}
.editor-shell.editor-compact.sc-mobile-preview-focused #editor-panel-timeline{visibility:hidden;overflow:hidden;pointer-events:none}
.editor-shell.editor-compact .editor-stage{min-height:0!important}
.editor-shell.editor-compact [data-tour=preview]{overflow:hidden!important;isolation:isolate}
.editor-shell.editor-compact [data-tour=preview]>.border-b{display:none!important}
.editor-shell.editor-compact [data-tour=preview]>.flex-1{padding:2px!important;min-height:0!important;overflow:hidden!important}
.editor-shell.editor-compact [data-tour=preview]>.shrink-0.border-t{position:relative!important;inset:auto!important;display:block!important;flex:0 0 88px!important;height:88px!important;min-height:88px!important;margin:0!important;padding:0!important;border-top:1px solid var(--border)!important;background:var(--bg-1)!important;overflow:visible!important;pointer-events:auto!important}
.editor-shell.editor-compact [data-tour=preview]>.shrink-0.border-t:before{display:none!important}
.editor-shell.editor-compact [data-tour=preview]>.shrink-0.border-t>:first-child{position:relative!important;inset:auto!important;height:3px!important;border-radius:0!important;background:var(--border)!important}
.editor-shell.editor-compact [data-preview-transport]{position:relative!important;inset:auto!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:40px 40px!important;grid-template-areas:"time playback" "tools tools";gap:0 3px!important;height:84px!important;min-height:84px!important;padding:0 4px!important;align-items:center;pointer-events:auto!important}
.editor-shell.editor-compact [data-preview-timecode]{grid-area:time;position:static!important;inset:auto!important;width:auto!important;max-width:100%!important;min-width:0;gap:2px!important;overflow:hidden}
.editor-shell.editor-compact [data-preview-timecode],.editor-shell.editor-compact [data-preview-timecode] *{color:var(--fg-2)!important;text-shadow:none!important;font-size:10px!important}
.editor-shell.editor-compact [data-preview-timecode] input{width:90px!important;max-width:90px!important;min-width:0!important;min-height:36px}
.editor-shell.editor-compact [data-preview-playback]{grid-area:playback;position:static!important;inset:auto!important;display:flex!important;gap:2px!important;margin:0!important}
.editor-shell.editor-compact [data-preview-playback] button,.editor-shell.editor-compact [data-preview-playback] button:nth-child(2){width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;color:var(--fg)!important;background:var(--bg-2)!important;box-shadow:none;border-radius:8px!important}
.editor-shell.editor-compact [data-preview-playback] button:nth-child(2){color:#fff!important;background:#166b61!important}
.editor-shell.editor-compact [data-preview-tools]{grid-area:tools;position:relative!important;inset:auto!important;display:flex!important;width:100%!important;min-height:40px!important;height:40px!important;gap:2px!important;padding:0!important;justify-content:space-between!important;border-radius:0;background:transparent!important}
.editor-shell.editor-compact [data-preview-tools]>:is(.sc-preview-loop,.sc-preview-mute,.sc-preview-snap,.sc-mobile-trigger){flex:0 1 40px!important;min-width:34px!important;width:40px!important;min-height:40px!important;height:40px!important;margin:0!important}
.editor-shell.editor-compact [data-preview-tools]>.sc-preview-aspect{flex:0 1 58px;min-width:48px!important;height:40px!important;max-width:58px}
.editor-shell.editor-compact [data-preview-tools]>.sc-preview-aspect button{min-height:40px!important;height:40px!important;font-size:10px!important;padding-inline:2px!important}
.editor-shell.editor-compact [data-preview-tools]>.sc-mobile-trigger[aria-expanded=true]{background:#e0f0e9!important;border-color:#166b61!important;color:#166b61!important}
.editor-shell.editor-compact [data-preview-tools]>:is(.sc-mobile-timeline-toggle,.sc-mobile-focus-toggle){display:grid;place-items:center;order:10;flex:0 0 36px;width:36px;min-width:36px;min-height:40px;height:40px;border:1px solid var(--border);border-radius:8px;background:var(--bg-1);color:var(--fg);font-size:19px;touch-action:manipulation}
.editor-shell.editor-compact [data-preview-tools]>:is(.sc-mobile-timeline-toggle,.sc-mobile-focus-toggle)[aria-pressed=true]{background:#e0f0e9;color:#166b61;border-color:#166b61}
.editor-shell.editor-compact [data-preview-tools][data-sc-menu]>:is(.sc-preview-quality,.sc-preview-zoom,.sc-preview-grid,.sc-preview-safe,.sc-preview-fullscreen,.sc-preview-maximize){border-color:var(--border)!important;box-shadow:0 8px 22px #15392c26!important;color:var(--fg)!important}
.editor-shell.editor-compact .editor-workspace-tabs{min-height:48px!important;height:48px;flex:0 0 auto;padding:2px 4px calc(2px + env(safe-area-inset-bottom))!important;gap:2px}
.editor-shell.editor-compact .editor-workspace-tabs button{min-height:44px!important;font-size:11px!important;padding:3px!important}
.editor-shell.editor-compact [data-preview-tools] button:focus-visible,.sc-mobile-options-toggle:focus-visible{outline:2px solid #166b61!important;outline-offset:1px}
}
@media(max-width:759px) and (max-height:520px){
.editor-shell.editor-compact .editor-workspace{grid-template-columns:minmax(0,1fr) minmax(130px,36%)!important;grid-template-rows:minmax(0,1fr)!important;grid-template-areas:"stage timeline"!important}
.editor-shell.editor-compact.sc-mobile-preview-focused .editor-workspace{grid-template-columns:1fr 0!important}
.editor-shell.editor-compact [data-tour=preview]>.shrink-0.border-t{flex-basis:84px!important;min-height:84px!important;height:84px!important}
}
@media(max-width:759px) and (max-height:520px){
.editor-shell.editor-compact.sc-mobile-preview-focused>header,.editor-shell.editor-compact.sc-mobile-preview-focused>.editor-workspace-tabs{display:none!important}
}
