/* node_modules/leaflet/dist/leaflet.css */
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
}
.leaflet-container {
  overflow: hidden;
}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
.leaflet-tile::selection {
  background: transparent;
}
.leaflet-safari .leaflet-tile {
  image-rendering: -webkit-optimize-contrast;
}
.leaflet-safari .leaflet-tile-container {
  width: 1600px;
  height: 1600px;
  -webkit-transform-origin: 0 0;
}
.leaflet-marker-icon,
.leaflet-marker-shadow {
  display: block;
}
.leaflet-container .leaflet-overlay-pane svg {
  max-width: none !important;
  max-height: none !important;
}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
  max-width: none !important;
  max-height: none !important;
  width: auto;
  padding: 0;
}
.leaflet-container img.leaflet-tile {
  mix-blend-mode: plus-lighter;
}
.leaflet-container.leaflet-touch-zoom {
  -ms-touch-action: pan-x pan-y;
  touch-action: pan-x pan-y;
}
.leaflet-container.leaflet-touch-drag {
  -ms-touch-action: pinch-zoom;
  touch-action: none;
  touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
  -ms-touch-action: none;
  touch-action: none;
}
.leaflet-container {
  -webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
  -webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
  filter: inherit;
  visibility: hidden;
}
.leaflet-tile-loaded {
  visibility: inherit;
}
.leaflet-zoom-box {
  width: 0;
  height: 0;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  z-index: 800;
}
.leaflet-overlay-pane svg {
  -moz-user-select: none;
}
.leaflet-pane {
  z-index: 400;
}
.leaflet-tile-pane {
  z-index: 200;
}
.leaflet-overlay-pane {
  z-index: 400;
}
.leaflet-shadow-pane {
  z-index: 500;
}
.leaflet-marker-pane {
  z-index: 600;
}
.leaflet-tooltip-pane {
  z-index: 650;
}
.leaflet-popup-pane {
  z-index: 700;
}
.leaflet-map-pane canvas {
  z-index: 100;
}
.leaflet-map-pane svg {
  z-index: 200;
}
.leaflet-vml-shape {
  width: 1px;
  height: 1px;
}
.lvml {
  behavior: url(#default#VML);
  display: inline-block;
  position: absolute;
}
.leaflet-control {
  position: relative;
  z-index: 800;
  pointer-events: visiblePainted;
  pointer-events: auto;
}
.leaflet-top,
.leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}
.leaflet-top {
  top: 0;
}
.leaflet-right {
  right: 0;
}
.leaflet-bottom {
  bottom: 0;
}
.leaflet-left {
  left: 0;
}
.leaflet-control {
  float: left;
  clear: both;
}
.leaflet-right .leaflet-control {
  float: right;
}
.leaflet-top .leaflet-control {
  margin-top: 10px;
}
.leaflet-bottom .leaflet-control {
  margin-bottom: 10px;
}
.leaflet-left .leaflet-control {
  margin-left: 10px;
}
.leaflet-right .leaflet-control {
  margin-right: 10px;
}
.leaflet-fade-anim .leaflet-popup {
  opacity: 0;
  -webkit-transition: opacity 0.2s linear;
  -moz-transition: opacity 0.2s linear;
  transition: opacity 0.2s linear;
}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
  opacity: 1;
}
.leaflet-zoom-animated {
  -webkit-transform-origin: 0 0;
  -ms-transform-origin: 0 0;
  transform-origin: 0 0;
}
svg.leaflet-zoom-animated {
  will-change: transform;
}
.leaflet-zoom-anim .leaflet-zoom-animated {
  -webkit-transition: -webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);
  -moz-transition: -moz-transform 0.25s cubic-bezier(0, 0, 0.25, 1);
  transition: transform 0.25s cubic-bezier(0, 0, 0.25, 1);
}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
  -webkit-transition: none;
  -moz-transition: none;
  transition: none;
}
.leaflet-zoom-anim .leaflet-zoom-hide {
  visibility: hidden;
}
.leaflet-interactive {
  cursor: pointer;
}
.leaflet-grab {
  cursor: -webkit-grab;
  cursor: -moz-grab;
  cursor: grab;
}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
  cursor: crosshair;
}
.leaflet-popup-pane,
.leaflet-control {
  cursor: auto;
}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
  cursor: move;
  cursor: -webkit-grabbing;
  cursor: -moz-grabbing;
  cursor: grabbing;
}
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
  pointer-events: none;
}
.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
  pointer-events: visiblePainted;
  pointer-events: auto;
}
.leaflet-container {
  background: #ddd;
  outline-offset: 1px;
}
.leaflet-container a {
  color: #0078A8;
}
.leaflet-zoom-box {
  border: 2px dotted #38f;
  background: rgba(255, 255, 255, 0.5);
}
.leaflet-container {
  font-family:
    "Helvetica Neue",
    Arial,
    Helvetica,
    sans-serif;
  font-size: 12px;
  font-size: 0.75rem;
  line-height: 1.5;
}
.leaflet-bar {
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
  border-radius: 4px;
}
.leaflet-bar a {
  background-color: #fff;
  border-bottom: 1px solid #ccc;
  width: 26px;
  height: 26px;
  line-height: 26px;
  display: block;
  text-align: center;
  text-decoration: none;
  color: black;
}
.leaflet-bar a,
.leaflet-control-layers-toggle {
  background-position: 50% 50%;
  background-repeat: no-repeat;
  display: block;
}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
  background-color: #f4f4f4;
}
.leaflet-bar a:first-child {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}
.leaflet-bar a:last-child {
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  border-bottom: none;
}
.leaflet-bar a.leaflet-disabled {
  cursor: default;
  background-color: #f4f4f4;
  color: #bbb;
}
.leaflet-touch .leaflet-bar a {
  width: 30px;
  height: 30px;
  line-height: 30px;
}
.leaflet-touch .leaflet-bar a:first-child {
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
}
.leaflet-touch .leaflet-bar a:last-child {
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
}
.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
  font:
    bold 18px "Lucida Console",
    Monaco,
    monospace;
  text-indent: 1px;
}
.leaflet-touch .leaflet-control-zoom-in,
.leaflet-touch .leaflet-control-zoom-out {
  font-size: 22px;
}
.leaflet-control-layers {
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
  background: #fff;
  border-radius: 5px;
}
.leaflet-control-layers-toggle {
  background-image: url("/assets/layers-55W3Q4RM.png");
  width: 36px;
  height: 36px;
}
.leaflet-retina .leaflet-control-layers-toggle {
  background-image: url("/assets/layers-2x-TBM42ERR.png");
  background-size: 26px 26px;
}
.leaflet-touch .leaflet-control-layers-toggle {
  width: 44px;
  height: 44px;
}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
  display: none;
}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
  display: block;
  position: relative;
}
.leaflet-control-layers-expanded {
  padding: 6px 10px 6px 6px;
  color: #333;
  background: #fff;
}
.leaflet-control-layers-scrollbar {
  overflow-y: scroll;
  overflow-x: hidden;
  padding-right: 5px;
}
.leaflet-control-layers-selector {
  margin-top: 2px;
  position: relative;
  top: 1px;
}
.leaflet-control-layers label {
  display: block;
  font-size: 13px;
  font-size: 1.08333em;
}
.leaflet-control-layers-separator {
  height: 0;
  border-top: 1px solid #ddd;
  margin: 5px -10px 5px -6px;
}
.leaflet-default-icon-path {
  background-image: url("/assets/marker-icon-2V3QKKVC.png");
}
.leaflet-container .leaflet-control-attribution {
  background: #fff;
  background: rgba(255, 255, 255, 0.8);
  margin: 0;
}
.leaflet-control-attribution,
.leaflet-control-scale-line {
  padding: 0 5px;
  color: #333;
  line-height: 1.4;
}
.leaflet-control-attribution a {
  text-decoration: none;
}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
  text-decoration: underline;
}
.leaflet-attribution-flag {
  display: inline !important;
  vertical-align: baseline !important;
  width: 1em;
  height: 0.6669em;
}
.leaflet-left .leaflet-control-scale {
  margin-left: 5px;
}
.leaflet-bottom .leaflet-control-scale {
  margin-bottom: 5px;
}
.leaflet-control-scale-line {
  border: 2px solid #777;
  border-top: none;
  line-height: 1.1;
  padding: 2px 5px 1px;
  white-space: nowrap;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.8);
  text-shadow: 1px 1px #fff;
}
.leaflet-control-scale-line:not(:first-child) {
  border-top: 2px solid #777;
  border-bottom: none;
  margin-top: -2px;
}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
  border-bottom: 2px solid #777;
}
.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
  box-shadow: none;
}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
  border: 2px solid rgba(0, 0, 0, 0.2);
  background-clip: padding-box;
}
.leaflet-popup {
  position: absolute;
  text-align: center;
  margin-bottom: 20px;
}
.leaflet-popup-content-wrapper {
  padding: 1px;
  text-align: left;
  border-radius: 12px;
}
.leaflet-popup-content {
  margin: 13px 24px 13px 20px;
  line-height: 1.3;
  font-size: 13px;
  font-size: 1.08333em;
  min-height: 1px;
}
.leaflet-popup-content p {
  margin: 17px 0;
  margin: 1.3em 0;
}
.leaflet-popup-tip-container {
  width: 40px;
  height: 20px;
  position: absolute;
  left: 50%;
  margin-top: -1px;
  margin-left: -20px;
  overflow: hidden;
  pointer-events: none;
}
.leaflet-popup-tip {
  width: 17px;
  height: 17px;
  padding: 1px;
  margin: -10px auto 0;
  pointer-events: auto;
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: white;
  color: #333;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
}
.leaflet-container a.leaflet-popup-close-button {
  position: absolute;
  top: 0;
  right: 0;
  border: none;
  text-align: center;
  width: 24px;
  height: 24px;
  font:
    16px/24px Tahoma,
    Verdana,
    sans-serif;
  color: #757575;
  text-decoration: none;
  background: transparent;
}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
  color: #585858;
}
.leaflet-popup-scrolled {
  overflow: auto;
}
.leaflet-oldie .leaflet-popup-content-wrapper {
  -ms-zoom: 1;
}
.leaflet-oldie .leaflet-popup-tip {
  width: 24px;
  margin: 0 auto;
  -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
  filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
}
.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
  border: 1px solid #999;
}
.leaflet-div-icon {
  background: #fff;
  border: 1px solid #666;
}
.leaflet-tooltip {
  position: absolute;
  padding: 6px;
  background-color: #fff;
  border: 1px solid #fff;
  border-radius: 3px;
  color: #222;
  white-space: nowrap;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.leaflet-tooltip.leaflet-interactive {
  cursor: pointer;
  pointer-events: auto;
}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
  position: absolute;
  pointer-events: none;
  border: 6px solid transparent;
  background: transparent;
  content: "";
}
.leaflet-tooltip-bottom {
  margin-top: 6px;
}
.leaflet-tooltip-top {
  margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
  left: 50%;
  margin-left: -6px;
}
.leaflet-tooltip-top:before {
  bottom: 0;
  margin-bottom: -12px;
  border-top-color: #fff;
}
.leaflet-tooltip-bottom:before {
  top: 0;
  margin-top: -12px;
  margin-left: -6px;
  border-bottom-color: #fff;
}
.leaflet-tooltip-left {
  margin-left: -6px;
}
.leaflet-tooltip-right {
  margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
  top: 50%;
  margin-top: -6px;
}
.leaflet-tooltip-left:before {
  right: 0;
  margin-right: -12px;
  border-left-color: #fff;
}
.leaflet-tooltip-right:before {
  left: 0;
  margin-left: -12px;
  border-right-color: #fff;
}
@media print {
  .leaflet-control {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* web/src/styles.css */
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/public-sans-latin-400-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+2000-206F,
    U+2190-21FF;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/public-sans-latin-500-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/public-sans-latin-600-normal.woff2) format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2");
}
:root {
  --ground:#171719;
  --surface:#131217;
  --raised:#212023;
  --control:#3a3a3e;
  --ink:#ffffff;
  --muted:#a7a7ae;
  --quiet:#94949c;
  --amber:#f0a63a;
  --amber-mid:#b57c26;
  --amber-old:#c09a56;
  --accent-blue:#4d8dd6;
  --err:#e06c5a;
  --fs-body:13px;
  --fs-label:12px;
  --fs-h1:20px;
  --ease:cubic-bezier(.23,1,.32,1);
  --rail:56px;
  --hdr:58px;
  --panel-w:400px;
  --safe-t:env(safe-area-inset-top,0px);
  --safe-b:env(safe-area-inset-bottom,0px);
  --safe-l:env(safe-area-inset-left,0px);
  --safe-r:env(safe-area-inset-right,0px);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
}
body {
  background: var(--ground);
  color: var(--ink);
  font:
    var(--fs-body)/1.45 "Public Sans",
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
h1,
h2,
p,
ul {
  margin: 0;
}
ul {
  list-style: none;
  padding: 0;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
.hidden,
[hidden] {
  display: none !important;
}
.mono {
  font-family:
    "IBM Plex Mono",
    ui-monospace,
    Menlo,
    monospace;
}
:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}
::selection {
  background: var(--control);
  color: var(--ink);
}
.login {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--ground);
}
.login-box {
  width: 100%;
  max-width: 340px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  margin-bottom: 28px;
}
.brand-name {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .01em;
}
.login h1 {
  font-size: var(--fs-h1);
  font-weight: 600;
  letter-spacing: -.01em;
}
.login-sub {
  color: var(--muted);
  font-size: var(--fs-body);
  margin: 6px 0 24px;
}
#login-form {
  display: grid;
  gap: 6px;
}
label {
  font-size: var(--fs-label);
  color: var(--muted);
  margin-top: 10px;
}
input,
select {
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 4px;
  background: var(--raised);
  border: 1px solid var(--control);
  color: var(--ink);
  font: var(--fs-body) "Public Sans", sans-serif;
}
input::placeholder {
  color: var(--quiet);
}
input:hover,
select:hover {
  border-color: #4a4a50;
}
.form-error {
  color: var(--err);
  font-size: var(--fs-label);
  margin-top: 8px;
}
button.btn {
  min-height: 40px;
  min-width: 44px;
  padding: 8px 14px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 500;
  transition: transform 160ms var(--ease), opacity 160ms var(--ease);
}
button.btn:active {
  transform: translateY(1px);
}
button.btn[disabled] {
  opacity: .45;
  cursor: default;
  transform: none;
}
button.btn-quiet {
  background: var(--raised);
  color: var(--ink);
  border: 1px solid var(--control);
}
#login-form .btn {
  margin-top: 20px;
}
#app {
  position: fixed;
  inset: 0;
  padding: 0 var(--safe-r) var(--safe-b) var(--safe-l);
}
.map {
  position: absolute;
  z-index: 0;
  top: var(--hdr);
  left: var(--rail);
  right: 0;
  bottom: 0;
  background: var(--ground);
}
.leaflet-container {
  background: var(--ground);
  font: inherit;
}
.lightning-osm-tiles {
  filter: grayscale(1) invert(1) contrast(.8);
}
.obs-row {
  width: 100%;
  min-height: 40px;
  overflow-wrap: anywhere;
}
.leaflet-control-attribution {
  background: var(--surface) !important;
  color: var(--quiet) !important;
  font-size: 11px !important;
  border-radius: 3px 0 0 0;
}
.leaflet-control-attribution a {
  color: var(--muted) !important;
}
.leaflet-bar,
.leaflet-control-zoom {
  display: none;
}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--control);
  border-radius: 4px;
  box-shadow: none;
}
.leaflet-popup-content {
  font-size: var(--fs-body);
}
.rail {
  position: absolute;
  z-index: 600;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 0;
  background: var(--surface);
  border-right: 1px solid var(--raised);
}
.rail-brand {
  display: grid;
  place-items: center;
  height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.rail-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  color: var(--muted);
  transition: transform 160ms var(--ease), opacity 160ms var(--ease);
}
.rail-btn:active {
  transform: scale(.94);
}
.rail-btn:hover {
  color: var(--ink);
}
.rail-btn[aria-pressed=true] {
  color: var(--ink);
  box-shadow: inset 1px 0 0 var(--accent-blue);
}
.rail-spacer {
  flex: 1;
}
.header {
  position: absolute;
  z-index: 590;
  top: 0;
  left: var(--rail);
  right: 0;
  height: calc(var(--hdr) + var(--safe-t));
  padding: var(--safe-t) 16px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--raised);
}
.header-product {
  font-weight: 600;
  font-size: 14px;
  min-width: 0;
}
.header-scope {
  font-size: var(--fs-label);
  color: var(--muted);
  border: 1px solid var(--control);
  border-radius: 3px;
  padding: 2px 6px;
  flex: none;
}
.header-fill {
  flex: 1;
}
.conn {
  font-size: var(--fs-label);
  color: var(--muted);
  min-width: 0;
  overflow-wrap: anywhere;
}
.conn::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--quiet);
  margin-right: 6px;
  vertical-align: 1px;
}
.conn[data-state=connected]::before {
  background: var(--amber);
}
.conn[data-state=error]::before {
  background: var(--err);
}
.map-controls {
  position: absolute;
  z-index: 580;
  top: calc(var(--hdr) + var(--safe-t) + 8px);
  right: 12px;
  display: grid;
  gap: 6px;
}
.map-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--control);
  color: var(--muted);
  transition: transform 160ms var(--ease), opacity 160ms var(--ease);
}
.map-btn:active {
  transform: scale(.94);
}
.map-btn:hover {
  color: var(--ink);
}
.panel {
  position: absolute;
  z-index: 585;
  top: calc(var(--hdr) + var(--safe-t) + 24px);
  left: calc(var(--rail) + 24px);
  width: var(--panel-w);
  max-height: calc(100dvh - var(--hdr) - 48px - var(--safe-b));
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 14px 10px;
}
.panel-head h1 {
  font-size: var(--fs-h1);
  font-weight: 600;
  letter-spacing: -.015em;
  flex: 1;
}
.panel-body {
  overflow-y: auto;
  padding: 0 14px 14px;
  scrollbar-width: thin;
}
.panel.collapsed .panel-body {
  display: none;
}
.section {
  padding-top: 12px;
  border-top: 1px solid var(--raised);
}
.section:first-child {
  border-top: 0;
}
.winrow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 12px;
}
.win-btn {
  font-size: var(--fs-label);
  padding: 8px 4px;
  min-height: 44px;
  white-space: nowrap;
}
.win-btn[aria-pressed=true] {
  border-color: var(--accent-blue);
  box-shadow: inset 0 -1px 0 var(--accent-blue);
}
.summary {
  margin-bottom: 10px;
}
.stat-label {
  font-size: var(--fs-label);
  color: var(--muted);
}
.stat-value {
  font-size: 22px;
  font-weight: 600;
}
.stat-meta,
#updated-at {
  font-size: var(--fs-label);
  color: var(--muted);
}
#updated-at,
#observation-count {
  font-family:
    "IBM Plex Mono",
    ui-monospace,
    monospace;
}
.list-status {
  font-size: var(--fs-label);
  color: var(--quiet);
  padding: 6px 0;
}
.obs-list {
  max-height: 200px;
  overflow-y: auto;
}
.obs-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 6px 4px;
  border-top: 1px solid var(--raised);
  font-family:
    "IBM Plex Mono",
    ui-monospace,
    monospace;
  font-size: 12px;
  color: var(--muted);
}
.obs-list li button {
  padding: 0;
  color: var(--ink);
  text-align: left;
  font: inherit;
}
.obs-list li button:hover {
  text-decoration: underline;
}
.note {
  font-size: 11px;
  color: var(--quiet);
  padding: 8px 0;
  line-height: 1.4;
}
.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
#archive-form {
  display: grid;
  gap: 4px;
}
.legend {
  display: flex;
  gap: 12px;
  padding: 10px 0 2px;
  border-top: 1px solid var(--raised);
  margin-top: 12px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot-fresh {
  background: var(--amber);
}
.dot-mid {
  background: var(--amber-mid);
}
.dot-old {
  background: var(--amber-old);
}
@media (max-width: 540px) {
  .header {
    height: calc(52px + var(--safe-t));
    left: 0;
    top: 0;
    padding: var(--safe-t) 10px 0;
    display: grid;
    grid-template-columns: max-content max-content minmax(0, 1fr) auto;
    grid-template-rows: 20px 16px;
    align-content: center;
    gap: 0 8px;
  }
  .header-product {
    font-size: 13px;
    grid-column: 1;
    grid-row: 1;
    white-space: nowrap;
  }
  .header-scope {
    padding: 1px 5px;
    grid-column: 2;
    grid-row: 1;
  }
  .header-fill {
    display: none;
  }
  .conn {
    grid-column: 1 / 4;
    grid-row: 2;
    max-width: none;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #reconnect {
    grid-column: 4;
    grid-row: 1 / 3;
    min-height: 44px;
    padding: 8px 10px;
    font-size: 12px;
  }
  input,
  select {
    font-size: 16px;
  }
  .map {
    top: calc(52px + var(--safe-t));
    left: 0;
    bottom: calc(60px + var(--safe-b));
  }
  .rail {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    height: calc(60px + var(--safe-b));
    padding: 4px 8px var(--safe-b);
    flex-direction: row;
    justify-content: space-around;
    border-right: 0;
    border-top: 1px solid var(--raised);
  }
  .rail-brand,
  .rail-spacer {
    display: none;
  }
  .rail-btn {
    width: auto;
    min-width: 56px;
    height: 52px;
    gap: 2px;
    place-content: center;
  }
  .rail-btn::after {
    content: attr(data-label);
    font-size: 11px;
    color: inherit;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 64px;
  }
  .rail-btn[aria-pressed=true] {
    box-shadow: inset 0 1px 0 var(--accent-blue);
  }
  .map-controls {
    top: calc(52px + var(--safe-t) + 8px);
    right: 8px;
  }
  .panel {
    top: auto;
    bottom: calc(60px + var(--safe-b) + 28px);
    left: 8px;
    right: 8px;
    width: auto;
    max-height: 45dvh;
    border-radius: 6px;
  }
  .panel.collapsed .panel-head {
    min-height: 44px;
  }
  .obs-list {
    max-height: 26dvh;
  }
}
@media (min-width: 541px) and (max-width: 900px) {
  :root {
    --panel-w:280px;
  }
}
@media (hover: none) {
  .rail-btn:hover,
  .map-btn:hover {
    color: var(--muted);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: opacity 100ms linear !important;
    animation: none !important;
  }
  button.btn:active,
  .rail-btn:active,
  .map-btn:active {
    transform: none;
  }
}
.detector-marker {
  display: grid;
  place-items: center;
  background: none;
  border: 0;
}
.detector-pin {
  display: block;
  width: 28px;
  height: 35px;
  color: #eff6ff;
}
.detector-balloon {
  fill: #244b78;
  stroke: #8ab8f6;
}
.detector-marker:hover .detector-balloon,
.detector-marker:focus-visible .detector-balloon {
  fill: #34679d;
  stroke: #e0edff;
}
.detector-marker[data-link-state=online] .detector-balloon {
  fill: #193f37;
  stroke: #65c7a3;
}
.detector-marker[data-link-state=offline] .detector-balloon {
  fill: #442e24;
  stroke: #e4a16a;
}
.detector-marker[data-link-state=online]:hover .detector-balloon,
.detector-marker[data-link-state=online]:focus-visible .detector-balloon {
  fill: #22564b;
  stroke: #8fdcc0;
}
.detector-marker[data-link-state=offline]:hover .detector-balloon,
.detector-marker[data-link-state=offline]:focus-visible .detector-balloon {
  fill: #5a3d2f;
  stroke: #f0bd92;
}
.detector-marker[data-link-state=unknown]:hover .detector-balloon,
.detector-marker[data-link-state=unknown]:focus-visible .detector-balloon {
  fill: #34679d;
  stroke: #e0edff;
}
.detector-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  justify-content: space-between;
  text-align: left;
}
.det-status {
  font-size: var(--fs-label);
  color: var(--muted);
  border: 1px solid var(--control);
  border-radius: 3px;
  padding: 2px 6px;
  white-space: nowrap;
}
.det-status[data-link-state=online] {
  color: #8fdcc0;
  border-color: #65c7a3;
}
.det-status[data-link-state=offline] {
  color: #f0bd92;
  border-color: #e4a16a;
}
.lightning-history-tiles .leaflet-tile {
  opacity: 1 !important;
  transition: none !important;
}
.panel-body,
.section {
  min-width: 0;
}
.panel .row {
  flex-wrap: wrap;
}
.panel .row .btn {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
}
.panel input,
.panel select {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 360px) {
  .winrow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
#live-detector-filter {
  border: 1px solid var(--control);
  border-radius: 4px;
  background: var(--raised);
}
#live-detector-filter > summary {
  padding: 12px 8px;
  min-height: 44px;
  display: list-item;
  list-style-position: inside;
  cursor: pointer;
  color: var(--ink);
  font-size: var(--fs-body);
  margin: 0;
}
#live-detector-filter > summary:hover {
  color: var(--accent-blue);
}
#live-detector-filter[open] > summary {
  border-bottom: 1px solid var(--control);
  color: var(--muted);
}
#live-detector-options {
  max-height: 200px;
  overflow-y: auto;
  padding: 0 8px 4px;
}
#live-detector-options .station-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 8px 0;
  color: var(--ink);
  font-size: var(--fs-body);
}
#live-detector-options input[type=checkbox] {
  width: 16px;
  height: 16px;
  min-height: 0;
  flex: none;
  margin: 3px 0;
  padding: 0;
  background: none;
  border: 1px solid var(--control);
  border-radius: 2px;
  accent-color: var(--accent-blue);
}
#live-detector-options .station-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}
#live-detector-options .station-empty {
  color: var(--muted);
  font-size: var(--fs-label);
  margin: 8px 0;
}

/* <stdin> */
