:root {
  --storm-0: #0c1218;
  --sea: #101820;
  --land: #31404d;
  --land-ln: #5b7183;
  --grid: #23323f;

  --panel: #eaedef;
  --panel-2: #ffffff;
  --panel-ln: #d0d6db;
  --ink: #131a20;
  --ink-2: #5c6975;
  --ink-3: #8e9aa5;

  --corona: #f2a007;
  --on-dark: #e4eaf0;
  --on-dark-2: #93a2af;

  --r: 3px;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --cond: "IBM Plex Sans Condensed", "IBM Plex Sans", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --panel: #18212a;
    --panel-2: #1e2932;
    --panel-ln: #2c3945;
    --ink: #e4eaf0;
    --ink-2: #9aa8b5;
    --ink-3: #6c7c8a;
  }
}
:root[data-theme="dark"] {
  --panel: #18212a;
  --panel-2: #1e2932;
  --panel-ln: #2c3945;
  --ink: #e4eaf0;
  --ink-2: #9aa8b5;
  --ink-3: #6c7c8a;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--storm-0);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--corona);
  outline-offset: 2px;
}
.public-mode .admin-only,
.admin-mode .public-only {
  display: none !important;
}
.embed-mode .topbar {
  display: none;
}
.embed-mode .shell {
  height: 100dvh;
}

/* ── shell ─────────────────────────────────────────── */
.shell {
  display: flex;
  flex-direction: column;
  height: 100dvh;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 18px;
  background: var(--storm-0);
  border-bottom: 1px solid #223040;
  color: var(--on-dark);
  flex: 0 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.brand svg {
  flex: 0 0 auto;
}
.brand h1 {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 20px;
  margin: 0;
  line-height: 1.1;
  white-space: nowrap;
}
.brand p {
  margin: 1px 0 0;
  font-size: 11.5px;
  color: var(--on-dark-2);
  line-height: 1.3;
}

.tally {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-left: auto;
  padding-right: 4px;
}
.tally b {
  font-family: var(--cond);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.tally span {
  font-size: 11.5px;
  color: var(--on-dark-2);
}

.actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}
.btn {
  border: 1px solid #2f4152;
  background: transparent;
  color: var(--on-dark);
  padding: 7px 13px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 500;
  transition:
    background 0.12s ease,
    border-color 0.12s ease;
}
.btn:hover {
  background: #1b2833;
  border-color: #41586d;
}
.btn-primary {
  background: var(--corona);
  border-color: var(--corona);
  color: #22160a;
  font-weight: 600;
}
.btn-primary:hover {
  background: #ffb42a;
  border-color: #ffb42a;
}
.btn-ghost {
  border-color: transparent;
  color: var(--on-dark-2);
}
.btn-ghost:hover {
  background: #1b2833;
  color: var(--on-dark);
}

.body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

/* ── map ───────────────────────────────────────────── */
.mapwrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  background: var(--sea);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
#map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.maplibregl-canvas {
  outline: 0;
}
.maplibregl-ctrl-bottom-left,
.maplibregl-ctrl-bottom-right {
  font-family: var(--sans);
  font-size: 10px;
}
.maplibregl-ctrl-attrib {
  background: rgba(12, 18, 24, 0.76) !important;
  color: #aab5be;
}
.maplibregl-ctrl-attrib a {
  color: #dce4ea;
}

.map-marker {
  position: absolute;
  width: 28px;
  height: 39px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform-origin: 50% 100%;
  transition:
    opacity 0.18s ease,
    filter 0.18s ease;
}
.map-marker svg {
  display: block;
  width: 28px;
  height: 39px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55));
}
.map-marker .marker-label {
  position: absolute;
  left: 50%;
  top: 34px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--cond);
  font-size: 11px;
  font-weight: 600;
  color: #f3f6f8;
  text-shadow:
    -1px -1px 0 #0a1016,
    1px -1px 0 #0a1016,
    -1px 1px 0 #0a1016,
    1px 1px 0 #0a1016,
    0 2px 4px #0a1016;
  pointer-events: none;
}
.map-marker.dim {
  opacity: 0.2;
}
.map-marker.selected {
  filter: drop-shadow(0 0 7px rgba(242, 160, 7, 0.95));
}
.map-marker.selected .marker-label,
.map-marker.match .marker-label {
  color: #ffd98a;
}
.map-marker.hide-label .marker-label {
  display: none;
}

