/* 0.5.30 — mesa mobile restaurada: o rack nunca some e desliza sem mexer nos faders. */
@media(max-width:760px){
  html.emr-mobile-mix-open,
  body.emr-mobile-mix-open{
    width:100%!important;height:100%!important;min-height:100%!important;
    margin:0!important;overflow:hidden!important;overscroll-behavior:none!important;background:#070b0d!important
  }
  body.emr-mobile-mix-open #emr-mobile-mix-root:not([hidden]){
    display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;
    position:fixed!important;top:var(--emr-mobile-visible-top,0px)!important;right:0!important;bottom:auto!important;left:0!important;
    width:100vw!important;height:var(--emr-mobile-visible-height,100dvh)!important;min-height:0!important;max-height:none!important;
    margin:0!important;padding:3px!important;overflow:hidden!important;background:#070b0d!important;z-index:2147483646!important
  }
  #emr-mobile-mix-root .emr-mobile-console{
    position:relative!important;inset:auto!important;display:grid!important;
    grid-template-rows:44px 36px 48px clamp(128px,28vh,200px) minmax(170px,1fr) 66px!important;
    width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;
    overflow:hidden!important;border:1px solid #39464c!important;border-radius:5px!important;background:#080c0e!important;
    box-shadow:inset 0 0 18px #000,0 0 10px #000!important
  }

  /* Cabeçalho no formato do modelo. */
  #emr-mobile-mix-root .emr-mobile-console>header{
    grid-row:1!important;display:grid!important;grid-template-columns:minmax(0,1fr) 31px!important;align-items:center!important;
    width:100%!important;height:44px!important;min-height:0!important;padding:3px 6px!important;border:0!important;border-bottom:1px solid #344148!important;
    background:linear-gradient(180deg,#262e32,#161d20)!important
  }
  #emr-mobile-mix-root .emr-mobile-brand{display:flex!important;align-items:center!important;gap:4px!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important}
  #emr-mobile-mix-root .emr-mobile-brand:before{flex:0 0 34px!important;width:34px!important;height:34px!important;border-radius:6px!important}
  #emr-mobile-mix-root .emr-mobile-brand span{font-size:22px!important;line-height:1!important}
  #emr-mobile-mix-root .emr-mobile-brand strong{font-size:18px!important;line-height:1!important}
  #emr-mobile-mix-root .emr-mobile-brand b{font-size:9px!important;line-height:1!important;letter-spacing:.2px!important}
  #emr-mobile-mix-root .emr-mobile-console>header>button{width:29px!important;height:29px!important;margin:0!important;border-radius:5px!important;font-size:18px!important;line-height:1!important}

  #emr-mobile-mix-root .emr-mobile-preset{
    grid-row:2!important;display:grid!important;grid-template-columns:52px minmax(0,1fr)!important;align-items:center!important;gap:5px!important;
    width:100%!important;height:36px!important;min-height:0!important;padding:3px 9px!important;border:0!important;border-bottom:1px solid #273239!important;background:#11191e!important
  }
  #emr-mobile-mix-root .emr-mobile-preset label{font-size:9px!important;letter-spacing:1.1px!important}
  #emr-mobile-mix-root .emr-mobile-preset select{width:100%!important;height:29px!important;min-height:29px!important;padding:0 7px!important;border:1px solid #536168!important;border-radius:4px!important;font-size:12px!important}

  #emr-mobile-mix-root .emr-mobile-top-actions{
    grid-row:3!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:center!important;gap:7px!important;
    width:100%!important;height:48px!important;min-height:0!important;padding:6px 7px!important;background:#171d20!important
  }
  #emr-mobile-mix-root .emr-mobile-top-actions button{
    width:100%!important;height:36px!important;min-width:0!important;padding:0 3px!important;border-radius:19px!important;
    font-size:11px!important;line-height:1!important;letter-spacing:.25px!important;white-space:nowrap!important
  }

  /* Sala de arquivos: duas colunas, igual ao desenho enviado. */
  #emr-mobile-mix-root .emr-mobile-source-room{
    grid-row:4!important;display:grid!important;grid-template-columns:1.08fr .92fr!important;grid-template-rows:1fr!important;align-items:stretch!important;
    gap:11px!important;width:100%!important;height:100%!important;min-height:0!important;padding:9px 10px!important;overflow:hidden!important;
    background:repeating-linear-gradient(90deg,#111719 0,#111719 3px,#151b1e 4px,#0d1214 7px)!important
  }
  #emr-mobile-mix-root .emr-mobile-source-left,
  #emr-mobile-mix-root .emr-mobile-source-right{
    display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;height:100%!important;min-height:0!important;gap:7px!important
  }
  #emr-mobile-mix-root .emr-mobile-source-right{gap:11px!important}
  #emr-mobile-mix-root .emr-mobile-source-room button{
    display:flex!important;align-items:center!important;justify-content:center!important;flex:1 1 0!important;
    width:100%!important;height:auto!important;min-height:0!important;padding:4px 6px!important;border-radius:22px!important;
    font-size:clamp(14px,4.2vw,18px)!important;line-height:1.02!important;letter-spacing:.15px!important;text-align:center!important;white-space:normal!important;overflow:hidden!important
  }
  #emr-mobile-mix-root .emr-mobile-source-right button{border-radius:12px!important}

  /* Rack: área própria e garantida. Nunca depende da altura da sala de arquivos. */
  #emr-mobile-mix-root .emr-mobile-channel-stage{
    grid-row:5!important;position:relative!important;display:grid!important;grid-template-rows:minmax(0,1fr) 12px!important;
    align-self:stretch!important;width:100%!important;height:100%!important;min-height:170px!important;margin:0!important;padding:0!important;overflow:hidden!important;background:#090d0f!important
  }
  #emr-mobile-mix-root .emr-mobile-channels{
    grid-row:1!important;display:flex!important;align-items:stretch!important;gap:5px!important;width:100%!important;height:100%!important;min-height:0!important;
    margin:0!important;padding:4px 3px!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:none!important;scroll-behavior:auto!important;
    scrollbar-width:none!important;-ms-overflow-style:none!important;touch-action:none!important;cursor:grab!important;user-select:none!important;-webkit-user-select:none!important
  }
  #emr-mobile-mix-root .emr-mobile-channels::-webkit-scrollbar{display:none!important}
  #emr-mobile-mix-root .emr-mobile-channels.is-dragging{cursor:grabbing!important}
  #emr-mobile-mix-root .emr-mobile-channel{
    position:relative!important;display:flex!important;flex:0 0 23.5%!important;min-width:78px!important;max-width:none!important;height:100%!important;min-height:0!important;
    flex-direction:column!important;align-items:center!important;margin:0!important;padding:6px 4px 15px!important;border:1px solid #58656c!important;border-radius:4px!important;
    background:linear-gradient(180deg,#3c454a,#252b2f)!important;overflow:hidden!important;scroll-snap-align:none!important
  }
  #emr-mobile-mix-root .emr-mobile-channel>strong{width:100%!important;padding:0 1px 3px!important;border-bottom:3px solid #28d8c0!important;font-size:10px!important;line-height:1!important;letter-spacing:.35px!important;text-align:center!important;white-space:nowrap!important}
  #emr-mobile-mix-root .emr-mobile-channel:nth-child(3)>strong,
  #emr-mobile-mix-root .emr-mobile-channel:nth-child(4)>strong,
  #emr-mobile-mix-root .emr-mobile-channel:nth-child(6)>strong{border-bottom-color:#e7bd38!important}
  #emr-mobile-mix-root .emr-mobile-channel>span{max-width:100%!important;margin-top:3px!important;font:700 8px/1.05 Arial,sans-serif!important;text-align:center!important;white-space:normal!important}
  #emr-mobile-mix-root .emr-mobile-channel>b{margin-top:3px!important;color:#f1c63b!important;font:900 11px/1 Arial,sans-serif!important}
  #emr-mobile-mix-root .emr-mobile-channel input{
    position:absolute!important;top:61%!important;left:50%!important;width:clamp(112px,23vh,168px)!important;height:30px!important;min-height:0!important;
    margin:0!important;transform:translate(-50%,-50%) rotate(-90deg)!important;accent-color:#f1f2f2!important;touch-action:none!important;z-index:4!important;cursor:pointer!important
  }
  #emr-mobile-mix-root .emr-mobile-channel .emr-mobile-vu{
    position:absolute!important;left:6px!important;top:64px!important;bottom:16px!important;width:7px!important;min-height:28px!important;
    background:repeating-linear-gradient(to top,#20df68 0 6px,#07120b 7px 10px)!important;box-shadow:inset 0 0 4px #000!important;z-index:2!important
  }
  #emr-mobile-mix-root .emr-mobile-channel>i{right:4px!important;bottom:2px!important;font-size:8px!important}

  /* Navegação horizontal separada do volume: fina e discreta. */
  #emr-mobile-mix-root .emr-mobile-rack-nav{
    grid-row:2!important;display:block!important;width:100%!important;height:12px!important;min-height:12px!important;margin:0!important;padding:2px 8px!important;border-top:1px solid #354047!important;background:#14191c!important;overflow:hidden!important
  }
  #emr-mobile-mix-root .emr-mobile-rack-nav span{display:none!important}
  #emr-mobile-mix-root .emr-mobile-rack-scroll{
    -webkit-appearance:none!important;appearance:none!important;display:block!important;width:100%!important;height:6px!important;margin:0!important;padding:0!important;
    border:0!important;border-radius:999px!important;background:#283035!important;box-shadow:inset 0 1px 2px #000!important;touch-action:none!important;cursor:ew-resize!important
  }
  #emr-mobile-mix-root .emr-mobile-rack-scroll::-webkit-slider-thumb{-webkit-appearance:none!important;appearance:none!important;width:28px!important;height:6px!important;border:0!important;border-radius:999px!important;background:#d6a91f!important;box-shadow:0 0 3px #000!important}
  #emr-mobile-mix-root .emr-mobile-rack-scroll::-moz-range-thumb{width:28px!important;height:6px!important;border:0!important;border-radius:999px!important;background:#d6a91f!important;box-shadow:0 0 3px #000!important}

  #emr-mobile-mix-root .emr-mobile-transport{
    grid-row:6!important;position:relative!important;display:grid!important;grid-template-columns:44px 44px 62px 44px 44px!important;align-items:center!important;justify-content:space-evenly!important;
    width:100%!important;height:66px!important;min-height:66px!important;margin:0!important;padding:3px 6px max(3px,env(safe-area-inset-bottom))!important;
    border-top:1px solid #465157!important;background:linear-gradient(#252d31,#111619 72%,#080b0d)!important;box-shadow:0 -4px 10px #000b!important;overflow:visible!important
  }
  #emr-mobile-mix-root .emr-mobile-transport button{width:44px!important;height:49px!important;min-width:0!important;margin:0!important;padding:0!important;border-radius:10px!important}
  #emr-mobile-mix-root .emr-mobile-transport button.is-play{width:60px!important;height:60px!important;border-radius:50%!important}
  #emr-mobile-mix-root .emr-mobile-transport .emr-play-icon{border-top-width:11px!important;border-bottom-width:11px!important;border-left-width:17px!important}
  #emr-mobile-mix-root .emr-mobile-transport .emr-stop-icon{width:16px!important;height:16px!important}
  #emr-mobile-mix-root .emr-mobile-transport .emr-repeat{font-size:30px!important}
}

