.analytics-panel {
  position: fixed;
  z-index: 6;
  inset: auto max(var(--gutter), calc((100% - var(--width)) / 2)) max(16px, env(safe-area-inset-bottom)) auto;
  inline-size: min(390px, calc(100% - 2 * var(--gutter)));
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 6px 20px rgb(28 28 28 / .15);
}
.analytics-panel h2 { font-size: 1rem; }
.analytics-panel p { margin-block: 5px 10px; font-size: .88rem; line-height: 1.4; }
.analytics-options { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.analytics-options :is(.analytics-status, .button) { min-block-size: 40px; padding-inline: 10px; font-size: .82rem; }
.analytics-status { display: inline-flex; align-items: center; border-radius: var(--radius); background: var(--surface); font-weight: 750; }
.analytics-status-active { background: var(--accent); }
.footer-base:has(.analytics-settings:not([hidden])) { align-items: center; }
.analytics-settings { min-block-size: 32px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: start; }
.analytics-settings:hover { color: var(--ink); }

@media (max-width: 930px) {
  .analytics-panel {
    --analytics-bottom: calc(76px + env(safe-area-inset-bottom));
    inset: auto 0 var(--analytics-bottom);
    margin-inline: auto;
    max-block-size: calc(100dvh - var(--analytics-bottom) - 16px);
    overflow-y: auto;
  }
  body:has(.product-dock:not([hidden])) .analytics-panel { --analytics-bottom: calc(129px + env(safe-area-inset-bottom)); }
}
