/* Scoped workspace refinements. Map dimensions and layer panes are untouched. */
#dashboard.dashboard {
  width: min(690px, calc(100vw - 176px));
  max-width: 690px;
}
#dashboard .wm16-heading {
  width: max-content;
  max-width: 100%;
  background: rgba(16, 39, 31, 0.94);
  border: 1px solid #ffffff17;
  border-radius: 8px;
  margin-bottom: 5px;
}
#dashboard .dash-head {
  min-height: 26px;
  padding: 3px 9px;
  gap: 6px;
  margin: 0;
  border: 0;
  box-shadow: none;
  background: none;
  font-size: 10px;
}
#dashboard .dash-head small,
#dashboard .dash-head > [data-icon] {
  display: none;
}
#dashboardMetrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
}
#dashboard .metric {
  min-width: 0;
  min-height: 62px;
  height: 62px;
  padding: 5px 4px !important;
  gap: 1px;
  border-radius: 9px;
}
#dashboard .metric-label {
  font-size: 9px;
  gap: 4px;
  line-height: 1.5;
  justify-content: center;
}
#dashboard .metric-label .icon {
  width: 12px;
  height: 12px;
  flex: none;
}
#dashboard .metric strong {
  font-size: 18px;
  min-height: 23px;
  line-height: 1.3;
  text-align: center;
}
#dashboard .metric small {
  font-size: 8px;
  line-height: 1.4;
}
#dashboard [data-metric="population16"] {
  border-color: #c6ab7155;
}
#dashboard [data-metric="population16"] strong {
  color: #e0c58d;
}
.map-display16 {
  position: fixed;
  z-index: 1000;
  left: 22px;
  bottom: 108px;
  display: grid;
  gap: 4px;
  padding: 5px;
  border-radius: 10px;
  direction: ltr;
}
#mapDisplay16 .scene-switch13,
#mapDisplay16 #baseDock {
  position: static !important;
  inset: auto !important;
  display: grid !important;
  grid-template-columns: repeat(2, 38px);
  gap: 3px !important;
  padding: 0 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  transform: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  backdrop-filter: none;
}
#mapDisplay16 #baseDock {
  padding-top: 4px !important;
  border-top: 1px solid #ffffff18 !important;
  border-radius: 0 !important;
}
#mapDisplay16 button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 38px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 11px;
}
#mapDisplay16 .icon {
  width: 19px;
  height: 19px;
}
#mapDisplay16 button.active {
  border-color: #bda16a66;
  background: #c6ab7124 !important;
  color: #e6c98d;
}
.wm16 {
  --wm16-surface: var(--s-surface, #132c25);
  --wm16-border: var(--s-line, #ffffff24);
  --wm16-color: var(--s-ink, #dce7dc);
}
.wm16-header,
.wm16-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.wm16-header > div:not(.wm16-buttons),
.wm16-header h1,
.wm16-header h2 {
  min-width: 0;
}
.wm16-header h1,
.wm16-header h2 {
  overflow-wrap: anywhere;
}
.wm16-header .drag-glyph {
  display: none;
}
.wm16-buttons {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 2px;
  margin-inline-start: auto;
}
.wm16-button,
.wm16-resize {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wm16-border, #ffffff24);
  background: transparent;
  color: var(--wm16-color, #dce7dc);
  padding: 0;
  width: 25px;
  height: 25px;
  flex: none;
  border-radius: 5px;
  cursor: pointer;
}
.wm16-button .icon,
.wm16-resize .icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.wm16-button:hover,
.wm16-resize:hover {
  background: #c6ab7126;
}
.wm16-button:focus-visible,
.wm16-resize:focus-visible {
  outline: 2px solid #c6ab71;
  outline-offset: 2px;
}
.wm16-heading {
  padding-inline-end: 4px;
}
.wm16-heading > button {
  flex: 1;
  min-width: 0;
}
.wm16-resize {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 20;
  width: 23px;
  height: 23px;
  border: 0;
  background: var(--wm16-surface, #132c25);
  opacity: 0.7;
  border-radius: 5px 0 0 0;
  cursor: nwse-resize;
  touch-action: none;
}
.wm16-resize[hidden] {
  display: none !important;
}
.wm16-sized {
  box-sizing: border-box;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: calc(100vw - 16px) !important;
  max-height: calc(100vh - 16px) !important;
  overflow: auto !important;
}
.wm16-sized > .panel-head,
.wm16-sized > .wm16-heading {
  position: sticky;
  top: 0;
  z-index: 21;
  background: var(--wm16-surface);
}
.wm16-sized > .sidebar-body,
.wm16-sized > .work-body,
.wm16-sized > .detail-body,
.wm16-sized > .dialog-body {
  max-height: none;
  overflow: visible;
}
.wm16-sized > .wm16-resize {
  position: sticky;
  float: right;
  margin-top: -23px;
}
.wm16-minimized {
  width: min(380px, calc(100vw - 16px)) !important;
  height: auto !important;
  max-height: none !important;
  overflow: hidden !important;
  border-radius: 10px !important;
  background: var(--wm16-surface) !important;
}
.wm16-minimized > :not(.wm16-header):not(.wm16-heading) {
  display: none !important;
}
.wm16-minimized > .wm16-header,
.wm16-minimized > .wm16-heading {
  margin: 0 !important;
  min-height: 40px;
}
.wm16-minimized .wm16-header small {
  display: none;
}
.wm16-minimized .wm16-header h1,
.wm16-minimized .wm16-header h2 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}
.wm16-resizing {
  user-select: none;
}
.wm16-maximized {
  z-index: 4000 !important;
}
#sdiAdmin15.wm16-maximized {
  z-index: 9000 !important;
}
#dashboard.wm16-sized:not(.wm16-minimized) {
  background: rgba(16, 39, 31, 0.94);
  border-radius: 10px;
  padding: 6px;
}
#dashboard.wm16-sized #dashboardMetrics {
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}
#dashboard.wm16-maximized .metric {
  height: 100px;
}
#dashboard.wm16-maximized .metric strong {
  font-size: 26px;
}
#dashboard.wm16-maximized .metric-label {
  font-size: 11px;
}
#legend .legend-title > [data-icon] {
  display: none;
}
html[data-theme="light"] .wm16 {
  --wm16-surface: #fff;
  --wm16-color: #214733;
  --wm16-border: #254a392b;
}
html[data-theme="light"] #dashboard .wm16-heading,
html[data-theme="light"] #dashboard.wm16-sized:not(.wm16-minimized) {
  background: #fffffff5;
  border-color: #254a3924;
}
html[data-theme="light"] #dashboard [data-metric="population16"] strong {
  color: #735526;
}
html[data-theme="light"] #mapDisplay16 button.active {
  color: #57451e;
}
html[data-theme="light"] #mapDisplay16 #baseDock {
  border-top-color: #254a3924 !important;
}
/* Also loaded within the SDI shadow root: no global administration selectors. */
:host {
  --wm16-surface: var(--s-surface);
  --wm16-color: var(--s-ink);
  --wm16-border: var(--s-line);
}
:host(.wm16-sized) {
  border: 1px solid var(--s-line);
  border-radius: 12px;
  box-shadow: var(--s-shadow);
}
:host(.wm16-sized) .header-inner {
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
}
:host(.wm16-sized) .header-title {
  min-width: 0;
  flex: 1 1 460px;
}
:host(.wm16-sized) .header-title h1 {
  overflow-wrap: anywhere;
}
:host(.wm16-sized) .header-actions {
  flex-wrap: wrap;
}
:host(.wm16-minimized) .workspace,
:host(.wm16-minimized) .breadcrumb,
:host(.wm16-minimized) .header-title img,
:host(.wm16-minimized) #sdiTheme,
:host(.wm16-minimized) #sdiLanguage,
:host(.wm16-minimized) #sdiBack span,
:host(.wm16-minimized) #modalMount {
  display: none !important;
}
:host(.wm16-minimized) .header-inner {
  padding: 7px 8px;
  gap: 5px;
  flex-wrap: nowrap;
}
:host(.wm16-minimized) .header-title h1 {
  font-size: 11px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:host(.wm16-minimized) .header-title {
  flex: 1;
}
:host(.wm16-minimized) .header-actions {
  gap: 3px;
}
:host(.wm16-minimized) .header-actions .btn {
  padding: 4px;
}
:host(.wm16-minimized) .app {
  overflow: hidden;
}
.modal.wm16-sized {
  display: flex;
  flex-direction: column;
}
.modal.wm16-sized .modal-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.modal.wm16-minimized .modal-head {
  padding: 10px;
}
.wm16-backdrop-minimized {
  background: transparent;
  pointer-events: none;
}
.wm16-backdrop-minimized .modal {
  pointer-events: auto;
}
@media print {
  .wm16-buttons,
  .wm16-resize {
    display: none !important;
  }
}
@media (max-width: 900px) {
  #dashboard.dashboard {
    width: min(610px, calc(100vw - 110px));
    max-width: 610px;
  }
  #dashboard .metric-label {
    font-size: 8px;
  }
  #dashboard .metric-label .icon {
    display: none;
  }
  #dashboard .metric strong {
    font-size: 16px;
  }
}
@media (max-width: 600px) {
  #dashboard.dashboard {
    left: 10px;
    right: auto;
    width: calc(100vw - 82px);
  }
  #dashboardMetrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }
  #dashboard .metric {
    height: 54px;
    min-height: 54px;
  }
  .map-display16 {
    left: 12px;
    bottom: 106px;
  }
  .wm16-header {
    gap: 3px;
  }
  .wm16-button {
    width: 24px;
    height: 24px;
  }
}
