﻿:root {
  color-scheme: dark;
  --bg: #01172f;
  --map-bg: #0c2848;
  --text: #f2f5fa;
  --muted: #b9cce0;
  --line: #324b68;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font-family: Segoe UI, Aptos, system-ui, sans-serif; }
.app { height: 100%; display: grid; grid-template-columns: 310px minmax(0, 1fr); }
.panel { z-index: 500; background: var(--bg); overflow-y: auto; box-shadow: 10px 0 28px #00102355; }
header { padding: 25px 24px 23px; }
h1 { font: 500 29px/1.03 Georgia, serif; letter-spacing: -.025em; margin: 0; }
section.threshold, .panel > section:not(.threshold) { border-top: 1px solid var(--line); padding: 17px 24px; }
.threshold-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; }
.threshold output { font: inherit; color: inherit; font-variant-numeric: tabular-nums; }
.threshold input { width: 100%; accent-color: #e8794e; margin: 18px 0 3px; }
.scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.area-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 18px; font-size: 13px; }
.area-summary strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.area-summary span { color: var(--muted); font-variant-numeric: tabular-nums; }
h2 { font-size: 13px; margin: 0 0 12px; font-weight: 600; color: #d7e4f1; }
.choice { display: flex; align-items: center; gap: 11px; min-height: 33px; font-size: 13px; cursor: pointer; }
.choice input { width: 16px; height: 16px; accent-color: #e8bd73; margin: 0; }
.choice:focus-within, input:focus-visible { outline: 2px solid #e8bd73; outline-offset: 3px; }
.key { width: 17px; height: 17px; border-radius: 3px; display: inline-block; flex: none; }
.key.terrain { background: #ae9f6e; }
.key.steep { background: #dc4426; }
.key.aerial { background: #769279; }
.key.sections { border: 2px solid #ffe9a9; }
.key.roads { background: #f8f7ec; }
.key.water { background: #65b9d0; }
.key.inhouse { background: #40ddbf; }
.key.robotic { background: #be86e5; }
#status:not(.sr-only) { margin: 18px 24px; color: #ffcfad; font-size: 12px; line-height: 1.4; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.map-wrap, #map { min-width: 0; min-height: 0; width: 100%; height: 100%; }
#map, .leaflet-container { background: var(--map-bg); }
.leaflet-container { font: 13px Segoe UI, Aptos, system-ui, sans-serif; }
.leaflet-tooltip { background: #f7f4e9; color: #173229; border: 0; box-shadow: 0 4px 14px #0004; }
::selection { background: #e7ba6b; color: #16291e; }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-thumb { background: #6483a4; border: 2px solid var(--bg); border-radius: 8px; }
@media (max-width: 760px) {
  .app { display: flex; flex-direction: column; }
  .panel { max-height: 44vh; flex: none; }
  header { padding: 13px 18px; }
  h1 { font-size: 23px; }
  .panel > section:not(.threshold), section.threshold { padding: 10px 18px; }
  .panel > section:not(.threshold) .choice { display: inline-flex; margin-right: 13px; }
  .map-wrap { flex: 1; height: auto; }
}
