/* MeshCore-Monitor — Oberflaeche */

:root {
  --bg: #14181d;
  --bg-raised: #1c222a;
  --bg-hover: #242c36;
  --border: #2c3540;
  --text: #dde3ea;
  --text-dim: #8b98a7;
  --accent: #4db6ac;
  --station: #ffd54f;
  --repeater: #4db6ac;
  --room: #7e9cd8;
  --chat: #b48ead;
  --warn: #e0885a;
  /* Ring der Relay-Aktivitaet. Liegt ausserhalb des Markers, steht also gegen
     die hellen Kartenkacheln — dunkles Violett hat dort den besten Kontrast
     (min. 3.96) und die groesste Abgrenzung zum orangen TX-Ring (2.37). */
  --relay: #7b3fbf;
  /* Leitfarbe der 2- und 3-Byte-Pfade: klar blau statt tuerkis, damit der
     Unterschied zur mehrdeutigen 1-Byte-Welt auf einen Blick sitzt. */
  --sure-path: #2196f3;
  --relay-text: #b98cff;
  /* Zentrale Nodes. Bewusst farblos-hell statt eines eigenen Farbtons: Die
     Farben sind bereits an Node-Typen vergeben, und Zentralitaet ist keine
     Art von Node, sondern eine Rolle im Netz. */
  --central: #f2f6fa;
}

* { box-sizing: border-box; }

/* `hidden` muss staerker sein als jede Klasse. Das Attribut bringt nur ein
   `display: none` mit der Spezifitaet eines Elementselektors mit — jede Klasse
   mit eigenem `display` hebelt es aus, lautlos. Betroffen waren alle drei
   Stellen, die etwas verbergen: die Legende des Planers stand da, bevor ein
   Standort gewaehlt war, der Stationsfilter erschien auch bei nur einer
   Station, und der Zeitregler zeigte sich vor dem ersten Datenpunkt. */
[hidden] { display: none !important; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  /* Die Seite selbst scrollt nie — gescrollt wird ausschliesslich innerhalb der
     Listen. Sonst schoebe eine lange Liste die Karte samt Legende und
     Zeitregler aus dem Bild. */
  overflow: hidden;
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.layout {
  display: grid;
  grid-template-columns: minmax(340px, 30%) 1fr;
  height: 100vh;
  height: 100dvh;   /* beruecksichtigt ein- und ausblendende Browserleisten */
  overflow: hidden;
}

/* ---------------------------------------------------------------- Sidebar */

.sidebar {
  display: flex;
  flex-direction: column;
  background: var(--bg-raised);
  border-right: 1px solid var(--border);
  min-width: 0;
  /* Ohne min-height: 0 waechst das Grid-Element mit seinem Inhalt, statt zu
     schrumpfen — dann kann kein Kind darin scrollen. */
  min-height: 0;
  overflow: hidden;
}

.sidebar-head {
  flex: 0 0 auto;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border);
}

.head-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sound-toggle {
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
}

.sound-toggle:hover { border-color: var(--accent); }
.sound-toggle.is-off { opacity: 0.5; }

.sidebar-head h1 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.node-name {
  margin: 2px 0 14px;
  color: var(--text-dim);
  font-size: 12px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0;
}

