.analytics-consent {
  position:fixed;
  z-index:90;
  right:1rem;
  bottom:1rem;
  width:min(22rem,calc(100% - 2rem));
  max-height:calc(100dvh - 2rem);
  overflow:auto;
  padding:1.1rem 1.2rem 1.2rem;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--card);
  color:var(--text);
  box-shadow:0 8px 30px #0002;
  font-size:0.95rem;
  line-height:1.6;
}
.analytics-consent[hidden] { display:none; }
.analytics-consent [hidden] { display:none; }
.analytics-consent-heading { display:flex; align-items:center; justify-content:space-between; gap:0.75rem; }
.analytics-consent-heading h2 { margin:0; font-size:1rem; line-height:1.4; }
.analytics-consent-heading button { flex:none; min-width:44px; font-size:1.25rem; }
.analytics-consent p { margin:0.75rem 0; }
.analytics-consent a { font-size:0.875rem; text-decoration:underline; text-underline-offset:0.2em; }
.analytics-consent-status { color:var(--muted); font-size:0.875rem; }
.analytics-consent-actions { display:flex; flex-wrap:wrap; gap:0.65rem; margin-top:1rem; }
.analytics-consent-actions button { flex:1 1 9rem; min-height:44px; font-size:0.9rem; }
.analytics-consent :focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
#analytics-preferences { font:inherit; }
@media (max-width:480px) {
  .analytics-consent { right:0.75rem; bottom:0.75rem; width:calc(100% - 1.5rem); padding:1rem; }
}
