.analytics-panel {
  position: fixed;
  z-index: 30;
  inset: auto 1rem 1rem;
  max-width: 39rem;
  margin-inline: auto;
  padding: 1rem 1.2rem;
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  color: var(--ink, #302b28);
  background: var(--white, #fffdf8);
  border: 1px solid var(--line, #ddd3c7);
  border-radius: .75rem;
  box-shadow: 0 .35rem 1.8rem #302b2840;
  font-size: 1rem;
}
.analytics-panel[hidden] { display: none; }
.analytics-panel h2 { font-size: 1.25rem; margin: 0; }
.analytics-panel p { margin: .5rem 0; }
.analytics-actions { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: .75rem; }
.analytics-actions button {
  min-height: 44px;
  flex: 1 1 12rem;
  border: 1px solid currentColor;
  border-radius: .35rem;
  background: var(--white, #fffdf8);
  color: var(--ink, #302b28);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.analytics-settings {
  appearance: none;
  background: none;
  border: 0;
  padding: .25rem 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
