.analytics-banner {
  position: fixed;
  z-index: 10000;
  right: 22px;
  bottom: 22px;
  width: min(340px, calc(100vw - 32px));
  padding: 17px 18px 15px;
  color: var(--ink, #22211f);
  background: #fffdf8;
  border: 1px solid var(--line, #d7d4cc);
  border-radius: 15px;
  box-shadow: 0 16px 42px rgba(34, 33, 31, .18);
  font: 400 13px/1.45 var(--body, Onest, system-ui, sans-serif);
  animation: analytics-note-in .22s ease-out both;
}
.analytics-note__topline {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted, #706e68);
  font: 10px/1.2 var(--display, SpaceGrotesk, system-ui, sans-serif);
  letter-spacing: .08em;
}
.analytics-note__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent, #d9593f);
}
.analytics-note__topline a {
  margin-left: auto;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.analytics-note__copy { padding: 12px 0 15px; }
.analytics-note__copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.025em;
}
.analytics-note__copy p { margin: 0; color: var(--muted, #706e68); }
.analytics-note__actions { display: flex; justify-content: flex-end; gap: 8px; }
.analytics-button {
  min-height: 35px;
  padding: 7px 12px;
  border: 1px solid var(--line, #d7d4cc);
  border-radius: 100px;
  color: var(--ink, #22211f);
  background: transparent;
  font: 600 12px/1.2 var(--body, Onest, system-ui, sans-serif);
  cursor: pointer;
  transition: transform .16s ease, background .16s ease;
}
.analytics-button--primary { color: var(--paper, #faf9f6); background: var(--ink, #22211f); border-color: var(--ink, #22211f); }
.analytics-button:hover { transform: translateY(-1px); }
.analytics-button--primary:hover { background: #393834; border-color: #393834; }
.analytics-button:focus-visible, .analytics-settings-link:focus-visible, .analytics-note__topline a:focus-visible {
  outline: 2px solid var(--accent, #d9593f);
  outline-offset: 3px;
}
.analytics-settings-link {
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.site-footer .analytics-settings-link { margin-top: 8px; }
.privacy-copy { max-width: 66ch; margin-top: 34px; color: var(--muted, #706e68); }
.privacy-copy p { margin: 0 0 18px; }
.privacy-copy a { color: var(--ink, #22211f); text-decoration: underline; }
@keyframes analytics-note-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 480px) {
  .analytics-banner { right: 12px; bottom: 12px; width: min(340px, calc(100vw - 24px)); }
}
@media (prefers-reduced-motion: reduce) {
  .analytics-banner, .analytics-button { animation: none; transition: none; }
}
