.mobileOnly{display:none}

@media (max-width:760px), (max-width:950px) and (max-height:500px) and (orientation:landscape){
 .editorPage{height:100dvh;min-height:520px}
 .editorPage .top{
  display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"brand tools" "project project";
  height:auto;gap:3px 8px;padding:calc(6px + env(safe-area-inset-top)) 10px 4px;
 }
 .editorPage .brand{grid-area:brand;font-size:clamp(15px,4.1vw,20px)}
 .editorPage .topright{grid-area:tools;justify-content:flex-end;gap:5px}
 .editorPage .topright>*{min-height:36px}
 .editorPage .topright select{width:68px;padding:5px 1px 5px 5px;font-size:12px}
 .editorPage .topright button.primary{font-size:12px;padding:6px 8px}
 .editorPage .topright #shortcuts{display:none}
 .editorPage .topright #lastExport{min-width:32px;padding:3px}
 .editorPage .topright .navControl{max-width:90px;overflow:hidden;text-overflow:ellipsis;display:block;line-height:24px;padding:5px;font-size:11px}
 .editorPage .project{grid-area:project;justify-content:space-between}
 .editorPage .project input#project{width:min(65%,240px);text-align:start;font-size:16px;padding:4px 0}
 .editorPage .project span{display:inline;font-size:11px}
 .editorPage .promoBar{min-height:28px;padding:3px 8px}
 .editorPage .promoBar .promoAsset{max-height:35px}
 .editorPage .promoBar .promoLink{white-space:normal}

 .editorPage .workspace{display:flex}
 .editorPage .viewer{width:100%}
 .editorPage .viewerhead,.editorPage .transport{padding:0 10px;height:39px}
 .editorPage .transport{height:47px}
 .editorPage .transport .icon,.editorPage .transport .play{min-width:40px;min-height:40px}
 .editorPage #home,.editorPage #play,.editorPage #pointerMode,.editorPage #bladeMode{font-size:0}
 .editorPage #home::before{content:"←";font-size:20px}
 .editorPage #play::before{
  content:"";display:inline-block;width:12px;height:14px;background:currentColor;
  clip-path:polygon(0 0,100% 50%,0 100%);vertical-align:middle;
 }
 .editorPage #play[aria-label="Duraklat"]::before{clip-path:polygon(0 0,33% 0,33% 100%,67% 100%,67% 0,100% 0,100% 100%,0 100%)}
 .editorPage #pointerMode::before{
  content:"";display:inline-block;width:14px;height:16px;background:currentColor;
  clip-path:polygon(0 0,100% 64%,55% 66%,77% 94%,59% 100%,36% 72%,11% 100%);vertical-align:middle;
 }
 .editorPage #bladeMode::before{content:"✂︎";font-size:17px;vertical-align:middle}
 .editorPage #overflow{font-size:10px;line-height:1.2}
 .editorPage .empty{gap:4px;padding:5px}
 .editorPage .emptyIcon,.editorPage .desktopOnly{display:none}
 .editorPage .empty .mobileOnly{display:inline}
 .editorPage .empty strong{font-size:clamp(14px,4vw,22px)}
 .editorPage .empty button{margin:0;white-space:normal;min-height:35px;padding:3px 7px}

 .editorPage .mobileDock{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;flex:none;
  padding:5px 7px calc(5px + env(safe-area-inset-bottom));
  background:var(--panel);border-top:1px solid var(--line);z-index:6;
 }
 .mobileDock button{padding:4px 1px;min-height:44px;font-size:12px;background:transparent;border-color:transparent}
 .mobileDock button[aria-expanded=true],#multiTouch[aria-pressed=true]{color:#ffaaa3;background:#482322;border-color:#783631}
 .editorPage footer{display:none}
 #panelBackdrop{
  display:block;position:fixed;inset:0;z-index:7;width:100%;padding:0;border:0;border-radius:0;background:#09070988;
 }
 .editorPage .sidebar{
  display:none;position:fixed;inset:auto 0 var(--keyboard-inset,0px);width:100%;
  height:min(64dvh,calc(100dvh - var(--keyboard-inset,0px) - 16px),640px);
  border:1px solid #44363d;border-radius:17px 17px 0 0;background:var(--panel);
  box-shadow:0 -18px 50px #0007;z-index:8;overflow:hidden;
 }
 .editorPage .sidebar.open{display:flex}
 .sheetHeader,.editorPage .sidebar .inspectorTitle{display:flex;align-items:center;justify-content:space-between;min-height:50px;padding:3px 12px;border-bottom:1px solid var(--line)}
 .editorPage .sidebar .inspectorTitle span{margin-inline:auto 8px;text-align:right}
 .editorPage .sidebar [data-panel-close]{display:block;min-height:40px;min-width:40px;font-size:22px}
 .editorPage .sidebar .tabs{padding:0 8px;overflow-x:auto}
 .editorPage .sidebar .tabs button{flex:1}
 .editorPage .pane{padding:12px 12px calc(12px + env(safe-area-inset-bottom));overscroll-behavior:contain}
 .editorPage .pane button:not(.apply):not(.mini){min-height:40px}
 .editorPage .pane input:not([type=checkbox]):not([type=range]),.editorPage .pane select,.editorPage .pane textarea,
 .editorPage dialog input:not([type=checkbox]):not([type=range]),.editorPage dialog select,.editorPage dialog textarea{font-size:16px}
 .editorPage .pane .mini{display:grid;place-items:center;min-width:40px;min-height:40px}
 .editorPage #script{min-height:100px}
 .editorPage .scriptfoot{flex-wrap:wrap}

 .editorPage .timelinehead{display:block;height:auto;padding:0}
 .editorPage .timelineTitle{min-height:38px;gap:5px;padding:0 8px}
 .editorPage .timelineTitle strong{font-size:12px}
 .editorPage #timelineCount{display:none}
 .editorPage #selectionCount{font-size:10px;white-space:nowrap}
 .editorPage .mobileClipTools{display:flex;gap:4px;margin-left:auto}
 .mobileClipTools button{min-height:36px;padding:3px 6px;font-size:11px}
 .editorPage .timelinebuttons{
  justify-content:flex-start;gap:5px;overflow-x:auto;padding:3px 8px 5px;scrollbar-width:thin;
 }
 .editorPage .timelinebuttons>*{flex:none}
 .editorPage .timelinebuttons button,.editorPage .timelinebuttons .edittools button{min-height:38px;min-width:36px;padding:3px 7px}
 .editorPage .timelinebuttons .edittools button{font-size:17px}
 .editorPage .zoom{font-size:12px}
 .editorPage .zoom input{width:68px}
 .editorPage .timelinebody{max-height:clamp(99px,23dvh,254px);overflow-y:auto;overscroll-behavior:contain}
 .editorPage .tracklabels{width:81px}
 .editorPage .tracklabels span{padding-left:4px;font-size:10px;line-height:1.1}
 .editorPage .tracklabels span,.editorPage .lane{height:38px}
 .editorPage .tracklabels span:first-child,.editorPage .ruler{height:24px}
 .editorPage .tracklabels span:nth-child(2),.editorPage .lane.scenes{height:48px}
 .editorPage .scroll{min-width:0;align-self:flex-start}
 .editorPage .clip{height:32px;touch-action:pan-y}
 .editorPage .clip.scene{height:42px;padding-right:17px}
 .editorPage .clip .handle{width:15px;touch-action:none}
 .editorPage .clipMenu{max-height:75dvh;max-width:calc(100vw - 12px);overflow:auto}
 .editorPage .clipMenu button{min-height:41px}
 .editorPage dialog{max-height:calc(100dvh - 20px);max-width:calc(100vw - 16px);overscroll-behavior:contain}
 .editorPage .dialogHead button{min-width:40px;min-height:40px}
 .editorPage .captionRow{grid-template-columns:1fr 1fr}
 .editorPage .captionRow>:nth-child(3){grid-column:1/-1}
 .editorPage #toast{bottom:calc(62px + env(safe-area-inset-bottom))}
}
@media (max-width:380px){
 .editorPage .topright{gap:3px}
 .editorPage .topright #lastExport{width:28px;min-width:28px}
 .editorPage .topright .navControl{max-width:64px}
 .editorPage .topright select{width:56px}
 .editorPage .topright button.primary{padding-inline:5px}
 .editorPage .timelineTitle #selectionCount{max-width:42px;overflow:hidden;text-overflow:ellipsis}
}
@media (max-width:950px) and (max-height:500px) and (orientation:landscape){
 .editorPage{min-height:0}
 .editorPage .top{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"brand project tools"}
 .editorPage .project input#project{width:100%}
 .editorPage .project #saved{display:none}
 .editorPage .timelinebody{max-height:72px}
 .editorPage .viewerhead{display:none}
 .editorPage .transport{height:42px}
}
