:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #5e5e5e;
  --line: #b8b8b8;
  --paper: #f3f3f0;
  --plot: #e8e8e4;
  --route: #8b201b;
  --selection: #005b76;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font: 13px/1.35 Arial, Helvetica, sans-serif;
}

#application {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  width: 100%;
  height: 100%;
}

#terrain-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: var(--plot);
}

body.map-full-view { overflow: hidden; }
body.map-full-view #application { grid-template-columns: 1fr; }
body.map-full-view #terrain-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100vw;
  height: 100dvh;
}
body.map-full-view #inspector { display: none; }

#terrain-3d {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

#terrain-2d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #deded8;
  touch-action: none;
}

#terrain-2d .ol-viewport { font: 11px/1.3 Arial, Helvetica, sans-serif; }
#terrain-2d .ol-control {
  position: absolute;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#terrain-2d .ol-zoom { top: 58px; left: 12px; }
#terrain-2d .ol-control button {
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 0 4px;
  padding: 0;
  border: 1px solid rgb(23 23 23 / 58%);
  border-radius: 0;
  background: rgb(243 243 240 / 92%);
  color: var(--ink);
  font: 500 18px/28px Arial, Helvetica, sans-serif;
}
#terrain-2d .ol-control button:hover,
#terrain-2d .ol-control button:focus { background: var(--paper); }
#terrain-2d .ol-scale-line {
  position: absolute;
  bottom: 28px;
  left: 12px;
  z-index: 2;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 1px 1px rgb(243 243 240 / 98%)) drop-shadow(0 0 4px rgb(243 243 240 / 86%));
}
#terrain-2d .ol-scale-line-inner {
  position: relative;
  margin: 0;
  padding: 0 3px 3px;
  border: 0;
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
  font: 500 10px/1.15 Arial, Helvetica, sans-serif;
  text-align: center;
  text-shadow: 0 1px 1px rgb(243 243 240 / 98%), 0 0 4px rgb(243 243 240 / 86%);
  white-space: nowrap;
}
#terrain-2d .ol-scale-line-inner::before,
#terrain-2d .ol-scale-line-inner::after {
  position: absolute;
  bottom: -2px;
  width: 1px;
  height: 6px;
  background: var(--ink);
  content: '';
}
#terrain-2d .ol-scale-line-inner::before { left: 0; }
#terrain-2d .ol-scale-line-inner::after { right: 0; }

.gis2d-north-indicator {
  position: absolute;
  top: 56px;
  right: 14px;
  z-index: 2;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 1px 1px rgb(243 243 240 / 98%)) drop-shadow(0 0 4px rgb(243 243 240 / 86%));
  pointer-events: none;
}
.gis2d-north-indicator img {
  display: block;
  width: 44px;
  height: 44px;
}

.gis2d-provider-credit {
  position: absolute;
  bottom: 7px;
  left: 12px;
  z-index: 2;
  max-width: min(560px, calc(100% - 24px));
  padding: 0;
  background: transparent;
  color: #4e4e4b;
  font-size: 9px;
  line-height: 1.25;
  text-shadow: 0 1px 2px #fff, 0 0 4px #fff;
}
.gis2d-provider-credit a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 1px; }

#orientation-3d {
  position: absolute;
  right: auto;
  bottom: -12px;
  left: 16px;
  z-index: 2;
  display: block;
  width: 120px;
  height: 120px;
  pointer-events: none;
  background: transparent;
  border: 0;
  filter: drop-shadow(0 1px 1px rgb(243 243 240 / 90%));
}

#help-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 1px solid rgb(23 23 23 / 58%);
  border-radius: 50%;
  background: rgb(243 243 240 / 88%);
  color: var(--ink);
  font: 600 15px/1 Arial, Helvetica, sans-serif;
}

#help-button:hover { background: var(--paper); }

#information-button {
  position: absolute;
  top: 12px;
  right: 50px;
  z-index: 3;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 1px solid rgb(23 23 23 / 58%);
  border-radius: 50%;
  background: rgb(243 243 240 / 88%);
  color: var(--ink);
  font: 600 16px/1 Georgia, 'Times New Roman', serif;
}

#information-button:hover { background: var(--paper); }

#full-view-button,
#full-view-exit {
  position: absolute;
  z-index: 3;
  display: grid;
  padding: 0;
  place-items: center;
  border: 1px solid rgb(23 23 23 / 58%);
  border-radius: 50%;
  background: rgb(243 243 240 / 88%);
  color: var(--ink);
}

#full-view-button {
  top: 12px;
  right: 88px;
  width: 30px;
  height: 30px;
}

#full-view-exit {
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 8;
  width: 40px;
  height: 40px;
  background: rgb(243 243 240 / 94%);
}

#full-view-button svg,
#full-view-exit svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#full-view-button:hover,
#full-view-exit:hover { background: var(--paper); color: var(--selection); }
#full-view-exit[hidden] { display: none; }
#terrain-panel[data-full-view="true"] #full-view-button,
#terrain-panel[data-full-view="true"] #information-button,
#terrain-panel[data-full-view="true"] #help-button { display: none; }

#layers-button {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid rgb(23 23 23 / 58%);
  border-radius: 50%;
  background: rgb(243 243 240 / 88%);
  color: var(--ink);
}

#layers-button:hover { background: var(--paper); }
#layers-button:disabled { opacity: 0.48; cursor: wait; }
#layers-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }

#scene-mode-switch {
  position: absolute;
  top: 14px;
  left: 56px;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid rgb(23 23 23 / 58%);
  background: rgb(243 243 240 / 88%);
}

#scene-mode-switch button {
  min-width: 39px;
  height: 29px;
  padding: 0 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: 600 10.5px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.04em;
}
#scene-mode-switch button + button { border-left: 1px solid rgb(23 23 23 / 34%); }
#scene-mode-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
#scene-mode-switch button:not([aria-pressed="true"]):hover { background: var(--paper); color: var(--ink); }
#scene-mode-switch button:disabled { cursor: wait; opacity: 0.52; }

