.height-start {
  margin-top: 10px !important;
}
.height-tool {
  position: fixed;
  inset: 0;
  z-index: 6100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(9, 37, 30, 0.72);
  backdrop-filter: blur(5px);
}
.height-tool[hidden],
.height-map-prompt[hidden],
.height-camera[hidden],
.height-card[hidden] {
  display: none !important;
}
.height-close {
  position: fixed;
  z-index: 3;
  top: max(18px, env(safe-area-inset-top));
  right: 18px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #b9cbc4;
  border-radius: 50%;
  background: #fff;
  color: #153f35;
  font-size: 30px;
  line-height: 1;
}
.height-card {
  width: min(100%, 480px);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  padding: 30px;
  border-radius: 28px;
  background: #faf8f2;
  color: #153f35;
  box-shadow: 0 22px 70px rgba(5, 27, 21, 0.38);
}
.height-card h2 {
  margin: 8px 0 12px;
  font: 700 2.25rem/1 Georgia;
}
.height-card > p {
  color: #607970;
  line-height: 1.45;
}
.height-card label {
  display: grid;
  gap: 6px;
  margin: 15px 0;
  font-weight: 800;
}
.height-card input,
.height-card select {
  width: 100%;
  padding: 13px;
  border: 1px solid #b8cac4;
  border-radius: 13px;
  background: #fff;
  color: #153f35;
  font-size: 16px;
}
.height-card ol {
  padding-left: 22px;
  color: #526f66;
  line-height: 1.55;
}
.height-status {
  min-height: 20px;
  color: #8b4937 !important;
  font-weight: 750;
}
.height-map-prompt {
  position: fixed;
  z-index: 6050;
  left: 50%;
  bottom: 92px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(620px, calc(100vw - 24px));
  padding: 10px 12px;
  border-radius: 18px;
  background: #123f35;
  color: #fff;
  box-shadow: 0 12px 35px rgba(5, 35, 27, 0.35);
  transform: translateX(-50%);
}
.height-map-prompt b {
  flex: 1;
  font-size: 13px;
}
.height-map-prompt button {
  padding: 9px 12px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #123f35;
  font-weight: 800;
}
.height-map-prompt button:last-child {
  background: #dce8e3;
}
.height-camera {
  position: fixed;
  inset: 0;
  background: #071a16;
}
.height-camera video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.height-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 140px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.height-reticle {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 66px;
  height: 66px;
  transform: translate(-50%, -50%);
}
.height-reticle i {
  position: absolute;
  background: #fff;
  box-shadow: 0 0 2px #000;
}
.height-reticle i:first-child {
  left: 0;
  right: 0;
  top: 32px;
  height: 2px;
}
.height-reticle i:last-child {
  top: 0;
  bottom: 0;
  left: 32px;
  width: 2px;
}
.height-readout {
  position: absolute;
  top: max(78px, calc(env(safe-area-inset-top) + 58px));
  left: 50%;
  display: grid;
  min-width: 180px;
  padding: 10px 18px;
  border-radius: 18px;
  background: rgba(7, 34, 28, 0.78);
  color: #fff;
  text-align: center;
  transform: translateX(-50%);
}
.height-readout small {
  font-size: 10px;
  letter-spacing: 0.14em;
}
.height-readout strong {
  font-size: 30px;
}
.height-readout span {
  font-size: 12px;
}
.height-camera > p {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 116px;
  margin: 0;
  color: #fff;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  text-shadow: 0 2px 8px #000;
}
.height-capture {
  position: absolute;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  min-height: 62px;
  padding: 12px 25px;
  border: 4px solid rgba(255, 255, 255, 0.7);
  border-radius: 32px;
  background: #f2c94c;
  color: #163c34;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 9px 30px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
}
.height-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.height-result-grid p {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 12px;
  border: 1px solid #d3dfdb;
  border-radius: 14px;
  background: #fff;
}
.height-result-grid b {
  font-size: 11px;
  color: #658078;
}
.height-result-grid span {
  font-size: 18px;
  font-weight: 800;
}
.height-warning {
  padding: 12px;
  border-radius: 12px;
  background: #fff4cf;
  color: #745f20 !important;
  font-size: 13px;
}
.height-tool .account-actions {
  margin-top: 16px;
}
.height-tool .account-actions button {
  min-height: 46px;
}
.height-tool .account-primary {
  padding: 13px;
  border: 0;
  border-radius: 13px;
  background: #145f4d;
  color: #fff;
  font-weight: 850;
}
@media (max-width: 600px) {
  .height-tool {
    padding: 0;
  }
  .height-card {
    width: 100%;
    max-height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
    padding: 76px 24px max(26px, env(safe-area-inset-bottom));
  }
  .height-close {
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
  }
  .height-map-prompt {
    bottom: 84px;
    flex-wrap: wrap;
  }
  .height-map-prompt b {
    flex-basis: 100%;
  }
  .height-map-prompt button {
    flex: 1;
  }
  .height-card h2 {
    font-size: 2rem;
  }
}
