.measurement-panel[hidden] { display: none; }
.measurement-panel {
  position: fixed; z-index: 10000; inset: auto 1rem 1rem auto;
  width: min(36rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem);
  overflow: auto; overscroll-behavior: contain; box-sizing: border-box;
  padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid #71869b;
  border-radius: 1rem; background: #fff; color: #102b4a;
  box-shadow: 0 .5rem 2rem #102b4a33; font: 400 .875rem/1.5 sans-serif;
}
.measurement-panel h2 { margin: 0 0 .75rem; font-size: 1.25rem; line-height: 1.3; }
.measurement-panel p { margin: .75rem 0; }
.measurement-panel a { color: #143d66; text-decoration: underline; }
.measurement-check { display: flex; align-items: flex-start; gap: .65rem; margin: 1rem 0; cursor: pointer; }
.measurement-check input { flex: 0 0 auto; width: 1.2rem; height: 1.2rem; margin: .15rem 0 0; accent-color: #143d66; }
.measurement-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.measurement-panel button {
  min-height: 44px; padding: .65rem .85rem; border: 1px solid #143d66;
  border-radius: .4rem; color: #143d66; background: #fff; font: inherit; cursor: pointer;
}
.measurement-actions button { flex: 1 1 12rem; }
.measurement-panel button:hover:not(:disabled) { background: #e9f0f7; }
.measurement-panel button:disabled { opacity: .6; cursor: not-allowed; }
.measurement-panel :focus-visible { outline: 3px solid #bf2537; outline-offset: 3px; }
.measurement-status { font-weight: 600; }
.measurement-close { margin-top: .5rem; }
[data-measurement-settings] { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
@media (forced-colors: active) { .measurement-panel { border: 2px solid CanvasText; } }
