.measurement-panel[hidden] { display: none; }
.measurement-panel {
  position: fixed;
  z-index: 25;
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: 1rem;
  width: min(28rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding: 1rem;
  border: 1px solid #96b3a8;
  border-radius: .75rem;
  background: #fff;
  color: #0d2831;
  box-shadow: 0 8px 28px #0d283138;
  font-size: .95rem;
}
.measurement-panel h2 { margin: 0 0 .4rem; font-size: 1.2rem; }
.measurement-panel p { margin: .4rem 0 .65rem; }
.measurement-panel summary { cursor: pointer; }
.measurement-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.measurement-actions button {
  padding: .55rem .8rem;
  border: 1px solid #0d2831;
  border-radius: .35rem;
  background: #fff;
  color: #0d2831;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.measurement-settings {
  border: 0;
  padding: .25rem;
  color: inherit;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
footer:has(.measurement-settings) {
  padding-bottom: max(4.25rem, calc(3.25rem + env(safe-area-inset-bottom)));
}
.policy { max-width: 48rem; }
.policy h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
.policy h2 { font-size: 1.3rem; margin: 1.65rem 0 .4rem; }
.policy code { overflow-wrap: anywhere; }
