.statistics-consent[hidden],
.statistics-settings[hidden] { display: none; }
.statistics-consent {
  position: fixed;
  z-index: 10;
  inset: auto 1rem 1rem auto;
  width: min(25rem, calc(100% - 2rem));
  box-sizing: border-box;
  padding: 1rem;
  color: CanvasText;
  background: Canvas;
  border: 1px solid currentColor;
  border-radius: .75rem;
}
.statistics-consent p { margin: 0 0 .75rem; }
.statistics-consent-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.statistics-consent-actions button {
  font: inherit;
  color: inherit;
  background: transparent;
  padding: .35rem .75rem;
  border: 1px solid currentColor;
  border-radius: .35rem;
  cursor: pointer;
}
.statistics-settings {
  padding: 0;
  border: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  background: transparent;
  cursor: pointer;
}

.statistics-consent {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--edge);
  box-shadow: 0 9px 30px #0003;
  padding: 13px;
  font-size: 14px;
}
.statistics-consent p { margin: 0 0 9px; }
.statistics-consent-actions { gap: 8px; }
.statistics-consent-actions button {
  min-height: 44px;
  border-color: var(--violet);
  font-size: 14px;
  font-weight: 580;
  background: transparent;
  color: var(--violet);
}
.statistics-consent-actions button:hover { background: var(--lavender); color: var(--violet); }
.statistics-settings {
  color: var(--violet);
  min-height: 44px;
  font-size: 14px;
  text-decoration: none;
}
.statistics-settings:hover { color: var(--ink); background: transparent; }
[data-theme=dark] .statistics-settings { color: var(--violet); background: transparent; }
[data-theme=dark] .statistics-settings:hover { color: var(--ink); background: transparent; }
