.er-measurement[hidden], .er-measurement-settings[hidden] { display: none !important; }
.er-measurement {
  position: fixed;
  z-index: 1100;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(384px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 28px 26px 24px;
  color: var(--er-ink, #0a2b40);
  background: linear-gradient(160deg, var(--er-paper-light, #fbfcfb) 65%, #eef6f0);
  border: 1px solid rgba(46, 125, 82, .2);
  border-radius: 20px;
  box-shadow: 0 24px 72px rgba(6, 31, 48, .26), 0 4px 16px rgba(6, 31, 48, .08);
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
.er-measurement::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(50% - 24px);
  width: 48px;
  height: 3px;
  background: var(--er-green, #2e7d52);
  border-radius: 0 0 3px 3px;
}
.er-measurement h2 {
  margin: 0 0 9px;
  font: 700 22px/1.3 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -.035em;
  color: var(--er-ink, #0a2b40);
}
.er-measurement p { margin: 0; color: #405760; }
.er-measurement a { color: var(--er-green-deep, #205f3d); text-decoration: underline; text-underline-offset: 3px; }
#er-measurement-state { margin-top: 10px; font-size: 12px; }
.er-measurement-actions { display: flex; gap: 10px; margin-top: 20px; }
.er-measurement-actions button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid rgba(32, 95, 61, .55);
  border-radius: 10px;
  background: rgba(255, 255, 255, .7);
  color: var(--er-green-deep, #205f3d);
  font: 600 13px/1.4 'Inter', sans-serif;
  cursor: pointer;
}
.er-measurement-actions button:hover { background: #ddf3e5; }
.er-measurement button:focus-visible, .er-measurement a:focus-visible, .er-measurement-settings:focus-visible {
  outline: 3px solid #2e7d52;
  outline-offset: 4px;
}
.er-measurement-settings {
  display: block;
  margin: 20px auto;
  padding: 12px 18px;
  border: 0;
  background: transparent;
  color: #205f3d;
  font: 500 13px/1.5 'Inter', sans-serif;
  text-decoration: underline;
  cursor: pointer;
}
@media (max-width: 480px) {
  .er-measurement { padding: 24px 22px 22px; border-radius: 18px; }
}
