/* GammaX 4.9.9 — installed PWA mobile finishing layer.
   Keeps the same trading UI and live data logic as the web build while respecting mobile safe areas. */
@media (max-width: 920px) {
  html, body { min-height: 100%; min-height: 100dvh; }
  body { overflow-x: hidden; overscroll-behavior-y: contain; }
  #app { min-height: 100dvh; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  main, .panel, #chartbox, #ticket, #bottom { min-width: 0; }
  .tbl { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  button, input, select { touch-action: manipulation; }
  #tvChart, #orderOverlay { -webkit-tap-highlight-color: transparent; }
}
@media (display-mode: standalone) and (max-width: 920px) {
  html, body { min-height: 100dvh; }
  body { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
  #app {
    min-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding-top: max(7px, env(safe-area-inset-top));
    padding-bottom: max(9px, env(safe-area-inset-bottom));
  }
  header { padding-top: max(10px, env(safe-area-inset-top)); }
  #bottom { scroll-margin-bottom: env(safe-area-inset-bottom); }
  .tbl { scrollbar-width: thin; }
}
@media (display-mode: standalone) and (max-width: 560px) {
  #chartbox { min-height: 465px; }
  #bottom { min-height: 250px; }
  .activity-head { min-height: 44px; }
  .tab { min-height: 42px; }
  .order-line-hit { touch-action: none; }
  .order-line-card, .order-line-x { -webkit-tap-highlight-color: transparent; }
}
@media (orientation: landscape) and (max-width: 920px) {
  #chartbox { height: min(72dvh, 620px); min-height: 360px; }
  #ticket { order: 2; }
  #bottom { min-height: 210px; }
}