#terrain-analysis-tools {
  position: absolute;
  top: 14px;
  left: 145px;
  z-index: 3;
  display: grid;
  grid-template-columns: 31px 31px;
  border: 1px solid rgb(23 23 23 / 58%);
  background: rgb(243 243 240 / 88%);
}
#terrain-analysis-tools button {
  position: relative;
  display: grid;
  width: 31px;
  height: 29px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}
#terrain-analysis-tools button + button { border-left: 1px solid rgb(23 23 23 / 34%); }
#terrain-analysis-tools button:hover { background: var(--paper); color: var(--ink); }
#terrain-analysis-tools button[aria-pressed="true"] { background: var(--selection); color: #fff; }
#terrain-analysis-tools button:disabled { cursor: wait; opacity: 0.48; }
#terrain-analysis-tools svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#guided-journey-launch {
  position: absolute;
  top: 14px;
  left: 216px;
  z-index: 3;
  display: inline-flex;
  height: 31px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgb(23 23 23 / 58%);
  background: rgb(243 243 240 / 90%);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.015em;
}
#guided-journey-launch:hover { background: var(--paper); color: var(--selection); }
#guided-journey-launch:disabled { cursor: wait; opacity: 0.48; }
#guided-journey-launch svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#guided-journey-launch svg path:last-child { fill: currentColor; stroke: none; }

