:root {
  color-scheme: light;
  --ink: #172024;
  --muted: #66757c;
  --line: #d8e0e3;
  --surface: #ffffff;
  --accent: #e84d35;
  --accent-2: #087f8c;
  --shadow: 0 10px 28px rgba(31, 43, 46, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body,
.app,
#map {
  height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #eef2f1;
}

.events-page {
  min-height: 100vh;
  background: #f3f5f1;
}

.events-page,
.events-page body {
  height: auto;
}

.events-shell {
  width: min(920px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 34px 0 48px;
}

.events-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.events-header h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
}

.events-header p {
  margin-top: 6px;
  font-size: 14px;
}

.events-list {
  display: grid;
  gap: 12px;
}

.event-item {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(31, 43, 46, 0.08);
}

.event-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.event-main h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.event-meta,
.event-description {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.event-link {
  display: inline-grid;
  place-items: center;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid var(--accent-2);
  border-radius: 6px;
  color: var(--accent-2);
  background: #fff;
  font-size: 13px;
  font-weight: 750;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}

.event-link.primary {
  color: #fff;
  background: var(--accent-2);
}

.event-actions code {
  min-width: 0;
  max-width: 100%;
  padding: 7px 9px;
  overflow-wrap: anywhere;
  border: 1px solid #dce5e7;
  border-radius: 6px;
  color: #34444a;
  background: #f7faf9;
  font: 12px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.app {
  position: relative;
}

.join-dialog {
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 22px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #f3f5f1;
  box-shadow: 0 20px 60px rgba(31, 43, 46, 0.3);
}

.join-dialog::backdrop {
  background: rgba(23, 32, 36, 0.42);
}

.dialog-close-form {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: end;
  height: 0;
  margin: 0;
}

.dialog-close-form .icon-button {
  transform: translate(8px, -8px);
  background: #fff;
  box-shadow: 0 4px 12px rgba(31, 43, 46, 0.14);
}

.join-header {
  margin-bottom: 18px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.join-header h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.join-header p {
  min-height: 19px;
}

.join-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 14px;
  align-items: start;
}

.join-choice,
.join-guide,
.join-form {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(31, 43, 46, 0.08);
}

.join-guide h2 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.2;
}

.join-guide ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.35em;
  color: #34444a;
  font-size: 14px;
  line-height: 1.55;
}

.install-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.join-form {
  display: grid;
  gap: 10px;
}

.join-form label {
  font-size: 13px;
  font-weight: 750;
}

.app-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.app-choice legend {
  grid-column: 1 / -1;
  padding: 0;
  font-size: 13px;
  font-weight: 750;
}

.app-choice label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.app-choice input {
  margin: 0;
  accent-color: var(--accent-2);
}

.name-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.name-row input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #bdc8cc;
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font: 15px/1.2 system-ui, sans-serif;
}

.name-row input:focus {
  border-color: var(--accent-2);
  outline: 3px solid rgba(8, 127, 140, 0.16);
}

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

.join-qr {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.join-qr[hidden] {
  display: none;
}

.join-qr img {
  display: block;
  width: 240px;
  height: 240px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.join-qr code {
  display: block;
  width: 100%;
  padding: 9px 10px;
  overflow-wrap: anywhere;
  border: 1px solid #dce5e7;
  border-radius: 6px;
  color: #34444a;
  background: #f7faf9;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.mobile-url-label {
  display: none;
}

.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
  width: 100%;
}

.copy-status {
  min-height: 18px;
  margin: 0;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 750;
}

.mobile-join-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

#map {
  width: 100%;
}

/* Minimal Leaflet layout CSS in case the CDN stylesheet is blocked. */
.leaflet-container {
  overflow: hidden;
  background: #eef2f1;
  outline-offset: 1px;
}

.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 img.leaflet-tile,
.leaflet-container .leaflet-marker-icon,
.leaflet-container .leaflet-marker-shadow {
  max-width: none;
  max-height: none;
}

.leaflet-tile {
  width: 256px;
  height: 256px;
  user-select: none;
}

.leaflet-zoom-animated {
  transform-origin: 0 0;
}

