.measurement-settings {
  display: block;
  width: fit-content;
  margin: 12px auto 0;
  padding: 8px 12px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.measurement-panel {
  position: fixed;
  z-index: 80;
  inset: auto 16px max(16px, env(safe-area-inset-bottom)) auto;
  width: min(420px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  box-sizing: border-box;
  padding: 18px;
  border: 1px solid var(--line, #dbe4eb);
  border-radius: 14px;
  background: #fff;
  color: #203d51;
  box-shadow: 0 8px 30px #15354b26;
}

.measurement-panel[hidden] {
  display: none;
}

.measurement-panel h2 {
  margin: 0 0 6px;
  font-size: 1.125rem;
}

.measurement-panel p {
  margin: 0 0 12px;
  font-size: .9rem;
  line-height: 1.45;
}

.measurement-panel a {
  text-decoration: underline;
}

.measurement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.measurement-actions button {
  flex: 1;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid #1860bd;
  border-radius: 8px;
  background: #fff;
  color: #163f78;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
