/* Analytics preferences: independent of the website's existing visual assets. */
.analytics-panel {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 1100;
  width: min(440px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  overflow: auto;
  padding: 20px;
  background: var(--paper, #fffefa);
  color: var(--ink, #20211f);
  border: 1px solid var(--line, #d8d9cf);
  border-radius: 16px;
  box-shadow: 0 6px 30px #0002;
  font-size: 14px;
  line-height: 1.5;
}
.analytics-panel[hidden], .analytics-panel button[hidden] { display: none; }
.analytics-panel h2 { font-family: inherit; font-size: 18px; font-weight: 650; line-height: 1.35; letter-spacing: 0; margin: 0 0 8px; }
.analytics-panel p { margin: 0 0 8px; }
.analytics-panel a { text-decoration: underline; text-underline-offset: 3px; }
.analytics-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.analytics-actions button { flex: 1 1 120px; min-height: 44px; padding: 8px 12px; border: 1px solid currentColor; border-radius: 24px; background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.analytics-actions .analytics-close { flex-basis: 100%; border-color: var(--line, #d8d9cf); font-weight: 400; }
.analytics-preferences { min-height: 44px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.analytics-actions button:focus-visible, .analytics-preferences:focus-visible, .analytics-panel h2:focus-visible { outline: 3px solid var(--blue, #20211f); outline-offset: 3px; }
