#analytics-consent {
  position: fixed;
  z-index: 150;
  inset: auto 20px 20px;
  max-width: 940px;
  margin-inline: auto;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  box-shadow: 0 8px 40px var(--paper);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}
#analytics-consent[hidden], .analytics-settings[hidden] { display: none; }
#analytics-consent h2 { font: 600 18px/1.3 var(--sans); margin-bottom: 8px; }
#analytics-consent p { font: 400 14px/1.5 var(--sans); color: var(--ink-2); }
#analytics-consent a { text-decoration: underline; text-underline-offset: 3px; }
.analytics-consent-actions { display: flex; flex-shrink: 0; gap: 10px; }
.analytics-consent-actions button {
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font: 600 14px/1.4 var(--sans);
  background: var(--white);
}
.analytics-consent-actions button:hover { border-color: var(--accent); }
.analytics-settings {
  position: fixed;
  z-index: 90;
  bottom: 12px;
  left: 12px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--paper-2);
  color: var(--ink-2);
  font: 400 12px/1.4 var(--sans);
}
@media (max-width: 640px) {
  #analytics-consent { inset-inline: 12px; bottom: 12px; padding: 20px; flex-direction: column; align-items: stretch; gap: 16px; }
  .analytics-consent-actions button { flex: 1; }
}
