.analytics-banner[hidden] { display: none; }
.analytics-banner {
  position: fixed; z-index: 80; inset: auto 18px 18px;
  width: min(920px, calc(100% - 36px)); margin: 0 auto; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  color: #173c31; background: #fffef9; border: 1px solid #c5d4c5;
  border-radius: 16px; box-shadow: 0 8px 36px #173c3124;
  font: 14px/1.45 Inter, ui-sans-serif, system-ui, sans-serif;
}
.analytics-banner p { margin: 0; }
.analytics-banner strong, .analytics-banner span { display: block; }
.analytics-banner strong { margin-bottom: 3px; font-size: 15px; }
.analytics-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.analytics-actions button {
  width: auto; margin: 0; padding: 10px 13px; min-height: 44px;
  border: 1px solid #657e6f; border-radius: 9px; background: #f4f7f0;
  color: #173c31; font: inherit; font-weight: 650; cursor: pointer; white-space: nowrap;
}
.analytics-actions button:hover { background: #e7eedf; }
.analytics-actions button:disabled { opacity: .55; cursor: default; }
.analytics-actions button:focus-visible, .analytics-preferences:focus-visible {
  outline: 3px solid #44715a; outline-offset: 3px;
}
.analytics-actions [data-analytics-details], .analytics-actions [data-analytics-close] { border-color: transparent; background: transparent; text-decoration: underline; }
.analytics-preferences {
  padding: 0; border: 0; background: transparent; color: inherit;
  font: inherit; text-decoration: underline; cursor: pointer;
}
.analytics-dialog {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 40px);
  padding: 0; border: 1px solid #c5d4c5; border-radius: 18px;
  color: #173c31; background: #fffef9; font: 15px/1.6 Inter, ui-sans-serif, system-ui, sans-serif;
}
.analytics-dialog::backdrop { background: #122d2680; }
.analytics-dialog-content { padding: 26px; }
.analytics-dialog h2 { margin: 0 0 12px; font-size: 24px; }
.analytics-dialog p { margin: 0 0 16px; }
.analytics-dialog a { color: #245b42; text-decoration: underline; }
.analytics-status { padding: 10px 12px; border-radius: 8px; background: #eaf0e5; }
@media (max-width: 640px) {
  .analytics-banner { inset: auto 12px 12px; width: calc(100% - 24px); padding: 14px; display: block; }
  .analytics-banner .analytics-actions { margin-top: 10px; }
  .analytics-banner .analytics-actions button { flex: 1 0 auto; }
  .analytics-dialog-content { padding: 22px 18px; }
}