#guided-journey-controls {
  position: absolute;
  bottom: 16px;
  left: 50%;
  z-index: 4;
  display: grid;
  width: min(690px, calc(100% - 28px));
  min-height: 62px;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 20px;
  gap: 4px 18px;
  padding: 11px 12px 9px 15px;
  border: 1px solid rgb(243 243 240 / 38%);
  background: rgb(23 23 23 / 91%);
  box-shadow: 0 10px 28px rgb(23 23 23 / 26%);
  color: var(--paper);
  transform: translateX(-50%);
}
.guided-journey-copy {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 2px;
}
.guided-journey-copy strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.guided-journey-copy span {
  overflow: hidden;
  color: rgb(243 243 240 / 72%);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.guided-journey-actions { display: flex; align-items: stretch; }
.guided-journey-speed-control {
  display: inline-flex;
  height: 34px;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border-left: 1px solid rgb(243 243 240 / 24%);
  color: rgb(243 243 240 / 72%);
  font-size: 9.5px;
  white-space: nowrap;
}
.guided-journey-speed-control select {
  width: 58px;
  height: 25px;
  padding: 0 3px;
  border: 0;
  border-bottom: 1px solid rgb(243 243 240 / 42%);
  border-radius: 0;
  background: transparent;
  color: #fff;
  color-scheme: dark;
  cursor: pointer;
  font: 600 10.5px/1 Arial, Helvetica, sans-serif;
  font-variant-numeric: tabular-nums;
}
.guided-journey-speed-control select:hover { border-bottom-color: #fff; }
.guided-journey-speed-control select:focus-visible { outline: 1px solid #fff; outline-offset: 1px; }
.guided-journey-speed-control option { background: #171717; color: #fff; }
.guided-journey-actions button {
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 9px;
  border: 0;
  border-left: 1px solid rgb(243 243 240 / 24%);
  background: transparent;
  color: rgb(243 243 240 / 82%);
  font-size: 10.5px;
}
.guided-journey-actions button:hover { background: transparent; color: #fff; }
.guided-journey-actions button:focus-visible { outline-color: #fff; outline-offset: -2px; }
.guided-journey-actions svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.guided-journey-progress {
  position: relative;
  grid-column: 1 / -1;
  height: 20px;
  background: transparent;
  cursor: ew-resize;
  touch-action: none;
}
.guided-journey-progress::before {
  position: absolute;
  top: 8.5px;
  right: 0;
  left: 0;
  height: 3px;
  background: rgb(243 243 240 / 20%);
  content: '';
}
#guided-journey-progress-fill {
  position: absolute;
  top: 8.5px;
  bottom: auto;
  left: 0;
  width: 100%;
  height: 3px;
  background: #8ab7c2;
  transform: scaleX(0);
  transform-origin: left center;
}
.guided-journey-progress::after {
  position: absolute;
  top: 10px;
  left: var(--journey-progress, 0%);
  width: 9px;
  height: 9px;
  border: 1px solid #8ab7c2;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 1px 4px rgb(23 23 23 / 28%);
  content: '';
  transform: translate(-50%, -50%);
  transition: transform 100ms ease, box-shadow 100ms ease;
}
.guided-journey-progress:hover::after,
.guided-journey-progress[data-scrubbing]::after {
  box-shadow: 0 2px 7px rgb(23 23 23 / 38%);
  transform: translate(-50%, -50%) scale(1.22);
}
.guided-journey-progress:focus-visible { outline: none; }
.guided-journey-progress:focus-visible::after { box-shadow: 0 0 0 2px #171717, 0 0 0 4px #f3f3f0; }
#terrain-panel[data-guided-journey="paused"] #guided-journey-controls { background: rgb(37 43 45 / 93%); }
#terrain-panel[data-guided-journey] #elevation-legend,
#terrain-panel[data-guided-journey] #imagery-legend { top: auto; bottom: 92px; }
#terrain-panel[data-guided-journey] #orientation-3d { bottom: 62px; }
#terrain-panel[data-guided-journey] #guided-journey-launch { display: none; }
#terrain-panel[data-scene-mode="2d"] #guided-journey-launch { display: none; }
@media (hover: hover) {
  #terrain-analysis-tools button:not(:disabled)::after {
    position: absolute;
    top: 36px;
    left: 50%;
    width: max-content;
    max-width: 150px;
    padding: 4px 6px;
    border: 1px solid rgb(23 23 23 / 45%);
    background: rgb(243 243 240 / 96%);
    color: var(--ink);
    content: attr(data-label);
    font: 10px/1.25 Arial, Helvetica, sans-serif;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -3px);
    transition: opacity 100ms ease, transform 100ms ease;
    white-space: nowrap;
  }
  #terrain-analysis-tools button:not(:disabled):hover::after,
  #terrain-analysis-tools button:not(:disabled):focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
}

#terrain-panel[data-scene-mode="2d"] #orientation-3d,
#terrain-panel[data-scene-mode="2d"] .vertical-exaggeration-control { display: none; }
#terrain-panel[data-scene-mode="3d"] .basemap-control { display: none; }

#layers-scrim {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgb(23 23 23 / 20%);
  backdrop-filter: blur(1px);
}

#layers-drawer {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 5;
  display: flex;
  width: min(318px, calc(100% - 22px));
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid rgb(23 23 23 / 68%);
  background: rgb(243 243 240 / 97%);
  box-shadow: 12px 0 30px rgb(23 23 23 / 16%);
  transform: translateX(-102%);
  transition: transform 160ms ease-out;
}

#layers-drawer[aria-hidden="false"] { transform: translateX(0); }

.layers-drawer-header,
.layer-dialog-header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 14px 14px 17px;
  border-bottom: 1px solid var(--line);
}

.layers-eyebrow {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.layers-drawer-header h2,
.layer-dialog-header h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 16px;
}

#layers-close,
#layer-list-close {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

#layers-close:hover,
#layer-list-close:hover { background: #e3e3df; }
#layers-close svg,
#layer-list-close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.layers-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.layer-group-heading {
  margin: 0;
  padding: 9px 16px 6px;
  border-bottom: 1px solid #d2d2d0;
  color: #686864;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.basemap-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 145px;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 9px 16px;
  border-bottom: 1px solid #d2d2d0;
  background: #ededE9;
}
.basemap-control label { min-width: 0; }
.basemap-control strong,
.basemap-control small { display: block; }
.basemap-control strong { font-size: 11px; font-weight: 600; line-height: 1.25; }
.basemap-control small { margin-top: 2px; color: var(--muted); font-size: 9.5px; line-height: 1.25; }
.basemap-control select {
  width: 145px;
  height: 31px;
  padding: 0 27px 0 9px;
  border: 1px solid #888884;
  border-radius: 0;
  background: #f7f7f4;
  color: var(--ink);
  font: 11px/1.2 Arial, Helvetica, sans-serif;
}
.basemap-control select:hover { border-color: #555b5e; }
.basemap-control select:focus-visible { outline: 2px solid var(--selection); outline-offset: 2px; }

.layer-subgroup-heading {
  margin: 0;
  padding: 10px 16px 7px;
  border-bottom: 1px solid #d2d2d0;
  background: #ededE9;
  color: #555551;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.surface-dataset {
  border-bottom: 1px solid #d2d2d0;
}

.surface-dataset-summary {
  display: grid;
  min-height: 62px;
  grid-template-columns: 38px minmax(0, 1fr) 10px;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  cursor: pointer;
  list-style: none;
}

.surface-dataset-summary::-webkit-details-marker { display: none; }
.surface-dataset-summary:hover { background: rgb(232 232 228 / 72%); }
.surface-dataset-summary::after {
  width: 6px;
  height: 6px;
  border-right: 1.25px solid currentColor;
  border-bottom: 1.25px solid currentColor;
  content: '';
  transform: rotate(45deg) translate(-1px, 1px);
  transition: transform 140ms ease;
}
.surface-dataset[open] > .surface-dataset-summary::after { transform: rotate(225deg) translate(-1px, 1px); }
.surface-dataset:has(input:checked) > .surface-dataset-summary { box-shadow: inset 2px 0 0 var(--selection); background: #f0f0ec; }

.surface-dataset-copy { min-width: 0; }
.surface-dataset-copy strong,
.surface-dataset-copy small { display: block; }
.surface-dataset-copy strong { overflow: hidden; font-size: 12px; font-weight: 600; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.surface-dataset-copy small { margin-top: 3px; color: var(--muted); font-size: 10.5px; line-height: 1.25; }

.surface-renderings {
  padding: 4px 0 8px 53px;
  border-top: 1px solid #ddddda;
  background: #f7f7f4;
}

.surface-rendering-option {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 5px 15px 5px 8px;
  cursor: pointer;
}
.surface-rendering-option:hover { background: #e9e9e5; }
.surface-rendering-option:has(input:checked) { background: #e4ecee; }
.surface-rendering-option input { width: 14px; height: 14px; margin: 0; accent-color: var(--selection); }
.surface-rendering-copy { min-width: 0; }
.surface-rendering-copy strong,
.surface-rendering-copy small { display: block; }
.surface-rendering-copy strong { font-size: 11px; font-weight: 600; line-height: 1.25; }
.surface-rendering-copy small { margin-top: 2px; color: var(--muted); font-size: 9.75px; line-height: 1.25; }
.surface-dataset-source {
  display: block;
  width: fit-content;
  margin: 5px 15px 2px 32px;
  color: var(--selection);
  font-size: 10.5px;
  line-height: 1.3;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.flood-extent-note {
  margin: 0;
  padding: 9px 16px 10px;
  border-bottom: 1px solid #d2d2d0;
  background: #ededE9;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.layer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  min-height: 66px;
  align-items: stretch;
  border-bottom: 1px solid #d2d2d0;
}

.layer-row-static { grid-template-columns: minmax(0, 1fr); }

.layer-row-terrain { display: block; }

.layer-visibility-control {
  display: grid;
  min-width: 0;
  grid-template-columns: 17px 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px 5px 9px 16px;
  cursor: pointer;
}

.layer-visibility-control:hover { background: rgb(232 232 228 / 72%); }
.layer-visibility-control input { width: 15px; height: 15px; margin: 0; accent-color: var(--selection); }

.vertical-exaggeration-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 16px 11px 79px;
  padding-top: 9px;
  border-top: 1px solid #d7d7d4;
}

.vertical-exaggeration-control label {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.25;
}

.vertical-exaggeration-control select {
  width: 116px;
  height: 30px;
  padding: 0 28px 0 9px;
  border: 1px solid #9b9b97;
  border-radius: 0;
  background-color: #f6f6f3;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.vertical-exaggeration-control select:hover { border-color: #555b5e; }
.vertical-exaggeration-control select:focus-visible { outline: 2px solid var(--selection); outline-offset: 2px; }

.imagery-detail-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: center;
  gap: 12px;
  min-height: 57px;
  padding: 8px 16px;
  border-bottom: 1px solid #d2d2d0;
}

.imagery-detail-control label { min-width: 0; }
.imagery-detail-control strong,
.imagery-detail-control small { display: block; }
.imagery-detail-control strong { font-size: 11px; font-weight: 600; line-height: 1.25; }
.imagery-detail-control small { margin-top: 2px; color: var(--muted); font-size: 9.5px; line-height: 1.25; }

.imagery-detail-control select {
  width: 132px;
  height: 30px;
  padding: 0 27px 0 9px;
  border: 1px solid #9b9b97;
  border-radius: 0;
  background-color: #f6f6f3;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.imagery-detail-control select:hover { border-color: #555b5e; }
.imagery-detail-control select:focus-visible { outline: 2px solid var(--selection); outline-offset: 2px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.layer-symbol {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ink);
}

.layer-symbol svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.layer-symbol .layer-symbol-fine { stroke-width: 1; }
.layer-symbol .layer-status-accent { stroke: #8e4c91; stroke-width: 2.5; }
.layer-symbol-terrain { color: #45645d; }
.layer-symbol-terrain svg { stroke-width: 1.25; }
.layer-symbol-detachment { color: #9b3c2f; }
.layer-symbol-detachment svg { stroke-width: 1.6; }
.layer-symbol-extent { color: var(--extent-colour); }
.layer-symbol-extent svg { stroke-width: 1.7; }
.layer-symbol-extent svg path:first-child { fill: var(--extent-colour); fill-opacity: 0.14; }
.layer-symbol-extent svg path:last-child { stroke-width: 1.05; stroke-dasharray: 2.5 2; }
.layer-symbol-route .route-symbol-casing { stroke: #171c1e; stroke-width: 4.4; }
.layer-symbol-route .route-symbol-core { stroke: #f05a47; stroke-width: 2.25; }
.layer-symbol-image img { display: block; width: 32px; height: 32px; object-fit: contain; }
.layer-symbol-satellite {
  width: 30px;
  height: 30px;
  overflow: hidden;
  border: 1px solid #777773;
  background: #d9d9d4;
}
.layer-symbol-satellite img { display: block; width: 100%; height: 100%; object-fit: cover; }
.layer-symbol-impact {
  width: 32px;
  height: 32px;
  border: 2px solid #7d5b83;
  border-bottom-color: #a77b3a;
  border-radius: 50%;
  background: #f3f3f0;
}
.layer-symbol-impact svg { width: 24px; height: 24px; }
.layer-symbol-impact .layer-status-accent { display: none; }

.layer-label { min-width: 0; }
.layer-label strong { display: block; overflow: hidden; font-size: 12px; font-weight: 600; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.layer-label small { display: block; margin-top: 3px; color: var(--muted); font-size: 10.5px; line-height: 1.25; }

.layer-list-open {
  display: grid;
  width: 30px;
  height: 30px;
  align-self: center;
  justify-self: start;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.layer-list-open:hover { background: #dededb; }
.layer-list-open svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }

.layer-source-open {
  display: grid;
  width: 30px;
  height: 30px;
  align-self: center;
  justify-self: center;
  place-items: center;
  color: var(--ink);
  text-decoration: none;
}
.layer-source-open:hover { color: var(--selection); }
.layer-source-open:focus-visible { outline: 2px solid var(--selection); outline-offset: 2px; }
.layer-source-open svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }

#load-status {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: flex;
  width: min(260px, calc(100% - 48px));
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  transform: translate(-50%, -50%);
  color: var(--ink);
  text-align: center;
  pointer-events: none;
}

#load-status[hidden] { display: none; }

.terrain-loader-mark {
  width: 82px;
  height: auto;
  overflow: visible;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.terrain-loader-contour {
  stroke: rgb(23 23 23 / 42%);
  stroke-width: 1.25;
}

.terrain-loader-trace {
  stroke: var(--selection);
  stroke-width: 2;
  stroke-dasharray: 18 92;
  animation: terrain-loader-scan 1.45s linear infinite;
}

.terrain-loader-copy { display: grid; gap: 3px; }
.terrain-loader-copy strong { font-size: 13px; font-weight: 650; line-height: 1.25; }
.terrain-loader-copy span { color: var(--muted); font-size: 11px; line-height: 1.35; }

@keyframes terrain-loader-scan {
  to { stroke-dashoffset: -110; }
}

@media (prefers-reduced-motion: reduce) {
  .terrain-loader-trace { animation: none; stroke-dasharray: none; }
}

#elevation-legend {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  width: min(232px, calc(100% - 32px));
  padding: 0;
  pointer-events: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.elevation-legend-heading {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.elevation-legend-heading,
.elevation-legend-values { text-shadow: 0 1px 2px rgb(243 243 240 / 95%); }
.elevation-legend-heading span:first-child { font-size: 12px; font-weight: 600; letter-spacing: 0.01em; }
.elevation-legend-unit { color: var(--muted); font-size: 11px; font-weight: 600; }
#elevation-ramp {
  height: 12px;
  margin: 6px 0 4px;
  border: 1px solid rgb(23 23 23 / 72%);
  box-shadow: 0 0 0 1px rgb(243 243 240 / 72%);
}
.elevation-legend-values { display: flex; justify-content: space-between; gap: 10px; }
.elevation-legend-values { color: var(--ink); line-height: 1.2; }
.elevation-legend-values span:nth-child(2) { transform: translateX(-2px); }

#imagery-legend {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  width: min(252px, calc(100% - 32px));
  text-align: right;
  text-shadow: 0 1px 2px rgb(243 243 240 / 98%), 0 0 5px rgb(243 243 240 / 92%);
}
#imagery-legend > strong,
#imagery-legend > span,
#imagery-legend > a { display: block; }
#imagery-legend > strong { font-size: 12px; font-weight: 600; line-height: 1.3; }
#imagery-legend > span { margin-top: 2px; color: #454542; font-size: 10.5px; line-height: 1.3; }
#imagery-legend > a {
  width: fit-content;
  margin: 3px 0 0 auto;
  color: var(--selection);
  font-size: 10.5px;
  line-height: 1.3;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

#imagery-legend-scale { margin-top: 7px; }
#imagery-legend-ramp { height: 5px; border: 1px solid rgb(23 23 23 / 42%); }
#imagery-legend-values { display: flex; justify-content: space-between; margin-top: 2px; color: #454542; font-size: 9.5px; line-height: 1.2; }
#imagery-legend-categories { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px 9px; margin-top: 7px; }
.imagery-legend-category { display: inline-flex; align-items: center; gap: 4px; color: #454542; font-size: 9.5px; line-height: 1.2; }
.imagery-legend-category i { width: 8px; height: 8px; flex: 0 0 auto; border: 1px solid rgb(23 23 23 / 30%); }
#imagery-legend-note { max-width: 280px; margin-left: auto; font-size: 9.5px !important; }

#inspector {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: var(--paper);
}

#panel-header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line);
}

#panel-header > div { min-width: 0; }
#panel-header.is-overview {
  display: block;
  padding: 22px 20px 18px;
  text-align: center;
}

#panel-header.is-overview > div { width: 100%; }
#panel-header.is-overview #panel-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.23;
  text-wrap: balance;
}

#panel-context { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
#panel-context:empty { display: none; }
#panel-body { flex: 1 1 auto; overflow: auto; padding: 0 16px 24px; }
#overview-panel,
#measurement-panel,
#terrain-analysis-panel,
#point-inspection { padding-top: 14px; }

#overview-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.overview-authorship {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  font-family: Georgia, 'Times New Roman', serif;
}

.overview-authors {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.overview-affiliation {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.overview-authors a,
.overview-affiliation a {
  color: inherit;
  text-decoration: none;
}

.overview-authors a:hover,
.overview-affiliation a:hover,
.overview-authors a:focus-visible,
.overview-affiliation a:focus-visible {
  color: var(--selection);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.overview-authors a:focus-visible,
.overview-affiliation a:focus-visible {
  outline: 2px solid var(--selection);
  outline-offset: 2px;
}

.overview-authorship sup {
  position: relative;
  top: -0.2em;
  font-size: 0.7em;
  line-height: 0;
}

.overview-introduction {
  margin: 0;
  line-height: 1.55;
}

.overview-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}

.overview-about-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0 5px;
  border: 0;
  border-bottom: 1px solid rgb(23 23 23 / 42%);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.overview-about-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 150ms ease-out;
}

.overview-about-link:hover {
  background: transparent;
  border-bottom-color: currentColor;
  color: var(--selection);
}

.overview-about-link:hover svg { transform: translateX(3px); }
.overview-about-link:focus-visible { outline: 2px solid var(--selection); outline-offset: 4px; }
.overview-about-link:disabled { opacity: 0.46; cursor: wait; }
#overview-layers-button:hover svg { transform: translateY(-1px); }

.overview-map-composition {
  position: relative;
}

#overview-route-map {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #fafaf8;
}

#overview-context-map {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 700;
  width: 104px;
  height: 72px;
  pointer-events: none;
  background: #fafaf8;
  border: 1px solid rgb(23 23 23 / 48%);
}

#overview-context-map .leaflet-tile-pane {
  filter: saturate(0.82) contrast(1.14);
}

#overview-route-map .leaflet-control-attribution {
  margin: 0;
  padding: 2px 4px;
  background: rgb(250 250 248 / 90%);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

#overview-route-map .leaflet-control-attribution a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

h1,
h2 { margin: 0; font-weight: 600; }
h1 { font-size: 16px; }
h2 { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }
p { margin: 6px 0; }
.secondary { color: var(--muted); }

button { border: 1px solid #777; border-radius: 0; padding: 5px 9px; background: #ececea; color: var(--ink); font: inherit; cursor: pointer; }
button:hover { background: #e2e2df; }
button:focus-visible { outline: 2px solid var(--selection); outline-offset: 2px; }

#record-popover {
  position: fixed;
  z-index: 3;
  width: min(340px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  border: 1px solid rgb(23 23 23 / 72%);
  background: rgb(247 247 244 / 97%);
  color: var(--ink);
  box-shadow: 0 12px 30px rgb(23 23 23 / 22%);
  overscroll-behavior: contain;
}

#record-popover-media {
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: #dddeda;
}

#record-popover-media a { display: block; }
#record-popover-media a:focus-visible { outline: 2px solid var(--selection); outline-offset: -2px; }
#record-popover-media img {
  display: block;
  width: 100%;
  height: 146px;
  object-fit: cover;
  object-position: 50% 44%;
}
#record-popover-media video {
  display: block;
  width: 100%;
  height: 146px;
  object-fit: cover;
  background: #111;
}
#record-popover-media .sensitive-media { height: 146px; }
#record-popover-media figcaption {
  padding: 5px 15px 6px;
  color: #4f4f4c;
  background: #e9e9e5;
  font-size: 10.5px;
  line-height: 1.3;
}
#record-popover-media figcaption a,
.source-event-link a,
.source-event-figures figcaption a {
  color: var(--selection);
  text-underline-offset: 2px;
}

.record-popover-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 12px 11px 15px;
  border-bottom: 1px solid var(--line);
}

.record-popover-header h2,
.record-dialog-header h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 15.5px;
  line-height: 1.28;
}

#record-popover-context,
#record-dialog-context {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

#record-popover-close,
#record-dialog-close {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

#record-popover-close:hover,
#record-dialog-close:hover { background: #e3e3df; }

#record-popover-close svg,
#record-dialog-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.record-popover-body { padding: 12px 15px 14px; }
#record-popover-primary { margin: 0; font-weight: 600; line-height: 1.42; }
#record-popover-secondary { margin: 5px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.45; }

#record-read-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 3px 0 4px;
  border: 0;
  border-bottom: 1px solid rgb(23 23 23 / 42%);
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

#record-read-more:hover { background: transparent; color: var(--selection); }
#record-read-more svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-action {
  width: 100%;
  padding: 8px 10px;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}
