/* FaseSAT · visores 3D en el móvil: el cuadro siempre visible. Panel de datos plegado en una pestaña abajo (abre a media pantalla),
   botones en una sola fila deslizable y avisos cortos (palancas) en una etiqueta de una línea que se va sola. */
#m3d-tab{display:none}
@media (max-width:760px),(pointer:coarse) and (max-width:1024px){
  body.m3d #bar{flex-wrap:nowrap!important;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;right:0!important;left:0!important;top:0!important;padding:8px 10px;gap:6px;pointer-events:auto}
  body.m3d #bar::-webkit-scrollbar{display:none}
  body.m3d #bar>*{flex:none;white-space:nowrap;padding:7px 10px!important;font-size:13px!important}
  body.m3d #b-datos{display:none!important}
  body.m3d .m3d-panel{left:0!important;right:0!important;bottom:0!important;top:auto!important;width:auto!important;max-width:none!important;
    max-height:50vh!important;max-height:50dvh!important;overflow:auto!important;border-radius:14px 14px 0 0!important;transform:none!important;opacity:1!important;
    padding-top:0!important;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))!important;transition:none!important;z-index:20!important}
  body.m3d .m3d-panel.plegado{display:none!important}
  body.m3d .m3d-asa{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:center;gap:6px;height:36px;margin:0 -12px 6px;
    background:inherit;border-bottom:1px solid rgba(255,255,255,.12);font:600 13px system-ui,Arial,sans-serif;color:#eef2f5;cursor:pointer;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
  body.m3d .m3d-asa::before{content:"";position:absolute;top:5px;width:36px;height:4px;border-radius:2px;background:rgba(255,255,255,.35)}
  body.m3d #m3d-tab{display:flex;align-items:center;gap:6px;position:fixed;left:50%;transform:translateX(-50%);bottom:calc(10px + env(safe-area-inset-bottom,0px));z-index:19;
    background:rgba(20,25,31,.92);color:#eef2f5;border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:9px 18px;font:600 14px system-ui,Arial,sans-serif;
    -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 4px 16px rgba(0,0,0,.25)}
  body.m3d #m3d-tab.err{background:#B3261E;border-color:#FF6B61}
  body.m3d.m3d-abierto #m3d-tab{display:none}
  body.m3d #info{left:10px!important;right:10px!important;top:auto!important;bottom:calc(58px + env(safe-area-inset-bottom,0px))!important;width:auto!important;max-width:none!important;
    max-height:30vh!important;max-height:30dvh!important;overflow:auto;font-size:12.5px!important;padding:8px 10px!important;z-index:18}
  body.m3d #info b{font-size:13px!important}
  body.m3d #info.m3d-toast{left:50%!important;right:auto!important;transform:translateX(-50%);max-width:calc(100vw - 40px)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    border-radius:999px;padding:6px 14px!important;font-size:13px!important;max-height:none!important}
  body.m3d #info.m3d-toast b{display:inline!important;margin:0!important;font-size:13px!important}
  body.m3d #vuelta{display:none!important}
  /* vista técnica */
  body.m3d .info{left:10px!important;right:10px!important;width:auto!important;bottom:calc(58px + env(safe-area-inset-bottom,0px))!important;max-height:32dvh;overflow:auto;padding:10px 12px!important}
  body.m3d .info p{font-size:.8rem!important;margin-bottom:8px!important}
}
