/* V68 - app-like mobile layer (loaded after site.css) */
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{-webkit-tap-highlight-color:transparent;overscroll-behavior-y:none}
/* fix: sideways scroll on Applications (side-nav stretched the grid) */
.app-layout>*{min-width:0}
@media(max-width:980px){.side-nav{overflow-x:auto!important;overflow-y:hidden!important;max-width:100%;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch}.side-nav::-webkit-scrollbar{display:none}.side-nav a{scroll-snap-align:start}}
img,svg,video{max-width:100%}
.dt-wrap,.table-wrap,.tbl,.scroll-x{overflow-x:auto;-webkit-overflow-scrolling:touch}
@media(max-width:760px){
 :root{--app-r:16px}
 /* compact top strip + header */
 .topbar{font-size:12px}.topbar-in{min-height:32px;padding-top:2px;padding-bottom:2px}
 .topbar .tb-left a span{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .topbar .tb-left a:nth-child(2) span{display:none}
 .hdr{padding-top:env(safe-area-inset-top)}
 .hdr-in{gap:10px;padding-top:8px;padding-bottom:8px}
 .brand img{width:104px;height:auto}
 .search{border-radius:14px;min-height:46px}.search input{font-size:16px}
 .search button{border-radius:0 12px 12px 0}
 .qlist{min-height:40px;border-radius:12px}
 /* touch targets and inputs (16px stops iOS zoom) */
 input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{font-size:16px!important;border-radius:12px;min-height:46px;max-width:100%;box-sizing:border-box}
 textarea{min-height:110px}
 .hdr-cta{display:none!important}
 .tb-left{flex-wrap:nowrap;gap:12px}.tb-left a{white-space:nowrap}
 .hdr-in{flex-wrap:wrap}
 .btn:not(.hdr-cta),button.btn,a.btn:not(.hdr-cta){min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:12px;transition:transform .12s,box-shadow .12s}
 .btn:active,.card:active,.tabbar a:active,.mchip:active{transform:scale(.97)}
 /* cards feel like app tiles */
 .card,.fam-card,.pump-card,.grp-card,.tile{border-radius:var(--app-r);box-shadow:0 2px 10px rgba(10,37,64,.07)}
 .pagehead{padding:18px 0 10px}.pagehead h1{font-size:26px;line-height:1.15}
 .sec{padding:26px 0}.sec h2{font-size:21px}
 .crumbs{overflow-x:auto;white-space:nowrap;scrollbar-width:none;-webkit-overflow-scrolling:touch}.crumbs::-webkit-scrollbar{display:none}
 .chiprow{flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;margin:0 -14px;padding:2px 14px 8px}.chiprow::-webkit-scrollbar{display:none}.chiprow>*{flex:0 0 auto;scroll-snap-align:start}
 .dt{font-size:13px}
 table.dt{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}
 /* bottom tab bar: pill indicator, larger icons, WhatsApp button above it */
 .tabbar{border-radius:20px 20px 0 0;padding-top:8px}
 .tabbar a{min-height:50px;justify-content:center}
 .tabbar a.on{background:var(--blue-l);box-shadow:inset 0 0 0 1px rgba(0,87,255,.12)}
 .tabbar a.on .ico{transform:translateY(-1px) scale(1.1)}
 .tabbar a .ico{transition:transform .15s}
 .float-wa{box-shadow:0 6px 18px rgba(18,140,70,.4)}
 /* enter animation */
 main{animation:cnpIn .22s ease-out}
 /* footer sits clear of the tab bar */
 .ftr{padding-bottom:calc(20px + env(safe-area-inset-bottom))}
 .ftr-bottom{flex-direction:column;gap:6px;text-align:center}
 /* install chip */
 .tb-install{display:inline-flex;align-items:center;gap:6px;background:#f59e0b;color:#0a2540;border:0;border-radius:999px;padding:4px 12px;font:700 12px var(--font);min-height:26px}
}
@keyframes cnpIn{from{opacity:.0;transform:translateY(6px)}to{opacity:1;transform:none}}
.tb-install[hidden]{display:none!important}
.tb-install{display:none}
@media(max-width:760px){.tb-install:not([hidden]){display:inline-flex}}
/* installed (standalone) mode: no browser chrome, hide staff link & outer bar */
@media(display-mode:standalone){
 body{padding-top:env(safe-area-inset-top)}
 .ftr-bottom a[rel=nofollow]{display:none}
 .tb-install{display:none!important}
}
/* dark mode touches for new pieces */
[data-theme=dark] .tabbar{background:rgba(14,24,40,.96);border-top-color:#22324a}
[data-theme=dark] .tabbar a{color:#9fb0c8}
[data-theme=dark] .tabbar a.on{background:rgba(0,87,255,.2);color:#8db5ff}
@media(prefers-reduced-motion:reduce){main{animation:none}}