.primary-action:hover { background: #303030; }
.primary-action:disabled { border-color: #777; background: #777; color: #f2f2ef; cursor: default; }
#panel-exit {
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.2;
}
#panel-exit:hover { border-color: #777; background: #e8e8e4; }
#terrain-panel[data-mode="measure"] #terrain-3d,
#terrain-panel[data-mode="measure"] #terrain-2d .ol-viewport,
#terrain-panel[data-mode="terrain-analysis"] #terrain-3d,
#terrain-panel[data-mode="terrain-analysis"] #terrain-2d .ol-viewport { cursor: crosshair; }

#help-dialog {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(23 23 23 / 72%);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 46px rgb(23 23 23 / 28%);
}

#record-dialog {
  width: min(640px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(23 23 23 / 72%);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 46px rgb(23 23 23 / 28%);
}

#record-dialog::backdrop {
  background: rgb(23 23 23 / 34%);
  backdrop-filter: blur(1.5px);
}

.record-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 14px 13px 19px;
  border-bottom: 1px solid var(--line);
}

.record-dialog-body {
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

#record-dialog #feature-inspection,
#record-dialog #damage-inspection { padding: 18px 20px 22px; }

.source-event-evidence {
  margin-top: 19px;
  padding-top: 17px;
  border-top: 1px solid #aaa9a5;
}

.source-event-evidence h3 {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.3;
}

.source-event-evidence > p {
  max-width: 72ch;
  margin: 0;
  line-height: 1.55;
}

.source-event-findings {
  margin: 11px 0 16px;
  padding-left: 19px;
}

.source-event-findings li { margin: 0 0 6px; line-height: 1.5; }
.source-event-findings a { color: var(--selection); text-underline-offset: 2px; }
.source-event-evidence .source-event-link { margin: -5px 0 14px; font-size: 11px; }
.source-event-figures { display: grid; gap: 14px; }
.source-event-figures figure {
  margin: 0;
  border: 1px solid #c0bfbb;
  background: #fff;
}
.source-event-figures a { display: block; }
.source-event-figures a:focus-visible { outline: 2px solid var(--selection); outline-offset: -2px; }
.source-event-figures img {
  display: block;
  width: 100%;
  max-height: 410px;
  object-fit: contain;
  background: #fff;
}
.source-event-figures figcaption {
  padding: 8px 10px 9px;
  border-top: 1px solid #d1d0cc;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.source-event-evidence .source-event-citation {
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.source-event-citation a { color: var(--selection); text-underline-offset: 2px; }

.bridge-event-evidence a { color: var(--selection); text-underline-offset: 2px; }
.bridge-event-evidence > p + p { margin-top: 10px; }
.bridge-event-before,
.bridge-event-video {
  margin: 0 0 14px;
  border: 1px solid #c0bfbb;
  background: #111;
}
.bridge-event-before a { display: block; }
.bridge-event-before img {
  display: block;
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  background: #111;
}
.bridge-event-video video {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #111;
}
.sensitive-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}
.sensitive-media[hidden] { display: none; }
.sensitive-media-warning {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px;
  color: #f7f7f4;
  background: rgb(22 22 21 / 96%);
  text-align: center;
}
.sensitive-media-warning[hidden] { display: none; }
.sensitive-media-warning p { margin: 0; max-width: 54ch; line-height: 1.45; }
.sensitive-media-warning strong,
.sensitive-media-warning span { display: block; }
.sensitive-media-warning strong { margin-bottom: 5px; font-size: 14px; }
.sensitive-media-warning span { font-size: 12px; }
.sensitive-media-warning button {
  min-height: 36px;
  padding: 7px 16px;
  border: 1px solid #f0f0ec;
  color: #f7f7f4;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.sensitive-media-warning button:hover,
.sensitive-media-warning button:focus-visible {
  color: #171717;
  background: #f7f7f4;
}
.sensitive-media-compact .sensitive-media-warning { gap: 9px; padding: 12px 15px; }
.sensitive-media-compact .sensitive-media-warning strong { font-size: 12px; }
.sensitive-media-compact .sensitive-media-warning span { font-size: 10.5px; line-height: 1.3; }
.sensitive-media-compact .sensitive-media-warning button { min-height: 30px; padding: 5px 12px; font-size: 11px; }
.bridge-event-before figcaption,
.bridge-event-video figcaption {
  padding: 8px 10px 9px;
  border-top: 1px solid #d1d0cc;
  color: var(--muted);
  background: #fff;
  font-size: 11px;
  line-height: 1.45;
}

#help-dialog::backdrop {
  background: rgb(23 23 23 / 32%);
  backdrop-filter: blur(1.5px);
}

#information-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(23 23 23 / 72%);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 46px rgb(23 23 23 / 28%);
}

