#preferenze-statistiche {
  position: fixed;
  z-index: 150;
  inset: auto 16px 20px auto;
  width: min(440px, calc(100% - 32px));
  max-height: calc(100dvh - 104px);
  overflow: auto;
  padding: 20px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}
#preferenze-statistiche h2 { font-size: 1.125rem; margin: 0 0 8px; }
#preferenze-statistiche p { margin: 0 0 12px; }
.statistiche-azioni { display: flex; flex-wrap: wrap; gap: 8px; }
#apri-preferenze-statistiche { color: inherit; background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
@media (min-width: 1280px) {
  #preferenze-statistiche { inset-inline-end: calc(var(--s4) + 192px); }
}
@media (max-width: 1279px) {
  #preferenze-statistiche {
    inset-block-end: calc(var(--bar-h) + 12px + env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - var(--bar-h) - 28px - env(safe-area-inset-bottom, 0px));
  }
}