.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-control {
  position: relative;
  z-index: 800;
  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-control-zoom a,
.leaflet-control-layers-toggle {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #172024;
  background: #fff;
  border-bottom: 1px solid #d8e0e3;
  text-decoration: none;
  font: 700 18px/1 system-ui, sans-serif;
}

.leaflet-control-zoom,
.leaflet-control-layers {
  border: 1px solid #bdc8cc;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31, 43, 46, 0.18);
}

.leaflet-control-layers {
  padding: 6px 8px;
  font-size: 13px;
}

.leaflet-control-layers-toggle {
  border: 0;
}

.leaflet-control-layers-list {
  display: none;
}

.leaflet-control-layers-expanded .leaflet-control-layers-list {
  display: block;
}

.reset-view-control {
  display: none;
  margin-top: 6px;
}

.reset-view-button {
  display: block;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #bdc8cc;
  border-radius: 4px;
  color: #172024;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31, 43, 46, 0.18);
  font: 700 12px/1 system-ui, sans-serif;
  cursor: pointer;
}

.reset-view-button:hover {
  background: #f5f8f8;
}

.reset-view-control.is-visible {
  display: block;
}

.leaflet-popup {
  position: absolute;
  text-align: center;
}

.leaflet-popup-content-wrapper {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(31, 43, 46, 0.28);
}

.leaflet-popup-tip-container,
.leaflet-popup-close-button {
  display: none;
}

.panel {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 500;
  width: min(210px, calc(100vw - 32px));
  max-height: var(--panel-max-height, calc(100vh - 32px));
  overflow: auto;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(216, 224, 227, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

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

.panel-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.text-button {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.text-button:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

.filter-actions {
  display: grid;
  gap: 5px;
  padding: 4px 10px;
  border-bottom: 1px solid var(--line);
}

.filter-actions .text-button {
  font-size: 10px;
  font-weight: 600;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.filter-row > .text-button {
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rider-options {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.rider-options[hidden] {
  display: none;
}

.sort-option {
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  text-align: left;
  font: 650 11px/1.2 system-ui, sans-serif;
  cursor: pointer;
}

.sort-option:last-child {
  border-bottom: 0;
}

.sort-option:hover,
.sort-option.is-active {
  color: var(--accent-2);
  background: #f5f8f8;
}

.checked-only-toggle {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #fff;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.checked-only-toggle.is-active {
  border-color: rgba(8, 127, 140, 0.4);
  color: #fff;
  background: var(--accent-2);
}

.selection-actions {
  display: flex;
  gap: 8px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.panel.collapsed .filter-actions,
.panel.collapsed .riders {
  display: none;
}

h1 {
  margin: 0;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: 0;
}

p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

#count {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 18px;
  color: #fff;
  background: var(--accent-2);
  font-weight: 700;
}

.riders {
  display: grid;
}

.elevation-panel {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 490;
  width: min(360px, calc(100vw - 32px));
  padding: 14px 16px 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(216, 224, 227, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.elevation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.elevation-header h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0;
}

#elevation-range {
  color: var(--muted);
  font-size: 12px;
}

#elevation-chart {
  display: block;
  width: 100%;
  height: 120px;
  background: #f7faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.elevation-axis {
  fill: none;
  stroke: #b8c5c9;
  stroke-width: 1;
}

.elevation-grid {
  fill: none;
  stroke: #dce5e7;
  stroke-width: 1;
}

.elevation-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.elevation-rider circle {
  stroke: #fff;
  stroke-width: 2;
  filter: drop-shadow(0 1px 2px rgba(31, 43, 46, 0.35));
}

.elevation-rider .pacemaker-elevation-dot {
  stroke: #172024;
  stroke-width: 2.5;
}

.elevation-rider text {
  fill: #fff;
  font-size: 8px;
  font-weight: 800;
  pointer-events: none;
}

.elevation-label {
  fill: var(--muted);
  font-size: 10px;
}

.rider {
  display: grid;
  grid-template-columns: 16px 10px 1fr;
  gap: 7px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.rider-check {
  width: 14px;
  height: 14px;
  margin: 1px 0 0;
  accent-color: var(--accent-2);
}

.rider:last-child {
  border-bottom: 0;
}

.rider:hover {
  background: #f6faf9;
}

.expired-rider {
  cursor: default;
}

.expired-rider:hover {
  background: transparent;
}

.dot {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 77, 53, 0.16);
}

.stale-dot {
  box-shadow: 0 0 0 3px rgba(138, 149, 153, 0.24);
}

.expired-dot {
  box-shadow: none;
}

.rider h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0;
}

.metrics {
  display: contents;
}

.metric {
  display: none;
}

.metric:first-child {
  display: inline;
  margin-top: 2px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  line-height: 1.2;
}

.metric.link {
  color: var(--accent-2);
  text-decoration: none;
}

.metric.link:hover {
  text-decoration: underline;
}

.time {
  display: inline;
  margin-top: 0;
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
}

.marker {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.stale-marker {
  box-shadow: 0 0 0 4px rgba(138, 149, 153, 0.24), 0 4px 14px rgba(0, 0, 0, 0.22);
}

.pacemaker-marker {
  border-color: #172024;
  border-radius: 4px;
  background: #111827;
  clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%);
  font-size: 11px;
  box-shadow: 0 5px 16px rgba(17, 24, 39, 0.35);
}

.pacemaker-marker.expired-marker {
  box-shadow: none;
}

.route-poi {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 4px;
  color: #fff;
  background: #6f5bd8;
  box-shadow: 0 2px 8px rgba(31, 43, 46, 0.22);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transform: rotate(-45deg);
}

.route-poi::before {
  display: block;
  transform: rotate(45deg);
  content: attr(data-label);
}

.route-poi-control {
  background: #c23967;
}

.route-poi-rest {
  background: #218a42;
}

.route-poi-food {
  background: #cf8b16;
}

.route-poi-shower {
  background: #087f8c;
  font-size: 11px;
}

.route-poi-info {
  background: #6f5bd8;
  font-family: Georgia, serif;
  font-size: 13px;
  font-style: italic;
}

.distance-marker {
  display: grid;
  place-items: center;
  width: 52px;
  height: 22px;
  border: 1px solid rgba(23, 32, 36, 0.18);
  border-radius: 11px;
  color: #172024;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(31, 43, 46, 0.18);
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
}

.route-endpoint {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  font-size: 14px;
  font-weight: 900;
  pointer-events: none;
}

.route-endpoint-start {
  background: #218a42;
}

.route-endpoint-goal {
  background: #c23967;
}

.leaflet-popup-content {
  margin: 0;
  min-width: 145px;
}

.popup-card {
  padding: 8px 9px;
  text-align: left;
}

.popup-title {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.popup-grid {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 3px 7px;
  align-items: baseline;
  margin-bottom: 5px;
}

.popup-grid span {
  color: var(--muted);
  font-size: 10px;
}

.popup-grid strong {
  color: #243136;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.popup-link {
  display: inline-block;
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.popup-link:hover {
  text-decoration: underline;
}

.poi-popup {
  padding: 8px 9px;
  text-align: left;
}

.poi-popup-detail {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.poi-popup-detail span {
  display: inline-block;
}

.leaflet-control-attribution {
  padding: 2px 5px;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 4px;
  font-size: 10px;
}

@media (max-width: 720px) {
  .events-shell {
    width: min(100vw - 20px, 560px);
    padding: 22px 0 34px;
  }

  .events-header {
    margin-bottom: 12px;
  }

  .events-header h1 {
    font-size: 24px;
  }

  .event-item {
    padding: 13px;
  }

  .event-main h2 {
    font-size: 19px;
  }

  .event-actions {
    align-items: stretch;
  }

  .event-link {
    min-height: 30px;
  }

  .join-dialog {
    display: none;
  }

  .join-header h1 {
    font-size: 24px;
  }

  .join-layout,
  .name-row {
    grid-template-columns: 1fr;
  }

  .join-choice,
  .join-guide,
  .join-form {
    padding: 14px;
  }

  .join-qr img,
  .qr-label {
    display: none;
  }

  .mobile-url-label {
    display: block;
    justify-self: stretch;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
  }

  .copy-row {
    grid-template-columns: 1fr;
  }

  .join-qr code {
    min-height: 72px;
    padding: 12px;
    font-size: 13px;
  }

  .panel {
    top: 8px;
    right: 8px;
    bottom: auto;
    left: auto;
    width: auto;
    max-width: min(175px, calc(100vw - 16px));
    max-height: 32vh;
    border-radius: 8px;
  }

  .panel-header {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.96);
  }

  .icon-button {
    width: 24px;
    height: 24px;
    font-size: 15px;
  }

  h1 {
    font-size: 16px;
  }

  p {
    margin-top: 2px;
    font-size: 11px;
  }

  #count {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    font-size: 13px;
  }

  .rider {
    grid-template-columns: 14px 8px 1fr;
    gap: 6px;
    padding: 7px 10px;
  }

  .rider-check {
    width: 13px;
    height: 13px;
  }

  .dot {
    width: 8px;
    height: 8px;
    margin-top: 4px;
    box-shadow: 0 0 0 2px rgba(232, 77, 53, 0.16);
  }

  .stale-dot {
    box-shadow: 0 0 0 2px rgba(138, 149, 153, 0.24);
  }

  .expired-dot {
    box-shadow: none;
  }

  .rider h2 {
    margin-bottom: 0;
    font-size: 14px;
  }

  .rider > span:last-child {
    min-width: 0;
  }

  .metrics {
    display: contents;
  }

  .metric {
    display: none;
  }

  .metric:first-child {
    display: none;
  }

  .time {
    display: none;
  }

  .elevation-panel {
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    padding: 7px 6px 8px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
  }

  .elevation-header {
    margin-bottom: 5px;
  }

  .elevation-header h2 {
    font-size: 12px;
  }

  #elevation-range {
    font-size: 10px;
  }

  #elevation-chart {
    height: 70px;
  }

  .leaflet-control-attribution {
    max-width: 170px;
    overflow: hidden;
    font-size: 9px;
    opacity: 0.72;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .leaflet-bottom.leaflet-left {
    bottom: 98px;
  }
}
