/* Shared phone layout; native-app only suppresses navigation supplied by Flutter. */
.mobile-menu{display:none}
.native-app>header,.native-app>.mobile-menu,.native-app .shell>aside,.native-app .customer-layout>nav.tabs{display:none}
.native-app .shell{display:block}
.native-app main{max-width:100%;padding:0 16px}
.native-app .content{padding-top:16px}
.native-app .page-heading{margin-bottom:16px}
.native-app .page-heading h1{font-size:26px;margin:0}
.native-app .page-heading .sync{width:100%;max-width:none;justify-items:start}
p:empty{display:none}
@media(max-width:700px){
 html,body{max-width:100%;overflow-x:clip}
 body{font-size:15px;-webkit-text-size-adjust:100%}
 header{height:56px;padding:0 16px}header a{font-size:18px;letter-spacing:0;font-weight:700}
 .mobile-menu{display:block;margin:0;padding:0 16px;background:#fff;border-bottom:1px solid var(--border)}
 .mobile-menu summary{min-height:48px;display:flex;align-items:center;justify-content:space-between;font-size:15px}
 .mobile-menu summary::after{content:'＋'}.mobile-menu[open] summary::after{content:'−'}
 .mobile-menu nav{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding-bottom:12px}
 .mobile-menu nav a{padding:12px 8px;text-decoration:none;border-radius:8px;background:#f1f6f3}
 .shell>aside,.customer-layout>nav.tabs{display:none}
 main{padding:0 16px}.shell{display:block}.content{padding:20px 0}
 h1,.customer-layout h1{font-size:28px;line-height:1.2;margin:0 0 18px;overflow-wrap:anywhere}
 h2{font-size:20px}h3{font-size:16px}p{font-size:14px;line-height:1.5}
 section,article,.customer-layout .fleet article{padding:16px;border-radius:16px;margin-bottom:16px}
 .page-heading{margin-bottom:16px;gap:12px}.page-heading p{margin:0}.sync{font-size:12px;flex-wrap:wrap}
 .sync button{min-height:44px;font-size:13px}
 .summary-grid{gap:8px;margin-bottom:20px}.summary{padding:12px 10px;margin:0;border-radius:12px}
 .summary span{font-size:12px}.summary strong{font-size:26px}.summary small{font-size:11px}
 .fleet-section{margin-bottom:20px}.fleet{gap:10px}.device{min-width:220px;max-width:85vw;padding:14px}
 .device .muted{font-size:12px}.device-values{font-size:20px}
 .device-toolbar{gap:8px}.device-toolbar h2{font-size:22px}.device-toolbar label{margin:0}
 .tabs{gap:0;display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:16px 0}
 .tabs a{flex:1;text-align:center;min-height:48px;padding:14px 8px;font-size:13px}
 .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:16px}
 .gauge{padding:12px;margin:0}.gauge-head{flex-wrap:wrap;gap:6px}.gauge-head h3{font-size:14px}
 .gauge svg{height:auto;max-height:145px;margin-top:8px}.gaugeValue{font-size:31px}
 .gauge .stamp{font-size:12px;margin-top:10px;padding-top:10px}.gauge .muted{font-size:11px}
 .gauge .badge{font-size:10px}.metric-foot{font-size:11px}.bounds{font-size:11px}
 .detail-grid{display:block}.detail-grid section{padding:16px}.facts{font-size:13px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .controls,.customer-layout .controls{display:flex;flex-wrap:wrap;flex-direction:row;align-items:end;gap:10px}
 .controls label{flex:1;min-width:130px}.controls button{font-size:13px}
 input,select,textarea{font-size:16px;min-width:0;max-width:100%;min-height:48px;padding:12px}
 label{font-size:14px;margin:10px 0}button{font-size:14px;min-height:48px}select{width:100%}
 .formgrid,.formgrid.three{grid-template-columns:minmax(0,1fr);gap:4px}
 fieldset,.customer-layout fieldset{min-width:0;padding:14px;margin:18px 0}legend{font-size:15px}
 .rule-head{flex-direction:column;align-items:stretch;gap:4px}.rule-head label{display:flex;align-items:flex-start;gap:10px}
 .rule-head input[type=checkbox]{flex:0 0 22px;margin:0}.rule{padding:14px}
 .customer-layout .fleet{margin:16px 0;gap:12px}.customer-layout .fleet article{margin:0}
 .customer-layout .heading{gap:8px}.customer-layout .heading form{align-self:flex-end}
 .login,.customer-layout .login{margin:8px auto;padding:20px}.login h1{font-size:28px}
 #sensorMap{height:55dvh;min-height:280px}#mapList{grid-template-columns:minmax(0,1fr);gap:10px}
 #mapList article{margin:0}#positionMap{height:300px}
 #pushEnable,#pushTest,#pushDisable{display:block;width:100%;margin:8px 0}
 #timeline .legend{flex-wrap:wrap;gap:4px 16px}#timeline .legend label{font-size:13px}
 #timeline canvas{height:240px}.chart-readout{font-size:12px}.notice{font-size:13px}
 .customer-layout .tablewrap{overflow-x:auto}.tablewrap{max-width:100%}
 .native-app .page-heading h1{display:none}
}
@media(max-width:359px){.grid{grid-template-columns:minmax(0,1fr)}.gauge svg{max-height:180px}.summary-grid{grid-template-columns:minmax(0,1fr)}.summary{flex-direction:row;align-items:center;justify-content:space-between}}
@media(max-width:700px){
 /* A single selector replaces the desktop fleet and repeated summary on phones. */
 .summary-grid,.fleet-section,#deviceHeading{display:none}
 .device-toolbar{margin-top:8px}.device-toolbar label{width:100%}
 .gauge svg{max-height:128px}.page-heading .sync{gap:8px}
 .detail-grid .eyebrow{display:none}.customer-layout nav.tabs{display:none}
}

.native-push-link{display:none}.native-app .native-push-link{display:block}.native-app .web-push-controls{display:none}
.native-push-link a{display:block;padding:14px;background:#286f55;color:white;border-radius:10px;text-align:center;text-decoration:none;font-weight:650}

.native-app .customer-layout>h1{display:none}