.stats dt {
  color: var(--text-dim);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stats dd {
  margin: 2px 0 0;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.gps {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
}

.gps b { color: var(--text); }

.gps-big {
  display: flex;
  gap: 18px;
  margin-bottom: 8px;
}

.gps-value {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.gps-number {
  font-size: 30px;
  font-weight: 600;
  color: var(--text);
}

.gps-unit {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

/* Aufklappbare Kandidaten eines mehrdeutigen Hops */
.route-info .hops li.is-expandable {
  cursor: pointer;
}

.route-info .hops li.is-expandable:hover {
  background: var(--bg-hover);
}

.candidates:empty { display: none; }

.candidates {
  margin: 3px 0 4px 18px;
  padding-left: 8px;
  border-left: 2px solid var(--border);
}

.candidate {
  padding: 1px 0;
  color: var(--text);
  font-size: 11px;
}

/* Bezugspunkt der Entfernungen. Ohne ihn liesse sich eine Distanz nicht
   deuten — zum Nachbar-Hop gemessen heisst etwas anderes als zur Station. */
.candidate-ref {
  padding-bottom: 2px;
  font-size: 11px;
}

/* Kandidaten, die gar nicht weiterleiten koennen. Sie bleiben sichtbar,
   damit der Ausschlussgrund nachvollziehbar ist. */
.candidate.is-excluded {
  color: var(--text-dim);
  text-decoration: line-through;
}

.gps-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: baseline;
}

.gps-ok   { background: var(--repeater); box-shadow: 0 0 0 3px rgba(77, 182, 172, 0.25); }
.gps-wait { background: var(--warn);     box-shadow: 0 0 0 3px rgba(224, 136, 90, 0.25); }
.gps-off  { background: #e06c75; }
.gps-manual { background: var(--station); box-shadow: 0 0 0 3px rgba(255, 213, 79, 0.25); }
.gps-idle { background: #4a5561; }

.gps-warn { color: var(--warn); }

.tabs {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}

.tab {
  flex: 1;
  padding: 9px 6px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.tab:hover { color: var(--text); }

.tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

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

/* Der aktive Reiter ist selbst eine Spalte: Bedienleiste und Fusszeile bleiben
   stehen, gescrollt wird nur der Inhaltsbereich dazwischen. */
.panel.is-active {
  display: flex;
  flex-direction: column;
}

.panel > .controls,
.panel > .hint {
  flex: 0 0 auto;
}

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

/* ------------------------------------------------- Listen (Pfade, Nachrichten) */

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rows li {
  padding: 9px 18px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.rows li:hover { background: var(--bg-hover); }

/* Ein neu eingetroffener Pfad leuchtet einmal auf. Die Animation laeuft nur
   einmal ab und laesst die Zeile danach unveraendert stehen. */
.rows li.is-new {
  animation: row-flash 3s ease-out 1;
}

@keyframes row-flash {
  0%   { background: rgba(255, 95, 162, 0.35); }
  100% { background: transparent; }
}

.rows li.is-selected {
  background: var(--bg-hover);
  box-shadow: inset 3px 0 0 var(--accent);
}

.rows li.empty {
  color: var(--text-dim);
  cursor: default;
  font-style: italic;
}

.row-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--text-dim);
}

.row-tag { color: var(--accent); }

.row-meta {
  margin-top: 3px;
  font-size: 11px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.badge {
  display: inline-block;
  min-width: 34px;
  padding: 0 5px;
  border-radius: 3px;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: #10141a;
}

.badge-full { background: var(--repeater); }
.badge-part { background: var(--warn); }
.badge-none { background: #4a5561; color: var(--text-dim); }

/* Hash-Breite eines Pfades. Bei 1 Byte gibt es nur 254 IDs — solche Pfade
   bleiben gedaempft. Bei 2 und 3 Byte ist ein Hop praktisch eindeutig, das
   wird hervorgehoben. */
.hash-tag {
  display: inline-block;
  padding: 0 4px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-dim);
  font-size: 10px;
}

.hash-tag.is-sure {
  border-color: var(--sure-path);
  background: var(--sure-path);
  color: #08121c;
  font-weight: 600;
}

.controls {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px;
  border-bottom: 1px solid var(--border);
}

/* Schaltflaechen in der Bedienleiste. Anders als die Umschalter loesen sie
   eine Rechnung aus — deshalb sichtbar als Knopf und nicht als Kaestchen. */
.action {
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg);
  color: var(--text-dim);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.action:hover:not(:disabled) { border-color: var(--accent); }
.action.is-active { border-color: var(--accent); color: var(--accent); }

/* Hervorgehoben, sobald Schritt 1 etwas gefunden hat. Bedienbar ist der Knopf
   auch ohne das: Gerade der Standort ohne einen einzigen sichtbaren Node
   profitiert vom Sichtfeld. */
.action.is-primary { border-color: var(--accent); color: var(--text); }
.action.is-quiet { opacity: 0.75; }
.action:disabled { opacity: 0.4; cursor: default; }

/* Solange auf den Kartenklick gewartet wird, sagt das der Zeiger. */
#map.is-picking { cursor: crosshair; }

.toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-dim);
  font-size: 11px;
  cursor: pointer;
}

.toggle select {
  padding: 2px 4px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 11px;
}

.tag {
  padding: 0 4px;
  border-radius: 3px;
  background: #333d49;
  color: var(--text-dim);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table td.star {
  width: 14px;
  padding-right: 0;
  color: var(--station);
  text-align: center;
}

.table th.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.table th.sortable:hover { color: var(--text); }
.table th.is-sorted { color: var(--accent); }

.table tr[data-pubkey] { cursor: pointer; }
.table tr[data-pubkey]:hover { background: var(--bg-hover); }
.table tr.is-active-row td:first-child { box-shadow: inset 3px 0 0 var(--warn); }

.tag-tx {
  background: rgba(224, 136, 90, 0.25);
  color: var(--warn);
}

.tag-relay {
  background: rgba(123, 63, 191, 0.3);
  color: var(--relay-text);
}

.tag-central {
  background: rgba(242, 246, 250, 0.14);
  color: var(--central);
}

.msg-sender {
  font-weight: 600;
  margin-right: 4px;
}

.msg-text {
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------- Tabellen */

.table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.table td, .table th {
  padding: 7px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.table th {
  position: sticky;
  top: 0;
  z-index: 1;
  /* Deckend, sonst schiebt sich der Inhalt beim Scrollen sichtbar darunter. */
  background: var(--bg-raised);
  color: var(--text-dim);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.table td.num { text-align: right; }

.hint {
  padding: 10px 18px;
  color: var(--text-dim);
  font-size: 11px;
}

/* ------------------------------------------------------------- Telemetrie */

.telemetry-card {
  padding: 11px 18px 13px;
  border-bottom: 1px solid var(--border);
}

.telemetry-head {
  font-weight: 600;
  margin-bottom: 2px;
}

.telemetry-card .table {
  margin-top: 7px;
}

.telemetry-card .table td,
.telemetry-card .table th {
  padding: 4px 0;
}

.telemetry-card .table td:first-child,
.telemetry-card .table th:first-child {
  padding-left: 0;
}

.neighbours {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.sub-head {
  color: var(--text-dim);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.daily {
  margin-top: 9px;
  padding-top: 7px;
  border-top: 1px solid var(--border);
}

.verdict-real      { color: #7cb342; }
.verdict-open      { color: var(--warn); }
.verdict-collision { color: #e06c75; }

.trend-down { color: #e06c75; }
.trend-up   { color: var(--repeater); }

.spark-cell {
  width: 158px;
  padding: 2px 4px !important;
}

.spark {
  display: block;
  overflow: visible;
}

.spark polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.empty-block {
  padding: 16px 18px;
  color: var(--text-dim);
  font-size: 12px;
}

code {
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--bg);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

/* ------------------------------------------------------------------ Karte */

.map-area {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

#map {
  height: 100%;
  background: var(--bg);
}

/* Nur die Kartenkacheln entfaerben. Die Ueberlagerungen liegen in einer eigenen
   Ebene und behalten ihre Farbe — sonst wuerde die Einfaerbung der
   Empfangslage mit entfaerbt. */
body.is-grayscale .leaflet-tile-pane {
  filter: grayscale(1) contrast(0.9);
}

.map-bottom {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  /* Der Stapel selbst faengt keine Mausereignisse ab, seine Kinder schon —
     sonst waere die Karte darunter nicht mehr bedienbar. */
  pointer-events: none;
}

.map-bottom > * {
  pointer-events: auto;
}

.timebar {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: rgba(20, 24, 29, 0.9);
}

.timebar input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
}

.time-live {
  padding: 2px 9px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg);
  color: var(--text-dim);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.time-live.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

.time-label {
  min-width: 132px;
  color: var(--text-dim);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.timebar.is-past .time-label { color: var(--warn); }

.key-age {
  width: 16px;
  height: 0;
  border-top: 2px dotted var(--text-dim);
  border-radius: 0;
  background: none;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  max-width: calc(100% - 28px);
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: rgba(20, 24, 29, 0.88);
  color: var(--text-dim);
  font-size: 11px;
}

.key {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-left: 8px;
}

.key:first-child { margin-left: 0; }
.key-station  { background: var(--station); }
.key-repeater { background: var(--repeater); }
.key-room     { background: var(--room); }
.key-chat     { background: var(--chat); }
.key-pulse    { background: var(--warn); box-shadow: 0 0 0 3px rgba(224, 136, 90, 0.3); }
.key-relay    { background: var(--relay-text); box-shadow: 0 0 0 3px rgba(123, 63, 191, 0.55); }
.key-central  { background: none; border: 2px solid var(--central); }
.key-bridge   { background: none; border: 2px dashed var(--central); }
.key-bridged {
  width: 16px;
  height: 0;
  border-radius: 0;
  background: none;
  border-top: 2px dashed var(--text-dim);
}
.key-density  { width: 16px; height: 3px; border-radius: 2px; background: var(--repeater); }
.key-sure {
  width: 26px;
  height: 4px;
  border-radius: 2px;
  background: var(--sure-path);
}

.key-snr {
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #7cb342, #ffa726, #e53935);
}

/* Legende des Planers. Die Kachelfarben sind dieselben wie auf der Karte —
   eine eigene Palette fuer die Legende waere eine zweite Wahrheit. */
.key-planned {
  border-radius: 2px;
  background: var(--warn);
  border: 1px solid var(--central);
}
.key-sight { border-radius: 2px; background: rgba(124, 179, 66, 0.55); }
.key-graze { border-radius: 2px; background: rgba(255, 167, 38, 0.45); }
.key-blank { border-radius: 2px; background: rgba(139, 152, 167, 0.35); }

/* ------------------------------------------------------------- Detailfeld */

.route-info {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 500;
  width: 370px;
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  padding: 12px 15px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(20, 24, 29, 0.96);
  font-size: 12px;
}

.route-info h2 {
  margin: 0 26px 8px 0;
  font-size: 13px;
  color: var(--accent);
}

.detail-close {
  position: absolute;
  top: 8px;
  right: 10px;
  padding: 0 4px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.detail-close:hover { color: var(--text); }

.detail-text {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-left: 3px solid var(--accent);
  background: var(--bg-raised);
  overflow-wrap: anywhere;
}

.detail-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 12px;
  margin: 0 0 12px;
}

.detail-facts dt {
  color: var(--text-dim);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-facts dd {
  margin: 1px 0 0;
  font-variant-numeric: tabular-nums;
}

.route-block {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--border);
}

.route-title {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 11px;
}

.route-direct {
  margin-top: 3px;
  color: var(--repeater);
  font-size: 11px;
}

.detail-facts .span-2 { grid-column: 1 / -1; }

.route-quality {
  margin: 2px 0 4px;
  color: var(--text-dim);
  font-size: 10px;
}

.swatch {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 2px;
}

.route-info .hops {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

.route-info .hops li {
  padding: 2px 0;
  border-bottom: 1px solid rgba(44, 53, 64, 0.5);
}

.hop-index {
  display: inline-block;
  width: 18px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.hop-note {
  float: right;
  color: var(--text-dim);
  font-size: 10px;
}

/* Belegt: Der befragte Repeater hat diese Strecke selbst gemeldet. Staerker
   als ein alleiniger Hash-Treffer, deshalb die Akzentfarbe. */
.hop-attested    { color: var(--accent); }
.hop-unique      { color: var(--text); }
.hop-heuristic   { color: var(--room); }
.hop-ambiguous   { color: var(--warn); }
.hop-unknown     { color: var(--text-dim); }
.hop-implausible { color: #e06c75; }

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.dim { color: var(--text-dim); }

/* --------------------------------------------------------- Node-Marker */

.node-marker {
  position: relative;   /* Bezugsrahmen der Aktivitaetsringe */
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.55);
}

.node-marker.type-1 { background: var(--chat); }
.node-marker.type-2 { background: var(--repeater); }
.node-marker.type-3 { background: var(--room); }
.node-marker.type-station {
  background: var(--station);
  width: 16px;
  height: 16px;
}

/* Nodes ohne jedes Lebenszeichen bleiben blass. */
.node-marker.is-unheard { opacity: 0.4; }

/* Der geplante Standort. Bewusst quadratisch statt rund und in der Warnfarbe:
   Er ist kein Node, sondern eine Frage — nichts an ihm ist beobachtet. */
.node-marker.type-planned {
  width: 16px;
  height: 16px;
  margin: -2px;
  border-radius: 3px;
  background: var(--warn);
  border-color: var(--central);
}

/* Beide Aktivitaetsarten pulsieren, sind aber unterscheidbar:
   TX (eigener Advert) orange und aussen, RELAY (traegt Verkehr) gruen und innen.
   Getrennte Pseudoelemente und Laufzeiten, damit sie sich nicht ueberlagern,
   wenn ein Node gleichzeitig sendet und weiterreicht. */

/* Zentrale Nodes bekommen Groesse und Umrandung, keinen weiteren Ring: Die
   Ringe gehoeren der Aktivitaet, und Zentralitaet ist keine Aktivitaet. Der
   negative Rand haelt den Mittelpunkt am Ort — Leaflet ankert bei 6/6. */
.node-marker.is-central {
  width: 16px;
  height: 16px;
  margin: -2px;
  border-color: var(--central);
}

/* Drehkreuz durchgezogen, Bruecke gestrichelt. Der Unterschied liegt in der
   Linienart, damit die Typfarbe darunter lesbar bleibt. */
.node-marker.is-bridge { border-style: dashed; }

.node-marker.is-relaying {
  box-shadow: 0 0 0 2px var(--relay);
}

.node-marker.is-relaying::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--relay);
  animation: pulse 2.6s ease-out infinite;
}

.node-marker.is-recent::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--warn);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0%   { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--bg-raised);
  color: var(--text);
}

.leaflet-popup-content { font-size: 12px; }
.leaflet-popup-content .mono { user-select: all; }
.leaflet-popup-content b { color: var(--accent); }

/* Strecke jenseits des allgemeinen Distanzlimits, per Standort-Reichweite
   zugelassen. Bewusst unaufdringlich: sie ist plausibel, nur begruendet. */
.hop-reach {
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 0 3px;
  font-size: 0.85em;
  opacity: 0.75;
}
