.analytics-settings {
  padding: 0.85rem 1rem;
  background: #171125;
  color: #f4eafa;
  text-align: center;
  font: 500 0.875rem/1.5 system-ui, sans-serif;
}

.analytics-settings button {
  border: 0;
  padding: 0.25rem 0.5rem;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.analytics-choices[hidden] { display: none; }

.analytics-choices {
  position: fixed;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 10000;
  box-sizing: border-box;
  width: min(25rem, calc(100% - 2rem));
  padding: 1.125rem;
  border: 1px solid #e1d3f0;
  border-radius: 1rem;
  background: #fcf9ff;
  color: #211731;
  box-shadow: 0 0.75rem 2.5rem #1b0d3833;
  font: 500 0.875rem/1.55 system-ui, sans-serif;
  text-align: left;
}

.analytics-choices h2 {
  margin: 0 0 0.4rem;
  color: inherit;
  font: 750 1rem/1.3 system-ui, sans-serif;
  letter-spacing: normal;
}

.analytics-choices p { margin: 0 0 0.875rem; color: inherit; }
.analytics-choices a { color: #5c2b8d; text-decoration: underline; }
.analytics-choices-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.analytics-choices-actions button {
  flex: 1 0 auto;
  min-height: 2.5rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid #c6afdf;
  border-radius: 0.6rem;
  background: #efe5f8;
  color: #33204d;
  font: 650 0.8125rem/1.25 system-ui, sans-serif;
  cursor: pointer;
}

.analytics-choices-actions button:hover { background: #e6d7f4; }
.analytics-choices :focus-visible { outline: 2px solid #6639a1; outline-offset: 3px; }
.analytics-settings :focus-visible { outline: 2px solid #f4eafa; outline-offset: 3px; }
