html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #111;
  color: #eee;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

#app {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  height: 100dvh;
}

#viewer {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 2px;
  background: #000;
}

.map {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: #fff;
}

#controls {
  background: #181818;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  box-sizing: border-box;
  border-top: 1px solid #333;
}

.row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0;
}

.buttons {
  flex-wrap: wrap;
}

.button {
  appearance: none;
  border: 1px solid #666;
  background: #2a2a2a;
  color: #fff;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 14px;
  line-height: 1;
}

.button.primary {
  background: #0a84ff;
  border-color: #0a84ff;
}

.sliderLabel {
  width: 56px;
  font-size: 14px;
}

input[type="range"] {
  flex: 1;
}

.value {
  width: 58px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#status {
  margin-top: 4px;
  color: #bbb;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leaflet-control-container {
  display: none;
}

.gps-marker {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.85);
  border: 3px solid white;
  box-sizing: border-box;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.65);
}

.gps-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  margin-top: -2px;
  border-radius: 50%;
  background: white;
}

.linkButton {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.linkButton:visited {
  color: #fff;
}