/* Mobile 92: the film gets the space; controls keep 44px touch targets. */
.mobile-focus-editor>header{gap:4px;padding:4px 8px;padding-top:max(4px,env(safe-area-inset-top));min-height:52px;}
.mobile-focus-editor>header #mobileProjectBar{flex:1;min-width:0;min-height:44px;display:grid;grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:26px 18px;column-gap:3px;row-gap:0;}
.mobile-focus-editor>header #name{grid-column:1;grid-row:1;height:26px;min-height:26px;padding:0 2px;font-size:16px;line-height:26px;border:0;background:transparent;text-overflow:ellipsis;}
.mobile-focus-editor>header #mobileSaveState{grid-column:1;grid-row:2;max-width:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:9px;line-height:16px;padding-inline:2px;}
.mobile-focus-editor>header #mobileProjectLibrary{grid-column:2;grid-row:1/3;width:44px;height:44px;font-size:20px;}
.mobile-focus-editor>header button{flex:none;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;background:transparent;font-size:22px;}
.mobile-focus-editor>header #save,.mobile-focus-editor>header #export{font-size:0;min-width:44px;max-width:44px;}
.mobile-focus-editor>header #save::before{content:'⇩';font-size:24px;}
.mobile-focus-editor>header #export::before{content:'↗';font-size:24px;}
.mobile-focus-editor>header #export{background:#e7bc65;color:#15191e;border-radius:10px;}
.mobile-focus-editor>main{padding:4px 6px 0;gap:3px;}
.mobile-focus-editor #previewDock{min-height:0;gap:0;}
.mobile-focus-editor #previewDock .monitor{min-height:40px;border-radius:8px;}
.mobile-focus-editor #previewDock .transport{display:flex;flex-wrap:nowrap;direction:ltr;gap:2px;height:44px;min-height:44px;margin:2px 0 0;}
.mobile-focus-editor #previewDock .transport button{flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0;border:0;background:transparent;font-size:20px;}
.mobile-focus-editor #previewDock .transport #play{font-size:0;background:#233944;color:#ffe1a0;}
.mobile-focus-editor #previewDock .transport #play::before{content:attr(data-icon);font-size:20px;}
.mobile-focus-editor #previewDock .transport output{flex:1;min-width:0;font-size:11px;line-height:1.2;letter-spacing:-.3px;}
.mobile-focus-editor #mobileTimelineDeck{gap:2px;}
#mobileTimelineCommands{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:44px;}
.mobile-focus-editor #mobileContextBar,.mobile-focus-editor #timelineTools{display:flex;gap:2px;min-height:44px;margin:0;padding:0;}
.mobile-focus-editor #mobileContextBar button,.mobile-focus-editor #timelineTools button{flex:none;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;font-size:20px;background:transparent;border:0;border-radius:8px;}
.mobile-focus-editor #mobileEditSelected{text-align:center;}
.mobile-focus-editor #zoomLabel{display:none;}
.mobile-focus-editor #timelineScroll{height:clamp(155px,22dvh,190px);border-radius:8px;}
.mobile-focus-editor #mobileNotices{max-height:16px;scrollbar-width:none;}
.mobile-focus-editor #mobileNotices p{line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.mobile-focus-editor>nav{gap:2px;padding:3px 4px calc(3px + env(safe-area-inset-bottom));}
.mobile-focus-editor>nav button{min-height:48px;height:48px;border:0;border-radius:8px;padding:2px 0;gap:1px;background:transparent;}
.mobile-focus-editor>nav button b{font-size:20px;line-height:22px;}
.mobile-focus-editor>nav button small{font-size:10px;line-height:14px;}
.mobile-focus-editor>nav #add{color:#ffe1a0;background:#293b44;}
.mobile-brand{display:flex;align-items:center;justify-content:space-between;margin:0 0 10px;gap:8px;color:#e7bc65;}
.mobile-brand small{font-size:10px;color:#a9bdcd;}
#mobileMorePanel .mobile-ratio{display:flex;align-items:center;justify-content:space-between;margin:10px 0;gap:10px;}
#mobileMorePanel .mobile-ratio select{width:150px;min-height:44px;}
#mobileToolSheet #mobileToolStrip{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;}
#mobileToolSheet #mobileToolStrip button{min-height:54px;font-size:11px;}
#mobileToolSheet #mobileToolStrip button b{font-size:20px;}
#mobileToolSheet #mobileToolStrip button small{font-size:10px;}
#mobileToolSheet #previewActions{display:grid!important;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px;}
#mobileToolSheet #previewActions button{min-height:44px;}
.mobile-focus-editor.mobile-preview-expanded>nav,.mobile-preview-expanded #mobileTimelineDeck,.mobile-preview-expanded #mobileNotices{display:none!important;}
.mobile-focus-editor.mobile-keyboard-open:not(.mobile-sheet-open)>nav,.mobile-keyboard-open:not(.mobile-sheet-open) #mobileTimelineDeck,.mobile-keyboard-open #mobileNotices{display:none!important;}
@media(orientation:landscape) and (max-height:600px){
 .mobile-focus-editor>main{grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:10px;padding:4px 8px;}
 .mobile-focus-editor #previewDock,.mobile-focus-editor #mobileTimelineDeck{grid-row:1;}
 .mobile-focus-editor #timelineScroll{height:auto;flex:1;}
 .mobile-focus-editor>nav button{height:44px;min-height:44px;}
 .mobile-focus-editor.mobile-preview-expanded>main,.mobile-focus-editor.mobile-keyboard-open:not(.mobile-sheet-open)>main{display:flex;}
 .mobile-focus-editor.mobile-preview-expanded #previewDock{width:100%;}
 .mobile-focus-editor #previewDock .transport{justify-content:center;}
 .mobile-focus-editor #previewDock .transport output{flex:0 1 100px;}
}
@media(min-width:760px){.mobile-focus-editor>header{padding-inline:max(8px,calc((100vw - 744px)/2));}}
