.analytics-preferences {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .5rem 1.25rem;
  padding: 1rem;
  color: #535160;
  background: #f8f9fc;
  font: 400 .8rem/1.5 system-ui, sans-serif;
}
.analytics-preferences a { color: inherit; text-decoration: underline; }
.analytics-preferences button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid #b3b1bf;
  border-radius: .5rem;
  min-height: 44px;
  padding: .5rem .9rem;
  cursor: pointer;
}
.analytics-preferences button[hidden] { display: none; }
.analytics-preferences :focus-visible { outline: 2px solid #5c4086; outline-offset: 3px; }
.analytics-consent {
  position: fixed;
  z-index: 1000;
  inset: auto 1rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem 2rem;
  padding: 1.25rem;
  border: 1px solid #b3b1bf;
  border-radius: .75rem;
  color: #29243f;
  background: #f8f9fc;
  box-shadow: 0 .5rem 2rem #19182e26;
  font: 400 .9rem/1.5 system-ui, sans-serif;
}
.analytics-consent[hidden] { display: none; }
.analytics-consent h2 { margin: 0 0 .4rem; font: 600 1.1rem/1.4 system-ui, sans-serif; }
.analytics-consent p { margin: 0; max-width: 75ch; }
.analytics-consent a { color: inherit; text-decoration: underline; }
.analytics-consent-actions { display: flex; flex-wrap: wrap; flex-shrink: 0; gap: .75rem; }
.analytics-consent button {
  padding: .65rem 1rem;
  min-height: 44px;
  font: 600 .9rem/1.5 system-ui, sans-serif;
  color: inherit;
  background: transparent;
  border: 1px solid #8a869a;
  border-radius: .5rem;
  cursor: pointer;
}
.analytics-consent :focus-visible { outline: 2px solid #5c4086; outline-offset: 3px; }
@media (max-width: 800px) {
  .analytics-consent { flex-direction: column; align-items: stretch; inset: auto .5rem .5rem; max-height: 85vh; overflow: auto; }
  .analytics-consent-actions button { flex: 1; }
}
@media (prefers-color-scheme: dark) {
  .analytics-preferences, .analytics-consent { background: #19182e; color: #e9e7f1; }
}