#information-dialog::backdrop {
  background: rgb(23 23 23 / 36%);
  backdrop-filter: blur(1.5px);
}

.information-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 15px 14px 19px;
  border-bottom: 1px solid var(--line);
}

.information-eyebrow {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.information-dialog-header h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 17px;
}

#information-close {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

#information-close:hover { background: #e3e3df; }
#information-close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.information-dialog-body {
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  padding: 0 20px 22px;
  overscroll-behavior: contain;
}

.solidarity-statement,
.information-section { padding: 18px 0; }
.information-section { border-top: 1px solid var(--line); }
.solidarity-statement { margin-top: 18px; padding-top: 0; border-left: 0; }
.solidarity-statement h3,
.information-section h3 { margin: 0 0 9px; font-size: 13px; font-weight: 600; }
.solidarity-statement p,
.information-section p { margin: 0; line-height: 1.55; }
.solidarity-statement p + p,
.information-section p + p { margin-top: 9px; }

.information-credits {
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr);
  gap: 0;
  margin: 0;
  border-top: 1px solid #c9c8c4;
}

.information-credits dt,
.information-credits dd { padding: 7px 8px; border-bottom: 1px solid #c9c8c4; }
.information-credits dt { color: #4f4f4c; font-size: 11.5px; font-weight: 600; }
.information-credits dd { border-left: 1px solid #c9c8c4; font-family: inherit; font-variant-numeric: normal; line-height: 1.45; }

#information-dialog a {
  color: var(--selection);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

#information-dialog .author-mail-link,
#information-dialog .institution-link {
  color: inherit;
  text-decoration: none;
}

#information-dialog .author-mail-link:hover,
#information-dialog .institution-link:hover,
#information-dialog .author-mail-link:focus-visible,
#information-dialog .institution-link:focus-visible {
  color: var(--selection);
  text-decoration: underline;
}

.credit-contact-list {
  display: grid;
  gap: 3px;
}

.information-nkua-logo {
  display: block;
  width: min(270px, 72%);
  margin: 22px auto 2px;
  text-decoration: none;
}

.information-nkua-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.information-nkua-logo:hover {
  opacity: 0.84;
}

.information-nkua-logo:focus-visible {
  outline: 2px solid var(--selection);
  outline-offset: 5px;
}

.citation-text {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13px;
}

#copy-citation { margin-top: 12px; }
.visit-count { display: flex; align-items: baseline; gap: 10px; }
.visit-count strong { font: 600 30px/1 Georgia, 'Times New Roman', serif; font-variant-numeric: tabular-nums; }
.visit-count span { color: var(--muted); font-size: 12px; }
.visit-note { margin-top: 8px !important; color: var(--muted); font-size: 10.5px; }

#layer-list-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: min(760px, calc(100% - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(23 23 23 / 72%);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 46px rgb(23 23 23 / 28%);
}

