#analytics-choices[hidden], #analytics-settings[hidden] { display: none; }
#analytics-choices {
  position: fixed; right: 20px; bottom: 66px; z-index: 10000;
  width: min(410px, calc(100vw - 32px)); max-height: calc(100svh - 96px);
  overflow: auto; padding: 22px; background: var(--bg, #fbfbfb); color: var(--ink, #0b0b0a);
  border: 1px solid #c9c9c9; border-radius: 4px; box-shadow: 0 8px 32px #00000018;
  font: 14px/1.5 InterVariable, system-ui, sans-serif; text-align: left;
}
#analytics-choices h2 { position: static; font: 700 20px/1.2 InterVariable, system-ui, sans-serif; margin: 0 0 12px; color: inherit; }
#analytics-choices p { margin: 10px 0; }
#analytics-choices a { color: inherit; text-decoration: underline; }
#analytics-choices > div { display: flex; gap: 10px; flex-wrap: wrap; }
#analytics-choices button, #analytics-settings, #analytics-privacy-settings {
  font: 500 13px/1.4 InterVariable, system-ui, sans-serif; letter-spacing: normal;
  text-transform: none; cursor: pointer; border: 1px solid #0b0b0a; border-radius: 4px;
  padding: 11px 14px; background: #fbfbfb; color: #0b0b0a; min-height: 42px;
}
#analytics-choices button:disabled { opacity: .5; cursor: default; }
#analytics-choices button:focus-visible, #analytics-settings:focus-visible, #analytics-privacy-settings:focus-visible {
  outline: 2px solid var(--signal, #ff1493); outline-offset: 3px;
}
#analytics-settings { position: fixed; right: 20px; bottom: 14px; z-index: 9999; }
@media (max-width: 600px) {
  #analytics-choices { right: 16px; bottom: 68px; padding: 18px; }
  #analytics-settings { right: 16px; bottom: max(14px, env(safe-area-inset-bottom)); }
  #analytics-choices > div > button { flex: 1; }
}
