/* GO ISSB on phones and tablets. Loaded after style.css. */
html.mob{-webkit-text-size-adjust:100%;text-size-adjust:100%}
html.mob body{overscroll-behavior:none;-webkit-tap-highlight-color:transparent}
html.mob .app,html.mob main{height:100vh;height:100dvh}
html.mob input,html.mob select,html.mob textarea{font-size:16px} /* stops iPhone zooming into fields */
html.mob button,html.mob .seg button,html.mob select{min-height:40px}
html.mob #pv,html.mob #tip{display:none!important}
#mbar,#mscrim{display:none}

/* Report preview (iPhone) */
#pdfsheet{position:fixed;inset:0;z-index:60;display:flex;flex-direction:column;background:#0b1418}
#pdfsheet .ps-bar{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;padding:calc(10px + env(safe-area-inset-top)) 14px 10px;color:#e8f1ee;font:14px Inter,sans-serif}
#pdfsheet .ps-bar span{flex:1 1 200px;color:#9fb3ad;font-size:13px}
#pdfsheet .ps-btns{display:flex;gap:8px;flex-wrap:wrap}
#pdfsheet iframe{flex:1;border:0;background:#fff;width:100%}

@media (max-width:760px){
  html.mob body{padding-top:calc(54px + env(safe-area-inset-top))}
  #mbar{display:flex;position:fixed;top:0;left:0;right:0;z-index:40;align-items:center;gap:10px;height:calc(54px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 12px 0 6px;
    background:linear-gradient(180deg,rgba(14,28,32,.96),rgba(11,20,24,.92));backdrop-filter:blur(18px);border-bottom:1px solid rgba(255,255,255,.08);color:var(--ink)}
  #mbar b{font:700 18px/1 Barlow,Inter,sans-serif;letter-spacing:.02em;flex:1}
  #mbar img{border-radius:7px}
  #mmenu{background:none;border:0;color:inherit;width:44px;height:44px;min-height:44px;padding:10px;display:grid;place-items:center;box-shadow:none}
  #mplan{min-width:34px;height:34px;padding:0 8px;border-radius:11px;display:grid;place-items:center;font:700 13px Barlow,Inter,sans-serif;background:linear-gradient(135deg,rgba(230,192,99,.25),rgba(56,199,216,.15));border:1px solid #e6c06355;color:#f6e3a6}
  #mplan:empty{display:none}

  html.mob .app,html.mob .app.open{display:block;height:calc(100dvh - 54px - env(safe-area-inset-top))}
  html.mob main{height:calc(100dvh - 54px - env(safe-area-inset-top));padding:14px 14px calc(28px + env(safe-area-inset-bottom));-webkit-overflow-scrolling:touch}
  html.mob nav{position:fixed;z-index:50;top:0;bottom:0;left:0;width:min(84vw,300px);margin:0!important;border-radius:0 20px 20px 0;
    padding:calc(14px + env(safe-area-inset-top)) 10px calc(14px + env(safe-area-inset-bottom));transform:translateX(-105%);transition:transform .28s var(--ease);
    background:linear-gradient(180deg,#14282d,#0e1b20)}
  html.mob .app[dir=rtl] nav{left:auto;right:0;border-radius:20px 0 0 20px;transform:translateX(105%)}
  html.mob body.navshow nav{transform:none}
  html.mob nav .pin{display:none}
  html.mob nav a{min-height:44px}
  #mscrim{position:fixed;inset:0;z-index:45;background:#0008;opacity:0;pointer-events:none;transition:opacity .25s}
  html.mob body.navshow #mscrim{display:block;opacity:1;pointer-events:auto}

  /* Content: one column, smaller headings, wrapping button rows */
  html.mob .hd{flex-wrap:wrap;gap:10px}
  html.mob .hd>div[style*="display:flex"],html.mob .hd>div:last-child:not(:first-child){flex-wrap:wrap}
  html.mob h2{font-size:clamp(20px,6vw,26px)}
  html.mob .cols,html.mob .test,html.mob .ultra,html.mob .areas,html.mob .f2,html.mob .plans{grid-template-columns:minmax(0,1fr)!important}
  html.mob .sec-tiles{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
  html.mob .weekgrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html.mob .offgrid,html.mob .fcs{grid-template-columns:minmax(0,1fr)}
  html.mob .focus{grid-template-columns:minmax(0,1fr)}
  html.mob .hbar{grid-template-columns:7em minmax(0,1fr) 3em;font-size:14px}
  html.mob .hbar.wk{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 3em}
  html.mob .hbar.wk>*:nth-child(4){grid-column:1/-1}
  html.mob .card{padding:16px}
  html.mob .row{flex-wrap:wrap;gap:10px}
  html.mob .row .t{flex:1 1 200px}
  html.mob .trialbar{flex-wrap:wrap}
  html.mob .trialbar .tb-t{white-space:normal}
  html.mob .msend,html.mob .mfile{flex-wrap:wrap}
  html.mob #modal .mbox{width:calc(100vw - 20px);max-height:calc(100dvh - 40px);overflow:auto;padding:18px}
  html.mob .toast{left:12px;right:12px;bottom:calc(16px + env(safe-area-inset-bottom));transform:none;max-width:none;text-align:center}
  html.mob .ring{width:120px;height:120px}
  html.mob .streak{gap:3px}
  html.mob table{display:block;overflow-x:auto}
  html.mob .pic{max-width:100%}
  html.mob code.id{font-size:15px;word-break:break-all}
  html.mob textarea{min-height:120px}
}
@media (max-width:380px){
  html.mob .sec-tiles{grid-template-columns:minmax(0,1fr)!important}
  html.mob .opts.nv{grid-template-columns:repeat(2,minmax(0,1fr))}
}
html.mob input[type=checkbox],html.mob input[type=radio]{width:22px;height:22px;flex:0 0 auto}
#a2hs{position:fixed;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:55;padding:14px 44px 14px 16px;border-radius:16px;font:14px/1.45 Inter,sans-serif;color:#1d1a10;background:linear-gradient(135deg,#f3d98a,#e6c063);box-shadow:0 18px 40px -12px #000c}
#a2hs button{position:absolute;top:8px;right:8px;min-height:32px;width:32px;padding:0;border:0;border-radius:10px;background:#0000001a;color:#1d1a10;font-size:15px;box-shadow:none}
