/* 5.27.17: mobile timeline stack tightening + professional fullscreen overlay. */
@media(max-width:620px){
  html body #proEditor #proTracks{
    display:block!important;
    min-height:0!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
  }
  html body #proEditor #proTracks .proTrack{
    display:grid!important;
    grid-template-columns:84px minmax(0,1fr)!important;
    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;
    margin:0!important;
    padding:0!important;
    align-items:stretch!important;
    box-sizing:border-box!important;
  }
  html body #proEditor #proTracks .proTrack + .proTrack{margin-top:0!important}
  html body #proEditor #proTracks .proTrack>header{
    width:84px!important;
    min-width:84px!important;
    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;
    padding:0 6px!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }
  html body #proEditor #proTracks .proTrack>header b{
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    line-height:1.05!important;
  }
  html body #proEditor #proTracks .proTrackButtons{gap:1px!important}
  html body #proEditor #proTracks .proTrackButtons button{
    width:18px!important;
    height:18px!important;
    min-width:18px!important;
    min-height:18px!important;
    font-size:8px!important;
  }
  html body #proEditor #proTracks .proLane{
    position:relative!important;
    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;
    margin:0!important;
    padding:0!important;
    box-sizing:border-box!important;
  }
  html body #proEditor .proTimelineCanvas{
    min-height:0!important;
    padding-top:25px!important;
    padding-bottom:0!important;
    box-sizing:border-box!important;
  }
  html body #proEditor .proClip,
  html body #proEditor .proCaptionClip,
  html body #proEditor .proTransitionSlot{
    top:4px!important;
    height:30px!important;
  }
  html body #proEditor .proTimeline{
    min-height:0!important;
  }
  html body #proEditor .proTimelineScroll{
    overscroll-behavior:contain!important;
  }

  /* Fullscreen preview: occupy the browser viewport cleanly. */
  body>.proMonitorShell.lumetraPhoneFullscreen{
    position:fixed!important;
    inset:0!important;
    z-index:2147483647!important;
    width:100vw!important;
    height:100vh!important;
    height:100dvh!important;
    padding:0!important;
    margin:0!important;
    background:#000!important;
    display:block!important;
    overflow:hidden!important;
  }
  body>.proMonitorShell.lumetraPhoneFullscreen .proMonitorStage{
    position:absolute!important;
    inset:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:16px 10px calc(86px + env(safe-area-inset-bottom,0px))!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
    background:#000!important;
  }
  body>.proMonitorShell.lumetraPhoneFullscreen #proMobilePreviewPlay{
    display:none!important;
  }
  body>.proMonitorShell.lumetraPhoneFullscreen .proMonitor{
    position:relative!important;
    margin:0 auto!important;
    max-width:100%!important;
    max-height:100%!important;
    border-radius:14px!important;
    overflow:hidden!important;
    background:#000!important;
    box-shadow:0 24px 54px rgba(0,0,0,.46)!important;
  }
  body>.proMonitorShell.lumetraPhoneFullscreen .proPreviewDock{
    position:absolute!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    width:100%!important;
    height:auto!important;
    min-height:78px!important;
    margin:0!important;
    padding:6px 10px calc(10px + env(safe-area-inset-bottom,0px))!important;
    box-sizing:border-box!important;
    border:0!important;
    background:linear-gradient(180deg,rgba(0,0,0,0),rgba(4,7,12,.76) 18%,rgba(4,7,12,.97) 100%)!important;
    backdrop-filter:blur(8px)!important;
    overflow:visible!important;
    z-index:12!important;
  }
  body>.proMonitorShell.lumetraPhoneFullscreen .proPreviewDock .proPreviewSeek{
    position:relative!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    width:100%!important;
    margin:0 0 8px!important;
    height:4px!important;
  }
  body>.proMonitorShell.lumetraPhoneFullscreen .proTransport{
    min-height:42px!important;
    display:grid!important;
    grid-template-columns:auto 1fr auto!important;
    align-items:center!important;
    gap:10px!important;
  }
  body>.proMonitorShell.lumetraPhoneFullscreen .proPreviewVolume{
    min-width:0!important;
    max-width:40vw!important;
  }
  body>.proMonitorShell.lumetraPhoneFullscreen .proPlayButtonMinimal{
    justify-self:end!important;
    min-width:48px!important;
    height:42px!important;
    border-radius:12px!important;
  }
  body>.proMonitorShell.lumetraPhoneFullscreen .proTransportToolsMinimal{
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
  }
  body>.proMonitorShell.lumetraPhoneFullscreen .proTransportToolsMinimal button{
    width:40px!important;
    height:40px!important;
    border-radius:11px!important;
  }
  body>.proMonitorShell.lumetraPhoneFullscreen .lumetraFullscreenExit{
    display:grid!important;
    place-items:center!important;
    position:absolute!important;
    top:calc(env(safe-area-inset-top,0px) + 10px)!important;
    right:12px!important;
    width:46px!important;
    height:46px!important;
    border-radius:14px!important;
    z-index:20!important;
    border:1px solid rgba(170,182,201,.48)!important;
    background:rgba(12,18,29,.88)!important;
    color:#fff!important;
    box-shadow:0 14px 40px rgba(0,0,0,.4)!important;
  }
}
