#home-location-dialog {
  width: min(820px, 94vw);
}

.home-location-privacy {
  padding: 10px 12px;
  border-left: 3px solid var(--brand);
  background: #091522;
}

.home-location-methods {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr);
  gap: 14px;
  margin: 18px 0;
}

.home-location-method {
  align-self: start;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #091522;
}

.home-location-method > button {
  width: 100%;
  margin-top: 12px;
}

.home-location-results {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.home-location-result {
  width: 100%;
  padding: 11px;
  text-align: left;
}

.home-location-result strong,
.home-location-result small {
  display: block;
}

.home-location-result small,
.home-location-attribution,
.home-location-method small {
  color: var(--muted);
}

.home-location-attribution a {
  color: var(--blue);
}

.home-location-confirmation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  margin: 12px 0;
  border: 1px solid #17675d;
  border-radius: 10px;
  background: #0a2025;
}

.home-location-confirmation h3 {
  margin: 3px 0 5px;
}

.home-location-confirmation code {
  color: #7fc1ff;
}

.home-location-confirmation p:last-child {
  margin-bottom: 0;
}

.home-location-preview {
  min-height: 118px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(135deg, #07111e, #102435);
}

.home-location-preview svg {
  width: 100%;
  height: 118px;
}

.home-location-preview .cell-shape {
  fill: #f0a23a33;
  stroke: var(--brand);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.home-location-preview .cell-grid {
  stroke: #25354a;
  stroke-width: 1;
}

@media (max-width: 700px) {
  .home-location-methods,
  .home-location-confirmation {
    grid-template-columns: 1fr;
  }
}
