/* Optional analytics controls: served only when a measurement ID is configured. */
.analytics-preferences {
  display: block; padding: 0; border: 0; background: transparent;
  color: var(--foot-ink); font: inherit; text-align: left; text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer;
}
.analytics-preferences:hover { color: var(--foot-head); }
.analytics-preferences:focus-visible { outline-color: var(--foot-head); }
.analytics-panel {
  position: fixed; z-index: 20; right: 16px; bottom: 16px; width: min(560px, calc(100% - 32px));
  max-height: min(60vh, 480px); overflow: auto; padding: 20px;
  border: 1px solid var(--rule); border-radius: 8px; background: var(--surface);
  color: var(--body); box-shadow: 0 4px 24px #0003; font-size: 15px;
}
.analytics-panel h2 { margin: 0 0 8px; font-size: 23px; }
.analytics-panel p { margin: 0 0 12px; }
.analytics-panel [data-analytics-status]:empty { display: none; }
.analytics-choices { display: flex; gap: 12px; flex-wrap: wrap; }
.analytics-choices button {
  flex: 1 1 180px; min-height: 44px; padding: 9px 14px; border: 1px solid var(--ink);
  border-radius: 5px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer;
}
.analytics-choices button:hover { background: var(--soft); }
