/* Mobile working surface: map first, with a dismissible full-height data sheet. */
.mobile-panel-header{display:none}
html[data-layout=mobile] body{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
html[data-layout=mobile] .topbar{height:auto;min-height:72px;flex-shrink:0;padding:8px max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));gap:8px}
html[data-layout=mobile] .brand{white-space:normal;min-width:0}
html[data-layout=mobile] .brand b{font-size:16px;letter-spacing:-.5px}
html[data-layout=mobile] .brand small{font-size:12px;line-height:1.2;letter-spacing:0;max-width:170px}
html[data-layout=mobile] .client-brand{margin:0 0 0 auto;flex-shrink:0;align-items:flex-start;gap:3px}
html[data-layout=mobile] .client-brand span{font-size:19px;letter-spacing:-.7px}
html[data-layout=mobile] .client-brand small{font-size:12px;letter-spacing:0}
html[data-layout=mobile] .topbar .text-button{font-size:14px;max-width:56px;min-width:48px;min-height:48px;line-height:1.3}
html[data-layout=mobile] .topbar .text-button span{display:none}
html[data-layout=mobile] .group-nav{height:auto;flex-shrink:0;display:grid;grid-template-columns:1fr 1fr;gap:0;padding:0 max(8px,env(safe-area-inset-right)) 0 max(8px,env(safe-area-inset-left));overflow:visible}
html[data-layout=mobile] .group-nav button{font-size:14px;min-height:44px;padding:8px 5px;white-space:normal;line-height:1.2;border-bottom-width:2px}
html[data-layout=mobile] .group-nav button span{display:none}
html[data-layout=mobile] .group-nav button[aria-current=page]{background:#e9f2e3;border-radius:4px 4px 0 0}
html[data-layout=mobile] .workspace{height:auto;flex:1;min-height:0;position:relative;isolation:isolate}
html[data-layout=mobile] .map-stage{width:100%;min-height:0}
html[data-layout=mobile] .mobile-only{display:flex}
html[data-layout=mobile] .map-toolbar{top:auto;bottom:calc(35px + env(safe-area-inset-bottom));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));gap:10px}
html[data-layout=mobile] .map-button{font-size:14px;min-height:48px;justify-content:center;padding:10px 14px}
html[data-layout=mobile] #mobile-toggle{background:var(--green);color:white;border-color:var(--green);flex:1}
html[data-layout=mobile] #fit-button{margin-left:0;flex:1}
html[data-layout=mobile] .map-caption,html[data-layout=mobile] .map-summary{display:none}
html[data-layout=mobile] .map-views{top:12px;left:12px;right:12px;max-width:none;overflow-x:auto;scrollbar-width:thin;overscroll-behavior-x:contain}
html[data-layout=mobile] .map-views button{font-size:14px;min-height:44px;padding:10px 13px;flex:0 0 auto}
html[data-layout=mobile] .map-legend{top:66px;left:12px;max-width:calc(100% - 24px);gap:12px;flex-wrap:wrap;padding:8px 10px;pointer-events:none}
html[data-layout=mobile] .map-legend span{font-size:12px}
html[data-layout=mobile] .leaflet-top .leaflet-control{margin-top:112px}
html[data-layout=mobile] .leaflet-right .leaflet-control{margin-right:max(12px,env(safe-area-inset-right))}
html[data-layout=mobile] .leaflet-control-zoom a{width:44px;height:44px;line-height:44px;font-size:24px}
html[data-layout=mobile] .leaflet-control-scale{margin-left:12px!important;margin-bottom:8px!important}
html[data-layout=mobile] .leaflet-control-attribution{font-size:10px!important;max-width:80%;margin-right:0!important}
html[data-layout=mobile] .leaflet-bottom{bottom:env(safe-area-inset-bottom)}
html[data-layout=mobile] .map-notice{top:110px;max-width:calc(100% - 85px);left:12px;transform:none;font-size:14px;max-height:calc(100% - 210px);overflow:auto}
html[data-layout=mobile] .sidebar{position:absolute;inset:0;width:100%;min-width:0;max-width:none;transform:none;transition:none;visibility:hidden;pointer-events:none;overflow-y:auto;overscroll-behavior:contain;display:block;border:0;padding-bottom:env(safe-area-inset-bottom);box-shadow:none}
html[data-layout=mobile] .sidebar.is-open{visibility:visible;pointer-events:auto}
html[data-layout=mobile] .mobile-panel-header{display:flex;position:sticky;top:0;z-index:5;align-items:center;justify-content:space-between;padding:8px 16px;background:#f0f5eb;border-bottom:1px solid var(--line);gap:12px}
html[data-layout=mobile] .mobile-panel-header strong{font-size:16px}
html[data-layout=mobile] #mobile-close{font-size:14px;min-height:44px;padding:8px 12px;border:1px solid #bbcdbe;border-radius:5px;background:white}
html[data-layout=mobile] .sidebar-intro{padding:20px 18px 14px}
html[data-layout=mobile] .sidebar-intro h1{font-size:25px;line-height:1.2;margin:8px 0}
html[data-layout=mobile] .eyebrow{font-size:12px;letter-spacing:.7px}
html[data-layout=mobile] .sidebar-intro p{font-size:16px;max-width:none}
html[data-layout=mobile] .road-reference b{font-size:18px}
html[data-layout=mobile] .road-reference span{font-size:13px;line-height:1.5}
html[data-layout=mobile] .analysis-card{margin:0 18px 16px;padding:14px 16px}
html[data-layout=mobile] .analysis-label{font-size:12px;letter-spacing:.5px}
html[data-layout=mobile] .buffer-number{font-size:30px}
html[data-layout=mobile] .analysis-bottom{font-size:12px;flex-wrap:wrap}
html[data-layout=mobile] .analysis-bottom b{font-size:14px}
html[data-layout=mobile] .tabs{padding:0 18px;gap:24px;position:sticky;top:61px;z-index:4;background:white}
html[data-layout=mobile] .tabs button{font-size:14px;min-height:48px}
html[data-layout=mobile] .side-panel{overflow:visible;padding:0 18px 20px}
html[data-layout=mobile] .location-tree>div{font-size:16px;margin-bottom:17px}
html[data-layout=mobile] .location-tree small{font-size:12px;line-height:1.5}
html[data-layout=mobile] .location-tree .region-subtext{font-size:13px}
html[data-layout=mobile] .municipal-list{flex-wrap:wrap}
html[data-layout=mobile] .municipal-chip{font-size:16px;min-height:60px;text-align:left;flex:1;padding:10px 12px}
html[data-layout=mobile] .municipal-chip small{font-size:12px;line-height:1.5}
html[data-layout=mobile] .regional-note{font-size:13px;line-height:1.6}
html[data-layout=mobile] .layer-group h2{font-size:13px;letter-spacing:.5px}
html[data-layout=mobile] .layer-row{font-size:16px;min-height:52px;gap:10px;padding:12px 5px;align-items:center}
html[data-layout=mobile] .layer-row input,html[data-layout=mobile] .display-options input{width:22px;height:22px;flex-shrink:0}
html[data-layout=mobile] .layer-text small{font-size:13px}
html[data-layout=mobile] .count,html[data-layout=mobile] .pending .count{font-size:12px}
html[data-layout=mobile] .display-options label{font-size:16px;min-height:44px}
html[data-layout=mobile] .display-options p,html[data-layout=mobile] .group-context{font-size:14px}
html[data-layout=mobile] .engineering-panel h2{font-size:22px}
html[data-layout=mobile] .engineering-panel p{font-size:16px}
html[data-layout=mobile] .engineering-item h3{font-size:16px}
html[data-layout=mobile] .engineering-item a{font-size:14px;display:inline-block;padding:10px 0;overflow-wrap:anywhere}
html[data-layout=mobile] .engineering-badge{font-size:12px;padding:5px 7px}
html[data-layout=mobile] .execution-brands{padding:16px 18px}
html[data-layout=mobile] .execution-label{font-size:12px}
html[data-layout=mobile] .execution-brands>div{align-items:flex-start;flex-wrap:wrap;gap:16px}
html[data-layout=mobile] .am-brand{font-size:16px}
html[data-layout=mobile] .arquea-brand{font-size:19px;letter-spacing:1px;padding-left:0;border:0}
html[data-layout=mobile] .arquea-brand small{font-size:12px;letter-spacing:0;white-space:normal;max-width:190px;line-height:1.4}
html[data-layout=mobile] .sidebar-footer{font-size:12px;padding:10px 18px}
html[data-layout=mobile] .sidebar-footer .text-button{font-size:14px;min-height:44px}
html[data-layout=mobile] .feature-panel{top:auto;bottom:calc(93px + env(safe-area-inset-bottom));left:12px;right:12px;width:auto;max-height:calc(100% - 105px - env(safe-area-inset-bottom));padding:18px;border-radius:10px;overscroll-behavior:contain}
html[data-layout=mobile] .feature-panel h2{font-size:23px;padding-right:38px;margin-top:16px}
html[data-layout=mobile] .close-button{width:48px;height:48px;font-size:30px;background:white;z-index:2;border-radius:5px;position:sticky;top:0;float:right;margin:-8px -8px 0 0}
html[data-layout=mobile] .attribute small{font-size:13px}
html[data-layout=mobile] .attribute span{font-size:16px}
html[data-layout=mobile] #feature-source{font-size:14px}
html[data-layout=mobile] #feature-source a{padding:8px 0}
html[data-layout=mobile] dialog{width:100%;max-width:none;max-height:100dvh;height:100dvh;margin:0;border:0;border-radius:0;overscroll-behavior:contain;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
html[data-layout=mobile] .dialog-header{padding:18px;display:flex;align-items:center;justify-content:space-between;gap:10px}
html[data-layout=mobile] .dialog-header h2{font-size:24px;line-height:1.2}
html[data-layout=mobile] .dialog-header .close-button{position:static;margin:0;float:none;flex-shrink:0}
html[data-layout=mobile] .dialog-body{padding:18px;overflow-wrap:anywhere}
html[data-layout=mobile] .dialog-body p,html[data-layout=mobile] .source-row h4{font-size:16px}
html[data-layout=mobile] .dialog-body h3{font-size:19px}
html[data-layout=mobile] .source-row a,html[data-layout=mobile] .download-list a{font-size:14px;display:inline-block;min-height:44px;padding:10px 0}
html[data-layout=mobile] .download-list a{padding:12px}
html[data-layout=mobile] .method-note b{font-size:16px}
@media(max-height:500px){html[data-layout=mobile] .topbar{min-height:56px;padding-top:4px;padding-bottom:4px}html[data-layout=mobile] .brand small{display:none}html[data-layout=mobile] .group-nav{display:flex}html[data-layout=mobile] .group-nav button{flex:1}html[data-layout=mobile] .map-legend{display:none}html[data-layout=mobile] .leaflet-top .leaflet-control{margin-top:72px}html[data-layout=mobile] .map-toolbar{right:76px;left:auto}html[data-layout=mobile] .map-button{flex:none!important}html[data-layout=mobile] .feature-panel{bottom:12px;right:76px;max-height:calc(100% - 24px)}html[data-layout=mobile] body.feature-open .map-toolbar{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
@media(max-width:350px){html[data-layout=mobile] .brand b{font-size:14px;white-space:nowrap}html[data-layout=mobile] .brand small{display:none}html[data-layout=mobile] .client-brand span{font-size:18px}}

.mapillary-link{text-decoration:none;color:var(--green);white-space:nowrap}
.mapillary-card{border:1px solid var(--line);border-radius:6px;background:#f3f7ee;padding:14px;margin:15px 0}
.mapillary-card h2{font-size:14px;margin:0 0 8px}.mapillary-card p{font-size:12px;line-height:1.6}.mapillary-card a{font-size:12px;font-weight:600;display:block;padding:8px 0}.mapillary-card small{display:block;font-size:11px;line-height:1.6;color:var(--muted)}
html[data-layout=mobile] .map-toolbar{gap:7px}html[data-layout=mobile] .map-toolbar .map-button{font-size:14px;padding:8px;min-width:0;gap:5px}html[data-layout=mobile] #fit-button{flex:1.2}html[data-layout=mobile] .mapillary-link{flex:1}html[data-layout=mobile] .mapillary-link span{display:none}html[data-layout=mobile] .mapillary-card h2{font-size:18px}html[data-layout=mobile] .mapillary-card p{font-size:16px}html[data-layout=mobile] .mapillary-card a{font-size:16px;min-height:44px}html[data-layout=mobile] .mapillary-card small{font-size:13px}
