.coordinates {
  grid-template-columns: 1fr;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.test-audio {
  min-height: 57px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
}

.gps-coordinates {
  width: 100%;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}

.gps-coordinates span,
.gps-coordinates strong {
  display: block;
}

.gps-coordinates span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gps-coordinates strong {
  overflow-wrap: anywhere;
  font: 600 13px/1.4 monospace;
}

.compass-card {
  flex-wrap: wrap;
  justify-content: center;
}

.compass-content {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 38px;
}

.absolute-bearing {
  white-space: nowrap;
}

.relative-guide {
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.relative-guide:not([hidden]) {
  display: flex;
}

.relative-guide strong {
  min-width: 74px;
  text-align: center;
  font: 700 34px/1 Georgia, serif;
}

.direction-arrow {
  display: inline-block;
  color: var(--orange);
  font-size: 42px;
  line-height: 1;
  transition: transform .25s ease;
}

@media (max-width: 700px) {
  main {
    padding-inline: 12px;
  }

  .instruments,
  .map-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .form-actions {
    grid-template-columns: 1fr;
  }

  .compass-card {
    min-width: 0;
    gap: 5px;
    padding: 11px;
  }

  .compass-content {
    gap: 7px;
  }

  .relative-guide {
    min-height: 36px;
    gap: 11px;
  }

  .relative-guide strong {
    min-width: 50px;
    font-size: 24px;
  }

  .direction-arrow {
    font-size: 32px;
  }

  .compass {
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
  }

  .compass .north {
    top: 4px;
  }

  .needle {
    inset: 11px;
  }

  .needle span::before {
    border-right-width: 5px;
    border-bottom-width: 28px;
    border-left-width: 5px;
  }

  .needle span::after {
    top: 28px;
    border-right-width: 4px;
    border-top-width: 23px;
    border-left-width: 4px;
  }

  .big {
    font-size: 33px;
  }

  .unit {
    margin-left: 1px;
    font-size: 13px;
  }

  .distance-card {
    min-width: 0;
    padding: 13px;
  }

  .accuracy {
    display: block;
    margin-top: 9px;
    padding-top: 9px;
  }

  .accuracy strong {
    display: block;
    margin-top: 3px;
  }

  .coordinates {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  .coordinates div + div {
    border: 0;
    padding: 0;
  }

  .gps-coordinates {
    margin-top: 9px;
    padding-top: 9px;
  }

  .gps-coordinates strong {
    font-size: 11px;
  }

  .map-button {
    min-width: 0;
    gap: 7px;
    padding: 12px 9px;
  }

  .map-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
  }

  .map-button small,
  .map-button b {
    display: none;
  }
}
