/* mobile1202.css - Android + iPhone fit (2 Dec 2026). ADD-ONLY: loaded after the app styles, changes layout/size only, no content. */
:root{color-scheme:dark}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{overflow-wrap:break-word}
.grid2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid2 .search,.grid2 .sel,.grid2 input{min-width:0}
/* notch / rounded corners in landscape: keep content out of the side insets */
body{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
.ask-bar,#ecp-barfix{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}
/* dynamic viewport: browser bars and keyboards no longer hide the bottom */
.lock{min-height:calc(100vh - 40px);min-height:calc(100dvh - 40px)}
.rptc{max-height:92vh;max-height:92dvh}
/* inputs at 16px or more: no iOS zoom on focus */
#app input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]):not([type=color]),#app select,#app textarea{font-size:16px!important}
/* product bar: scroll instead of pushing the page sideways; link style for the added EEPROMCheck tab */
.prodnav{overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.prodnav::-webkit-scrollbar{display:none}
.prodnav .prod{flex:1 0 auto;white-space:nowrap}
.prodnav a.prod{display:flex;align-items:center;justify-content:center;text-decoration:none;color:#9a9a9a}
#qv .chip,.dact .chip,.oact .chip,.ask-ex .chip,.jexp .chip,.invopen .chip{white-space:normal;max-width:100%;text-align:center}
@media (max-width:420px){.prodnav .prod{font-size:13px;padding-left:4px;padding-right:4px;letter-spacing:0}}
/* EEPROMCheck buy and thank-you pages had no side margin */
body:has(script[src="buy.js"]) #app,body:has(script[src="thanks.js"]) #app{padding-left:14px;padding-right:14px}
a.chip{text-decoration:none;color:var(--txt,#f2f2f2)}
a.chip.on{color:#fff}
.prodnav a.prod.on{color:#f2f2f2}
/* phones: tap targets at least 44px */
@media (pointer:coarse),(hover:none){
  .ibtn,.micbtn,.phx,.back{min-width:44px;min-height:44px}
  .phx{width:44px;height:44px}
  .chip,.lc-chip{min-width:44px}
  .chip,.lc-chip,.rptbtn,.tabs button,.btn,html .ecp-pill,html .ecp-b,html .acp-star{min-height:44px}
  .chip,.lc-chip,html .ecp-pill,html .ecp-b,.rptbtn,html .acp-star,.ibtn,.back,.ec-link{display:inline-flex;align-items:center;justify-content:center}
  .back{justify-content:flex-start}
  .ec-link{min-height:44px}
  .proloa-hd-a{display:flex;align-items:center;min-height:44px}
  #app details>summary{box-sizing:border-box;min-height:44px;padding-top:11px;padding-bottom:11px}
  label:has(>input[type=checkbox]),label:has(>input[type=radio]){min-height:44px;display:flex;align-items:center;gap:8px}
  html .ecp-brow .ecp-b{min-height:44px}
  html .ecp-chk{width:44px;height:44px;border-radius:10px}
  html .ecp-chk[aria-checked="true"]:after{left:14px;top:6px;width:11px;height:22px}
  html .scp-pchk{width:44px;height:44px}
  .qwrap .micbtn{width:44px;height:44px}
  html .ecp-pill{padding-top:0;padding-bottom:0}
}
/* narrow phones (360 to 400 wide): the AutoCheck header must fit with 44px buttons */
@media (max-width:400px){
  header.top{gap:4px;padding-left:8px;padding-right:8px}
  header.top .logo{font-size:15px;letter-spacing:1px;min-width:0}
  header.top .logo small{font-size:8px;letter-spacing:3px}
  header.top .ibtn{padding:4px 6px}
  header.top .askbtn{font-size:11px;letter-spacing:.5px}
  header.top .sp{min-width:0}
  .proloa-hd{height:22px}
}
/* phone held sideways: use the short screen for content, not a pinned header */
@media (orientation:landscape) and (max-height:500px){
  header.top{position:static}
  .prodnav{top:0}
}
