/* Tablet: project/navigation on the left; the active editor panel on the right. */
@media(min-width:760px) and (any-pointer:coarse){
 .editor-shell.editor-compact{--sc-nav-width:clamp(165px,16vw,205px);--sc-panel-width:clamp(280px,27vw,340px)}
 .editor-shell.editor-compact .editor-workspace{
  grid-template-columns:var(--sc-nav-width) minmax(0,1fr) var(--sc-panel-width)!important;
 }
 .editor-shell.editor-compact>header>[data-editor-header=home]{
  left:calc(var(--sc-left-edge) + 4px)!important;top:calc(var(--sc-work-top) + 2px)!important;
 }
 .editor-shell.editor-compact .sc-editor-home img{width:92px!important;max-height:30px}
 .editor-shell.editor-compact>header>[data-editor-header=pin],
 .editor-shell.editor-compact>header>[data-editor-header=language]{
  top:calc(var(--sc-work-top) + 2px)!important;right:auto!important;
  width:34px!important;min-width:34px!important;height:36px!important;min-height:36px!important;padding:3px!important;
 }
 .editor-shell.editor-compact>header>[data-editor-header=pin]{left:calc(var(--sc-left-edge) + var(--sc-left-width) - 74px)!important}
 .editor-shell.editor-compact>header>[data-editor-header=language]{left:calc(var(--sc-left-edge) + var(--sc-left-width) - 38px)!important}
 .editor-shell.editor-compact>header>[data-editor-header=mode]{
  top:calc(var(--sc-work-top) + 42px)!important;
 }
 .editor-shell.editor-compact>header>[data-editor-header=project],
 .editor-shell.editor-compact>header>[data-editor-header=export]{
  left:calc(var(--sc-left-edge) + 8px)!important;right:auto!important;
  width:calc(var(--sc-left-width) - 16px)!important;margin:0!important;
 }
 .editor-shell.editor-compact>header>[data-editor-header=project]{
  top:calc(var(--sc-work-top) + 94px)!important;height:44px!important;
 }
 .editor-shell.editor-compact>header>[data-editor-header=export]{
  top:calc(var(--sc-work-top) + 146px)!important;height:44px!important;
 }
 .editor-shell.editor-compact>header>[data-editor-header=export] button{min-height:40px!important}
 .editor-shell.editor-compact>.editor-workspace-tabs{
  left:calc(var(--sc-left-edge) + 8px)!important;right:auto!important;
  top:calc(var(--sc-work-top) + 202px)!important;width:calc(var(--sc-left-width) - 16px)!important;
  max-height:calc(var(--sc-stage-bottom) - var(--sc-work-top) - 210px)!important;
  padding:24px 0 0!important;gap:4px!important;overflow-y:auto!important;overscroll-behavior:contain;
 }
 .editor-shell.editor-compact>.editor-workspace-tabs>button{min-height:36px!important;flex:0 0 36px!important}
 .editor-shell.editor-compact #editor-panel-media:not([hidden]),
 .editor-shell.editor-compact #editor-panel-inspector:not([hidden]),
 .editor-shell.editor-compact #editor-panel-chat:not([hidden]){
  left:var(--sc-right-edge)!important;right:auto!important;top:var(--sc-work-top)!important;
  width:var(--sc-right-width)!important;max-width:var(--sc-right-width)!important;
  height:calc(var(--sc-stage-bottom) - var(--sc-work-top))!important;
  max-height:calc(var(--sc-stage-bottom) - var(--sc-work-top))!important;
  border-radius:12px;overflow:hidden;z-index:42;
 }
 .editor-shell.editor-compact .editor-rail:not([hidden]){
  left:var(--sc-right-edge)!important;
 }
 /* Keep player settings with the player; never cover the left navigation. */
 .editor-shell.editor-compact [data-preview-tools]>.sc-preview-mute,
 .editor-shell.editor-compact [data-preview-tools]>.sc-preview-aspect,
 .editor-shell.editor-compact [data-preview-tools]>.sc-preview-zoom,
 .editor-shell.editor-compact [data-preview-tools]>.sc-preview-view,
 .editor-shell.editor-compact [data-preview-tools]>.sc-preview-maximize{
  top:calc(var(--sc-stage-bottom) - 144px)!important;bottom:auto!important;right:auto!important;
  height:44px!important;min-height:44px!important;max-height:44px!important;
  background:var(--bg-1)!important;color:var(--fg)!important;border:1px solid var(--border);border-radius:9px;
 }
 .editor-shell.editor-compact [data-preview-tools]>.sc-preview-mute{
  left:calc(var(--sc-left-edge) + var(--sc-left-width) + 16px)!important;width:44px!important;max-width:44px!important;
 }
 .editor-shell.editor-compact [data-preview-tools]>.sc-preview-aspect{
  left:calc(var(--sc-left-edge) + var(--sc-left-width) + 66px)!important;width:64px!important;max-width:64px!important;
 }
 .editor-shell.editor-compact [data-preview-tools]>.sc-preview-zoom{
  left:calc(var(--sc-left-edge) + var(--sc-left-width) + 136px)!important;width:64px!important;max-width:64px!important;
 }
 .editor-shell.editor-compact [data-preview-tools]>.sc-preview-view{
  left:calc(var(--sc-left-edge) + var(--sc-left-width) + 206px)!important;width:96px!important;max-width:96px!important;
 }
 .editor-shell.editor-compact [data-preview-tools]>.sc-preview-maximize{
  left:calc(var(--sc-left-edge) + var(--sc-left-width) + 308px)!important;width:44px!important;max-width:44px!important;
 }
 .editor-shell.editor-compact .sc-preview-maximize::after{display:none!important}
 .editor-shell.editor-compact .sc-preview-view-panel{left:0;right:auto}
}

