/* Omni Mobile 160 — dedicated Back button in immersive mobile video
   and horizontal selfie mirroring only for the selected front camera. */
@media (max-width:760px) {
  /* A front selfie should behave like the user's mirror view, without
     changing the rear camera, dual-camera composite or any remote feed. */
  body #appShell.app-shell.omni-mobile-rework153
    #voiceStage #remoteMedia > .remote-tile.is-local-screen.has-video.is-screen-sharing[data-omni-camera-preview-lens160="front"] video {
    transform:scaleX(-1)!important;
    transform-origin:center center!important;
  }
  body #appShell.app-shell.omni-mobile-rework153
    #voiceStage #remoteMedia > .remote-tile.is-local-screen.has-video.is-screen-sharing[data-omni-camera-preview-lens160="rear"] video,
  body #appShell.app-shell.omni-mobile-rework153
    #voiceStage #remoteMedia > .remote-tile.is-local-screen.has-video.is-screen-sharing[data-omni-camera-preview-lens160="both"] video {
    transform:none!important;
  }
  /* The Back button lives inside the fullscreen tile. Elements placed
     elsewhere in the document are not visible in native browser fullscreen. */
  body #appShell.app-shell.nexo-video-fullscreen
    #voiceStage #remoteMedia > .remote-tile.nexo-fullscreen-target
    > button.omni-mobile-fullscreen-back160,
  body #voiceStage #remoteMedia > .remote-tile.nexo-fullscreen-target:fullscreen
    > button.omni-mobile-fullscreen-back160 {
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
    position:absolute!important;
    top:max(14px,env(safe-area-inset-top,0px))!important;
    left:max(12px,env(safe-area-inset-left,0px))!important;
    right:auto!important;
    bottom:auto!important;
    width:auto!important;
    min-width:101px!important;
    height:45px!important;
    min-height:45px!important;
    padding:0 14px 0 10px!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    box-sizing:border-box!important;
    background:rgba(10,16,26,.94)!important;
    border:1px solid rgba(225,244,255,.40)!important;
    border-radius:12px!important;
    color:#fff!important;
    font:600 14px/1 system-ui,sans-serif!important;
    letter-spacing:.01em!important;
    box-shadow:0 5px 16px rgba(0,0,0,.42)!important;
    text-shadow:none!important;
    transform:none!important;
    z-index:2147483647!important;
    touch-action:manipulation!important;
    cursor:pointer!important;
  }
  body #voiceStage button.omni-mobile-fullscreen-back160[hidden] {
    display:none!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
  body #appShell #voiceStage button.omni-mobile-fullscreen-back160 svg {
    display:block!important;
    width:21px!important;height:21px!important;
    min-width:21px!important;
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:2.2!important;
    stroke-linecap:round!important;
    stroke-linejoin:round!important;
    pointer-events:none!important;
  }
  body #appShell #voiceStage button.omni-mobile-fullscreen-back160 span {
    display:block!important;
    white-space:nowrap!important;
    pointer-events:none!important;
  }
  body #voiceStage button.omni-mobile-fullscreen-back160:focus-visible {
    outline:3px solid #a2d8ff!important;
    outline-offset:3px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  body #voiceStage button.omni-mobile-fullscreen-back160 {
    animation:none!important;
    transition:none!important;
  }
}

@media(max-width:760px){
  /* Two clear touch targets replace the overlapping legacy fullscreen
     toolbar on phones: Back (left) and Stop (right). The original toolbar
     returns automatically when leaving fullscreen. */
  body #appShell#appShell.app-shell.nexo-video-fullscreen
    #voiceStage #remoteMedia > .remote-tile.nexo-fullscreen-target.has-video
    > .screen-tile-toolbar {
    display:none!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
  body #appShell#appShell.app-shell.nexo-video-fullscreen
    #voiceStage #remoteMedia > .remote-tile.nexo-fullscreen-target.has-video
    > button.omni-mobile-fullscreen-stop160,
  body #voiceStage #remoteMedia > .remote-tile.nexo-fullscreen-target:fullscreen
    > button.omni-mobile-fullscreen-stop160 {
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
    position:absolute!important;
    top:max(14px,env(safe-area-inset-top,0px))!important;
    right:max(12px,env(safe-area-inset-right,0px))!important;
    left:auto!important;
    bottom:auto!important;
    width:auto!important;
    min-width:119px!important;
    height:45px!important;
    min-height:45px!important;
    padding:0 12px!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    box-sizing:border-box!important;
    border:1px solid rgba(255,215,219,.38)!important;
    border-radius:12px!important;
    color:#fff!important;
    background:rgba(155,34,54,.95)!important;
    box-shadow:0 5px 16px rgba(0,0,0,.36)!important;
    font:600 13px/1 system-ui,sans-serif!important;
    text-shadow:none!important;
    transform:none!important;
    z-index:2147483647!important;
    touch-action:manipulation!important;
    cursor:pointer!important;
  }
  body #voiceStage button.omni-mobile-fullscreen-stop160[hidden] {
    display:none!important;visibility:hidden!important;pointer-events:none!important;
  }
  body #appShell #voiceStage button.omni-mobile-fullscreen-stop160 svg {
    display:block!important;
    width:17px!important;height:17px!important;
    min-width:17px!important;
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:2.4!important;
    stroke-linecap:round!important;
    stroke-linejoin:round!important;
    pointer-events:none!important;
  }
  body #appShell #voiceStage button.omni-mobile-fullscreen-stop160 span{
    display:block!important;
    white-space:nowrap!important;
    pointer-events:none!important;
  }
  body #voiceStage button.omni-mobile-fullscreen-stop160:focus-visible{
    outline:3px solid #ffd2d6!important;outline-offset:3px!important;
  }
  body #appShell.app-shell.nexo-video-fullscreen #voiceStage
    .remote-tile.nexo-fullscreen-target.has-video .screen-live-viewers{
    top:72px!important;
    left:12px!important;
  }
}
