.analytics-banner[hidden], .analytics-settings[hidden] { display: none !important; }
.analytics-settings { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.analytics-banner { position: fixed; z-index: 90; right: 20px; bottom: 20px; width: min(450px, calc(100vw - 40px)); max-height: min(620px, calc(100dvh - 40px)); overflow-y: auto; padding: 20px; border: 1px solid #b9b9b3; background: #fffdf8; color: #171819; box-shadow: 0 8px 32px #0002; font: 14px/1.45 system-ui, sans-serif; }
.analytics-banner h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.25; }
.analytics-banner p { margin: 8px 0; }
.analytics-banner a { color: #753500; text-decoration: underline; text-underline-offset: 3px; }
.analytics-banner summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.analytics-banner details { margin: 10px 0; }
.analytics-banner-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.analytics-banner-actions button { min-height: 44px; padding: 10px; border: 1px solid #171819; border-radius: 0; background: transparent; color: #171819; font: 600 14px/1.3 system-ui, sans-serif; cursor: pointer; }
.analytics-banner-actions button:hover { background: #eeeae2; }
.analytics-banner :focus-visible, .analytics-settings:focus-visible { outline: 3px solid #b23d00; outline-offset: 3px; }
@media (max-width: 640px) {
  .analytics-banner { left: 12px; right: 12px; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); width: auto; padding: 16px; max-height: calc(100dvh - 130px - env(safe-area-inset-bottom, 0px)); }
}