@media(min-width:760px) and (any-pointer:coarse){
 .editor-shell.editor-compact>header>[data-editor-header=home]{padding:0!important}
 .editor-shell.editor-compact .sc-editor-home img{max-width:calc(var(--sc-left-width) - 82px)!important}
}
@media(min-width:760px) and (max-width:900px) and (any-pointer:coarse){
 .editor-shell.editor-compact [data-preview-tools]>.sc-preview-mute{width:36px!important;max-width:36px!important}
 .editor-shell.editor-compact [data-preview-tools]>.sc-preview-aspect{left:calc(var(--sc-left-edge) + var(--sc-left-width) + 56px)!important;width:52px!important;max-width:52px!important}
 .editor-shell.editor-compact [data-preview-tools]>.sc-preview-zoom{left:calc(var(--sc-left-edge) + var(--sc-left-width) + 112px)!important;width:48px!important;max-width:48px!important}
 .editor-shell.editor-compact [data-preview-tools]>.sc-preview-view{left:calc(var(--sc-left-edge) + var(--sc-left-width) + 164px)!important;width:80px!important;max-width:80px!important}
 .editor-shell.editor-compact [data-preview-tools]>.sc-preview-maximize{left:calc(var(--sc-left-edge) + var(--sc-left-width) + 248px)!important;width:36px!important;max-width:36px!important}
}

