/* mobile-all.css — MOBILE-FIRST base layer for EVERY page (2026-09-28).
   Server har HTML response me isse jodta hai (trader_dashboard._mobile_inject) — naye page
   bhi apne-aap. Sab kuch @media (max-width:760px) ke peeche: desktop bilkul nahi badalta.
   Page ki apni CSS specific ho to wahi jeetti hai; ye sirf sane defaults + safety net.
   Niyam (CLAUDE.md "Mobile-first"): 390px portrait pe koi sideways page-scroll nahi, text
   ≥11px, tap target ≥32px, input 16px (iOS focus-zoom nahi). */

/* mobile-fit.js ka table wrapper — kahin bhi (desktop pe bhi harmless) */
.mfit-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 760px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { min-width: 0 !important; }
  img, video, iframe, canvas { max-width: 100%; }
  pre, code { white-space: pre-wrap; overflow-wrap: anywhere; }

  /* tap targets — ungli ke liye (chips/segmented buttons chhote hi rehte, bas height) */
  button, select, .btn, [role="button"] { min-height: 32px; }
  input[type="checkbox"], input[type="radio"] { min-width: 18px; min-height: 18px; }

  /* iOS Safari 16px se chhote input pe focus karte hi page zoom karta — mat hone do */
  input[type="text"], input[type="number"], input[type="search"], input[type="date"],
  input[type="time"], input[type="password"], input:not([type]), select, textarea { font-size: 16px !important; }

  /* bahut chhota text (8–10px) padhne layak — sirf min, badi fonts nahi chhedte */
  small, .small, .muted, .meta, .hint, .sub, .lbl { font-size: max(11px, 1em); }

  /* chaudi tables apni jagah sideways scroll karein, poora page nahi */
  .table-wrap, .tbl-wrap, .table-container { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* topnav (standalone pages): right side ke pills chhote → hamburger kabhi screen se bahar nahi */
  #gnav { gap: 8px; }
  #gnav .gn-right { gap: 8px; min-width: 0; flex-shrink: 1; }
  #gnav #hpill, #gnav #demoPill { max-width: 104px; overflow: hidden; text-overflow: ellipsis; padding: 3px 8px; font-size: 11px; }
  #gnav h1 { font-size: 14px; }
}

@media (max-width: 380px) {
  #gnav .gn-env { display: none; }
}

/* 2026-10-05 (user: "scroll bar overall app ki UI jaisa"): har page + panel pe dark patla scrollbar.
   :where() = zero specificity → kisi page ka apna scrollbar style (white mode wagaira) hamesha jeetega. */
:where(*)::-webkit-scrollbar { width: 8px; height: 8px; }
:where(*)::-webkit-scrollbar-thumb { background: #30363d; border-radius: 4px; }
:where(*)::-webkit-scrollbar-thumb:hover { background: #484f58; }
:where(*)::-webkit-scrollbar-track, :where(*)::-webkit-scrollbar-corner { background: #0d1117; }
:where(*) { scrollbar-width: thin; scrollbar-color: #30363d #0d1117; }