.maplibregl-popup {
  z-index: 7;
}
.maplibregl-popup-content {
  padding: 0;
  background: #0a1016;
  border: 1px solid #2a3a48;
  border-radius: 5px;
  overflow: hidden;
  color: var(--on-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.maplibregl-popup-tip {
  border-top-color: #0a1016 !important;
  border-bottom-color: #0a1016 !important;
}
.popup-card {
  width: 212px;
}
.popup-card img {
  display: block;
  width: 100%;
  height: 118px;
  object-fit: cover;
  background: #16202a;
}
.popup-card .popup-copy {
  padding: 8px 10px;
}
.popup-card b {
  font-family: var(--cond);
  font-size: 13.5px;
  display: block;
}
.popup-card span,
.popup-card code {
  display: block;
  color: var(--on-dark-2);
  font-size: 11px;
}
.popup-card code {
  font-family: var(--mono);
  margin-top: 4px;
  color: #7c8c9b;
}

.mapui {
  position: absolute;
  pointer-events: none;
}
.legend {
  left: 14px;
  bottom: 34px;
  background: rgba(12, 18, 24, 0.84);
  backdrop-filter: blur(6px);
  border: 1px solid #243441;
  border-radius: var(--r);
  padding: 9px 11px;
  color: var(--on-dark);
  pointer-events: auto;
  max-width: 210px;
}
.legend h3 {
  margin: 0 0 7px;
  font-family: var(--cond);
  font-size: 11px;
  font-weight: 600;
  color: var(--on-dark-2);
}
.legend ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}
.legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.legend li i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex: 0 0 auto;
}
.legend li em {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--on-dark-2);
  font-style: normal;
}

.zoomctl {
  right: 14px;
  bottom: 34px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: auto;
}
.zoomctl button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: rgba(12, 18, 24, 0.84);
  backdrop-filter: blur(6px);
  border: 1px solid #243441;
  border-radius: var(--r);
  color: var(--on-dark);
  font-size: 16px;
  line-height: 1;
}
.zoomctl button:hover {
  background: #1b2833;
}
.zoomctl button.wide {
  font-size: 10.5px;
  font-family: var(--cond);
  font-weight: 700;
  letter-spacing: 0.03em;
}
.zoomctl button[aria-pressed="false"] {
  color: #5a6b7a;
}
.basectl {
  right: 14px;
  top: 14px;
  display: flex;
  pointer-events: auto;
  background: rgba(12, 18, 24, 0.84);
  backdrop-filter: blur(6px);
  border: 1px solid #243441;
  border-radius: var(--r);
  overflow: hidden;
}
.basectl button {
  border: 0;
  border-right: 1px solid #243441;
  background: transparent;
  color: var(--on-dark-2);
  padding: 7px 10px;
  font-size: 11.5px;
  font-weight: 600;
}
.basectl button:last-child {
  border-right: 0;
}
.basectl button:hover {
  background: #1b2833;
  color: var(--on-dark);
}
.basectl button[aria-pressed="true"] {
  background: var(--corona);
  color: #22160a;
}

.tip {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  width: 212px;
  background: #0a1016;
  border: 1px solid #2a3a48;
  border-radius: 5px;
  overflow: hidden;
  color: var(--on-dark);
  transform: translate(-50%, -100%);
  margin-top: -16px;
  opacity: 0;
  transition: opacity 0.11s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.tip.on {
  opacity: 1;
}
.tip .ph {
  display: block;
  width: 100%;
  height: 118px;
  object-fit: cover;
  background: #16202a;
  border-bottom: 1px solid #22303c;
}
.tip .ph.none {
  display: grid;
  place-items: center;
  height: 56px;
  color: #54687a;
  font-size: 11px;
  text-align: center;
  padding: 0 10px;
}
.tip .tx {
  padding: 8px 10px;
}
.tip b {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 13.5px;
  display: block;
  line-height: 1.25;
}
.tip u {
  display: block;
  text-decoration: none;
  font-size: 11px;
  color: var(--on-dark-2);
  margin-top: 1px;
}
.tip code {
  font-family: var(--mono);
  font-size: 10.5px;
  color: #7c8c9b;
  display: block;
  margin-top: 4px;
}

/* ── panel ─────────────────────────────────────────── */
.panel {
  flex: 0 0 380px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--panel);
  border-left: 1px solid #223040;
}
.panel-head {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--panel-ln);
}
.split {
  display: flex;
  height: 5px;
  border-radius: 99px;
  overflow: hidden;
  background: var(--panel-ln);
  margin-bottom: 11px;
}
.split i {
  display: block;
  height: 100%;
}
.search {
  position: relative;
}
.search input {
  width: 100%;
  padding: 9px 11px 9px 32px;
  font: inherit;
  font-size: 13px;
  background: var(--panel-2);
  color: var(--ink);
  border: 1px solid var(--panel-ln);
  border-radius: var(--r);
}
.search input::placeholder {
  color: var(--ink-3);
}
.search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.45;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.chip {
  border: 1px solid var(--panel-ln);
  background: transparent;
  color: var(--ink-2);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chip i {
  width: 7px;
  height: 7px;
  border-radius: 99px;
}
.chip em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  opacity: 0.7;
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--panel);
  border-color: var(--ink);
}
.chip[aria-pressed="true"] em {
  opacity: 0.75;
}
.subfilter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}
.subfilter label {
  font-size: 11.5px;
  color: var(--ink-3);
}
.subfilter select {
  flex: 1 1 auto;
  padding: 5px 8px;
  font: inherit;
  font-size: 12.5px;
  background: var(--panel-2);
  color: var(--ink);
  border: 1px solid var(--panel-ln);
  border-radius: var(--r);
}