#layer-list-dialog::backdrop {
  background: rgb(23 23 23 / 36%);
  backdrop-filter: blur(1.5px);
}

.layer-dialog-header { padding: 15px 14px 13px 17px; }
#layer-list-summary { margin: 4px 0 0; color: var(--muted); font-size: 11px; }

#layer-feature-list {
  max-height: min(650px, calc(100vh - 142px));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.layer-feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 57px;
  padding: 9px 13px 9px 17px;
  border-bottom: 1px solid #d2d2d0;
}

.layer-feature-row:last-child { border-bottom: 0; }
.layer-feature-copy { min-width: 0; }
.layer-feature-copy strong { display: block; overflow: hidden; font-size: 12px; font-weight: 600; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.layer-feature-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 10.5px; line-height: 1.25; }

.layer-feature-locate {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-color: #8a8a87;
  background: transparent;
  font-size: 11px;
}

.layer-feature-locate:hover { border-color: var(--ink); background: #e3e3df; }
.layer-feature-locate svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.help-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px 12px 16px;
  border-bottom: 1px solid var(--line);
}

.help-dialog-header h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 15px;
}

#help-close {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

#help-close:hover { background: #e3e3df; }
#help-close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.help-dialog-body { max-height: calc(100vh - 110px); overflow: auto; padding: 15px 16px 17px; }
.help-shortcuts { grid-template-columns: 126px 1fr; gap: 9px 14px; margin: 0; }
.help-shortcuts dt { color: var(--ink); }
.help-shortcuts dd { font-family: inherit; font-variant-numeric: normal; }
.help-shortcuts kbd { font: 600 12px/1.35 Arial, Helvetica, sans-serif; }

