.analytics-consent[hidden], .analytics-consent button[hidden] { display: none; }
.analytics-consent {
  position: fixed; z-index: 80; right: 24px; bottom: 24px;
  width: min(450px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  padding: 24px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--panel); color: var(--text); box-shadow: 0 12px 48px #0003;
}
.analytics-consent h2 { font: 700 1rem/1.4 var(--sans); margin: 0 0 10px; letter-spacing: -.02em; }
.analytics-consent p { color: var(--muted); font-size: .82rem; line-height: 1.7; margin: 0 0 18px; }
.analytics-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.analytics-consent button {
  min-height: 44px; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--text); cursor: pointer; font-size: .8rem; font-weight: 600;
}
.analytics-consent .analytics-allow { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.analytics-settings { padding: 6px 0; border: 0; background: none; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; font-size: .75rem; }
.analytics-consent button:focus-visible, .analytics-settings:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 600px) { .analytics-consent { right: 16px; bottom: 16px; padding: 20px; } }
