/* Omni 154: mobile drawer navigation, native camera and persistent in-call dock.
   No desktop changes, no new WebRTC session, no phone screen capture. */
@media(max-width:760px) {
  /* Hamburger is a drawer toggle, never a selected top-level page. */
  #appShell.omni-mobile-rework153 #globalNavigation #omniMobileChannelsButton150[aria-expanded="false"] {
    background:rgba(190,218,233,.065)!important;
    border-color:rgba(221,237,247,.15)!important;
    box-shadow:none!important;
  }
  #appShell.omni-mobile-rework153 #globalNavigation #omniMobileChannelsButton150[aria-expanded="true"] {
    background:rgba(82,147,192,.20)!important;
    border-color:rgba(136,194,227,.4)!important;
    box-shadow:none!important;
  }

  /* Only five actual controls in call. Remove the confusing miniature
     camera duplicate and the unsupported mobile screen-capture action. */
  body #appShell.app-shell.omni-mobile-in-call153 #omniMobileCallControls153 {
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    justify-items:center!important;gap:7px!important;
    max-width:415px!important;
    min-height:60px!important;
    padding:7px 7px!important;
  }
  #appShell.omni-mobile-in-call153 #omniMobileCallControls153
    > button[data-omni-mobile-call="camera"].is-active {
    color:#90e6b7!important;
    border-color:rgba(119,217,172,.42)!important;
    background:rgba(88,170,130,.15)!important;
  }
  #appShell.omni-mobile-streaming153 #voiceStage #remoteMedia > .remote-tile.is-local-screen.is-stream-watching.has-video video {
    /* A camera is a live preview: fill the phone naturally without
       stretching. The sides are cropped only when aspect ratios differ.
       Received shared screens keep object-fit:contain (no cropping). */
    object-fit:cover!important;
    object-position:center!important;
    border-radius:0!important;
  }
  #omniMobileMediaSheet152 .omni-mobile-media-grid:has([data-mobile-source="rear"]) {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  #omniMobileMediaSheet152 [data-mobile-source="screen"] {
    display:none!important;
  }

  /* Replace the clipped "telephone handle" with a fixed one-row toolbar.
     Dock occupies the gap above Mini Central, starting after the community
     rail, and stays visible while browsing until the call is ended. */
  body #appShell.app-shell.omni-mobile-rework153 > #omniNarrowVoiceToggle {
    display:none!important;visibility:hidden!important;pointer-events:none!important;
  }
  body #appShell.app-shell.omni-mobile-rework153 > #omniCompactVoiceDock.omni-compact-voice.is-narrow-mode {
    display:flex!important;
    position:fixed!important;
    flex-direction:row!important;
    justify-content:space-between!important;
    align-items:center!important;
    left:62px!important;right:7px!important;
    top:auto!important;bottom:calc(75px + env(safe-area-inset-bottom))!important;
    width:calc(100vw - 69px)!important;max-width:none!important;
    height:57px!important;min-height:57px!important;max-height:57px!important;
    box-sizing:border-box!important;
    padding:6px 8px!important;margin:0!important;
    border:1px solid rgba(224,240,251,.19)!important;
    border-bottom:1px solid rgba(224,240,251,.19)!important;
    border-radius:15px 15px 0 0!important;
    background:rgba(19,27,36,.97)!important;
    color:#eef4fb!important;
    z-index:214!important;
    transform:translate3d(0,0,0)!important;
    box-shadow:0 -5px 23px rgba(0,0,0,.24)!important;
  }
  body #appShell.app-shell.omni-mobile-rework153
    > #omniCompactVoiceDock.omni-compact-voice.is-narrow-mode:not(.is-open) {
    display:none!important;pointer-events:none!important;
  }
  body #appShell.app-shell.omni-mobile-rework153
    > #omniCompactVoiceDock.omni-compact-voice.is-narrow-mode .omni-compact-top {
    display:flex!important;align-items:center!important;
    flex:0 0 39px!important;width:39px!important;
    height:43px!important;min-height:43px!important;
    margin:0 3px 0 0!important;gap:0!important;
    padding:0!important;border:0!important;
  }
  body #appShell.app-shell.omni-mobile-rework153 #omniCompactVoiceDock .omni-compact-top
    :is(.omni-compact-live,.omni-compact-caption) {
    display:none!important;
  }
  body #appShell.app-shell.omni-mobile-rework153
    > #omniCompactVoiceDock.omni-compact-voice.is-narrow-mode .omni-compact-controls {
    display:flex!important;flex:1 1 auto!important;
    width:auto!important;min-width:0!important;gap:4px!important;
    align-items:center!important;justify-content:space-between!important;
    flex-wrap:nowrap!important;
  }
  body #appShell.app-shell.omni-mobile-rework153 #omniCompactVoiceDock .omni-compact-pair {
    flex:0 0 37px!important;
    display:flex!important;
    width:37px!important;height:40px!important;min-width:0!important;
    border:0!important;background:transparent!important;
    border-radius:11px!important;overflow:visible!important;
  }
  body #appShell.app-shell.omni-mobile-rework153 #omniCompactVoiceDock .omni-compact-pair .omni-compact-device {
    display:none!important;
  }
  body #appShell.app-shell.omni-mobile-rework153 #omniCompactVoiceDock button {
    display:grid!important;place-items:center!important;
    flex:0 0 auto!important;
    min-width:35px!important;width:37px!important;
    height:40px!important;min-height:40px!important;
    padding:0!important;margin:0!important;
    border-radius:11px!important;
    background:rgba(255,255,255,.045)!important;
    border:1px solid rgba(255,255,255,.09)!important;
    box-sizing:border-box!important;
    cursor:pointer;
  }
  body #appShell.app-shell.omni-mobile-rework153 #omniCompactVoiceDock
    .omni-compact-top #omniCompactVoiceReturn {
    display:grid!important;width:39px!important;min-width:39px!important;height:40px!important;
    border-radius:11px!important;
  }
  body #appShell.app-shell.omni-mobile-rework153 #omniCompactVoiceDock
    .omni-compact-main.is-muted {
    color:#ff9ba4!important;background:rgba(184,55,65,.13)!important;
  }
  body #appShell.app-shell.omni-mobile-rework153 #omniCompactVoiceDock
    .omni-compact-main.is-active {
    color:#7fdea9!important;background:rgba(76,155,114,.13)!important;
  }
  body #appShell.app-shell.omni-mobile-rework153 #omniCompactVoiceDock
    button.omni-compact-leave {
    background:#a73546!important;
    color:#fff!important;border-color:rgba(255,176,187,.18)!important;
  }
  body #appShell.app-shell.omni-mobile-rework153 #omniCompactVoiceDock
    button.omni-compact-share.is-active {
    color:#85dfc7!important;background:rgba(73,148,131,.17)!important;
  }
  body #appShell.app-shell.omni-mobile-rework153 #omniCompactVoiceDock button svg {
    width:20px!important;height:20px!important;
    justify-self:center!important;align-self:center!important;
  }
  body #appShell.app-shell.omni-mobile-in-call153 > #omniCompactVoiceDock {
    display:none!important;
  }
}
@media(max-width:370px) {
  body #appShell.app-shell.omni-mobile-rework153 #omniCompactVoiceDock button {
    width:32px!important;min-width:32px!important;
  }
  body #appShell.app-shell.omni-mobile-rework153 #omniCompactVoiceDock .omni-compact-pair {
    width:32px!important;flex-basis:32px!important;
  }
  body #appShell.app-shell.omni-mobile-rework153
    > #omniCompactVoiceDock.omni-compact-voice.is-narrow-mode .omni-compact-controls {
    gap:2px!important;
  }
}
@media(max-width:760px) and (orientation:landscape) {
  body #appShell.app-shell.omni-mobile-rework153
    > #omniCompactVoiceDock.omni-compact-voice.is-narrow-mode {
    height:50px!important;min-height:50px!important;max-height:50px!important;
    padding:3px 7px!important;
  }
}
@media(prefers-reduced-motion:reduce) {
  #appShell.omni-mobile-rework153 #omniCompactVoiceDock,
  #appShell.omni-mobile-rework153 #omniCompactVoiceDock button {
    transition:none!important;
  }
}