dl { display: grid; grid-template-columns: 145px 1fr; gap: 4px 10px; margin: 9px 0; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; font-family: Consolas, "Courier New", monospace; font-variant-numeric: tabular-nums; }
.inspection-table {
  grid-template-columns: minmax(124px, 38%) minmax(0, 1fr);
  gap: 0;
  margin: 0;
  border-top: 1px solid #aaa9a5;
}
.inspection-table-rows { display: contents; }
.inspection-table dt,
.inspection-table dd {
  min-width: 0;
  padding: 8px 9px;
  border-bottom: 1px solid #c9c8c4;
}
.inspection-table dt {
  background: #e9e9e5;
  color: #4f4f4c;
  font-size: 11.5px;
  font-weight: 600;
}
.inspection-table dd {
  border-left: 1px solid #c9c8c4;
  background: #f7f7f4;
  color: var(--ink);
  line-height: 1.4;
}
#feature-name,
#feature-type,
#damage-name,
#damage-asset-type,
#damage-assessment,
#damage-evidence { font-family: inherit; font-variant-numeric: normal; }
#damage-assessment { font-weight: 600; }
#damage-inspection[data-status="destroyed"] #damage-assessment { color: #6d2b8d; }
#damage-inspection[data-status="damaged"] #damage-assessment { color: #81500b; }
#damage-inspection[data-status="cluster"] #damage-assessment { color: #155e68; }
.damage-sources h2 { margin-top: 20px; }
#damage-source-list { margin: 0; padding: 0; list-style: none; }
#damage-source-list li { padding: 10px 0; }
#damage-source-list li + li { border-top: 1px solid #d2d2d2; }
#damage-source-list a {
  color: var(--selection);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
#damage-source-list a:hover { color: #003f52; }
#damage-source-list span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.damage-context-evidence {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.damage-context-evidence h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 13px;
}
#damage-context-scope {
  max-width: 62ch;
  margin: 5px 0 13px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}
#damage-context-media {
  margin: 0 0 14px;
  border: 1px solid #c6c5c1;
  background: #e7e7e3;
}
#damage-context-media > a { display: block; }
#damage-context-media > a:focus-visible { outline: 2px solid var(--selection); outline-offset: -2px; }
#damage-context-media img {
  display: block;
  width: 100%;
  max-height: 310px;
  object-fit: contain;
}
#damage-context-media figcaption {
  padding: 6px 8px;
  border-top: 1px solid #c6c5c1;
  background: #f1f1ee;
  font-size: 10.5px;
}
#damage-context-media figcaption a,
#damage-context-source-list a {
  color: var(--selection);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
