/* EditPolygon mobile parity layer · v1.56.1
   Phones, touch tablets and desktop browsers expose the same application
   capabilities. This stylesheet reorganises the shared interface into a
   map-first, touch-oriented layout without creating a separate mobile app. */

.v151-mobile-only{display:none!important;}

body.v151-mobile-layout{
  --v151-topbar-h:52px;
  --v151-status-h:24px;
  --v151-dock-h:62px;
  --v151-bottom-safe:env(safe-area-inset-bottom,0px);
  overscroll-behavior:none;
  touch-action:manipulation;
}
body.v151-mobile-layout,
body.v151-mobile-layout .app{
  width:100%;
  max-width:100%;
  min-width:0;
  height:100dvh;
  min-height:100svh;
  overflow:hidden!important;
}
body.v151-mobile-layout .v151-mobile-only{display:flex!important;}
body.v151-mobile-layout .app{
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:var(--v151-topbar-h) minmax(0,1fr) var(--v151-status-h) calc(var(--v151-dock-h) + var(--v151-bottom-safe))!important;
  grid-template-areas:"toolbar" "map" "status" "toolrail"!important;
  transition:none!important;
}
body.v151-mobile-layout #map,
body.v151-mobile-layout #editOverlay,
body.v151-mobile-layout #imageTraceLayer,
body.v151-mobile-layout .float-toolbar,
body.v151-mobile-layout .mode-banner,
body.v151-mobile-layout .map-display-control,
body.v151-mobile-layout #mouseCoords,
body.v151-mobile-layout .mini-help,
body.v151-mobile-layout .geometry-preview-panel{
  grid-area:map!important;
  min-width:0!important;
}

/* Compact but complete top bar. Open remains a first-class action; the More
   menu contains the less frequent project, export and location actions. */
