.analytics-consent {
  position: fixed;
  z-index: 2000;
  inset: auto 20px max(20px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 20px 32px;
  max-width: 1080px;
  margin-inline: auto;
  padding: 24px;
  border: 1px solid #d8d4ca;
  border-radius: 16px;
  color: #20201d;
  background: #f6f3eb;
  box-shadow: 0 8px 40px #20201d26;
  font: 400 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.analytics-consent[hidden],
.analytics-consent [hidden] { display: none; }
.analytics-consent-copy { flex: 1; min-width: 0; }
.analytics-consent h2 {
  margin: 0 0 6px;
  color: inherit;
  font: 700 18px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: normal;
  text-transform: none;
}
.analytics-consent p { margin: 0; font: inherit; color: inherit; }
.analytics-consent a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.analytics-consent .analytics-signal { margin-top: 8px; font-weight: 600; }
.analytics-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.analytics-consent-actions button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #20201d;
  border-radius: 999px;
  color: #20201d;
  background: transparent;
  cursor: pointer;
  font: 600 14px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  white-space: nowrap;
}
.analytics-consent-actions button:hover { background: #e8e3d8; }
.analytics-consent-actions button:disabled { opacity: .5; cursor: default; }
.analytics-consent-actions .analytics-consent-close {
  flex-basis: 100%;
  min-height: 36px;
  padding: 4px;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.analytics-privacy-choice {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.analytics-privacy-choice:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom nav,
.share-page-footer nav { flex-wrap: wrap; align-items: center; }
.analytics-consent button:focus-visible,
.analytics-consent a:focus-visible,
.analytics-privacy-choice:focus-visible { outline: 3px solid #b53820; outline-offset: 4px; }
.analytics-footer { padding: 20px 24px; color: #20201d; font: 400 14px/1.5 sans-serif; }
@media (max-width: 700px) {
  .analytics-consent { inset-inline: 12px; bottom: max(12px, env(safe-area-inset-bottom)); flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; max-height: 80vh; overflow-y: auto; }
  .analytics-consent-actions button:not(.analytics-consent-close) { flex: 1; white-space: normal; }
}
