.location-grid {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  max-height: 290px;
  overflow: auto;
  overscroll-behavior: contain;
}

.location-grid button {
  text-align: start;
}

.location-grid [aria-current="true"] {
  border-color: var(--accent);
  background: var(--panel2);
}

.acq summary {
  cursor: pointer;
}

.location-pages {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
}

.map-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.map-sections button {
  min-height: 38px;
  padding: .35rem .55rem;
}

.map-sections [aria-pressed="true"] {
  background: var(--panel2);
  border-color: var(--accent);
}

.progress-tools {
  padding: 7px 0;
  border-block: 1px solid var(--line);
}

.progress-tools summary {
  cursor: pointer;
}

.progress-tools [role="status"] {
  color: var(--muted);
  font-size: .8rem;
}

.reference-button {
  justify-self: start;
}

.reference-map {
  width: min(860px, calc(100% - 24px));
  max-height: 90dvh;
  margin: auto;
  overflow: auto;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.reference-map::backdrop {
  background: rgb(5 18 21 / .8);
}

.reference-map img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 10px;
}

.terrain-viewer {
  width: min(1000px, calc(100vw - 22px));
  max-height: 93dvh;
  margin: auto;
  padding: clamp(10px, 2vw, 20px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--ink);
}

.terrain-viewer::backdrop {
  background: rgb(3 12 18 / .82);
}

.terrain-stage {
  position: relative;
  margin-block: 10px;
}

.terrain-stage canvas {
  display: block;
  width: 100%;
  height: min(57dvh, 560px);
  min-height: 225px;
  touch-action: none;
  border-radius: 8px;
  background: var(--sea);
}

.terrain-direction {
  position: absolute;
  inset: 12px 12px auto auto;
  display: grid;
  place-items: center;
  width: 50px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
}

.terrain-zoom {
  position: absolute;
  inset: auto 10px 10px auto;
  display: flex;
  gap: 5px;
}
