.mobile-app-bar,.mobile-menu-backdrop,.mobile-menu-close,.mobile-summary-cards,.mobile-account-context,.offline-label-mobile{display:none}
@media screen and (max-width:700px){
 body{min-width:0}body.mobile-nav-open{overflow:hidden}
 .mobile-app-bar{display:flex;position:sticky;top:0;z-index:60;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:#163d32;color:#fff;border-bottom:1px solid #315549}
 .mobile-app-brand{display:flex;align-items:center;gap:10px;min-width:0}.mobile-app-brand img{width:36px;height:36px;object-fit:contain;background:#fff;border-radius:6px}.mobile-app-brand b{font-size:16px;white-space:nowrap}
 #mobileMenuToggle{color:#edf4e8;background:#244e3d;border-color:#4a6b5a;padding:9px 12px;font-size:13px;min-height:42px;white-space:nowrap}
 body>aside{position:fixed;inset:0 auto 0 0;z-index:101;width:min(320px,88vw);height:100vh;height:100dvh;padding:16px;display:flex;flex-direction:column;overflow:hidden;transform:translateX(-105%);visibility:hidden;transition:transform .18s ease,visibility .18s}
 body.mobile-nav-open>aside{transform:translateX(0);visibility:visible}.mobile-menu-close{display:block;align-self:flex-end;flex-shrink:0;min-height:44px;padding:8px 12px;margin-bottom:12px;color:#fff;border-color:#577464;background:#244e3d}
 .mobile-nav-open .mobile-menu-backdrop{display:block;position:fixed;inset:0;width:100%;height:100%;z-index:100;border:0;border-radius:0;background:#102c24a6;padding:0}
 aside .company-brand{flex-shrink:0;gap:12px}aside .company-brand img{width:48px;height:48px}aside .company-brand b{font-size:15px}aside .company-brand div>span{font-size:10px}
 #workspaceNav{display:block;flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;margin:18px 0 0}#workspaceNav::-webkit-scrollbar{display:none}#workspaceNav>button,#workspaceNav .workspace-parent{width:100%;text-align:left}#workspaceNav button{min-height:44px;white-space:normal}
 #workspaceNav .workspace-branches{display:block}#workspaceNav .workspace-subnav{display:block;margin-left:14px;padding-left:0}#workspaceNav .workspace-subnav button{width:100%;padding:10px 12px}#workspaceNav .task-tree{width:100%}#workspaceNav .help-nav-link{min-height:44px}.workspace-tree{width:100%}
 main{margin-left:0;min-width:0}header{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;min-height:64px;padding:8px 14px;gap:8px}header .company-header{display:none}header #identity{margin-left:0;flex:1;min-width:0;justify-content:flex-start}
 .profile-menu .user-summary{max-width:calc(100vw - 155px);text-align:left;overflow-wrap:normal}.profile-menu .user-summary>b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.profile-menu .user-summary small{font-size:11px}.profile-position{display:none}.profile-menu>summary{padding:5px 2px;gap:8px;min-height:44px}.profile-chevron{font-size:15px}.profile-options{left:0;right:auto;width:250px;z-index:70}.mobile-account-context{display:block;padding:10px 13px;border-bottom:1px solid #edf0e8;font-size:12px;color:#30473a}.mobile-account-context small{font-size:11px;color:#738375;line-height:1.5}
 #offlineToolsButton{margin-left:auto;min-height:44px;padding:9px 12px;font-size:12px;white-space:nowrap}.offline-label-desktop{display:none}.offline-label-mobile{display:inline}
 #teamview{padding:22px 16px;min-height:0}.overview-controls{display:block;margin-top:5px}.overview-controls .toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin-top:20px;width:100%}.overview-controls .field{margin:0;min-width:0}.overview-controls select,.overview-controls input{min-width:0;width:100%;max-width:100%;font-size:16px;padding:10px 8px}.overview-controls .toolbar>button{grid-column:1/-1;min-height:42px}
 .management-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.management-metrics .overview-metric{padding:13px}.management-metrics .overview-metric strong{font-size:28px}.management-metrics .overview-metric small{font-size:10px}.card-head{padding:16px;align-items:flex-start;gap:12px;flex-wrap:wrap}.card-head>div{min-width:0;flex:1 1 180px}.card-head p{overflow-wrap:anywhere}.card-head>button{min-height:40px}
 .performance-desktop,.summary-desktop{display:none}.mobile-summary-cards{display:grid;gap:12px;padding:14px}.mobile-summary-card{border:1px solid #e0e5d9;border-radius:8px;padding:14px;min-width:0;background:#fff}.mobile-card-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;font-size:14px}.mobile-card-title b{overflow-wrap:anywhere}.mobile-card-title strong{color:#244e3d;white-space:nowrap;font-size:18px}.mobile-summary-card>p{font-size:12px;margin-top:5px}.mobile-card-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}.section-mobile-cards .mobile-card-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.mobile-card-metrics>div{padding:9px;background:#f5f7f1;border-radius:5px}.mobile-card-metrics dt{font-size:10px;color:#65766a}.mobile-card-metrics dd{font-size:16px;font-weight:600;margin:4px 0 0}.mobile-card-failures{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:12px 0;font-size:12px}.mobile-card-failures .failed-summary{text-align:right;min-height:44px}.mobile-card-failures .failed-counts{font-size:11px}.mobile-summary-card>button{width:100%;min-height:44px;margin-top:5px}.mobile-empty-section{padding:12px 14px}.mobile-empty-section>button{margin-top:12px}.section-summary-note{padding:0 16px 16px;font-size:11px}
}
@media(prefers-reduced-motion:reduce){body>aside{transition:none}}
@media screen and (max-width:700px){.workspace-action-desktop,.workspace-inspection-desktop{display:none}.mobile-workspace-empty{margin:0;padding:20px 16px;font-size:13px}.mobile-finding{white-space:pre-wrap;overflow-wrap:anywhere;color:#30473a}.mobile-card-photos{margin-top:12px;font-size:12px}.mobile-card-photos button{width:100%;min-height:44px}.mobile-card-metrics dd{overflow-wrap:anywhere}.mobile-summary-card:has(.mobile-finding) .mobile-card-metrics dd,.mobile-summary-card:has(.mobile-card-photos) .mobile-card-metrics dd{font-size:12px;font-weight:500;line-height:1.5}}

@media screen and (max-width:700px){
 .overview-controls .toolbar{grid-template-columns:minmax(0,1fr) auto;align-items:end}
 .overview-controls .toolbar>.field:first-child{grid-column:1/-1}
 .overview-controls .toolbar>.field:nth-child(2){grid-column:1;grid-row:2;width:100%;max-width:100%}
 .overview-controls .toolbar>button{grid-column:2;grid-row:2;height:44px;min-height:44px;padding:8px 12px;font-size:12px;white-space:nowrap}
 .overview-controls #overviewScope,.overview-controls #overviewMonth{box-sizing:border-box;display:block;width:100%;min-width:0;max-width:100%;height:44px;min-height:44px;margin:0;padding:8px 10px;font-size:16px;line-height:1.4}
 .overview-controls #overviewMonth{-webkit-appearance:none;appearance:none;overflow:hidden;text-align:left}
 .overview-controls #overviewMonth::-webkit-date-and-time-value{text-align:left;min-width:0;min-height:1.4em}
 .overview-controls #overviewMonth::-webkit-datetime-edit{min-width:0;padding:0}
 #offlineToolsButton{width:92px;flex:0 0 92px;min-height:44px;padding:6px 9px;font-size:11px;line-height:1.3;white-space:normal;text-align:center}
 .offline-label-mobile{display:block}
}

@media screen and (max-width:700px){aside .company-brand img{width:128px;max-width:45%;height:auto}.mobile-app-brand img{width:44px;height:44px}}

/* Keep touch form controls at a readable size, including dynamically opened dialogs.
   The inherited 11px field-label font previously also shrank the login inputs. */
@media screen and (max-width:700px), screen and (hover:none) and (pointer:coarse){
 html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
 input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea{font-size:16px!important}
 .field,.toolbar,.buttons,.heading,.card,.pad{min-width:0}
 .field>input,.field>select,.field>textarea{min-width:0;max-width:100%;box-sizing:border-box}
 dialog{max-width:calc(100vw - 24px);box-sizing:border-box;overflow-x:auto}
 .login-company,.login-company>div{min-width:0;max-width:100%}
 .login-company img{max-width:100%;object-fit:contain}
}
@media screen and (max-width:700px){
 html,body{width:100%;max-width:100%;min-width:0}
 body>main{width:100%;min-width:0;max-width:100%}
 #teamview{min-width:0;max-width:100%}
 #login{min-width:0;max-width:100%}
 #login input:not([type=checkbox]){width:100%;min-width:0}
}
