html { scrollbar-gutter:stable; }
html:has(.measure-pref dialog[open]) { overflow:hidden; }
.measure-pref [hidden], .measure-pref dialog:not([open]) { display:none !important; }
.measure-pref dialog {
  position:fixed; inset:0; margin:auto; width:min(35rem,calc(100% - 24px)); box-sizing:border-box;
  max-height:calc(100vh - 24px); max-height:calc(100dvh - 24px); overflow:auto; overscroll-behavior:contain;
  padding:clamp(16px,4vw,28px); border:1px solid #7b898e; border-radius:8px; color:#172d31;
  background:white; box-shadow:0 12px 60px #0004; text-align:start; font:400 1rem/1.45 system-ui,sans-serif;
}
.measure-pref dialog::backdrop { background:rgb(16 26 32 / 64%); }
.measure-pref h2 { font:700 1.3rem/1.25 system-ui,sans-serif; margin:0 5.4rem 1rem 0; }
.measure-pref p { margin:.6rem 0; }
.measure-pref button, .measure-pref summary {
  font:inherit; min-height:44px; cursor:pointer; box-sizing:border-box;
}
.measure-pref button { margin:4px 4px 4px 0; padding:6px 12px; color:#172d31; background:white; border:1px solid #667980; border-radius:4px; }
.measure-pref [data-dismiss] { position:absolute; top:8px; right:10px; }
.measure-pref details { margin-top:8px; }
.measure-pref summary { padding-block:10px; text-decoration:underline; }
.measure-pref label { display:flex; align-items:center; gap:.5rem; min-height:40px; }
.measure-pref :focus-visible { outline:3px solid #08728b; outline-offset:2px; }
@media (max-width:380px) { .measure-pref [data-consent] { display:block; width:100%; margin:6px 0; } }
