#analytics-consent[hidden] { display: none; }
#analytics-consent {
  position: fixed; inset: auto 1rem 1rem; z-index: 10000;
  max-width: 58rem; margin-inline: auto; padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 1.5rem;
  background: var(--bg-panel, #171923); color: var(--fg, #f5f5f5);
  border: 1px solid var(--border, #626579); border-radius: 12px;
  box-shadow: 0 8px 32px #0004; font-size: 0.875rem;
}
#analytics-consent p { margin: .35rem 0 0; line-height: 1.5; }
#analytics-consent a { color: inherit; text-decoration: underline; }
.analytics-actions { display: flex; gap: .5rem; flex-shrink: 0; }
#analytics-consent button, #analytics-settings {
  color: inherit; background: transparent; border: 1px solid var(--border, #626579);
  border-radius: 6px; padding: .65rem .85rem; font: inherit; cursor: pointer;
}
#analytics-consent button:hover, #analytics-settings:hover { background: var(--bg-hover, #ffffff15); }
#analytics-consent button:focus-visible, #analytics-settings:focus-visible { outline: 2px solid var(--accent, #a7a4ff); outline-offset: 3px; }
#analytics-settings { margin-top: .75rem; }
@media (max-width: 640px) {
  #analytics-consent { flex-direction: column; align-items: stretch; gap: .75rem; inset-inline: .5rem; bottom: .5rem; padding: 1rem; }
  .analytics-actions button { flex: 1; }
}