/* Closed details must stay closed even when their panel has display:grid. */
[data-preview-tools] .sc-preview-view:not([open])>.sc-preview-view-panel{display:none!important}
@media(min-width:760px) and (any-pointer:coarse){
 /* Timeline has no inspector content; give its unused column to the preview. */
 .editor-shell.editor-compact:not(:has(#editor-panel-media:not([hidden]),#editor-panel-inspector:not([hidden]),#editor-panel-chat:not([hidden]))) .editor-workspace{
  grid-template-columns:var(--sc-nav-width) minmax(0,1fr) 0!important;
 }
 .editor-shell.editor-compact:not(:has(#editor-panel-media:not([hidden]),#editor-panel-inspector:not([hidden]),#editor-panel-chat:not([hidden]))) .editor-rail{visibility:hidden;pointer-events:none}
 /* Menus must fit the stage instead of being clipped above the viewport. */
 .editor-shell.editor-compact :is(.sc-preview-aspect,.sc-preview-zoom) > div.absolute{
  max-height:calc(var(--sc-stage-bottom) - var(--sc-work-top) - 155px)!important;
  overflow-y:auto!important;min-width:150px!important;width:max-content!important;
 }
}

/* Dedicated settings strip above the timeline, outside the video canvas. */
@media(min-width:760px) and (any-pointer:coarse){
 .editor-shell.editor-compact .editor-stage{margin-bottom:48px!important}
 .editor-shell.editor-compact [data-preview-tools=true]{
  display:flex!important;position:fixed!important;left:var(--sc-stage-left)!important;
  top:var(--sc-settings-top)!important;right:auto!important;bottom:auto!important;
  width:var(--sc-stage-width)!important;height:40px!important;min-height:40px!important;
  gap:6px!important;align-items:center!important;justify-content:flex-end!important;
  padding:0 6px!important;box-sizing:border-box;border-radius:9px;
  background:var(--bg-1)!important;border:1px solid var(--border);z-index:60!important;
 }
 .editor-shell.editor-compact [data-preview-tools=true]::before{display:block!important;content:"Önizleme"!important;position:static!important;flex:1;font-size:11px;font-weight:600;color:var(--fg-2);background:none!important;border:0!important;width:auto!important;height:auto!important}
 html[lang=en] .editor-shell.editor-compact [data-preview-tools=true]::before{content:"Preview"!important}
 .editor-shell.editor-compact [data-preview-tools=true]>:is(.sc-preview-mute,.sc-preview-aspect,.sc-preview-zoom,.sc-preview-view,.sc-preview-maximize){
  position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
  flex:0 0 auto!important;height:34px!important;min-height:34px!important;max-height:34px!important;
  width:auto!important;min-width:34px!important;max-width:none!important;margin:0!important;
 }
 .editor-shell.editor-compact [data-preview-tools=true]>.sc-preview-aspect,
 .editor-shell.editor-compact [data-preview-tools=true]>.sc-preview-zoom{width:62px!important}
 .editor-shell.editor-compact [data-preview-tools=true]>.sc-preview-view{width:90px!important}
 .editor-shell.editor-compact [data-preview-tools=true]>.sc-preview-view>summary,
 .editor-shell.editor-compact [data-preview-tools=true]>:is(.sc-preview-aspect,.sc-preview-zoom)>button{height:34px!important;min-height:34px!important;font-size:11px!important}
 .editor-shell.editor-compact [data-preview-tools=true]>.sc-preview-view>.sc-preview-view-panel{left:auto;right:0}
 .editor-shell.editor-compact .editor-rail:not([hidden]){
  visibility:visible!important;pointer-events:auto!important;
  left:var(--sc-left-edge)!important;top:var(--sc-settings-top)!important;
  width:var(--sc-left-width)!important;height:36px!important;max-height:36px!important;
  border-radius:8px;overflow:hidden;
 }
 .editor-shell.editor-compact .editor-rail>nav{width:100%!important;height:36px!important;flex-direction:row!important;justify-content:center;gap:5px!important;padding:2px!important;border:0!important}
 .editor-shell.editor-compact .editor-rail>nav>div{display:none!important}
 .editor-shell.editor-compact>.editor-workspace-tabs{max-height:calc(var(--sc-settings-top) - var(--sc-work-top) - 202px)!important}
 /* The category selector gets its own horizontal row; no utility rail overlays it. */
 .editor-shell.editor-compact #editor-panel-media [data-tour=assets]{flex-direction:column!important}
 .editor-shell.editor-compact #editor-panel-media [data-tour=assets]>div:first-child{
  flex-direction:row!important;align-items:center!important;width:100%!important;
  height:64px!important;min-height:64px!important;max-height:64px!important;
  overflow-x:auto!important;overflow-y:hidden!important;padding:3px!important;
  border-right:0!important;border-bottom:1px solid var(--border);gap:3px!important;
 }
 .editor-shell.editor-compact #editor-panel-media [data-tour=assets]>div:first-child>button{width:64px!important;min-width:64px!important;height:56px!important;padding:3px!important}
 .editor-shell.editor-compact #editor-panel-media [data-tour=assets]>div:nth-child(2){min-height:0!important;min-width:0!important;flex:1!important}
}
@media(min-width:760px) and (max-width:900px) and (any-pointer:coarse){
 .editor-shell.editor-compact [data-preview-tools=true]{gap:3px!important;padding:0 3px!important}
 .editor-shell.editor-compact [data-preview-tools=true]::before{display:none!important}
 .editor-shell.editor-compact [data-preview-tools=true]>.sc-preview-view{width:78px!important}
 .editor-shell.editor-compact [data-preview-tools=true]>:is(.sc-preview-aspect,.sc-preview-zoom){width:52px!important}
}