#damage-context-source-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid #c9c8c4;
  list-style: none;
}
#damage-context-source-list li {
  padding: 10px 9px 11px;
  border-right: 1px solid #c9c8c4;
  border-bottom: 1px solid #c9c8c4;
  border-left: 1px solid #c9c8c4;
  background: #f7f7f4;
}
#damage-context-source-list span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
}
#damage-context-source-list p {
  margin: 5px 0 0;
  color: #3f3f3c;
  font-size: 11.5px;
  line-height: 1.45;
}
#zoom-to-damage-cluster { margin-top: 14px; }
.coordinate-reference { margin-top: 0; }
#measure-from-point { margin-top: 10px; }

#measurement-instruction { margin: 0 0 13px; color: var(--ink); }

.measurement-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: center;
  margin: 0 0 14px;
}
.measurement-step { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 7px; color: var(--muted); }
.measurement-step strong { display: block; color: var(--ink); font-weight: 600; }
.measurement-step small { display: block; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.endpoint-letter { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--muted); font-weight: 600; }
.measurement-connector { height: 1px; background: var(--line); }
.measurement-step.is-current .endpoint-letter { border-color: var(--selection); background: var(--selection); color: #fff; }
.measurement-step.is-complete .endpoint-letter { border-color: var(--selection); color: var(--selection); }

.measurement-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 4px 0 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.measurement-summary div { min-width: 0; padding-right: 12px; }
.measurement-summary div + div { padding-right: 0; padding-left: 12px; border-left: 1px solid var(--line); }
.measurement-summary dt { margin-bottom: 4px; font-size: 11px; }
.measurement-summary dd { font-size: 17px; font-weight: 600; }
#new-measurement { margin-top: 12px; }
#terrain-analysis-instruction { margin: 0 0 13px; color: var(--ink); }
.terrain-analysis-metrics { margin-top: 14px; }
.terrain-analysis-metrics dd { font-weight: 600; text-align: right; }
#terrain-analysis-method-note { margin: 10px 0 0; font-size: 11px; line-height: 1.45; }
#terrain-analysis-profile-region { margin-top: 18px; }
#terrain-analysis-profile-region h2 { margin-bottom: 7px; }
#terrain-analysis-profile { display: block; width: 100%; height: 280px; background: #fafaf8; }
#new-terrain-analysis { margin-top: 14px; }
.profile-region { min-height: 32px; }
#cross-profile-status { margin: 10px 0; color: var(--muted); }

#cross-section,
#longitudinal-profile { display: block; width: 100%; margin-top: 6px; background: #fafaf8; }
#cross-section { height: 300px; }
#longitudinal-profile { height: 255px; }
.profile-grid { stroke: #d2d2d2; stroke-width: 1; vector-effect: non-scaling-stroke; }
.profile-axis { stroke: #333; stroke-width: 1; vector-effect: non-scaling-stroke; }
.profile-line { fill: none; stroke: #171717; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.profile-center { stroke: var(--route); stroke-width: 1; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.profile-label { fill: #333; font: 11px Arial, Helvetica, sans-serif; }

@media (max-width: 850px) {
  html,
  body { overflow: auto; }
  #application { grid-template-columns: 1fr; grid-template-rows: 62vh auto; height: auto; min-height: 100%; }
  #terrain-panel { height: 62vh; }
  #inspector { border-top: 1px solid var(--line); border-left: 0; }
  #panel-body { overflow: visible; }
}

@media (max-width: 560px) {
  #layers-button { top: 10px; left: 10px; }
  #scene-mode-switch { top: 12px; left: 52px; }
  #scene-mode-switch button { min-width: 36px; padding: 0 7px; }
  #terrain-analysis-tools { top: 12px; left: 132px; }
  #guided-journey-launch { top: 49px; left: 10px; height: 30px; }
  #guided-journey-controls {
    bottom: 8px;
    width: calc(100% - 16px);
    gap: 8px 7px;
    padding: 9px 8px 8px 11px;
  }
  .guided-journey-action-label { display: none; }
  .guided-journey-speed-control { gap: 0; padding: 0 5px; }
  .guided-journey-speed-control > span { display: none; }
  .guided-journey-speed-control select { width: 52px; }
  .guided-journey-actions button { width: 32px; min-width: 32px; padding: 0; }
  #terrain-panel[data-guided-journey] #elevation-legend,
  #terrain-panel[data-guided-journey] #imagery-legend { bottom: 84px; }
  #terrain-panel[data-guided-journey] #orientation-3d { bottom: 58px; }
  #terrain-2d .ol-zoom { top: 54px; left: 10px; }
  #terrain-2d .ol-scale-line { bottom: 31px; left: 10px; }
  .gis2d-north-indicator { top: 52px; right: 10px; }
  .gis2d-provider-credit { right: 10px; bottom: 7px; left: 10px; max-width: none; width: fit-content; }
  #layers-drawer { width: min(310px, calc(100% - 10px)); }
  .layers-drawer-header { padding-top: 14px; }
  #layer-list-dialog { width: calc(100% - 18px); max-height: calc(100% - 18px); }
  .layer-feature-row { gap: 10px; padding-left: 14px; }
  #information-dialog { width: calc(100% - 18px); max-height: calc(100% - 18px); }
  #record-dialog { width: calc(100% - 18px); max-height: calc(100% - 18px); }
  #record-dialog #feature-inspection,
  #record-dialog #damage-inspection { padding-right: 15px; padding-left: 15px; }
  .information-dialog-body { padding-right: 15px; padding-left: 15px; }
  .information-credits { grid-template-columns: 125px minmax(0, 1fr); }
  .information-nkua-logo { width: min(235px, 82%); margin-top: 20px; }
  #elevation-legend {
    top: auto;
    right: 10px;
    bottom: 12px;
    width: min(184px, calc(100% - 136px));
  }
  #imagery-legend {
    top: auto;
    right: 10px;
    bottom: 12px;
    width: min(220px, calc(100% - 136px));
  }
  #orientation-3d { bottom: -8px; width: 104px; height: 104px; }
  #overview-context-map { width: 96px; height: 66px; }
  .basemap-control { grid-template-columns: minmax(0, 1fr) 132px; }
  .basemap-control select { width: 132px; }
}