@media(max-width:380px) and (max-height:620px){
  #emr-mobile-mix-root .emr-mobile-console{grid-template-rows:42px 34px 44px 142px minmax(165px,1fr) 62px!important}
  #emr-mobile-mix-root .emr-mobile-console>header{height:42px!important}
  #emr-mobile-mix-root .emr-mobile-preset{height:34px!important}
  #emr-mobile-mix-root .emr-mobile-top-actions{height:44px!important;padding-top:5px!important;padding-bottom:5px!important}
  #emr-mobile-mix-root .emr-mobile-source-room{padding-top:7px!important;padding-bottom:7px!important}
  #emr-mobile-mix-root .emr-mobile-source-room button{font-size:13px!important}
  #emr-mobile-mix-root .emr-mobile-channel{flex-basis:25%!important;min-width:76px!important}
  #emr-mobile-mix-root .emr-mobile-channel input{width:clamp(106px,22vh,142px)!important}
  #emr-mobile-mix-root .emr-mobile-transport{height:62px!important;min-height:62px!important;grid-template-columns:42px 42px 58px 42px 42px!important}
  #emr-mobile-mix-root .emr-mobile-transport button{width:42px!important;height:46px!important}
  #emr-mobile-mix-root .emr-mobile-transport button.is-play{width:56px!important;height:56px!important}
}
