/* phone layout: compact header + bottom tab bar */
html{-webkit-text-size-adjust:100%}
body{overscroll-behavior-y:contain;-webkit-tap-highlight-color:transparent}
.keysbtn,#nav [data-v="add"],.keyhint,[data-keys]{display:none!important}
@media(max-width:820px){
  .top{gap:8px;padding:max(8px,env(safe-area-inset-top)) 12px 8px}
  .brand img{width:30px;height:30px}.brand b{font-size:16px}
  .tracksw{order:3;width:100%}.tracksw button{flex:1;padding:7px 6px;font-size:12.5px}
  #nav{position:fixed;inset-inline:0;bottom:0;z-index:20;background:var(--navy);flex-wrap:nowrap;overflow-x:auto;gap:0;padding:4px 4px max(6px,env(safe-area-inset-bottom));box-shadow:0 -4px 18px #0004;justify-content:space-around}
  #nav button{flex:1 0 auto;padding:9px 10px;font-size:13px;white-space:nowrap;border-radius:12px}
  main{padding:14px 12px calc(96px + env(safe-area-inset-bottom))}
  .btn{min-height:44px}
  input,textarea,select{font-size:16px!important} /* stops iOS zoom-on-focus */
  #toast{bottom:calc(84px + env(safe-area-inset-bottom))}
}
