/* Keep browser page gestures separate from chart and table interactions. */
html { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 700px) {
  /* Prevent focus zoom on iOS; specificity overrides the compact toolbar styles. */
  body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),
  body select, body textarea { font-size: 16px !important; max-width: 100%; min-width: 0; }
  .jingcheng-v2 .v2-date-range { flex-wrap: wrap; max-width: 100%; }
  .jingcheng-v2 .v2-date-range input { flex: 1 1 140px; width: 140px; max-width: 100%; }
  .jingcheng-v2 .performance-controls,
  .jingcheng-v2 .performance-controls > *,
  .jingcheng-v2 .market-chart-toolbar > *,
  .jingcheng-v2 .journal-form > *,
  .jingcheng-v2 .ledger-holding-row > * { min-width: 0; max-width: 100%; }
  .ledger-holding-row, .ledger-pnl-item { overflow-wrap: anywhere; }
}