.list {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.site {
  display: flex;
  align-items: stretch;
  padding: 0;
  border-bottom: 1px solid var(--panel-ln);
  background: transparent;
  width: 100%;
  text-align: left;
  border-left: 0;
  border-right: 0;
  border-top: 0;
}
.site:hover,
.site.sel {
  background: var(--panel-2);
}
.site .spine {
  flex: 0 0 3px;
  align-self: stretch;
}
.site .main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 12px;
  display: block;
}
.site .nm {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.site .nm b {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site .nm span {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 99px;
  flex: 0 0 auto;
}
.site .co {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
  margin-top: 2px;
}
.site .meta {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
}
.site .thumb {
  flex: 0 0 46px;
  width: 46px;
  align-self: center;
  margin-right: 11px;
  height: 38px;
  border-radius: 2px;
  object-fit: cover;
  background: var(--panel-ln);
}
.site .thumb[loading="lazy"] {
  content-visibility: auto;
}

.empty {
  padding: 38px 22px;
  text-align: center;
  color: var(--ink-2);
}
.empty p {
  margin: 0 0 4px;
  font-family: var(--cond);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.empty small {
  font-size: 12.5px;
}

.panel-foot {
  padding: 9px 16px;
  border-top: 1px solid var(--panel-ln);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.panel-foot button {
  border: 0;
  background: none;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
  font-size: 11.5px;
}
.panel-foot button:hover {
  color: var(--ink);
}
.dot {
  width: 5px;
  height: 5px;
  border-radius: 99px;
  background: var(--ink-3);
}

/* ── modal ─────────────────────────────────────────── */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 14, 0.66);
  display: none;
  place-items: center;
  padding: 20px;
  z-index: 40;
}
.scrim.on {
  display: grid;
}
.modal {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--panel-ln);
  border-radius: 5px;
  width: 100%;
  max-width: 540px;
  max-height: min(88dvh, 820px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.modal.wide {
  max-width: 660px;
}
.modal header {
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--panel-ln);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.modal header h2 {
  margin: 0;
  font-family: var(--cond);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}
.modal header p {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--ink-2);
}
.modal header .x {
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--ink-3);
  font-size: 20px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: var(--r);
}
.modal header .x:hover {
  color: var(--ink);
  background: var(--panel-2);
}
.modal .content {
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1 1 auto;
}
.modal footer {
  padding: 12px 18px;
  border-top: 1px solid var(--panel-ln);
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.modal footer .spacer {
  margin-left: auto;
}
.mbtn {
  border: 1px solid var(--panel-ln);
  background: var(--panel-2);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 500;
}
.mbtn:hover {
  border-color: var(--ink-3);
}
.mbtn-primary {
  background: var(--corona);
  border-color: var(--corona);
  color: #22160a;
  font-weight: 600;
}
.mbtn-primary:hover {
  background: #ffb42a;
  border-color: #ffb42a;
}
.mbtn-danger {
  color: #c0392b;
  border-color: transparent;
  background: transparent;
}
.mbtn-danger:hover {
  background: rgba(192, 57, 43, 0.1);
  border-color: transparent;
}
.mbtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 5px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 9px 11px;
  font: inherit;
  font-size: 13px;
  background: var(--panel-2);
  color: var(--ink);
  border: 1px solid var(--panel-ln);
  border-radius: var(--r);
}
.field textarea {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  resize: vertical;
  min-height: 120px;
  white-space: pre;
  overflow-x: auto;
}
.field input.coord {
  font-family: var(--mono);
}
.field .hint {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 4px;
}
.field .err {
  font-size: 11.5px;
  color: #c0392b;
  margin-top: 4px;
  display: none;
}
.field.bad input {
  border-color: #c0392b;
}
.field.bad .err {
  display: block;
}
.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pick {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.pick button {
  border: 1px solid var(--panel-ln);
  background: var(--panel-2);
  color: var(--ink-2);
  padding: 6px 11px;
  border-radius: 99px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.pick button i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.pick button[aria-pressed="true"] {
  border-color: var(--ink);
  color: var(--ink);
}

/* site detail view */
.shot {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 4px;
  background: var(--panel-2);
  border: 1px solid var(--panel-ln);
  display: block;
}
.shot-none {
  width: 100%;
  min-height: 126px;
  border: 1px dashed var(--panel-ln);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: var(--ink-3);
  font-size: 12.5px;
  gap: 4px;
}
.shot-none a {
  color: var(--ink-2);
}
.facts {
  margin: 15px 0 0;
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 9px 14px;
  font-size: 13px;
}
.facts dt {
  color: var(--ink-3);
  font-size: 12px;
  padding-top: 1px;
}
.facts dd {
  margin: 0;
  color: var(--ink);
}
.facts dd.m {
  font-family: var(--mono);
  font-size: 12.5px;
}
.facts dd.pending {
  color: var(--ink-3);
  font-style: italic;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 99px;
}
.badge i {
  width: 7px;
  height: 7px;
  border-radius: 99px;
}

.drop {
  border: 1px dashed var(--panel-ln);
  border-radius: var(--r);
  padding: 13px;
  text-align: center;
  color: var(--ink-2);
  font-size: 12.5px;
  margin-bottom: 12px;
}
.drop.over {
  border-color: var(--corona);
  background: rgba(242, 160, 7, 0.07);
}
.drop button {
  border: 0;
  background: none;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 12.5px;
  padding: 0;
}

.embed-guide ol {
  margin: 0 0 17px;
  padding-left: 20px;
  color: var(--ink-2);
}
.embed-guide li {
  margin: 0 0 7px;
}
.embed-guide label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 5px;
}
.embed-guide textarea {
  width: 100%;
  min-height: 126px;
  resize: vertical;
  padding: 10px 11px;
  border: 1px solid var(--panel-ln);
  border-radius: var(--r);
  background: var(--panel-2);
  color: var(--ink);
  font: 11.5px/1.55 var(--mono);
}
.embed-guide .mbtn {
  margin-top: 9px;
}
.embed-note {
  margin: 14px 0 0;
  color: var(--ink-3);
  font-size: 12px;
}
.login-card {
  max-width: 390px;
}
.login-error {
  min-height: 19px;
  margin: 0;
  color: #c0392b;
  font-size: 12px;
}
#scrimLogin {
  background: #0c1218;
}

.report {
  border: 1px solid var(--panel-ln);
  border-radius: var(--r);
  background: var(--panel-2);
  padding: 11px 13px;
  margin-top: 12px;
  font-size: 12.5px;
}
.report .ok {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.report ul {
  margin: 7px 0 0;
  padding-left: 17px;
  color: var(--ink-2);
}
.report li {
  margin-bottom: 2px;
}
.report .tbl {
  margin-top: 10px;
  overflow-x: auto;
  border-top: 1px solid var(--panel-ln);
  padding-top: 9px;
}
.report table {
  border-collapse: collapse;
  font-size: 11.5px;
  width: 100%;
  min-width: 430px;
}
.report th {
  text-align: left;
  font-weight: 600;
  color: var(--ink-3);
  padding: 3px 10px 5px 0;
  font-size: 11px;
}
.report td {
  padding: 3px 10px 3px 0;
  color: var(--ink-2);
  white-space: nowrap;
}
.report td.m {
  font-family: var(--mono);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 14px);
  background: #0a1016;
  color: var(--on-dark);
  border: 1px solid #2a3a48;
  padding: 10px 16px;
  border-radius: var(--r);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.16s,
    transform 0.16s;
  z-index: 60;
}
.toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ── responsive ────────────────────────────────────── */
@media (max-width: 900px) {
  body {
    overflow: auto;
  }
  .shell {
    height: auto;
    min-height: 100dvh;
  }
  .topbar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 11px 14px;
  }
  .tally {
    margin-left: auto;
    order: 2;
  }
  .actions {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
  }
  .actions .btn {
    flex: 1 1 auto;
  }
  .body {
    flex-direction: column;
  }
  .mapwrap {
    flex: 0 0 auto;
    height: 58dvh;
    min-height: 330px;
  }
  .panel {
    flex: 1 1 auto;
    border-left: 0;
    border-top: 1px solid #223040;
  }
  .list {
    overflow: visible;
  }
  .brand h1 {
    font-size: 18px;
  }
  .facts {
    grid-template-columns: 100px 1fr;
  }
}
@media (max-width: 430px) {
  .legend {
    display: none;
  }
  .basectl {
    top: 10px;
    right: 10px;
  }
  .basectl button {
    padding: 6px 8px;
  }
  .zoomctl {
    right: 10px;
    bottom: 34px;
  }
  .row2 {
    grid-template-columns: 1fr;
  }
  .facts {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .facts dd {
    overflow-wrap: anywhere;
    margin-bottom: 8px;
  }
}