body.v151-mobile-layout .compact-topbar{
  grid-area:toolbar!important;
  display:grid!important;
  grid-template-columns:auto auto minmax(0,1fr) auto!important;
  height:var(--v151-topbar-h)!important;
  min-height:var(--v151-topbar-h)!important;
  padding:5px max(6px,env(safe-area-inset-right,0px)) 5px max(6px,env(safe-area-inset-left,0px))!important;
  gap:5px!important;
  overflow:visible!important;
  white-space:nowrap;
  z-index:4700!important;
}
body.v151-mobile-layout .topbar-brand{min-width:0!important;overflow:hidden;}
body.v151-mobile-layout .topbar-brand .title{font-size:13px!important;max-width:104px;overflow:hidden;text-overflow:ellipsis;}
body.v151-mobile-layout .topbar-subtitle{display:none!important;}
body.v151-mobile-layout .topbar-core{
  display:flex!important;
  order:2;
  min-width:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
body.v151-mobile-layout .topbar-core > *:not(#openBtn):not(#fileInput){display:none!important;}
body.v151-mobile-layout #openBtn{display:inline-flex!important;min-height:42px!important;height:42px!important;padding:0 12px!important;}
body.v151-mobile-layout .topbar-search-wrap{
  order:3;
  display:flex!important;
  min-width:0!important;
  max-width:none!important;
  height:36px!important;
  padding:2px!important;
  gap:2px!important;
}
body.v151-mobile-layout .topbar-search-wrap .location-search-box{
  min-width:0!important;
  width:100%!important;
  height:30px!important;
  padding:0 6px!important;
  font-size:11px!important;
}
body.v151-mobile-layout .topbar-search-wrap #locationSearchBtn{min-width:34px!important;width:34px!important;height:30px!important;min-height:30px!important;padding:0!important;font-size:11px!important;}
body.v151-mobile-layout .topbar-search-wrap #clearLocationSearchBtn{display:none!important;}
body.v151-mobile-layout .topbar-export-compact{display:none!important;}
body.v151-mobile-layout .topbar-more-wrap{order:4;min-width:0!important;}
body.v151-mobile-layout .topbar-more-btn{height:42px!important;min-height:42px!important;padding:0 12px!important;}
body.v151-mobile-layout .top-more-menu{
  position:fixed!important;
  top:calc(var(--v151-topbar-h) + 4px)!important;
  left:max(6px,env(safe-area-inset-left,0px))!important;
  right:max(6px,env(safe-area-inset-right,0px))!important;
  bottom:calc(var(--v151-status-h) + var(--v151-dock-h) + var(--v151-bottom-safe) + 6px)!important;
  width:auto!important;
  max-height:none!important;
  overflow:auto!important;
  overscroll-behavior:contain;
  z-index:5400!important;
}
.v151-mobile-menu{
  display:grid;
  gap:7px;
  padding:5px 4px 2px;
  border-bottom:1px solid var(--line,#d7d7d7);
}
.v151-mobile-menu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;}
.v151-mobile-menu-grid button{justify-content:center!important;text-align:center!important;min-width:0!important;padding:0 5px!important;}
.v151-mobile-menu-fields{display:grid;grid-template-columns:1fr 1fr;gap:6px;}
.v151-mobile-menu label{display:grid;gap:4px;min-width:0;color:var(--muted,#66707b);font-size:10px;font-weight:700;}
.v151-mobile-menu select,.v151-mobile-menu input{width:100%!important;min-width:0!important;height:36px!important;}
.v151-mobile-location{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;}
.v151-mobile-location button{min-width:48px!important;justify-content:center!important;}

/* Bottom tool dock. Existing rail buttons remain the source of truth, while
   Layers and Inspector are mobile-only drawer controls. */
body.v151-mobile-layout .tool-rail{
  grid-area:toolrail!important;
  position:relative!important;
  inset:auto!important;
  z-index:4600!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  gap:2px!important;
  width:100%!important;
  height:calc(var(--v151-dock-h) + var(--v151-bottom-safe))!important;
  min-height:0!important;
  padding:3px max(4px,env(safe-area-inset-right,0px)) var(--v151-bottom-safe) max(4px,env(safe-area-inset-left,0px))!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none;
  border-top:1px solid #cfd3d8!important;
  border-right:0!important;
  box-shadow:0 -2px 8px rgba(15,23,42,.10)!important;
  scroll-snap-type:x proximity;
}
body.v151-mobile-layout .tool-rail::-webkit-scrollbar{display:none;}
body.v151-mobile-layout .rail-spacer,
body.v151-mobile-layout .rail-tip{display:none!important;}
body.v151-mobile-layout .rail-btn{
  flex:0 0 58px!important;
  width:58px!important;
  min-width:58px!important;
  height:54px!important;
  min-height:54px!important;
  padding:2px!important;
  scroll-snap-align:start;
  touch-action:manipulation;
}
body.v151-mobile-layout .rail-btn .ico{height:20px!important;line-height:20px!important;}
body.v151-mobile-layout .rail-btn .ico svg{width:19px!important;height:19px!important;}
body.v151-mobile-layout .rail-btn .lbl{font-size:9px!important;line-height:11px!important;max-width:54px;overflow:hidden;text-overflow:ellipsis;}
body.v151-mobile-layout .v151-mobile-drawer-button[aria-expanded="true"]{background:var(--accentSoft2,#f4e8ea)!important;color:#9e2027!important;border-color:var(--accentBorder,#e5a7ad)!important;box-shadow:inset 0 -3px 0 var(--accent,#d92c32)!important;}
.v151-mobile-badge{
  position:absolute;
  top:1px;
  right:4px;
  display:none;
  min-width:15px;
  height:15px;
  padding:0 3px;
  align-items:center;
  justify-content:center;
  border:1px solid #fff;
  background:#b42318;
  color:#fff;
  font-size:8px;
  font-weight:800;
  line-height:13px;
  pointer-events:none;
}
.v151-mobile-badge.active{display:flex;}

/* Status is deliberately compact, but remains present for progress, errors and
   saved/unsaved state. */
body.v151-mobile-layout .statusbar{
  grid-area:status!important;
  height:var(--v151-status-h)!important;
  min-height:var(--v151-status-h)!important;
  gap:5px!important;
  padding:0 6px!important;
  z-index:4550!important;
  font-size:10px!important;
  overflow:hidden!important;
}
body.v151-mobile-layout .statusbar > *{display:none!important;}
body.v151-mobile-layout .statusbar #statusText,
body.v151-mobile-layout .statusbar #dirtyState{display:inline-flex!important;min-width:0;}
body.v151-mobile-layout .statusbar #statusText{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
body.v151-mobile-layout .statusbar #dirtyState{flex:0 0 auto;padding:1px 5px!important;font-size:9px!important;}

/* Project/Layers and Inspector become off-canvas drawers. */
.v151-mobile-backdrop{display:none;}
body.v151-mobile-layout .v151-mobile-backdrop{
  position:fixed;
  top:var(--v151-topbar-h);
  left:0;
  right:0;
  bottom:calc(var(--v151-status-h) + var(--v151-dock-h) + var(--v151-bottom-safe));
  z-index:5550;
  display:block;
  background:rgba(15,23,42,.42);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .16s ease,visibility 0s linear .16s;
}
body.v151-mobile-layout.v151-mobile-drawer-active .v151-mobile-backdrop{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transition:opacity .16s ease;
}
.v151-mobile-drawer-head{display:none;}
body.v151-mobile-layout .v151-mobile-drawer-head{
  position:sticky;
  top:0;
  z-index:20;
  display:flex!important;
  flex:0 0 42px;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-height:42px;
  padding:5px 7px 5px 10px;
  border-bottom:1px solid #cfd3d8;
  background:var(--panel,#fff);
  color:var(--text,#1f2328);
}
body.v151-mobile-layout .v151-mobile-drawer-head strong{font-size:12px;}
body.v151-mobile-layout .v151-mobile-drawer-close{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;font-size:22px!important;}
body.v151-mobile-layout .sidebar,
body.v151-mobile-layout #selectedSection{
  position:fixed!important;
  top:var(--v151-topbar-h)!important;
  bottom:calc(var(--v151-status-h) + var(--v151-dock-h) + var(--v151-bottom-safe))!important;
  width:min(92vw,400px)!important;
  max-width:400px!important;
  min-width:280px!important;
  height:auto!important;
  max-height:none!important;
  z-index:5600!important;
  display:flex!important;
  flex-direction:column!important;
  padding:0!important;
  overflow:hidden!important;
  background:var(--panel2,#f7f7f8)!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:0 12px 36px rgba(15,23,42,.28)!important;
  visibility:hidden;
  pointer-events:none;
  transition:transform .18s ease,visibility 0s linear .18s!important;
}
body.v151-mobile-layout .sidebar{left:0!important;right:auto!important;transform:translateX(-104%);}
body.v151-mobile-layout #selectedSection{right:0!important;left:auto!important;transform:translateX(104%);}
body.v151-mobile-layout .sidebar.v151-mobile-drawer-open,
body.v151-mobile-layout #selectedSection.v151-mobile-drawer-open{
  transform:translateX(0)!important;
  visibility:visible;
  pointer-events:auto;
  transition:transform .18s ease!important;
}
body.v151-mobile-layout .sidebar > .v120-collapsed-rail,
body.v151-mobile-layout #selectedSection > .v120-collapsed-rail,
body.v151-mobile-layout .v120-sidebar-toggle,
body.v151-mobile-layout .v149-sidebar-width-resizer{display:none!important;}
/* Neutralise saved desktop-collapse classes while the panels are drawers. */
body.v151-mobile-layout .sidebar.v120-sidebar-collapsed > #projectSection{display:block!important;}
body.v151-mobile-layout .sidebar.v120-sidebar-collapsed > .sidebar-resizer{display:block!important;}
body.v151-mobile-layout .sidebar.v120-sidebar-collapsed > #filesSection{display:block!important;}
body.v151-mobile-layout #selectedSection.v120-sidebar-collapsed > .section-title{display:flex!important;}
body.v151-mobile-layout #selectedSection.v120-sidebar-collapsed > #selectedPanel{display:flex!important;}
body.v151-mobile-layout #projectSection{
  flex:0 0 clamp(150px,34%,250px)!important;
  height:auto!important;
  min-height:120px!important;
  max-height:42%!important;
  overflow:auto!important;
}
body.v151-mobile-layout #filesSection{flex:1 1 0!important;min-height:0!important;overflow:auto!important;}
body.v151-mobile-layout #selectedSection > .section-title{flex:0 0 auto;margin:0!important;padding:9px 10px 7px!important;}
body.v151-mobile-layout #selectedPanel{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;padding:0 8px 10px;}
body.v151-mobile-layout .sidebar-resizer[data-resizer="project-files"]{flex:0 0 12px!important;height:12px!important;min-height:12px!important;touch-action:none!important;}
body.v151-mobile-layout #filesSection .v54-filter-row{overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none;}
body.v151-mobile-layout #filesSection .v54-filter-row::-webkit-scrollbar{display:none;}

/* Existing flyouts become bottom sheets above the tool dock. Inline left/top
   values from the desktop positioning routine are intentionally overridden. */
body.v151-mobile-layout .rail-flyout{
  position:fixed!important;
  left:max(6px,env(safe-area-inset-left,0px))!important;
  right:max(6px,env(safe-area-inset-right,0px))!important;
  top:auto!important;
  bottom:calc(var(--v151-status-h) + var(--v151-dock-h) + var(--v151-bottom-safe) + 6px)!important;
  width:auto!important;
  max-width:none!important;
  max-height:min(62dvh,540px)!important;
  overflow:auto!important;
  overscroll-behavior:contain;
  z-index:5300!important;
}
body.v151-mobile-layout #selectToolFlyout{width:auto!important;max-height:min(68dvh,620px)!important;}
body.v151-mobile-layout .rail-flyout button{min-height:48px!important;touch-action:manipulation;}
body.v151-mobile-layout .rail-flyout-label select{height:38px!important;}

/* Map chrome stays reachable and does not sit behind the drawers or dock. */
body.v151-mobile-layout .ol-zoom button{width:38px!important;height:38px!important;line-height:38px!important;font-size:20px!important;}
body.v151-mobile-layout .ol-zoom{margin-top:2px;}
body.v151-mobile-layout #selectedFloatToolbar.float-toolbar,
body.v151-mobile-layout #drawFloatToolbar.float-toolbar,
body.v151-mobile-layout #vertexFloatToolbar.float-toolbar,
body.v151-mobile-layout #measureFloatToolbar.float-toolbar,
body.v151-mobile-layout #imageOverlayToolbar.float-toolbar{
  margin-top:7px!important;
  margin-left:54px!important;
  margin-right:6px!important;
  max-width:calc(100% - 60px)!important;
  max-height:46px!important;
  min-height:38px!important;
  padding:4px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none;
  z-index:1600!important;
}
body.v151-mobile-layout .float-toolbar::-webkit-scrollbar{display:none;}
body.v151-mobile-layout .float-toolbar button,
body.v151-mobile-layout .float-toolbar select,
body.v151-mobile-layout .float-toolbar input{min-height:34px!important;height:34px!important;}
body.v151-mobile-layout #modeBanner.mode-banner{
  margin-top:56px!important;
  margin-left:6px!important;
  margin-right:6px!important;
  max-width:calc(100% - 12px)!important;
  width:auto!important;
  min-height:30px!important;
  max-height:38px!important;
  padding:5px 7px!important;
  z-index:1500!important;
}
body.v151-mobile-layout #modeBanner.mode-banner #modeBannerHint{min-width:0!important;}
body.v151-mobile-layout #modeBanner.mode-banner .mode-banner-metric{display:none!important;}
body.v151-mobile-layout .map-display-control{
  margin:0 0 7px 6px!important;
  max-width:calc(100% - 12px)!important;
  padding:3px!important;
  z-index:900!important;
}
body.v151-mobile-layout .map-display-control label{font-size:10px!important;gap:4px!important;}
body.v151-mobile-layout .map-display-control select{min-width:82px!important;height:32px!important;}
body.v151-mobile-layout .map-display-control button{height:32px!important;min-height:32px!important;padding:0 6px!important;}
body.v151-mobile-layout .fullscreen-editor-btn{display:none!important;}
body.v151-mobile-layout #mouseCoords{margin:0 6px 7px 0!important;max-width:45%!important;font-size:9px!important;padding:3px 5px!important;}
body.v151-mobile-layout .ol-attribution{max-width:70vw;font-size:8px!important;line-height:1.2!important;}
body.v151-mobile-layout .geometry-preview-panel{
  align-self:end!important;
  justify-self:stretch!important;
  width:auto!important;
  max-width:none!important;
  max-height:58%!important;
  margin:0 6px 6px!important;
  overflow:auto!important;
  z-index:1750!important;
}

/* Larger handles and practical touch targets. */
body.v151-mobile-layout .vtx{width:24px!important;height:24px!important;border-width:3px!important;}
body.v151-mobile-layout .vtx.selected{width:28px!important;height:28px!important;}
body.v151-mobile-layout .mid{width:17px!important;height:17px!important;border-width:2px!important;}
body.v151-mobile-layout .mid:hover{width:20px!important;height:20px!important;}
body.v151-mobile-layout .draw-dot{width:20px!important;height:20px!important;}
body.v151-mobile-layout .draw-dot.first{width:24px!important;height:24px!important;}
body.v151-mobile-layout .editpolygon-point-edit-handle{width:26px!important;height:26px!important;}
body.v151-mobile-layout .v137-circle-edit-center,
body.v151-mobile-layout .v137-circle-edit-radius{width:26px!important;height:26px!important;}
body.v151-mobile-layout .trace-image-handle{width:24px!important;height:24px!important;}
body.v151-mobile-layout .edge-drag-handle{min-width:24px!important;min-height:24px!important;}
body.v151-mobile-layout input,
body.v151-mobile-layout select,
body.v151-mobile-layout textarea{font-size:16px;}
body.v151-mobile-layout .sidebar input,
body.v151-mobile-layout .sidebar select,
body.v151-mobile-layout #selectedSection input,
body.v151-mobile-layout #selectedSection select{min-height:38px;}
body.v151-mobile-layout .sidebar button,
body.v151-mobile-layout #selectedSection button{min-height:36px;}

/* Menus opened from layer rows or map picks become bounded bottom sheets. */
body.v151-mobile-layout .layer-menu.active,
body.v151-mobile-layout .pick-menu.active,
body.v151-mobile-layout .gis-layer-action-menu{
  position:fixed!important;
  left:max(6px,env(safe-area-inset-left,0px))!important;
  right:max(6px,env(safe-area-inset-right,0px))!important;
  top:auto!important;
  bottom:calc(var(--v151-status-h) + var(--v151-dock-h) + var(--v151-bottom-safe) + 6px)!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  max-height:62dvh!important;
  overflow:auto!important;
  z-index:5350!important;
}

/* Modal and workspace treatment: full-width sheets with independently
   scrolling bodies and reachable headers/footers. */
body.v151-mobile-layout .modal-backdrop{
  align-items:stretch!important;
  justify-content:stretch!important;
  padding:0!important;
  z-index:6000!important;
}
body.v151-mobile-layout .modal{
  width:100%!important;
  height:100dvh!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  border:0!important;
}
body.v151-mobile-layout .modal-head{position:sticky;top:0;z-index:4;flex:0 0 auto;padding:9px!important;background:var(--panel,#fff);}
body.v151-mobile-layout .modal-body{flex:1 1 auto;min-height:0;padding:9px!important;overflow:auto!important;overscroll-behavior:contain;}
body.v151-mobile-layout .modal-foot{position:sticky;bottom:0;z-index:4;flex:0 0 auto;padding:8px!important;background:var(--panel,#fff);overflow-x:auto;justify-content:flex-end;}
body.v151-mobile-layout .converter-grid,
body.v151-mobile-layout .validator-grid,
body.v151-mobile-layout .geom-op-grid{grid-template-columns:1fr!important;}
body.v151-mobile-layout .import-overlay{min-width:0!important;width:calc(100% - 20px)!important;max-width:none!important;max-height:70%!important;overflow:auto!important;}
body.v151-mobile-layout .recovery-card{width:calc(100% - 20px)!important;max-height:calc(100dvh - 20px)!important;overflow:auto!important;}
body.v151-mobile-layout .command-backdrop{padding:0!important;align-items:stretch!important;z-index:6200!important;}
body.v151-mobile-layout .command-palette{width:100%!important;height:100dvh!important;max-width:none!important;border:0!important;display:flex;flex-direction:column;}
body.v151-mobile-layout .command-list{flex:1;max-height:none!important;}
body.v151-mobile-layout .reference-overlay-modal{width:100%!important;max-height:100dvh!important;height:100dvh!important;border:0!important;}
body.v151-mobile-layout .seo-info-drawer{bottom:calc(var(--v151-status-h) + var(--v151-dock-h) + var(--v151-bottom-safe) + 5px)!important;right:5px!important;}

/* GIS workspace and data tools are loaded after the main stylesheet, so the
   mobile layer explicitly owns their small-screen geometry. */
body.v151-mobile-layout .gis-workspace-panel{
  position:fixed!important;
  inset:var(--v151-topbar-h) 0 calc(var(--v151-status-h) + var(--v151-dock-h) + var(--v151-bottom-safe)) 0!important;
  width:auto!important;
  height:auto!important;
  max-width:none!important;
  z-index:5500!important;
  border:0!important;
}
body.v151-mobile-layout .gis-panel-head{padding:8px!important;}
body.v151-mobile-layout .gis-tabs{overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none;}
body.v151-mobile-layout .gis-tabs::-webkit-scrollbar{display:none;}
body.v151-mobile-layout .gis-tabs button{flex:0 0 auto;min-width:72px;min-height:40px!important;}
body.v151-mobile-layout .gis-panel-body{padding:7px!important;}
body.v151-mobile-layout .gis-pane-intro{flex-direction:column;}
body.v151-mobile-layout .gis-form-grid,
body.v151-mobile-layout .gis-basemap-grid{grid-template-columns:1fr!important;}
body.v151-mobile-layout .gis-span-2{grid-column:auto!important;}
body.v151-mobile-layout .gis-data-modal{padding:0!important;z-index:6500!important;}
body.v151-mobile-layout .gis-data-shell{width:100%!important;height:100dvh!important;max-width:none!important;max-height:none!important;border:0!important;}
body.v151-mobile-layout .gis-data-shell>header{grid-template-columns:minmax(0,1fr) 38px!important;gap:6px!important;padding:7px!important;}
body.v151-mobile-layout .gis-data-shell nav{grid-column:1/-1;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none;}
body.v151-mobile-layout .gis-data-shell nav::-webkit-scrollbar{display:none;}
body.v151-mobile-layout .gis-data-shell nav button{flex:0 0 auto;min-height:38px!important;}
body.v151-mobile-layout .gis-data-shell>main{padding:7px!important;}
body.v151-mobile-layout .gis-data-shell>footer{padding:6px 8px!important;}
body.v151-mobile-layout .gis-data-toolbar{align-items:stretch!important;flex-direction:column!important;}
body.v151-mobile-layout .gis-data-toolbar input{min-width:0!important;width:100%!important;}
body.v151-mobile-layout .gis-table-wrap{max-height:none!important;}
body.v151-mobile-layout .gis-tool-card{padding:10px!important;}
body.v151-mobile-layout .gis-stat-overview,
body.v151-mobile-layout .gis-stat-grid{grid-template-columns:1fr 1fr!important;}
body.v151-mobile-layout .gis-style-editor-layout,
body.v151-mobile-layout .gis-style-main-grid{grid-template-columns:1fr!important;}
body.v151-mobile-layout .gis-spatial-select-banner{top:6px!important;left:6px!important;right:6px!important;transform:none!important;max-width:none!important;min-width:0!important;}

/* Very narrow phones move location search into More and give the map the full
   remaining header width. */
@media(max-width:360px){
  body.v151-mobile-layout .compact-topbar{grid-template-columns:auto auto 1fr!important;}
  body.v151-mobile-layout .topbar-search-wrap{display:none!important;}
  body.v151-mobile-layout .topbar-more-wrap{justify-self:end;}
  body.v151-mobile-layout .topbar-brand .title{max-width:92px;}
  body.v151-mobile-layout #mouseCoords{display:none!important;}
}

/* Landscape phones need every vertical pixel. */
@media(max-height:500px){
  body.v151-mobile-layout{
    --v151-topbar-h:44px;
    --v151-status-h:20px;
    --v151-dock-h:54px;
  }
  body.v151-mobile-layout .compact-topbar{padding-top:3px!important;padding-bottom:3px!important;}
  body.v151-mobile-layout .rail-btn{height:48px!important;min-height:48px!important;flex-basis:54px!important;width:54px!important;min-width:54px!important;}
  body.v151-mobile-layout .rail-btn .lbl{font-size:8px!important;}
  body.v151-mobile-layout #projectSection{flex-basis:42%!important;max-height:48%!important;}
  body.v151-mobile-layout .rail-flyout{max-height:65dvh!important;}
  body.v151-mobile-layout .map-display-control{display:none!important;}
  body.v151-mobile-layout #modeBanner.mode-banner{margin-top:51px!important;}
}

@media(prefers-reduced-motion:reduce){
  body.v151-mobile-layout .sidebar,
  body.v151-mobile-layout #selectedSection,
  body.v151-mobile-layout .v151-mobile-backdrop{transition:none!important;}
}
/* Preserve layout semantics for the injected mobile menu. */
body.v151-mobile-layout .v151-mobile-menu.v151-mobile-only{display:grid!important;}
body.v151-mobile-layout .rail-btn{position:relative!important;}


/* -------------------------------------------------------------------------
   v1.51.1 mobile refinement
   - stable dedicated project sheet instead of reusing the desktop dropdown
   - compact context bar instead of desktop toolbars crossing the map
   - reliable inspector scrolling with its title outside the scroll container
   ------------------------------------------------------------------------- */

.v151-mobile-project-backdrop,
.v151-mobile-project-menu,
.v151-mobile-context-bar,
.v151-mobile-context-backdrop,
.v151-mobile-context-sheet{display:none;}

body.v151-mobile-layout #topMoreMenu{display:none!important;}
body.v151-mobile-layout .topbar-search-wrap{display:none!important;}
body.v151-mobile-layout .compact-topbar{
  grid-template-columns:auto auto minmax(0,1fr) auto!important;
}
body.v151-mobile-layout .topbar-more-wrap{justify-self:end!important;}

/* Dedicated project sheet. It always opens at scroll position zero and owns
   its complete layout, so desktop dropdown rules cannot split or offset it. */
body.v151-mobile-layout .v151-mobile-project-backdrop,
body.v151-mobile-layout .v151-mobile-context-backdrop{
  position:fixed;
  inset:var(--v151-topbar-h) 0 calc(var(--v151-status-h) + var(--v151-dock-h) + var(--v151-bottom-safe)) 0;
  z-index:5650;
  display:block;
  background:rgba(15,23,42,.42);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .16s ease,visibility 0s linear .16s;
}
body.v151-mobile-layout .v151-mobile-project-backdrop.active,
body.v151-mobile-layout .v151-mobile-context-backdrop.active{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transition:opacity .16s ease;
}
body.v151-mobile-layout .v151-mobile-project-menu{
  position:fixed;
  top:var(--v151-topbar-h);
  left:0;
  right:0;
  bottom:calc(var(--v151-status-h) + var(--v151-dock-h) + var(--v151-bottom-safe));
  z-index:5700;
  display:flex;
  flex-direction:column;
  min-width:0;
  overflow:hidden;
  background:var(--panel,#fff);
  border-top:1px solid var(--line,#d7d7d7);
  transform:translateY(-104%);
  visibility:hidden;
  pointer-events:none;
  transition:transform .18s ease,visibility 0s linear .18s;
}
body.v151-mobile-layout .v151-mobile-project-menu.active{
  transform:translateY(0);
  visibility:visible;
  pointer-events:auto;
  transition:transform .18s ease;
}
body.v151-mobile-layout .v151-mobile-sheet-head{
  position:relative;
  z-index:3;
  display:flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:52px;
  padding:7px 9px 7px 12px;
  border-bottom:1px solid #cfd3d8;
  background:var(--panel,#fff);
}
body.v151-mobile-layout .v151-mobile-sheet-head>span{
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:2px;
}
body.v151-mobile-layout .v151-mobile-sheet-head strong{
  overflow:hidden;
  color:var(--text,#1f2328);
  font-size:14px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.v151-mobile-layout .v151-mobile-sheet-head small{
  overflow:hidden;
  color:var(--muted,#66707b);
  font-size:10px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.v151-mobile-layout .v151-mobile-sheet-close{
  flex:0 0 38px;
  width:38px!important;
  min-width:38px!important;
  height:38px!important;
  min-height:38px!important;
  padding:0!important;
  font-size:22px!important;
}
body.v151-mobile-layout .v151-mobile-sheet-body{
  flex:1 1 auto;
  min-height:0;
  padding:0 10px 18px;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  scroll-padding-top:8px;
}
body.v151-mobile-layout .v151-mobile-menu-section{
  display:grid;
  gap:8px;
  padding:12px 0;
  border-bottom:1px solid #e1e4e8;
}
body.v151-mobile-layout .v151-mobile-menu-section:last-child{border-bottom:0;}
body.v151-mobile-layout .v151-mobile-menu-section h3{
  margin:0;
  color:var(--muted,#66707b);
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
body.v151-mobile-layout .v151-mobile-action-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
}
body.v151-mobile-layout .v151-mobile-action-grid button,
body.v151-mobile-layout .v151-mobile-list-actions button,
body.v151-mobile-layout .v151-mobile-list-actions a,
body.v151-mobile-layout .v151-mobile-wide-action{
  width:100%;
  min-width:0;
  min-height:46px!important;
  padding:0 11px!important;
  justify-content:flex-start!important;
  border:1px solid #d5d9df!important;
  background:var(--panel,#fff)!important;
  color:var(--text,#1f2328)!important;
  text-align:left;
  text-decoration:none;
}
body.v151-mobile-layout .v151-mobile-action-grid button{justify-content:center!important;text-align:center;}
body.v151-mobile-layout .v151-mobile-wide-action.primary{
  justify-content:center!important;
  background:#1f2937!important;
  border-color:#1f2937!important;
  color:#fff!important;
}
body.v151-mobile-layout .v151-mobile-list-actions{display:grid;gap:5px;}
body.v151-mobile-layout .v151-mobile-list-actions a{display:flex;align-items:center;}
body.v151-mobile-layout .v151-mobile-menu-fields{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:7px;
  align-items:end;
}
body.v151-mobile-layout .v151-mobile-menu-section label{
  display:grid;
  min-width:0;
  gap:5px;
  color:var(--muted,#66707b);
  font-size:11px;
  font-weight:700;
}
body.v151-mobile-layout .v151-mobile-menu-section select,
body.v151-mobile-layout .v151-mobile-menu-section input{
  width:100%!important;
  min-width:0!important;
  height:44px!important;
}
body.v151-mobile-layout .v151-mobile-location{
  display:grid;
  grid-template-columns:minmax(0,1fr) 52px;
  gap:6px;
}
body.v151-mobile-layout .v151-mobile-location button{
  width:52px!important;
  min-width:52px!important;
  height:42px!important;
  min-height:42px!important;
  padding:0!important;
}

/* Mobile drawers use a fixed header and one unambiguous scroll container. */
body.v151-mobile-layout .v151-mobile-drawer-head{
  position:relative!important;
  top:auto!important;
  flex:0 0 48px!important;
  min-height:48px!important;
  padding:5px 7px 5px 11px!important;
}
body.v151-mobile-layout .v151-mobile-drawer-title{
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:1px;
}
body.v151-mobile-layout .v151-mobile-drawer-title strong{font-size:13px!important;}
body.v151-mobile-layout .v151-mobile-drawer-title small{
  overflow:hidden;
  max-width:70vw;
  color:var(--muted,#66707b);
  font-size:9px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.v151-mobile-layout #selectedSection{
  display:grid!important;
  grid-template-rows:48px minmax(0,1fr)!important;
  align-content:stretch!important;
}
body.v151-mobile-layout #selectedSection > .section-title{display:none!important;}
body.v151-mobile-layout #selectedPanel{
  grid-row:2;
  display:flex!important;
  min-height:0!important;
  height:auto!important;
  padding:8px 8px 16px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  scroll-padding-top:8px;
  touch-action:pan-y;
}
body.v151-mobile-layout .sidebar,
body.v151-mobile-layout #selectedSection{overscroll-behavior:contain;}
body.v151-mobile-layout #projectSection,
body.v151-mobile-layout #filesSection{
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
}

/* Desktop contextual controls are replaced by one compact mobile bar. */
body.v151-mobile-layout #selectedFloatToolbar,
body.v151-mobile-layout #drawFloatToolbar,
body.v151-mobile-layout #vertexFloatToolbar,
body.v151-mobile-layout #measureFloatToolbar,
body.v151-mobile-layout #imageOverlayToolbar,
body.v151-mobile-layout #polygonContextToolbar,
body.v151-mobile-layout #modeBanner,
body.v151-mobile-layout .map-display-control,
body.v151-mobile-layout .mini-help{display:none!important;}
body.v151-mobile-layout .seo-info-drawer:not([open]){display:none!important;}
body.v151-mobile-layout .seo-info-drawer[open]{
  position:fixed!important;
  inset:var(--v151-topbar-h) 0 calc(var(--v151-status-h) + var(--v151-dock-h) + var(--v151-bottom-safe)) 0!important;
  z-index:6100!important;
  display:block!important;
}
body.v151-mobile-layout .seo-info-card{
  width:100%!important;
  height:100%!important;
  max-height:none!important;
  padding:16px!important;
  border:0!important;
}
body.v151-mobile-layout .v151-mobile-context-bar{
  position:fixed;
  left:max(6px,env(safe-area-inset-left,0px));
  right:max(6px,env(safe-area-inset-right,0px));
  bottom:calc(var(--v151-status-h) + var(--v151-dock-h) + var(--v151-bottom-safe) + 6px);
  z-index:2050;
  display:none;
  min-width:0;
  min-height:48px;
  align-items:center;
  gap:7px;
  padding:5px;
  border:1px solid #cfd3d8;
  background:rgba(255,255,255,.97);
  box-shadow:0 3px 14px rgba(15,23,42,.20);
}
body.v151-mobile-layout .v151-mobile-context-bar.active{display:flex;}
body.v151-mobile-layout .v151-mobile-context-copy{
  display:flex;
  flex:1 1 auto;
  min-width:0;
  flex-direction:column;
  gap:1px;
  padding-left:5px;
}
body.v151-mobile-layout .v151-mobile-context-copy strong,
body.v151-mobile-layout .v151-mobile-context-copy small{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.v151-mobile-layout .v151-mobile-context-copy strong{font-size:11px;}
body.v151-mobile-layout .v151-mobile-context-copy small{color:var(--muted,#66707b);font-size:9px;}
body.v151-mobile-layout .v151-mobile-context-actions{
  display:flex;
  flex:0 0 auto;
  align-items:center;
  gap:4px;
}
body.v151-mobile-layout .v151-mobile-context-actions button{
  min-height:36px!important;
  height:36px!important;
  min-width:0!important;
  padding:0 8px!important;
  font-size:10px!important;
}
body.v151-mobile-layout .v151-mobile-context-actions button.primary{
  background:#1f2937!important;
  border-color:#1f2937!important;
  color:#fff!important;
}
body.v151-mobile-layout.v151-mobile-context-active .ol-attribution{
  bottom:55px!important;
}

body.v151-mobile-layout .v151-mobile-context-backdrop{z-index:5750;}
body.v151-mobile-layout .v151-mobile-context-sheet{
  position:fixed;
  left:0;
  right:0;
  bottom:calc(var(--v151-status-h) + var(--v151-dock-h) + var(--v151-bottom-safe));
  z-index:5800;
  display:flex;
  max-height:min(66dvh,560px);
  flex-direction:column;
  overflow:hidden;
  background:var(--panel,#fff);
  border-top:1px solid #cfd3d8;
  box-shadow:0 -8px 28px rgba(15,23,42,.24);
  transform:translateY(105%);
  visibility:hidden;
  pointer-events:none;
  transition:transform .18s ease,visibility 0s linear .18s;
}
body.v151-mobile-layout .v151-mobile-context-sheet.active{
  transform:translateY(0);
  visibility:visible;
  pointer-events:auto;
  transition:transform .18s ease;
}
body.v151-mobile-layout .v151-mobile-context-sheet-body{
  display:grid;
  gap:5px;
  min-height:0;
  padding:8px 10px 14px;
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
body.v151-mobile-layout .v151-mobile-context-sheet-body button{
  width:100%;
  min-height:42px!important;
  justify-content:flex-start!important;
  padding:0 11px!important;
}

/* Keep OpenLayers attribution legible and away from the mobile context strip. */
body.v151-mobile-layout .ol-attribution{
  max-width:82vw!important;
  padding:1px 3px!important;
  font-size:7px!important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

body.night-mode.v151-mobile-layout .v151-mobile-project-menu,
body.night-mode.v151-mobile-layout .v151-mobile-sheet-head,
body.night-mode.v151-mobile-layout .v151-mobile-context-bar,
body.night-mode.v151-mobile-layout .v151-mobile-context-sheet{
  background:#15171b!important;
  border-color:#303744!important;
  color:#e5e7eb!important;
}
body.night-mode.v151-mobile-layout .v151-mobile-menu-section{border-color:#303744;}
body.night-mode.v151-mobile-layout .v151-mobile-action-grid button,
body.night-mode.v151-mobile-layout .v151-mobile-list-actions button,
body.night-mode.v151-mobile-layout .v151-mobile-list-actions a{
  background:#1d2128!important;
  border-color:#3a414d!important;
  color:#e5e7eb!important;
}

@media(max-width:390px){
  body.v151-mobile-layout .topbar-brand .title{max-width:94px!important;}
  body.v151-mobile-layout .v151-mobile-context-copy small{display:none;}
  body.v151-mobile-layout .v151-mobile-context-actions button{padding:0 6px!important;}
}
@media(max-width:340px){
  body.v151-mobile-layout .v151-mobile-menu-fields{grid-template-columns:1fr;}
  body.v151-mobile-layout .v151-mobile-context-copy{display:none;}
  body.v151-mobile-layout .v151-mobile-context-actions{width:100%;justify-content:flex-end;}
}
@media(max-height:500px){
  body.v151-mobile-layout .v151-mobile-project-menu{left:10%;}
  body.v151-mobile-layout .v151-mobile-context-sheet{left:18%;}
  body.v151-mobile-layout .v151-mobile-context-bar{left:56px;}
}
@media(prefers-reduced-motion:reduce){
  body.v151-mobile-layout .v151-mobile-project-menu,
  body.v151-mobile-layout .v151-mobile-project-backdrop,
  body.v151-mobile-layout .v151-mobile-context-sheet,
  body.v151-mobile-layout .v151-mobile-context-backdrop{transition:none!important;}
}
/* Keep Inspector cards at their natural height so the panel itself, rather
   than compressed children, becomes the touch-scroll container. */
body.v151-mobile-layout #selectedPanel > *{flex:0 0 auto!important;}
body.v151-mobile-layout #selectedPanel > .empty-inspector{min-height:180px;}

/* -------------------------------------------------------------------------
   v1.55.7.1 mobile parity and touch-target refinement
   Keep the phone surface dense enough for GIS work without retaining desktop-
   sized controls. Full application capabilities remain available; only their
   layout changes on narrow/coarse-pointer screens.
   ------------------------------------------------------------------------- */

body.v151-mobile-layout .v155-mobile-action-button.active,
body.v151-mobile-layout .v155-mobile-action-button[aria-pressed="true"]{
  background:var(--accentSoft2,#f4e8ea)!important;
  color:#9e2027!important;
  border-color:var(--accentBorder,#e5a7ad)!important;
  box-shadow:inset 0 -3px 0 var(--accent,#d92c32)!important;
}
body.night-mode.v151-mobile-layout .v155-mobile-action-button.active,
body.night-mode.v151-mobile-layout .v155-mobile-action-button[aria-pressed="true"]{
  background:#2f2226!important;
  border-color:#6a3b42!important;
  color:#ff6b72!important;
  box-shadow:inset 0 -3px 0 #ff6b72!important;
}

/* Consistent close/action targets across drawers, sheets and full-screen tools. */
body.v151-mobile-layout .v151-mobile-sheet-close{
  flex-basis:44px!important;
  width:44px!important;
  min-width:44px!important;
  height:44px!important;
  min-height:44px!important;
}
body.v151-mobile-layout .modal-head>button:last-child,
body.v151-mobile-layout .gis-panel-head>button,
body.v151-mobile-layout .gis-data-shell>header>button:last-child{
  width:44px!important;
  min-width:44px!important;
  height:44px!important;
  min-height:44px!important;
  padding:0!important;
}

/* Layers drawer: the desktop list is preserved, but its interaction surfaces
   are resized/reflowed for touch instead of being a miniature desktop panel. */
body.v151-mobile-layout #projectSection{padding:10px!important;}
body.v151-mobile-layout #projectSection .dropzone{padding:10px!important;}
body.v151-mobile-layout #filesSection{padding:10px!important;}
body.v151-mobile-layout #filesSection>.section-title{
  min-height:42px!important;
  gap:7px!important;
  margin-bottom:8px!important;
}
body.v151-mobile-layout #filesSection>.section-title .v135-new-group-button,
body.v151-mobile-layout #filesSection>.section-title .v133-layer-sort-button,
body.v151-mobile-layout #filesSection>.section-title .v120-sidebar-toggle{
  min-height:38px!important;
  height:38px!important;
  padding-left:10px!important;
  padding-right:10px!important;
}
body.v151-mobile-layout #filesSection .v54-layer-search-row{gap:7px!important;padding-bottom:8px!important;}
body.v151-mobile-layout #filesSection .v54-layer-search-row input{
  height:42px!important;
  min-height:42px!important;
  padding:0 11px!important;
  font-size:13px!important;
}
body.v151-mobile-layout #filesSection .v54-layer-search-row button{
  width:42px!important;
  min-width:42px!important;
  height:42px!important;
  min-height:42px!important;
  font-size:18px!important;
}
body.v151-mobile-layout #filesSection .v54-filter-row{
  gap:6px!important;
  padding:0 0 8px!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
body.v151-mobile-layout #filesSection .v54-filter-row::-webkit-scrollbar{display:none;}
body.v151-mobile-layout #filesSection .v54-filter-row>button,
body.v151-mobile-layout #filesSection .v149-filter-more>summary{
  flex:0 0 auto!important;
  min-height:36px!important;
  height:36px!important;
  padding:0 10px!important;
  font-size:11px!important;
  line-height:34px!important;
}
body.v151-mobile-layout #filesSection .v149-filter-more{margin-left:0!important;}
body.v151-mobile-layout .v149-filter-menu{
  position:fixed!important;
  top:auto!important;
  left:8px!important;
  right:8px!important;
  bottom:calc(var(--v151-status-h) + var(--v151-dock-h) + var(--v151-bottom-safe) + 8px)!important;
  min-width:0!important;
  max-height:55dvh!important;
  overflow:auto!important;
  z-index:5900!important;
}
body.v151-mobile-layout .v149-filter-menu button{min-height:42px!important;font-size:12px!important;}
body.v151-mobile-layout #filesSection .v54-bulk-bar{padding:9px!important;margin-bottom:8px!important;}
body.v151-mobile-layout .v149-bulk-head,
body.v151-mobile-layout .v149-bulk-actions{gap:7px!important;}
body.v151-mobile-layout .v149-bulk-head button,
body.v151-mobile-layout .v149-bulk-actions button,
body.v151-mobile-layout .v149-bulk-more>summary{
  min-height:38px!important;
  height:38px!important;
  padding:0 10px!important;
  font-size:11px!important;
  line-height:36px!important;
}
body.v151-mobile-layout .v149-bulk-menu{
  position:fixed!important;
  top:auto!important;
  left:8px!important;
  right:8px!important;
  bottom:calc(var(--v151-status-h) + var(--v151-dock-h) + var(--v151-bottom-safe) + 8px)!important;
  min-width:0!important;
  max-height:60dvh!important;
  overflow:auto!important;
  z-index:5900!important;
}
body.v151-mobile-layout .v149-bulk-menu button{min-height:42px!important;font-size:12px!important;}
body.v151-mobile-layout #filesSection .file-head,
body.v151-mobile-layout #filesSection .feature-row,
body.v151-mobile-layout #filesSection .image-overlay-row,
body.v151-mobile-layout #filesSection .measure-layer-row{
  min-height:48px!important;
  gap:6px!important;
  padding-top:7px!important;
  padding-bottom:7px!important;
}
body.v151-mobile-layout #filesSection .file-main,
body.v151-mobile-layout #filesSection .feature-main{min-width:72px!important;}
body.v151-mobile-layout #filesSection .file-name,
body.v151-mobile-layout #filesSection .feature-name{font-size:12px!important;line-height:1.2!important;}
body.v151-mobile-layout #filesSection .file-meta,
body.v151-mobile-layout #filesSection .feature-meta{font-size:10px!important;line-height:1.2!important;}
body.v151-mobile-layout #filesSection .file-actions,
body.v151-mobile-layout #filesSection .feature-actions,
body.v151-mobile-layout #filesSection .v54-layer-quick,
body.v151-mobile-layout #filesSection .v74-layer-quick,
body.v151-mobile-layout #filesSection .v75-layer-controls,
body.v151-mobile-layout #filesSection .v76-layer-controls{
  gap:4px!important;
  flex-wrap:wrap!important;
  justify-content:flex-end!important;
}
body.v151-mobile-layout #filesSection .v54-icon-btn,
body.v151-mobile-layout #filesSection .v54-icon-btn.v61-layer-btn,
body.v151-mobile-layout #filesSection .v61-layer-btn,
body.v151-mobile-layout #filesSection .v75-layer-btn,
body.v151-mobile-layout #filesSection .v76-layer-btn,
body.v151-mobile-layout #filesSection .layer-kebab,
body.v151-mobile-layout #filesSection .collapse-btn,
body.v151-mobile-layout #filesSection .icon-btn,
body.v151-mobile-layout #filesSection .layer-mini,
body.v151-mobile-layout #filesSection .v135-target-button{
  width:34px!important;
  min-width:34px!important;
  height:34px!important;
  min-height:34px!important;
  padding:0!important;
}
body.v151-mobile-layout #filesSection .v54-icon-btn svg,
body.v151-mobile-layout #filesSection .v61-layer-btn svg,
body.v151-mobile-layout #filesSection .v75-layer-btn svg,
body.v151-mobile-layout #filesSection .v76-layer-btn svg{width:16px!important;height:16px!important;}
body.v151-mobile-layout .layer-menu{
  width:calc(100vw - 16px)!important;
  max-width:calc(100vw - 16px)!important;
  max-height:calc(100dvh - var(--v151-topbar-h) - var(--v151-status-h) - var(--v151-dock-h) - var(--v151-bottom-safe) - 20px)!important;
}
body.v151-mobile-layout .layer-menu button{min-height:42px!important;font-size:12px!important;}
body.v151-mobile-layout .layer-menu .layer-menu-row{min-height:42px!important;padding-top:7px!important;padding-bottom:7px!important;}
body.v151-mobile-layout .layer-menu select,
body.v151-mobile-layout .layer-menu input:not([type="range"]):not([type="checkbox"]){min-height:40px!important;}

/* Advanced GIS is a first-class mobile surface. It stays full screen above the
   map, while Layers/Inspector/project sheets may still be opened above it. */
body.v151-mobile-layout .gis-workspace-panel{overflow:hidden!important;}
body.v151-mobile-layout .gis-panel-head{
  min-height:56px!important;
  padding:6px 8px 6px 12px!important;
}
body.v151-mobile-layout .gis-panel-title{font-size:15px!important;}
body.v151-mobile-layout .gis-panel-subtitle{font-size:10px!important;line-height:1.25!important;}
body.v151-mobile-layout .gis-tabs{min-height:46px!important;}
body.v151-mobile-layout .gis-tabs button{
  min-width:82px!important;
  min-height:46px!important;
  height:46px!important;
  padding:0 10px!important;
  font-size:12px!important;
}
body.v151-mobile-layout .gis-panel-body{
  padding:10px!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch;
}
body.v151-mobile-layout .gis-section-head{min-height:44px!important;padding:8px 10px!important;}
body.v151-mobile-layout .gis-section-head h3{font-size:13px!important;}
body.v151-mobile-layout .gis-layer-row{padding:10px!important;}
body.v151-mobile-layout .gis-layer-primary{gap:8px!important;align-items:center!important;}
body.v151-mobile-layout .gis-eye,
body.v151-mobile-layout .gis-mini{
  width:38px!important;
  min-width:38px!important;
  height:38px!important;
  min-height:38px!important;
  padding:0!important;
}
body.v151-mobile-layout .gis-layer-name{font-size:12px!important;}
body.v151-mobile-layout .gis-layer-secondary{
  margin:9px 0 0!important;
  gap:8px!important;
  align-items:stretch!important;
}
body.v151-mobile-layout .gis-opacity{
  flex:1 1 190px!important;
  grid-template-columns:auto minmax(80px,1fr) 40px!important;
}
body.v151-mobile-layout .gis-opacity input{width:100%!important;min-height:32px!important;}
body.v151-mobile-layout .gis-layer-order button{width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important;padding:0!important;}
body.v151-mobile-layout .gis-group-select{
  width:100%!important;
  margin-left:0!important;
  justify-content:space-between!important;
}
body.v151-mobile-layout .gis-group-select select{
  flex:1 1 auto!important;
  max-width:none!important;
  height:42px!important;
  min-height:42px!important;
  font-size:12px!important;
}
body.v151-mobile-layout .gis-form-grid label{font-size:12px!important;gap:6px!important;}
body.v151-mobile-layout .gis-form-grid input:not([type="checkbox"]):not([type="range"]),
body.v151-mobile-layout .gis-form-grid select,
body.v151-mobile-layout .gis-form-grid input[type="color"],
body.v151-mobile-layout .gis-remote-choice select{
  height:44px!important;
  min-height:44px!important;
  font-size:13px!important;
}
body.v151-mobile-layout .gis-form-grid input[type="checkbox"],
body.v151-mobile-layout .gis-remote-layer-option input[type="checkbox"]{
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
}
body.v151-mobile-layout .gis-form-actions,
body.v151-mobile-layout .gis-quick-actions,
body.v151-mobile-layout .gis-remote-actions,
body.v151-mobile-layout .gis-remote-layer-select-actions,
body.v151-mobile-layout .gis-basemap-actions{gap:7px!important;}
body.v151-mobile-layout .gis-form-actions button,
body.v151-mobile-layout .gis-quick-actions button,
body.v151-mobile-layout .gis-remote-actions button,
body.v151-mobile-layout .gis-remote-layer-select-actions button,
body.v151-mobile-layout .gis-basemap-actions button{
  min-height:42px!important;
  padding:0 11px!important;
  font-size:12px!important;
}
body.v151-mobile-layout .gis-remote-layer-option{
  min-height:46px!important;
  gap:9px!important;
  padding:8px!important;
}
body.v151-mobile-layout .gis-remote-layer-option strong{font-size:12px!important;}
body.v151-mobile-layout .gis-remote-layer-option small{font-size:10px!important;}
body.v151-mobile-layout .gis-project-metrics{grid-template-columns:1fr 1fr!important;}

/* Data-table/statistics/join tools keep their full feature set while becoming
   comfortable to operate with touch. Wide tables remain horizontally scrollable. */
body.v151-mobile-layout .gis-data-shell>header{grid-template-columns:minmax(0,1fr) 44px!important;min-height:56px!important;}
body.v151-mobile-layout .gis-data-shell nav button{min-height:44px!important;height:44px!important;padding:0 10px!important;}
body.v151-mobile-layout .gis-data-shell>main{overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch;}
body.v151-mobile-layout .gis-data-toolbar button,
body.v151-mobile-layout .gis-tool-card button,
body.v151-mobile-layout .gis-filter-state button,
body.v151-mobile-layout .gis-table-filter-state button,
body.v151-mobile-layout .gis-join-mode-tabs button{
  min-height:42px!important;
  padding-top:0!important;
  padding-bottom:0!important;
}
body.v151-mobile-layout .gis-data-toolbar input,
body.v151-mobile-layout .gis-data-toolbar select,
body.v151-mobile-layout .gis-tool-card input:not([type="checkbox"]):not([type="range"]),
body.v151-mobile-layout .gis-tool-card select,
body.v151-mobile-layout .gis-join-grid input,
body.v151-mobile-layout .gis-join-grid select{
  min-height:42px!important;
}
body.v151-mobile-layout .gis-table-wrap,
body.v151-mobile-layout .gis-join-sample{max-width:100%!important;overflow:auto!important;-webkit-overflow-scrolling:touch;}

/* OpenLayers controls inherit desktop defaults after this stylesheet in the
   document, so use a more specific mobile rule to guarantee usable targets. */
body.v151-mobile-layout .ol-control button{
  width:42px!important;
  min-width:42px!important;
  height:42px!important;
  min-height:42px!important;
  padding:0!important;
  font-size:20px!important;
  touch-action:manipulation!important;
}
body.v151-mobile-layout .ol-zoom{top:8px!important;left:8px!important;}
body.v151-mobile-layout .ol-attribution{
  max-width:82vw!important;
  right:4px!important;
  bottom:4px!important;
  font-size:8px!important;
}

/* On phones there is no useful reason to leave a narrow, untouchable map strip
   beside a drawer. Tablets keep the capped desktop-like drawer width. */
@media(max-width:600px){
  body.v151-mobile-layout .sidebar,
  body.v151-mobile-layout #selectedSection{
    left:0!important;
    right:0!important;
    width:100vw!important;
    max-width:none!important;
    min-width:0!important;
  }
  body.v151-mobile-layout .v151-mobile-drawer-title small{max-width:calc(100vw - 86px)!important;}
  body.v151-mobile-layout .v151-mobile-backdrop{background:transparent!important;}
  body.v151-mobile-layout #filesSection .file-head,
  body.v151-mobile-layout #filesSection .feature-row{
    flex-wrap:wrap!important;
  }
  body.v151-mobile-layout #filesSection .file-main,
  body.v151-mobile-layout #filesSection .feature-main{flex:1 1 150px!important;}
  body.v151-mobile-layout #filesSection .file-actions,
  body.v151-mobile-layout #filesSection .feature-actions,
  body.v151-mobile-layout #filesSection .v54-layer-quick,
  body.v151-mobile-layout #filesSection .v74-layer-quick,
  body.v151-mobile-layout #filesSection .v75-layer-controls,
  body.v151-mobile-layout #filesSection .v76-layer-controls{margin-left:auto!important;}
}

@media(max-width:380px){
  body.v151-mobile-layout{--v151-topbar-h:50px;}
  body.v151-mobile-layout .compact-topbar{grid-template-columns:minmax(0,1fr) auto auto!important;}
  body.v151-mobile-layout .topbar-brand .title{max-width:none!important;font-size:12px!important;}
  body.v151-mobile-layout #openBtn,
  body.v151-mobile-layout .topbar-more-btn{height:40px!important;min-height:40px!important;padding:0 10px!important;}
  body.v151-mobile-layout .v151-mobile-action-grid{grid-template-columns:1fr 1fr;}
  body.v151-mobile-layout .gis-project-metrics{grid-template-columns:1fr!important;}
}


/* v1.55.7.1 — mobile layer-action popover authority.
   Layer action menus are portaled outside the drawer on desktop. On phones the
   drawer is itself a fixed stacking surface, so those popovers must explicitly
   sit above it and use touch-sized action targets. */
body.v151-mobile-layout #filesSection .gis-layer-actions-btn,
body.v151-mobile-layout #filesSection .layer-kebab{
  position:relative!important;
  z-index:3!important;
  width:44px!important;
  min-width:44px!important;
  height:44px!important;
  min-height:44px!important;
  padding:0!important;
  pointer-events:auto!important;
  touch-action:manipulation!important;
}
body.v151-mobile-layout .layer-menu.active,
body.v151-mobile-layout .gis-layer-action-menu{
  position:fixed!important;
  top:auto!important;
  left:max(8px,env(safe-area-inset-left,0px))!important;
  right:max(8px,env(safe-area-inset-right,0px))!important;
  bottom:calc(var(--v151-status-h) + var(--v151-dock-h) + var(--v151-bottom-safe) + 8px)!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  max-height:min(62dvh,560px)!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch;
  z-index:6100!important;
  touch-action:pan-y!important;
}
body.v151-mobile-layout .layer-menu button,
body.v151-mobile-layout .gis-layer-action-menu button{
  min-height:44px!important;
  font-size:12px!important;
  touch-action:manipulation!important;
}

/* v1.56.1 mobile edit-handle pointer ownership */
/*
   Mobile browsers may promote a touch that starts on a draggable edit handle
   into a native pan/zoom gesture. That fires pointercancel and makes the vertex
   editor restore the pointer-down geometry. Claim only draggable edit handles
   so ordinary map pan/pinch gestures remain available everywhere else.
*/
body.v151-mobile-layout .vtx,
body.v151-mobile-layout .edge-drag-handle,
body.v151-mobile-layout .polygon-centre-move-handle,
body.v151-mobile-layout .hole-centre-handle{
  touch-action:none!important;
  user-select:none!important;
  -webkit-user-select:none!important;
  -webkit-touch-callout:none!important;
}

