.analytics-preferences {
  position: fixed;
  z-index: 30;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  width: min(370px, calc(100% - 28px));
  padding: 14px;
  border: 1px solid #686868;
  border-radius: 8px;
  background: #1a1a1a;
  color: #f5f5f2;
  box-shadow: 0 8px 24px #0008;
}
.analytics-preferences[hidden] { display: none; }
.analytics-preferences h2 {
  margin: 0;
  font: 700 17px/1.3 'DM Sans', sans-serif;
  letter-spacing: normal;
  text-transform: none;
}
.analytics-preferences p { margin: 6px 0 12px; font-size: 13px; line-height: 1.45; }
.analytics-preferences p a { text-decoration: underline; }
.analytics-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.analytics-actions button {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 6px 9px;
  border: 1px solid #888;
  border-radius: 4px;
  background: #252525;
  color: inherit;
  font-size: 13px;
  cursor: pointer;
}
