/* Shared Android/iOS adaptation: safe areas, touch ergonomics and small screens. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;touch-action:manipulation}body{min-height:100vh;min-height:100dvh;padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);overscroll-behavior-y:none;-webkit-tap-highlight-color:transparent}button,a,input,select,textarea{touch-action:manipulation}button,.btn,[role="button"]{min-height:44px}input,select,textarea{font-size:16px!important}img{max-width:100%}.modal-backdrop{padding:max(14px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));overflow:auto}.modal{width:min(620px,100%);max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 28px);overflow:auto;-webkit-overflow-scrolling:touch}.toast{top:max(14px,env(safe-area-inset-top));max-width:calc(100vw - 24px);white-space:normal}.table-wrap,.tabs,.catalog-table{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.actions{flex-wrap:wrap}

@media(max-width:760px){
  .shell{width:100%;padding:max(12px,env(safe-area-inset-top)) 12px calc(26px + env(safe-area-inset-bottom))}.topbar{align-items:flex-start;gap:12px}.topbar>.brand{min-width:0}.topbar>.brand h1{font-size:20px;line-height:1.15}.topbar>.brand p{display:none}.topbar>.actions{justify-content:flex-end;gap:6px}.topbar>.actions .btn{padding:8px 10px;font-size:12px}.tabs{position:sticky;z-index:20;top:0;margin-left:-12px;margin-right:-12px;padding:8px 12px;border-radius:0;background:rgba(233,239,237,.96);backdrop-filter:blur(14px);scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}.tabs button{min-height:42px;padding:9px 13px}.grid.two,.grid.three,.grid.four{grid-template-columns:1fr}.section-title{align-items:flex-start;gap:10px}.section-title>.actions{width:100%}.section-title>.actions .btn{flex:1}.metric{min-height:112px}.card-pad{padding:16px}.group-card header{align-items:flex-start}.qr-block{min-width:90px}.qr-image{width:72px;height:72px}.checkbox-list{grid-template-columns:1fr}.catalog-table{overflow:visible}.catalog-row{border:1px solid var(--line);border-radius:14px;margin-bottom:10px}.lane-map{margin-left:-12px;margin-right:-12px;border-radius:0;padding:12px}.lane-cell{min-height:92px}.output-tester{grid-template-columns:1fr}.service-qr-panel .actions .btn{width:100%}.issue-card .actions .btn,.request-card .actions .btn{flex:1}.login-page{padding:max(16px,env(safe-area-inset-top)) 14px max(16px,env(safe-area-inset-bottom))}.login-card{width:100%}
  .service-shell{padding-top:max(16px,env(safe-area-inset-top));padding-bottom:calc(38px + env(safe-area-inset-bottom))}.service-head{align-items:flex-start}.service-head h1{font-size:24px}.service-actions{grid-template-columns:1fr!important}.action-card{min-height:82px;padding:17px}.machine-refill-head .btn{min-height:50px}.service-slot{grid-template-columns:52px minmax(0,1fr)!important}.service-slot h3{font-size:16px}.service-modal{max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 28px)}.refill-list{max-height:52dvh}.refill-stepper button,.refill-stepper input{width:46px;height:44px}.contact-card{margin-bottom:env(safe-area-inset-bottom)}
  .shop-shell{padding-top:max(10px,env(safe-area-inset-top));padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right));padding-bottom:calc(118px + env(safe-area-inset-bottom))}.shop-head{gap:8px}.head-tools{gap:5px}.cart-bar{bottom:max(12px,env(safe-area-inset-bottom));width:calc(100% - max(24px,env(safe-area-inset-left) + env(safe-area-inset-right) + 16px))}.detail-sheet{padding-top:max(36px,env(safe-area-inset-top))}.detail-sheet>#detailContent{max-height:calc(100dvh - max(36px,env(safe-area-inset-top)));padding-bottom:env(safe-area-inset-bottom)}.sheet-close{top:max(45px,calc(env(safe-area-inset-top) + 10px))}.checkout-modal{padding-bottom:calc(18px + env(safe-area-inset-bottom))}.pay-experience,.order-overlay{min-height:100dvh}.order-panel{padding-top:max(18px,env(safe-area-inset-top));padding-bottom:calc(24px + env(safe-area-inset-bottom))}
}

@media(max-width:390px){.topbar>.actions a{display:none}.brand-mark{width:44px;height:44px}.group-card header{display:grid}.qr-block{justify-self:start}.section-title h2{font-size:23px}.product-body>p{font-size:11px}.pay-options label{min-height:54px}}
@media(orientation:landscape) and (max-height:520px){.modal{max-height:calc(100dvh - 16px)}.pay-experience{overflow:auto;padding-top:18px;padding-bottom:18px}.pay-salamander{transform:scale(.75)}.pay-scene>span{margin-top:12px}.hero{min-height:230px}}
@supports(-webkit-touch-callout:none){.cart-bar,.tabs{-webkit-backface-visibility:hidden}input,textarea{border-radius:10px}}
