.analytics-panel {
  position: fixed;
  inset: auto auto 24px 24px;
  z-index: 90;
  width: min(480px, calc(100% - 48px));
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 24px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 48px #1425362b;
}
.analytics-panel h2 { color: var(--navy); font-size: 19px; line-height: 1.35; letter-spacing: -.02em; }
.analytics-panel p { margin-top: 12px; font-size: 14px; line-height: 1.65; }
.analytics-privacy { display: inline; background: none; color: inherit; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.analytics-status { color: var(--muted); }
.analytics-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.analytics-actions button {
  background: var(--sky);
  color: var(--navy);
  border: 1px solid #97a7bd;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  min-height: 46px;
  padding: 10px;
}
.analytics-actions button:hover { background: #dceef4; }
.analytics-settings { background: none; color: inherit; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
footer .analytics-settings { font-size: .75rem; }
.footer-main > div { flex-wrap: wrap; row-gap: 12px; }
.analytics-panel button:focus-visible, .analytics-settings:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.analytics-preference { margin-top: 16px; }
@media (max-width: 600px) {
  .analytics-panel { inset: auto 12px 80px 12px; width: auto; padding: 20px; max-height: calc(100dvh - 104px); }
  .analytics-actions { gap: 10px; }
}
