.metrics-settings {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.metrics-choice {
  position: fixed;
  z-index: 100;
  inset: auto 1rem max(1rem, env(safe-area-inset-bottom)) auto;
  width: min(27rem, calc(100% - 2rem));
  max-height: 75dvh;
  overflow: auto;
  padding: 1.25rem;
  border: 1px solid #5a5956;
  border-radius: 0.65rem;
  background: #191918;
  color: #f3f0e9;
  box-shadow: 0 0.5rem 2.5rem #0006;
}
.metrics-choice[hidden] {
  display: none;
}
.metrics-choice h2 {
  margin: 0;
  font:
    600 1.1rem/1.3 Inter,
    sans-serif;
}
.metrics-choice p {
  margin: 0.6rem 0 1rem;
  font:
    400 0.9rem/1.5 Inter,
    sans-serif;
  color: #d6d3cc;
}
.metrics-choice div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.metrics-choice button {
  flex: 1;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  border: 1px solid #77756f;
  border-radius: 0.35rem;
  background: #252524;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.metrics-choice button:hover {
  background: #393938;
}

.metrics-choice a { color: inherit; text-decoration: underline; }

.metrics-choice.metrics-inline {
  position: static;
  margin: 1rem auto;
}
