/* ---------- Studio_Son điện thoại ---------- */
html,body{-webkit-text-size-adjust:100%;overscroll-behavior-y:none}
body{padding-bottom:env(safe-area-inset-bottom,0px)}
.btn,.tabs button,select,input{touch-action:manipulation}
input[type=range]{height:28px}
@media (max-width:900px){
  .app{height:auto;min-height:100%}
  header{position:sticky;top:0;z-index:20;padding-top:max(8px,env(safe-area-inset-top,0px));padding-bottom:8px;gap:6px}
  header .brand span,#albumBtn,#modeSeg{display:none!important}
  header{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none}header::-webkit-scrollbar{display:none}
  header .brand{flex:0 0 auto;margin-right:auto}header .brand b{font-size:15px}
  header .btn{padding:7px 10px;font-size:13px;flex:0 0 auto}
  .viewbar{flex-wrap:nowrap!important;overflow-x:auto;padding:6px 10px!important;gap:6px!important;scrollbar-width:none}.viewbar::-webkit-scrollbar{display:none}
  .viewbar>*{flex:0 0 auto}.viewbar .btn{padding:5px 9px}
  .strip-head{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none}.strip-head::-webkit-scrollbar{display:none}.strip-head>*{flex:0 0 auto}
  .strip-head .ctl{min-width:150px}
  .main{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto!important}
  .strip{grid-column:1/-1;grid-row:1;border-right:0;border-bottom:1px solid var(--line)}
  .strip-head{flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 10px}
  .strip-head select{width:auto}
  .thumbs{grid-template-columns:none!important;grid-auto-flow:column;grid-auto-columns:64px;overflow-x:auto;overflow-y:hidden;max-height:none;padding:8px}
  .drop-hint{width:120px}
  /* ảnh luôn nằm trên, kéo thanh chỉnh bên dưới vẫn thấy ảnh */
  .viewer{grid-row:2;position:sticky;top:var(--mhdr,52px);z-index:6;background:var(--bg)}
  .stage{height:38vh!important;min-height:220px;padding:6px!important}
  .panel{grid-row:3;border-left:0!important;border-top:1px solid var(--line)}
  .tabs{display:flex!important;overflow-x:auto;gap:0;position:sticky;top:calc(var(--mhdr,52px) + var(--mview,45vh));z-index:5;background:var(--panel);scrollbar-width:none}
  .tabs::-webkit-scrollbar{display:none}
  .tabs button{flex:0 0 auto;min-width:64px;padding:10px 12px}
  .pane{overflow:visible!important;max-height:none!important}
  .pfGroup{position:static!important}
  #pfTags button{font-size:12px;padding:1px 7px}
}
