/* JS.Son_Design điện thoại */
html,body{-webkit-text-size-adjust:100%;overscroll-behavior:none}
.btn,#tabs button,select,input,#mobSw button{touch-action:manipulation}
#stage{touch-action:none}
#mobSw{display:none}
.mobOut{position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,.6);display:flex;align-items:flex-end;justify-content:center}
.mobOut .box{background:var(--pn,#1a1d24);border:1px solid var(--ln,#2e3340);border-radius:14px 14px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom));width:100%;max-width:560px}
.mobOut h3{margin:0 0 8px}.mobOut .lst{max-height:30vh;overflow:auto;margin-bottom:10px;font-size:13px}.mobOut .lst small{color:var(--mut,#9aa1b2)}
.mobOut .row{display:flex;gap:8px}.mobOut .row .btn{flex:1;padding:11px}
@media (max-width:900px){
  html,body{overflow:auto;height:auto}
  #top{position:sticky;top:0;z-index:30;height:auto;min-height:48px;padding:max(6px,env(safe-area-inset-top)) 8px 6px;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none;gap:6px}
  #top::-webkit-scrollbar{display:none}#top>*{flex:0 0 auto}#top .logo span{display:none}#top .logo{margin-right:2px}
  #pname{width:130px}#top .btn{padding:7px 10px}#top .sp{display:none}
  #main{display:flex;flex-direction:column;height:auto}
  #center{order:1;height:auto!important;flex:none!important;min-height:0;position:sticky!important;top:var(--mtop,48px);z-index:20;background:var(--bg)}
  #stage{height:42vh;min-height:240px;flex:none;padding:8px}
  body.mobBig #stage{height:72vh}
  #strip{height:84px}
  #mobSw{display:flex;order:3;background:var(--pn);border-top:1px solid var(--ln);border-bottom:1px solid var(--ln)}
  #mobSw button{flex:1;background:none;border:0;padding:11px 6px;color:var(--mut);font:inherit;border-bottom:2px solid transparent}#mobSw button.on{color:var(--tx);border-color:var(--acc)}
  #left,#right{order:4;width:100%!important;border:0!important;min-height:50vh}
  #right{padding:12px}
  body[data-pane=left] #right{display:none}body[data-pane=right] #left{display:none}
  #left{display:flex}#tab{overflow:visible}
  #center .rul{display:none!important}#center.rul #stage{margin:0!important}
  .dlg>div{width:96vw!important;max-width:96vw!important;max-height:88vh;overflow:auto}
  input[type=range]{height:28px}
}
