:root {
  --layout-topbar: #103a43;
  --layout-rail: #f8fbfb;
  --layout-accent: #11a98f;
  --layout-border: #dce7e8;
}

body.oreo-layout-v2 {
  overflow: hidden;
  background: #eaf0f1;
}

body.oreo-layout-v2 .header {
  position: relative;
  z-index: 1200;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  gap: 22px;
  height: 64px;
  padding: 0 22px;
  background: var(--layout-topbar);
  box-shadow: 0 2px 10px #092d3420;
}

body.oreo-layout-v2 .brand { font-size: 18px; gap: 9px; }
body.oreo-layout-v2 .brand-mark { font-size: 30px; }
body.oreo-layout-v2 .header-label { display: none; }
body.oreo-layout-v2 .header-end { gap: 10px; }
body.oreo-layout-v2 #sync-label { color: #c6dfdf; font-size: 11px; }
body.oreo-layout-v2 .header-button { padding: 8px 10px; border-color: #3b6670; background: #1a4b55; }
body.oreo-layout-v2 .header-button:hover { background: #24616b; }

body.oreo-layout-v2 .layout-search-slot { position: relative; min-width: 0; }
body.oreo-layout-v2 .layout-search-slot .place-search {
  display: block;
  width: min(100%, 520px);
  padding: 0;
  margin: 0 auto;
  border: 0;
}
body.oreo-layout-v2 .layout-search-slot .place-search > label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
body.oreo-layout-v2 .layout-search-slot .place-input { gap: 6px; }
body.oreo-layout-v2 .layout-search-slot .place-input input {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #4a737a;
  border-radius: 9px;
  background: #174650;
  color: #fff;
  font-size: 13px;
}
body.oreo-layout-v2 .layout-search-slot .place-input input::placeholder { color: #b8d1d2; }
body.oreo-layout-v2 .layout-search-slot .place-input button { min-width: 68px; border-radius: 8px; background: var(--layout-accent); font-weight: 650; }
body.oreo-layout-v2 .layout-search-slot .place-input #clear-place { min-width: 34px; background: #285660; color: #fff; }
body.oreo-layout-v2 .layout-search-slot #place-message { color: #e5f4f3; }
body.oreo-layout-v2 .layout-search-slot #place-results { position: absolute; top: calc(100% + 7px); left: 0; z-index: 1300; width: 100%; max-height: min(44dvh, 320px); overflow: auto; border: 1px solid var(--layout-border); border-radius: 10px; background: #fff; box-shadow: 0 10px 30px #0b2b3440; }

body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace {
  position: relative;
  display: block;
  width: 100%;
  height: calc(100dvh - 64px);
  min-height: 0;
  overflow: hidden;
  background: #e9eff0;
}
body.oreo-layout-v2 .workspace > .map-section { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; }
body.oreo-layout-v2 #map { position: absolute; inset: 0; width: 100%; height: 100%; }
body.oreo-layout-v2 .workspace > .library,
body.oreo-layout-v2 .workspace.minimal-images-open > .library {
  position: absolute;
  z-index: 1110;
  top: 14px;
  bottom: 14px;
  left: 66px;
  display: flex !important;
  flex-direction: column;
  width: min(372px, calc(100vw - 84px));
  height: auto;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #dce7e8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 35px #102d3430;
}
body.oreo-layout-v2 .workspace.minimal-images-closed > .library { display: none !important; }

body.oreo-layout-v2 .layout-sidebar-head { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px 11px; border-bottom: 1px solid #e7eeee; }
body.oreo-layout-v2 .layout-sidebar-title { display: flex; flex-direction: column; gap: 3px; }
body.oreo-layout-v2 .layout-sidebar-eyebrow { color: #168a7c; font: 700 9px/1.2 "Segoe UI",sans-serif; letter-spacing: .15em; }
body.oreo-layout-v2 .layout-sidebar-title strong { color: #173d43; font-size: 16px; font-weight: 650; }
body.oreo-layout-v2 .layout-sidebar-close { width: 32px; height: 32px; border-radius: 8px; background: #eff5f5; color: #405b60; font-size: 22px; line-height: 1; }
body.oreo-layout-v2 .layout-sidebar-tabs { display: grid; flex: 0 0 auto; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; padding: 8px 9px; border-bottom: 1px solid #e7eeee; background: #fbfdfd; }
body.oreo-layout-v2 .layout-sidebar-tab { min-width: 0; min-height: 36px; padding: 5px 4px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #61767b; font-size: 11px; font-weight: 650; }
body.oreo-layout-v2 .layout-sidebar-tab:hover { background: #edf5f4; color: #184a4c; }
body.oreo-layout-v2 .layout-sidebar-tab[aria-selected="true"] { border-color: #c5e3dd; background: #e8f5f2; color: #087568; box-shadow: inset 0 -2px #15a88f; }
body.oreo-layout-v2 .layout-sidebar-content { display: flex; flex: 1 1 auto; min-height: 0; overflow: hidden; }
body.oreo-layout-v2 .layout-pane { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; min-height: 0; overflow: auto; }
body.oreo-layout-v2 .layout-pane-imagery .library-head { max-height: none; flex: 0 0 auto; overflow: visible; padding: 14px 16px 0; }
body.oreo-layout-v2 .layout-pane-imagery .library-head h1 { margin: 2px 0 10px; font-size: 19px; }
body.oreo-layout-v2 .layout-pane-imagery .library-head .eyebrow { display: none; }
body.oreo-layout-v2 .layout-pane-imagery .library-head .place-search { display: none; }
body.oreo-layout-v2 .layout-pane-imagery .filter-row { gap: 10px; }
body.oreo-layout-v2 .layout-pane-imagery .filter-row select { min-width: 0; width: 58%; }
body.oreo-layout-v2 .layout-pane-imagery .dates { margin: 10px 0; }
body.oreo-layout-v2 .layout-pane-imagery .dates label { font-size: 12px; }
body.oreo-layout-v2 .layout-pane-imagery input[type="date"] { padding: 7px 5px; }
body.oreo-layout-v2 .layout-pane-imagery .area-filter { padding-top: 8px; }
body.oreo-layout-v2 .layout-pane-imagery .area-filter p { margin: 4px 0 7px; }
body.oreo-layout-v2 .layout-pane-imagery .list-caption { padding: 10px 0; }
body.oreo-layout-v2 .layout-pane-imagery .image-list { flex: 1 1 auto; min-height: 0; padding: 0 10px 12px; }
body.oreo-layout-v2 .layout-pane-imagery .library-footer { flex: 0 0 auto; padding: 9px 13px; }

body.oreo-layout-v2 .layout-pane-layers { padding: 0 12px 12px; }
body.oreo-layout-v2 .layout-pane-layers #layer-panel {
  position: static;
  display: block;
  width: 100%;
  max-height: none;
  overflow: auto;
  padding: 8px 2px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.oreo-layout-v2 .layout-pane-layers #layer-panel[hidden] { display: block !important; }
body.oreo-layout-v2 .layout-pane-layers .layer-heading { position: sticky; top: 0; z-index: 2; padding: 7px 2px; background: #fff; }
body.oreo-layout-v2 .layout-pane-layers .layer-heading strong { font-size: 15px; color: #183e44; }
body.oreo-layout-v2 .layout-pane-layers .layer-group { margin: 0 0 10px; }
body.oreo-layout-v2 .layout-pane-layers .layer-group-title { color: #718588; font-size: 10px; letter-spacing: .1em; }
body.oreo-layout-v2 .layout-basemap-picker { margin: 4px 0 14px; padding: 0 0 12px; border-bottom: 1px solid #e6eeee; }
body.oreo-layout-v2 .layout-basemap-heading { margin: 0 0 8px; color: #718588; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
body.oreo-layout-v2 .layout-basemap-options { display: grid; grid-template-columns: repeat(2,92px); gap: 8px; }
body.oreo-layout-v2 .layout-basemap-option { display: flex; width: 92px; height: 92px; min-width: 0; flex-direction: column; gap: 4px; padding: 5px; border: 1px solid #dce7e8; border-radius: 9px; background: #fff; color: #31545a; font-size: 9px; line-height: 1.15; text-align: center; }
body.oreo-layout-v2 .layout-basemap-option[aria-pressed="true"] { border-color: #0b8b7b; box-shadow: 0 0 0 1px #0b8b7b; }
body.oreo-layout-v2 .layout-basemap-preview { display: block; width: 100%; height: 54px; flex: 0 0 54px; border-radius: 5px; background-color: #b8dce2; }
body.oreo-layout-v2 .layout-basemap-preview-osm { background-image: linear-gradient(28deg, transparent 42%, #eee8d8 43% 47%, #fff 48% 50%, transparent 51%), linear-gradient(145deg, transparent 47%, #d4c6a8 48% 51%, transparent 52%), linear-gradient(90deg, transparent 34%, rgb(255 255 255 / 80%) 35% 37%, transparent 38% 68%, rgb(255 255 255 / 75%) 69% 71%, transparent 72%); }
body.oreo-layout-v2 .layout-basemap-preview-topo { background-color: #c8ddc1; background-image: repeating-radial-gradient(ellipse at 42% 55%, transparent 0 6px, rgb(70 111 78 / 62%) 7px 8px, transparent 9px 15px), linear-gradient(135deg, transparent 44%, #fff 45% 47%, transparent 48%); }
body.oreo-layout-v2 .layout-pane-tools { padding: 14px; }
body.oreo-layout-v2 .layout-tools-note { margin: 0 0 12px; color: #64797d; font-size: 12px; line-height: 1.6; }
body.oreo-layout-v2 .layout-tools-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; align-content: start; }
body.oreo-layout-v2 .layout-tool-card { display: flex; align-items: center; gap: 9px; min-height: 54px; padding: 9px; border: 1px solid #e0e9e9; border-radius: 10px; background: #fff; color: #31545a; text-align: left; font-size: 12px; }
body.oreo-layout-v2 .layout-tool-card:hover { border-color: #b5dcd5; background: #f1f8f7; color: #086f63; }
body.oreo-layout-v2 .layout-tool-icon { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: #edf6f4; color: #0c8777; font-size: 18px; font-weight: 700; }

body.oreo-layout-v2 .map-tool-rail { top: 50%; left: 12px; transform: translateY(-50%); gap: 2px; padding: 5px; border-color: #dce8e8; background: rgb(250 253 253 / 95%); box-shadow: 0 5px 20px #0d30361e; }
body.oreo-layout-v2 .minimal-icon-button { width: 40px; height: 40px; min-width: 40px !important; min-height: 40px !important; border-radius: 10px !important; }
body.oreo-layout-v2 .minimal-icon-button svg { width: 19px; height: 19px; }
body.oreo-layout-v2 .layout-map-toolbar { position: absolute; top: 14px; right: 14px; z-index: 950; display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 6px; border: 1px solid #dce7e8; border-radius: 12px; background: rgb(255 255 255 / 94%); box-shadow: 0 4px 16px #102f351c; backdrop-filter: blur(8px); }
body.oreo-layout-v2 .layout-map-toolbar .map-mode { justify-content: center; min-height: 28px; padding: 3px 6px; border: 0; box-shadow: none; font-size: 10px; }
body.oreo-layout-v2 .layout-map-button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #e2eaea; border-radius: 8px; background: #fff; color: #3b6166; font-size: 19px; }
body.oreo-layout-v2 .layout-map-button:hover { background: #eaf5f2; color: #087568; }
body.oreo-layout-v2 .map-toolbar { display: none !important; }
body.oreo-layout-v2 .leaflet-top.leaflet-right { top: 116px; right: 14px; }
body.oreo-layout-v2 .leaflet-control-zoom { margin: 0 !important; border: 1px solid #d6e2e3 !important; border-radius: 9px !important; overflow: hidden; box-shadow: 0 4px 14px #102f3518 !important; }
body.oreo-layout-v2 .leaflet-control-zoom a { width: 34px !important; height: 34px !important; line-height: 34px !important; color: #355b60 !important; }
body.oreo-layout-v2 .map-coordinate-readout { right: 12px; bottom: 27px; left: auto; max-width: min(48vw, 420px); transform: none; }
body.oreo-layout-v2 .leaflet-bottom.leaflet-right { right: 2px; bottom: 0; }
body.oreo-layout-v2 .leaflet-control-attribution { margin: 0 !important; padding: 2px 5px 1px !important; border-radius: 5px 0 0 0; background: rgb(255 255 255 / 82%); font-size: 10px !important; }
body.oreo-layout-v2 #coordinate-panel { display: none !important; }
body.oreo-layout-v2 .detail { right: 16px; bottom: 56px; }

@media (max-width: 760px) {
  body.oreo-layout-v2 .header { grid-template-columns: minmax(0,1fr) auto; grid-template-rows: 50px 42px; gap: 0 8px; height: 96px; padding: 0 10px; }
  body.oreo-layout-v2 .brand { grid-column: 1; grid-row: 1; font-size: 16px; }
  body.oreo-layout-v2 .brand-mark { font-size: 27px; }
  body.oreo-layout-v2 .header-end { grid-column: 2; grid-row: 1; gap: 5px; }
  body.oreo-layout-v2 #sync-label { display: none; }
  body.oreo-layout-v2 .header-button { min-width: 34px; min-height: 34px; padding: 5px 7px; }
  body.oreo-layout-v2 .layout-search-slot { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  body.oreo-layout-v2 .layout-search-slot .place-search { width: 100%; }
  body.oreo-layout-v2 .layout-search-slot .place-input input { min-height: 34px; font-size: 12px; }
  body.oreo-layout-v2 .layout-search-slot .place-input button { padding: 6px 9px; font-size: 12px; }
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace { height: calc(100dvh - 96px); min-height: 0; }
  body.oreo-layout-v2 .workspace > .library,
  body.oreo-layout-v2 .workspace.minimal-images-open > .library { top: 8px; bottom: 8px; left: 53px; width: min(352px,calc(100vw - 60px)); border-radius: 12px; }
  body.oreo-layout-v2 .map-tool-rail { top: 50%; left: 6px; gap: 1px; padding: 3px; }
  body.oreo-layout-v2 .minimal-icon-button { width: 36px; height: 36px; min-width: 36px !important; min-height: 36px !important; }
  body.oreo-layout-v2 .layout-sidebar-head { padding: 10px 12px 8px; }
  body.oreo-layout-v2 .layout-sidebar-tabs { gap: 2px; padding: 6px; }
  body.oreo-layout-v2 .layout-sidebar-tab { min-height: 34px; font-size: 10px; }
  body.oreo-layout-v2 .layout-pane-imagery .library-head { padding: 11px 12px 0; }
  body.oreo-layout-v2 .layout-pane-imagery .library-head h1 { font-size: 17px; }
  body.oreo-layout-v2 .layout-pane-imagery .dates { gap: 7px; }
  body.oreo-layout-v2 .layout-pane-imagery .dates label { font-size: 11px; }
  body.oreo-layout-v2 .layout-map-toolbar { top: 10px; right: 8px; gap: 4px; padding: 4px; }
  body.oreo-layout-v2 .layout-map-button { width: 32px; height: 32px; }
  body.oreo-layout-v2 .leaflet-top.leaflet-right { top: 105px; right: 8px; }
  body.oreo-layout-v2 .map-coordinate-readout { right: 8px; bottom: 27px; max-width: calc(100vw - 78px); gap: 3px; padding: 4px 6px; font-size: 9px; }
  body.oreo-layout-v2 .uav-solar-analysis-active .map-coordinate-readout { bottom: 76px; }
  body.oreo-layout-v2 .leaflet-control-attribution { max-width: calc(100vw - 64px); font-size: 9px !important; }
  body.oreo-layout-v2 .detail { right: 8px; bottom: 44px; width: calc(100% - 72px); max-height: 62%; }
}

@media (max-width: 380px) {
  body.oreo-layout-v2 .layout-sidebar-tab { font-size: 9px; padding: 4px 2px; }
  body.oreo-layout-v2 .layout-tools-grid { grid-template-columns: 1fr; }
  body.oreo-layout-v2 .map-tool-rail { left: 4px; }
  body.oreo-layout-v2 .minimal-icon-button { width: 34px; height: 34px; min-width: 34px !important; min-height: 34px !important; }
  body.oreo-layout-v2 .workspace > .library,
  body.oreo-layout-v2 .workspace.minimal-images-open > .library { left: 46px; width: calc(100vw - 52px); }
}

@media (prefers-reduced-motion: reduce) {
  body.oreo-layout-v2 *, body.oreo-layout-v2 *::before, body.oreo-layout-v2 *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* V2 refinement: dock the navigation rail, sidebar and map as one workspace. */
body.oreo-layout-v2 .header { height: 56px; grid-template-columns: auto minmax(180px,1fr) auto; gap: 14px; padding-inline: 16px; }
body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace {
  display: grid;
  grid-template-columns: 54px minmax(0,1fr) !important;
  grid-template-rows: minmax(0,1fr) !important;
  height: calc(100dvh - 56px);
  transition: grid-template-columns .2s ease;
}
body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace.layout-sidebar-open {
  grid-template-columns: 54px minmax(260px,350px) minmax(0,1fr) !important;
}
body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace > .map-tool-rail {
  position: relative;
  z-index: 1120;
  grid-column: 1;
  grid-row: 1;
  inset: auto;
  display: flex;
  align-self: stretch;
  justify-content: center;
  width: 54px;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 6px;
  transform: none;
  border: 0;
  border-right: 1px solid var(--layout-border);
  border-radius: 0;
  background: var(--layout-rail);
  box-shadow: none;
  backdrop-filter: none;
}
body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace > .library,
body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace.minimal-images-open > .library {
  position: relative;
  z-index: 1110;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  grid-column: 2;
  grid-row: 1;
  width: auto;
  height: 100%;
  min-width: 0;
  border: 0;
  border-right: 1px solid var(--layout-border);
  border-radius: 0;
  box-shadow: none;
}
body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace.minimal-images-closed > .library { display: none !important; }
body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace.layout-sidebar-open > .library { display: flex !important; }
body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace > .map-section {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  inset: auto;
  width: auto;
  height: 100%;
  min-width: 0;
  min-height: 0;
}
body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace.layout-sidebar-open > .map-section { grid-column: 3; }
body.oreo-layout-v2 .map-tool-rail .minimal-icon-button { flex: 0 0 40px; }

body.oreo-layout-v2 .layout-map-toolbar {
  top: 12px;
  right: 12px;
  gap: 5px;
  padding: 6px;
}
body.oreo-layout-v2 .layout-map-toolbar .map-mode {
  min-width: 42px;
  min-height: 34px;
  flex-wrap: wrap;
  gap: 3px;
  border-bottom: 1px solid #e2eaea;
  font-size: 10px;
}
body.oreo-layout-v2 .layout-map-toolbar .layout-map-button-control {
  position: static !important;
  inset: auto !important;
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  min-width: 36px !important;
  height: 36px;
  min-height: 36px !important;
  margin: 0;
  padding: 5px;
  place-items: center;
  border: 1px solid #e2eaea;
  border-radius: 8px !important;
  background: #fff;
  color: #31545a;
  box-shadow: none;
}
body.oreo-layout-v2 .layout-map-toolbar .layout-map-button-control:hover { background: #eaf5f2; color: #087568; }
body.oreo-layout-v2 .layout-map-toolbar .layout-map-button-control svg { width: 19px; height: 19px; }
body.oreo-layout-v2 .layout-map-toolbar .leaflet-control-zoom {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  width: 36px;
  margin: 0 !important;
  border: 1px solid #d6e2e3 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}
body.oreo-layout-v2 .layout-map-toolbar .leaflet-control-zoom a { width: 34px !important; height: 34px !important; line-height: 34px !important; }
body.oreo-layout-v2 .leaflet-top.leaflet-right { top: 8px; right: 8px; }
body.oreo-layout-v2 .map-coordinate-readout { right: 10px; bottom: 24px; }
body.oreo-layout-v2 .leaflet-bottom.leaflet-right { right: 0; bottom: 0; }
body.oreo-layout-v2 .leaflet-control-attribution { margin: 0 !important; }

/* Rounded reference-style card without changing the docked V2 workspace. */
body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace.layout-sidebar-open > .library {
  align-self: stretch;
  height: auto;
  margin: 10px 8px;
  box-sizing: border-box;
  border: 1px solid var(--layout-border);
  border-radius: 16px;
  box-shadow: 0 10px 28px #102d3418;
}

@media (max-width: 760px) {
  body.oreo-layout-v2 .header { height: 86px; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: 44px 42px; gap: 0 8px; padding-inline: 10px; }
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace { height: calc(100dvh - 86px) !important; grid-template-columns: 46px minmax(0,1fr) !important; }
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace.layout-sidebar-open { grid-template-columns: 46px minmax(0,1fr) !important; }
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace > .map-tool-rail { width: 46px; padding: 8px 4px; }
  body.oreo-layout-v2 .map-tool-rail .minimal-icon-button { flex-basis: 36px; }
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace > .map-section,
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace.layout-sidebar-open > .map-section { grid-column: 2; }
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace > .library,
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace.layout-sidebar-open > .library {
    position: absolute;
    z-index: 1140;
    top: 0;
    bottom: 0;
    left: 46px;
    width: min(352px,calc(100vw - 46px));
    height: 100%;
    border-right: 1px solid var(--layout-border);
    box-shadow: 8px 0 24px #102d3420;
  }
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace.minimal-images-closed > .library { display: none !important; }
  body.oreo-layout-v2 .layout-map-toolbar { top: 8px; right: 7px; gap: 3px; padding: 4px; }
  body.oreo-layout-v2 .layout-map-toolbar .map-mode { min-width: 34px; min-height: 30px; font-size: 9px; }
  body.oreo-layout-v2 .layout-map-toolbar .layout-map-button-control { flex-basis: 32px; width: 32px; min-width: 32px !important; height: 32px; min-height: 32px !important; }
  body.oreo-layout-v2 .layout-map-toolbar .leaflet-control-zoom { width: 32px; }
  body.oreo-layout-v2 .layout-map-toolbar .leaflet-control-zoom a { width: 30px !important; height: 32px !important; line-height: 32px !important; }
  body.oreo-layout-v2 .map-coordinate-readout { right: 7px; bottom: 24px; }
  body.oreo-layout-v2 #map-section > .uav-planner-panel#uav-planner-panel { bottom: 26px !important; }
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace.layout-sidebar-open > .library {
    top: 8px;
    right: auto;
    bottom: 8px;
    left: 8px;
    width: min(352px,calc(100vw - 64px));
    height: auto;
    margin: 0;
    border: 1px solid var(--layout-border);
    border-radius: 16px;
    box-shadow: 0 10px 28px #102d3428;
  }
}

/* GISTDA-inspired V2 visual refinement: retain Oreo Atlas components and behavior. */
body.oreo-layout-v2 .header {
  position: absolute;
  top: 12px;
  right: 14px;
  /* Keep the floating top bar visibly separated from the docked left rail/sidebar. */
  left: max(calc(14px + 54px + min(350px, 38vw) + 90px), calc(100vw - 14px - 680px));
  z-index: 1300;
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: auto;
  height: 50px;
  padding: 5px 7px;
  border: 1px solid #e1e8e9;
  border-radius: 999px;
  background: rgb(255 255 255 / 95%);
  box-shadow: 0 5px 20px rgb(16 45 52 / 15%);
  backdrop-filter: blur(10px);
}
body.oreo-layout-v2 .brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--layout-topbar);
  color: #fff;
  font-size: 13px;
  letter-spacing: .035em;
  white-space: nowrap;
}
body.oreo-layout-v2 .brand-mark { font-size: 21px; }
body.oreo-layout-v2 .layout-search-slot { min-width: 0; }
body.oreo-layout-v2 .layout-search-slot .place-search { width: 100%; max-width: 520px; }
body.oreo-layout-v2 .layout-search-slot .place-input input {
  min-height: 36px;
  border-color: #e1e8e9;
  border-radius: 999px;
  background: #f7f9fa;
  color: #213b40;
}
body.oreo-layout-v2 .layout-search-slot .place-input input::placeholder { color: #77878a; }
body.oreo-layout-v2 .layout-search-slot .place-input button { border-radius: 999px; }
body.oreo-layout-v2 .layout-search-slot .place-input #clear-place { background: #edf2f3; color: #36575c; }
body.oreo-layout-v2 .layout-search-slot .place-search small { display: none; }
body.oreo-layout-v2 .layout-search-slot #place-message { color: #47636a; }
body.oreo-layout-v2 .header-end { gap: 7px; }
body.oreo-layout-v2 #sync-label { color: #65787c; font-size: 10px; white-space: nowrap; }
body.oreo-layout-v2 .header-button { min-height: 36px; padding: 7px 11px; border: 0; border-radius: 999px; background: #138d7e; color: #fff; }
body.oreo-layout-v2 .header-button:hover { background: #0b766b; }

body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace {
  height: 100dvh;
  padding: 10px 14px;
  grid-template-columns: 54px minmax(270px,350px) minmax(0,1fr) !important;
  column-gap: 0;
  box-sizing: border-box;
}
body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace:not(.layout-sidebar-open) {
  grid-template-columns: 54px minmax(0,1fr) !important;
}
body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace > .map-tool-rail {
  align-self: stretch;
  justify-content: flex-start;
  gap: 5px;
  width: 54px;
  margin: 0;
  padding: 12px 6px;
  border: 1px solid #e1e8e9;
  border-right: 0;
  border-radius: 16px 0 0 16px;
  background: rgb(255 255 255 / 97%);
  box-shadow: 0 7px 22px rgb(16 45 52 / 13%);
}
body.oreo-layout-v2 .map-tool-rail .minimal-icon-button {
  flex-basis: 40px;
  width: 40px;
  min-width: 40px !important;
  height: 40px;
  border-radius: 50% !important;
  color: #587176;
}
body.oreo-layout-v2 .map-tool-rail .minimal-icon-button:hover,
body.oreo-layout-v2 .map-tool-rail .minimal-icon-button[aria-expanded="true"] {
  background: #e8f4f2 !important;
  color: #087b70 !important;
}
body.oreo-layout-v2 .map-tool-rail > .layout-window-toggle {
  flex: 0 0 40px;
  margin-top: auto;
  border: 1px solid #dce7e8 !important;
  background: #fff !important;
  color: #45666b !important;
}
body.oreo-layout-v2 .map-tool-rail > .layout-window-toggle:hover,
body.oreo-layout-v2 .map-tool-rail > .layout-window-toggle[aria-expanded="true"] {
  border-color: #b9ddd5 !important;
  background: #e8f4f2 !important;
  color: #087b70 !important;
}
body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace.layout-sidebar-open > .library {
  align-self: stretch;
  height: auto;
  min-width: 0;
  margin: 0;
  border: 1px solid #e1e8e9;
  border-left: 0;
  border-radius: 0 16px 16px 0;
  background: #fff;
  box-shadow: 0 7px 22px rgb(16 45 52 / 13%);
}
body.oreo-layout-v2 .layout-sidebar-head { min-height: 58px; padding: 11px 14px; }
body.oreo-layout-v2 .layout-sidebar-tabs { gap: 5px; padding: 8px 11px; background: #fff; }
body.oreo-layout-v2 .layout-sidebar-tab { min-height: 36px; border-radius: 999px; }
body.oreo-layout-v2 .layout-sidebar-tab[aria-selected="true"] { box-shadow: none; }
body.oreo-layout-v2 .layout-sidebar-close { border-radius: 50%; }
body.oreo-layout-v2 .layout-map-toolbar {
  top: 78px;
  right: 12px;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
body.oreo-layout-v2 .layout-map-toolbar .map-mode {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 48px;
  min-height: 36px;
  padding: 4px 7px;
  border: 1px solid #e1e8e9;
  border-radius: 999px;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 3px 12px rgb(16 45 52 / 12%);
}
body.oreo-layout-v2 .layout-map-toolbar .layout-map-button,
body.oreo-layout-v2 .layout-map-toolbar .layout-map-button-control {
  flex-basis: 40px;
  width: 40px;
  min-width: 40px !important;
  height: 40px;
  min-height: 40px !important;
  border: 1px solid #e1e8e9;
  border-radius: 50% !important;
  background: rgb(255 255 255 / 97%);
  color: #49666b;
  box-shadow: 0 3px 12px rgb(16 45 52 / 12%);
}
body.oreo-layout-v2 .layout-map-toolbar .layout-map-button:hover,
body.oreo-layout-v2 .layout-map-toolbar .layout-map-button-control:hover { background: #e8f4f2; color: #087b70; }
body.oreo-layout-v2 .layout-map-toolbar .leaflet-control-zoom {
  width: 40px;
  gap: 7px;
  border: 0 !important;
  background: transparent;
  box-shadow: none !important;
  overflow: visible;
}
body.oreo-layout-v2 .layout-map-toolbar .leaflet-control-zoom a {
  width: 40px !important;
  height: 40px !important;
  border: 1px solid #e1e8e9 !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #49666b !important;
  box-shadow: 0 3px 12px rgb(16 45 52 / 12%);
  line-height: 38px !important;
}
body.oreo-layout-v2 .layout-map-toolbar .leaflet-control-zoom a:hover { background: #e8f4f2 !important; color: #087b70 !important; }
body.oreo-layout-v2 .leaflet-top.leaflet-right { top: 10px; right: 10px; }
body.oreo-layout-v2 .map-coordinate-readout {
  right: 10px;
  bottom: 25px;
  padding: 6px 10px;
  border: 1px solid #e1e8e9;
  border-radius: 999px;
  background: rgb(255 255 255 / 93%);
  box-shadow: 0 3px 12px rgb(16 45 52 / 12%);
}
body.oreo-layout-v2 .leaflet-bottom.leaflet-right { right: 0; bottom: 0; }
body.oreo-layout-v2 .leaflet-control-attribution { border-radius: 8px 0 0 0; }
body.oreo-layout-v2 :focus-visible { outline: 3px solid #268d82; outline-offset: 2px; }

@media (min-width: 761px) and (max-width: 1040px) {
  body.oreo-layout-v2 .header { left: 380px; grid-template-columns: minmax(0,1fr) auto; }
  body.oreo-layout-v2 .header .brand, body.oreo-layout-v2 #sync-label { display: none; }
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace.layout-sidebar-open { grid-template-columns: 54px minmax(260px,300px) minmax(0,1fr) !important; }
}
@media (min-width: 761px) and (max-width: 900px) {
  body.oreo-layout-v2 .header-button span { display: none; }
  body.oreo-layout-v2 .header-button { width: 36px; min-width: 36px; height: 36px; padding: 0; }
}

@media (max-width: 760px) {
  body.oreo-layout-v2 .header {
    position: absolute;
    top: 8px;
    right: 8px;
    left: 62px;
    z-index: 1300;
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-rows: 1fr;
    gap: 5px;
    width: auto;
    height: 46px;
    padding: 4px 6px;
    border-radius: 14px;
  }
  body.oreo-layout-v2 .header .brand { display: none; }
  body.oreo-layout-v2 .header-end { grid-column: 2; grid-row: 1; }
  body.oreo-layout-v2 #sync-label { display: none; }
  body.oreo-layout-v2 .layout-search-slot { grid-column: 1; grid-row: 1; }
  body.oreo-layout-v2 .layout-search-slot .place-input { gap: 4px; }
  body.oreo-layout-v2 .layout-search-slot .place-input input { min-height: 36px; padding: 6px 10px; font-size: 12px; }
  body.oreo-layout-v2 .layout-search-slot .place-input button { min-width: 52px; min-height: 34px; padding: 5px 8px; font-size: 11px; }
  body.oreo-layout-v2 .layout-search-slot .place-input #clear-place { min-width: 30px; }
  body.oreo-layout-v2 .header-button { min-width: 36px; width: 36px; height: 36px; padding: 0; font-size: 18px; }
  body.oreo-layout-v2 .header-button span { display: none; }
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace {
    height: 100dvh !important;
    padding: 0 8px 8px 0;
    grid-template-columns: 50px minmax(0,1fr) !important;
  }
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace.layout-sidebar-open { grid-template-columns: 50px minmax(0,1fr) !important; }
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace > .map-tool-rail {
    width: 50px;
    margin: 0;
    padding: 64px 5px 10px;
    border: 1px solid #e1e8e9;
    border-right: 0;
    border-radius: 0;
  }
  body.oreo-layout-v2 .map-tool-rail .minimal-icon-button { flex-basis: 38px; width: 38px; min-width: 38px !important; height: 38px; }
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace > .map-section,
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace.layout-sidebar-open > .map-section { grid-column: 2; }
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace.layout-sidebar-open > .library {
    position: absolute;
    z-index: 1140;
    top: 64px;
    right: auto;
    bottom: 8px;
    left: 50px;
    width: min(340px, calc(100vw - 66px));
    height: auto;
    margin: 0;
    border: 1px solid #e1e8e9;
    border-left: 0;
    border-radius: 0 16px 16px 0;
    box-shadow: 8px 6px 24px rgb(16 45 52 / 18%);
  }
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace.minimal-images-closed > .library { display: none !important; }
  body.oreo-layout-v2 .layout-map-toolbar { top: 66px; right: 8px; gap: 6px; }
  body.oreo-layout-v2 .layout-map-toolbar .layout-map-button,
  body.oreo-layout-v2 .layout-map-toolbar .layout-map-button-control,
  body.oreo-layout-v2 .layout-map-toolbar .leaflet-control-zoom,
  body.oreo-layout-v2 .layout-map-toolbar .leaflet-control-zoom a { width: 36px; min-width: 36px !important; height: 36px !important; min-height: 36px !important; }
  body.oreo-layout-v2 .layout-map-toolbar .leaflet-control-zoom a { line-height: 34px !important; }
  body.oreo-layout-v2 .layout-map-toolbar .map-mode { min-width: 40px; min-height: 32px; font-size: 9px; }
  body.oreo-layout-v2 .leaflet-top.leaflet-right { top: 8px; right: 8px; }
  body.oreo-layout-v2 .map-coordinate-readout { right: 7px; bottom: 24px; max-width: calc(100vw - 76px); font-size: 10px; }
  body.oreo-layout-v2 .leaflet-control-attribution { max-width: calc(100vw - 64px); font-size: 9px !important; }
}

@media (prefers-reduced-motion: reduce) {
  body.oreo-layout-v2 .workspace { transition: none !important; }
}

/* Dock every map tool drawer against the icon-rail edge on desktop and mobile. */
body.oreo-layout-v2 #map-section > .layer-panel,
body.oreo-layout-v2 #map-section > .terrain-panel,
body.oreo-layout-v2 #map-section > #measure-panel,
body.oreo-layout-v2 #map-section > .profile-panel,
body.oreo-layout-v2 #map-section > .raster-panel,
body.oreo-layout-v2 #map-section > #hydrology-panel {
  left: 0 !important;
  top: 0 !important;
  right: auto !important;
  border-radius: 0 14px 14px 0 !important;
}
body.oreo-layout-v2 #map-section > .uav-planner-panel#uav-planner-panel {
  left: 0 !important;
  top: 0 !important;
  right: auto !important;
  border-radius: 0 14px 14px 0 !important;
}
body.oreo-layout-v2 #map-section .uav-solar-analysis-map-ui .uav-solar-analysis-summary {
  left: 0 !important;
  top: 0 !important;
  right: auto !important;
  border-radius: 0 14px 14px 0 !important;
}

/* Desktop map controls: separate, evenly spaced round buttons like the reference map. */
@media (min-width: 761px) {
  body.oreo-layout-v2 .layout-map-toolbar {
    top: 78px;
    right: -12px;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  body.oreo-layout-v2 .layout-map-toolbar .map-mode {
    transform: translateX(-26px);
    min-width: 92px;
    min-height: 36px;
    padding: 4px 7px;
    border: 1px solid #e1e8e9;
    border-radius: 18px;
    background: #f5f8f9;
    box-shadow: none;
  }
  body.oreo-layout-v2 .layout-map-toolbar .layout-map-button-control,
  body.oreo-layout-v2 .layout-map-toolbar .leaflet-control-zoom a {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    border-radius: 50% !important;
    background: rgb(255 255 255 / 97%) !important;
    box-shadow: 0 3px 12px rgb(16 45 52 / 16%) !important;
  }
  body.oreo-layout-v2 .layout-map-toolbar .leaflet-control-zoom {
    width: 40px;
    gap: 12px;
  }
  body.oreo-layout-v2 .layout-map-toolbar .leaflet-control-zoom a {
    line-height: 38px !important;
  }
}

/* The basemap choices now live in the shared Layers drawer. Keep the
   Leaflet control off the visible map UI while retaining it as the layer API. */
body.oreo-layout-v2 #map .leaflet-control-layers { display: none !important; }

/* Remove the requested fit-to-data control on desktop and close the toolbar gap. */
@media (min-width: 761px) {
  body.oreo-layout-v2 .layout-map-toolbar #fit {
    display: none !important;
  }
}

/* Candidate refinement: dock all mobile panels flush beside the icon rail. */
@media (max-width: 760px) {
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace:not(.layout-sidebar-open) {
    grid-template-columns: 50px minmax(0, 1fr) !important;
  }
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace.layout-sidebar-open > .library {
    left: 0;
  }
  body.oreo-layout-v2 #map-section > .layer-panel,
  body.oreo-layout-v2 #map-section > .terrain-panel,
  body.oreo-layout-v2 #map-section > #measure-panel,
  body.oreo-layout-v2 #map-section > .profile-panel,
  body.oreo-layout-v2 #map-section > .raster-panel,
  body.oreo-layout-v2 #map-section > #hydrology-panel,
  body.oreo-layout-v2 #map-section > .uav-planner-panel#uav-planner-panel {
    position: absolute !important;
    top: 64px !important;
    right: auto !important;
    bottom: 8px !important;
    left: 0 !important;
    width: min(340px, calc(100vw - 52px)) !important;
    max-height: calc(100% - 72px) !important;
    border-radius: 0 16px 16px 0 !important;
  }
  body.oreo-layout-v2 #map-section .uav-solar-analysis-map-ui .uav-solar-analysis-summary {
    top: 64px !important;
  }
}

/* Keep every map-tool drawer the same size and shape. */
body.oreo-layout-v2 {
  --layout-tool-drawer-width: min(460px, calc(100vw - 96px));
  --layout-tool-drawer-radius: 14px;
}
body.oreo-layout-v2 #map-section > .layer-panel,
body.oreo-layout-v2 #map-section > .terrain-panel,
body.oreo-layout-v2 #map-section > #measure-panel,
body.oreo-layout-v2 #map-section > .profile-panel,
body.oreo-layout-v2 #map-section > .raster-panel,
body.oreo-layout-v2 #map-section > #hydrology-panel,
body.oreo-layout-v2 #map-section > .uav-planner-panel#uav-planner-panel,
body.oreo-layout-v2 #map-section .uav-solar-analysis-map-ui .uav-solar-analysis-summary {
  box-sizing: border-box !important;
  width: var(--layout-tool-drawer-width) !important;
  min-width: 0 !important;
  max-width: var(--layout-tool-drawer-width) !important;
  border-radius: var(--layout-tool-drawer-radius) !important;
}
@media (max-width: 760px) {
  body.oreo-layout-v2 {
    --layout-tool-drawer-width: min(340px, calc(100vw - 52px));
  }
}

/* Match the reference tool-drawer placement and shared frame dimensions. */
@media (min-width: 761px) {
  body.oreo-layout-v2 { --layout-tool-drawer-width: min(472px, calc(100vw - 122px)); }
  body.oreo-layout-v2 #map-section > .layer-panel,
  body.oreo-layout-v2 #map-section > .terrain-panel,
  body.oreo-layout-v2 #map-section > #measure-panel,
  body.oreo-layout-v2 #map-section > .profile-panel,
  body.oreo-layout-v2 #map-section > .raster-panel,
  body.oreo-layout-v2 #map-section > #hydrology-panel,
  body.oreo-layout-v2 #map-section > .uav-planner-panel#uav-planner-panel,
  body.oreo-layout-v2 #map-section .uav-solar-analysis-map-ui .uav-solar-analysis-summary {
    left: 14px !important;
    top: 2px !important;
    right: auto !important;
    bottom: 2px !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: auto !important;
    border-radius: 0 14px 14px 0 !important;
  }
}
@media (max-width: 760px) {
  body.oreo-layout-v2 { --layout-tool-drawer-width: min(300px, calc(100vw - 166px)); }
  body.oreo-layout-v2 #map-section > .layer-panel,
  body.oreo-layout-v2 #map-section > .terrain-panel,
  body.oreo-layout-v2 #map-section > #measure-panel,
  body.oreo-layout-v2 #map-section > .profile-panel,
  body.oreo-layout-v2 #map-section > .raster-panel,
  body.oreo-layout-v2 #map-section > #hydrology-panel,
  body.oreo-layout-v2 #map-section > .uav-planner-panel#uav-planner-panel,
  body.oreo-layout-v2 #map-section .uav-solar-analysis-map-ui .uav-solar-analysis-summary {
    top: 64px !important;
    bottom: 8px !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: auto !important;
    border-radius: 14px !important;
  }
}

/* Match all tool drawers to the imagery sidebar width and dock position. */
@media (min-width: 761px) {
  body.oreo-layout-v2 { --layout-tool-drawer-width: min(350px, calc(100vw - 54px)); }
  body.oreo-layout-v2 #map-section > .layer-panel,
  body.oreo-layout-v2 #map-section > .terrain-panel,
  body.oreo-layout-v2 #map-section > #measure-panel,
  body.oreo-layout-v2 #map-section > .profile-panel,
  body.oreo-layout-v2 #map-section > .raster-panel,
  body.oreo-layout-v2 #map-section > #hydrology-panel,
  body.oreo-layout-v2 #map-section > .uav-planner-panel#uav-planner-panel,
  body.oreo-layout-v2 #map-section .uav-solar-analysis-map-ui .uav-solar-analysis-summary {
    left: 0 !important;
    top: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    height: auto !important;
    max-height: none !important;
    border-radius: 0 14px 14px 0 !important;
  }
}



/* Hide the accidental desktop horizontal scrollbar in the narrow tool rail. */
@media (min-width: 761px) {
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace > .map-tool-rail {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
}


/* Keep the map frame fixed while the imagery drawer is open, like the other tool drawers. Desktop only. */
@media (min-width: 761px) {
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace.layout-sidebar-open {
    grid-template-columns: 54px minmax(0, 1fr) !important;
  }
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace.layout-sidebar-open > .map-section {
    grid-column: 2 !important;
  }
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace.layout-sidebar-open > .library {
    position: absolute !important;
    top: 0 !important;
    right: auto !important;
    bottom: 10px !important;
    left: 0 !important;
    width: min(350px, calc(100vw - 54px)) !important;
    height: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    align-self: stretch !important;
    z-index: 1140 !important;
    box-sizing: border-box !important;
    border-width: 1px 1px 1px 0 !important;
    border-radius: 0 16px 16px 0 !important;
  }
}


/* Keep coordinates inline with map attribution and flush to the bottom-right corner on desktop. */
@media (min-width: 761px) {
  body.oreo-layout-v2 #map .leaflet-bottom.leaflet-right {
    right: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
  }
  body.oreo-layout-v2 #map .leaflet-control-attribution {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 3px !important;
    border-radius: 0 !important;
    line-height: 16px !important;
    background: rgb(255 255 255 / 88%) !important;
  }
  body.oreo-layout-v2 #map .leaflet-control-attribution > #map-coordinate-readout {
    position: static !important;
    inset: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex: 0 0 auto !important;
    width: max-content !important;
    max-width: none !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #3f5d61 !important;
    font-size: 10px !important;
    line-height: 16px !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
  }
}

/* coordinate-dock-specificity-v1 */
@media (min-width: 761px) {
  body.oreo-layout-v2 #map-section #map .leaflet-control-container .leaflet-bottom.leaflet-right {
    right: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
  }
}


/* Desktop layer window floats on the map beside the right layer control. Mobile retains the existing sidebar layout. */
@media (min-width: 761px) {
  body.oreo-layout-v2 .layout-sidebar-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.oreo-layout-v2 .layout-sidebar-tab[data-layout-tab="overlays"] {
    display: none !important;
  }
  body.oreo-layout-v2 #map-section > #layer-panel {
    position: absolute !important;
    top: 128px !important;
    right: 62px !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 970 !important;
    box-sizing: border-box !important;
    display: none !important;
    width: min(350px, calc(100% - 100px)) !important;
    min-width: 0 !important;
    max-width: 350px !important;
    max-height: min(480px, calc(100% - 150px)) !important;
    overflow: auto !important;
    padding: 10px 14px 14px !important;
    border: 1px solid #dce7e8 !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 8px 26px rgb(12 37 45 / 20%) !important;
  }
  body.oreo-layout-v2 #map-section.layout-layer-flyout-open > #layer-panel {
    display: block !important;
  }
}

/* Hide Leaflet's original toggle; the standalone picker below opens from the map toolbar. */
body.oreo-layout-v2 #map .leaflet-control-layers { display: none !important; }

/* Keep basemap selection as a separate map-side control. */
body.oreo-layout-v2 .layout-basemap-control { position: relative; display: grid; place-items: center; }
body.oreo-layout-v2 .layout-map-toolbar .layout-basemap-toggle { display: grid; place-items: center; }
body.oreo-layout-v2 .layout-map-toolbar .layout-basemap-toggle svg { width: 21px; height: 21px; }
body.oreo-layout-v2 .layout-basemap-popover {
  position: absolute;
  top: 0;
  right: calc(100% + 9px);
  z-index: 980;
  padding: 7px;
  border: 1px solid #dce7e8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(12 37 45 / 20%);
}
body.oreo-layout-v2 .layout-basemap-popover[hidden] { display: none !important; }
body.oreo-layout-v2 .layout-basemap-popover .layout-basemap-options { display: grid; grid-template-columns: repeat(2,82px); gap: 7px; }
body.oreo-layout-v2 .layout-basemap-popover .layout-basemap-option { width: 82px; height: 82px; padding: 5px; border-radius: 9px; background: #fff; font-size: 9px; }
body.oreo-layout-v2 .layout-basemap-popover .layout-basemap-preview { height: 45px; flex-basis: 45px; }
body.oreo-layout-v2 .layout-basemap-popover .layout-basemap-option:focus-visible,
body.oreo-layout-v2 .layout-basemap-toggle:focus-visible { outline: 2px solid #1389ed; outline-offset: 2px; }



/* 20261022-coordinate-readout-bottom-left-v1: keep coordinate and attribution together at the map's lower-left edge. */
body.oreo-layout-v2 #map #map-coordinate-readout {
  left: 224px !important;
  right: auto !important;
  bottom: 0 !important;
  transform: none !important;
  max-width: min(calc(100% - 232px), 420px) !important;
  padding: 2px 7px !important;
  border-radius: 0 6px 0 0 !important;
}
body.oreo-layout-v2 #map .leaflet-bottom.leaflet-right {
  left: 0 !important;
  right: auto !important;
  bottom: 0 !important;
}
body.oreo-layout-v2 #map .leaflet-control-attribution {
  margin: 0 !important;
  padding: 2px 5px 1px !important;
  border-radius: 0 5px 0 0 !important;
  background: rgb(255 255 255 / 88%) !important;
}
@media (max-width: 760px) {
  body.oreo-layout-v2 #map #map-coordinate-readout {
    left: 210px !important;
    max-width: min(calc(100% - 218px), 360px) !important;
    padding-inline: 5px !important;
    font-size: 9px !important;
  }
}

/* 20261022-coordinate-readout-bottom-left-v2: target the actual sibling readout under map-section. */
#map-section #map-coordinate-readout {
  left: 224px !important;
  right: auto !important;
  bottom: 0 !important;
  transform: none !important;
  max-width: min(calc(100% - 232px), 420px) !important;
  padding: 2px 7px !important;
  border-radius: 0 6px 0 0 !important;
}
#map .leaflet-bottom.leaflet-right {
  left: 0 !important;
  right: auto !important;
  bottom: 0 !important;
}
#map .leaflet-control-attribution {
  margin: 0 !important;
  padding: 2px 5px 1px !important;
  border-radius: 0 5px 0 0 !important;
  background: rgb(255 255 255 / 88%) !important;
}
@media (max-width: 760px) {
  #map-section #map-coordinate-readout {
    left: 210px !important;
    max-width: min(calc(100% - 218px), 360px) !important;
    padding-inline: 5px !important;
    font-size: 9px !important;
  }
}

/* 20261022-coordinate-readout-visible-lower-left-v3: align both controls at the visible map edge beside the fixed library. */
#map-section #map-coordinate-readout {
  left: calc(clamp(324px, 24.3vw, 352px) + 200px) !important;
  right: auto !important;
  bottom: 0 !important;
  transform: none !important;
  max-width: min(calc(100% - 535px), 420px) !important;
  padding: 2px 7px !important;
  border-radius: 0 6px 0 0 !important;
}
.leaflet-control-container .leaflet-bottom.leaflet-right {
  left: clamp(324px, 24.3vw, 352px) !important;
  right: auto !important;
  bottom: 0 !important;
}
.leaflet-control-container .leaflet-control-attribution {
  margin: 0 !important;
  padding: 2px 5px 1px !important;
  border-radius: 5px 5px 0 0 !important;
  background: rgb(255 255 255 / 88%) !important;
}
@media (max-width: 760px) {
  #map-section #map-coordinate-readout {
    left: 250px !important;
    max-width: calc(100% - 260px) !important;
    padding-inline: 4px !important;
    font-size: 9px !important;
  }
  .leaflet-control-container .leaflet-bottom.leaflet-right {
    left: 64px !important;
  }
}

/* 20261022-coordinate-attribution-fixed-lower-left-v4: pin map credits to the visible map's lower-left edge. */
.leaflet-control-attribution {
  position: fixed !important;
  left: calc(clamp(324px, 24.3vw, 352px) + 68px) !important;
  right: auto !important;
  bottom: 0 !important;
  z-index: 650 !important;
  margin: 0 !important;
  padding: 2px 5px 1px !important;
  border-radius: 5px 5px 0 0 !important;
  background: rgb(255 255 255 / 88%) !important;
}
@media (max-width: 760px) {
  .leaflet-control-attribution {
    left: 64px !important;
  }
}

/* 20261022-coordinate-attribution-bottom-right-v2: keep map credit and pointer coordinates together at the lower-right edge. */
@media (min-width: 761px) {
  body.oreo-layout-v2 #map-section #map .leaflet-control-container .leaflet-bottom.leaflet-right {
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: max-content !important;
    height: auto !important;
    margin: 0 !important;
    z-index: 650 !important;
  }
  body.oreo-layout-v2 #map-section #map .leaflet-control-container .leaflet-bottom.leaflet-right > .leaflet-control-attribution {
    position: static !important;
    inset: auto !important;
    float: none !important;
    clear: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    max-width: calc(100vw - 64px) !important;
    margin: 0 !important;
    padding: 0 4px !important;
    border-radius: 0 !important;
    background: rgb(255 255 255 / 88%) !important;
    line-height: 16px !important;
    white-space: nowrap !important;
  }
  body.oreo-layout-v2 #map-section#map-section #map-coordinate-readout {
    position: static !important;
    inset: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    width: max-content !important;
    max-width: none !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 4px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #3f5d61 !important;
    font-size: 10px !important;
    line-height: 16px !important;
    white-space: nowrap !important;
  }
}
@media (max-width: 760px) {
  body.oreo-layout-v2 #map-coordinate-readout {
    right: 8px !important;
    bottom: 24px !important;
    left: auto !important;
    transform: none !important;
    max-width: calc(100vw - 80px) !important;
  }
}

/* 20261022-map-full-viewport-v1: remove workspace insets so the map fills the available viewport. */
body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace {
  padding: 0 !important;
}

/* 20261022-right-map-toolbar-spacing-v1: compact right map controls to match the reference spacing. */
@media (min-width: 761px) {
  body.oreo-layout-v2 .layout-map-toolbar {
    gap: 8px !important;
  }
  body.oreo-layout-v2 .layout-map-toolbar > .layout-basemap-control {
    margin-top: 58px !important;
  }
  body.oreo-layout-v2 .layout-map-toolbar .layout-map-button-control,
  body.oreo-layout-v2 .layout-map-toolbar .layout-basemap-toggle,
  body.oreo-layout-v2 .layout-map-toolbar .leaflet-control-zoom,
  body.oreo-layout-v2 .layout-map-toolbar .leaflet-control-zoom a {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }
  body.oreo-layout-v2 .layout-map-toolbar .leaflet-control-zoom a {
    line-height: 36px !important;
  }
  body.oreo-layout-v2 .layout-map-toolbar .leaflet-control-zoom {
    gap: 8px !important;
  }
}

/* 20261022-right-map-toolbar-spacing-v2: make the layer button match the compact circular controls. */
@media (min-width: 761px) {
  body.oreo-layout-v2 .layout-map-toolbar #layer-toggle {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }
}

/* 20261022-right-map-toolbar-spacing-v3: set the layer toggle's flex basis to match the 36px circular rail buttons. */
@media (min-width: 761px) {
  body.oreo-layout-v2 .layout-map-toolbar #layer-toggle {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    flex: 0 0 36px !important;
    flex-basis: 36px !important;
    box-sizing: border-box !important;
  }
}

/* 20261022-left-map-tool-rail-v1: size left tool buttons to 36px with consistent 8px gaps. */
@media (min-width: 761px) {
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace > .map-tool-rail {
    gap: 8px !important;
  }
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace > .map-tool-rail > .minimal-icon-button {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    flex: 0 0 36px !important;
    flex-basis: 36px !important;
    box-sizing: border-box !important;
  }
}

/* 20261022-left-sidebar-panel-v1: resize the left menu and space sections consistently. */
@media (min-width: 761px) {
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace > .map-tool-rail {
    gap: 8px !important;
  }
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace > .map-tool-rail > .minimal-icon-button {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    flex: 0 0 36px !important;
    flex-basis: 36px !important;
    box-sizing: border-box !important;
  }
}

/* 20261023-measure-toggle-circle-v1: match the measure control to the 36px circular map toolbar buttons. */
@media (min-width: 761px) {
  body.oreo-layout-v2 .layout-map-toolbar #measure-toggle {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    flex: 0 0 36px !important;
    flex-basis: 36px !important;
    box-sizing: border-box !important;
    border-radius: 50% !important;
  }
}

/* 20261022-left-sidebar-panel-v1: match the reference panel footprint and use consistent spacing between menu sections. */
@media (min-width: 761px) {
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace.layout-sidebar-open {
    grid-template-columns: 54px minmax(0, 358px) minmax(0, 1fr) !important;
  }
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace.layout-sidebar-open > .library {
    box-sizing: border-box !important;
    align-self: start !important;
    height: 89.5dvh !important;
    min-height: 0 !important;
    gap: 12px !important;
  }
  body.oreo-layout-v2 .layout-sidebar-tabs {
    gap: 12px !important;
  }
}

/* 20261022-left-sidebar-panel-v2: preserve full map width while correcting the docked panel bounds. */
@media (min-width: 761px) {
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace > .map-tool-rail {
    gap: 8px !important;
  }
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace > .map-tool-rail > .minimal-icon-button {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    flex: 0 0 36px !important;
    flex-basis: 36px !important;
    box-sizing: border-box !important;
  }
}

/* 20261022-left-sidebar-panel-v1: match the reference panel footprint and use consistent spacing between menu sections. */
@media (min-width: 761px) {
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace.layout-sidebar-open {
    grid-template-columns: 54px minmax(0, 358px) minmax(0, 1fr) !important;
  }
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace.layout-sidebar-open > .library {
    box-sizing: border-box !important;
    align-self: start !important;
    height: 89.5dvh !important;
    min-height: 0 !important;
    gap: 12px !important;
  }
  body.oreo-layout-v2 .layout-sidebar-tabs {
    gap: 12px !important;
  }
}

/* 20261022-left-sidebar-panel-v2: keep the map spanning the workspace and size the drawer to the reference. */
@media (min-width: 761px) {
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace.layout-sidebar-open > .map-section {
    grid-column: 2 / 4 !important;
  }
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace.layout-sidebar-open > .library {
    position: absolute !important;
    top: 0 !important;
    right: auto !important;
    bottom: auto !important;
    left: 0 !important;
    width: 358px !important;
    height: 89.5dvh !important;
    min-height: 0 !important;
    margin: 0 !important;
    align-self: stretch !important;
    box-sizing: border-box !important;
    gap: 12px !important;
  }
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace.layout-sidebar-open {
    grid-template-columns: 54px minmax(358px, 358px) minmax(0, 1fr) !important;
  }
}

/* Keep the Measure flyout beside the right-hand map tools. */
.layout-location-status { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.layout-location-status.layout-location-error { border-color: #e9d1ad; background: #fff4e7; color: #865016; }
.layout-current-location.is-locating svg { animation: layout-location-pulse 1s ease-in-out infinite; }
@keyframes layout-location-pulse { 50% { opacity: .35; transform: scale(.82); } }
body.oreo-layout-v2 #map-section #measure-panel.measure-v1-panel {
  position: fixed !important;
  inset: 150px 64px auto auto !important;
  width: min(460px, calc(100vw - 500px)) !important;
  height: auto !important;
  max-height: calc(100vh - 112px) !important;
  bottom: auto !important;
  left: auto !important;
  border-radius: 14px !important;
  z-index: 1250 !important;
}

@media (max-width: 700px) {
  body.oreo-layout-v2 #map-section #measure-panel.measure-v1-panel {
    inset: 72px 12px auto 12px !important;
    width: auto !important;
    max-height: calc(100dvh - 96px) !important;
  }
}

/* Keep the map scale centered against the bottom viewport edge. */
.leaflet-bottom .leaflet-control-scale { position: fixed !important; left: 50% !important; bottom: 0 !important; margin: 0 !important; transform: translateX(-50%) !important; z-index: 650 !important; }


/* 20261024-left-menu-uniform-full-height-v1: use the imagery drawer as the shared left-menu size. */
body.oreo-layout-v2 {
  --layout-left-menu-width: min(416px, calc(100vw - 54px));
}
@media (min-width: 761px) {
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace.layout-sidebar-open > .library {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: var(--layout-left-menu-width) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    align-self: stretch !important;
    box-sizing: border-box !important;
  }
  body.oreo-layout-v2 #map-section > .layer-panel,
  body.oreo-layout-v2 #map-section > .terrain-panel,
  body.oreo-layout-v2 #map-section > .profile-panel,
  body.oreo-layout-v2 #map-section > .raster-panel,
  body.oreo-layout-v2 #map-section > #hydrology-panel,
  body.oreo-layout-v2 #map-section > .uav-planner-panel#uav-planner-panel,
  body.oreo-layout-v2 #map-section .uav-solar-analysis-map-ui .uav-solar-analysis-summary {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: var(--layout-left-menu-width) !important;
    min-width: 0 !important;
    max-width: var(--layout-left-menu-width) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
  }
}
@media (max-width: 760px) {
  body.oreo-layout-v2 {
    --layout-left-menu-width: min(416px, calc(100vw - 50px));
  }
  body.oreo-layout-v2 .workspace.oreo-layout-v2-workspace.layout-sidebar-open > .library {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: var(--layout-left-menu-width) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    box-sizing: border-box !important;
  }
  body.oreo-layout-v2 #map-section > .layer-panel,
  body.oreo-layout-v2 #map-section > .terrain-panel,
  body.oreo-layout-v2 #map-section > .profile-panel,
  body.oreo-layout-v2 #map-section > .raster-panel,
  body.oreo-layout-v2 #map-section > #hydrology-panel,
  body.oreo-layout-v2 #map-section > .uav-planner-panel#uav-planner-panel,
  body.oreo-layout-v2 #map-section .uav-solar-analysis-map-ui .uav-solar-analysis-summary {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: var(--layout-left-menu-width) !important;
    min-width: 0 !important;
    max-width: var(--layout-left-menu-width) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
  }
}
