.analytics-consent {
  position: fixed;
  z-index: 1090;
  right: 16px;
  bottom: 16px;
  display: grid;
  width: min(470px, calc(100% - 32px));
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid rgba(126, 139, 159, .3);
  border-radius: 10px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 12px 34px rgba(7, 18, 37, .15);
  color: #566377;
  backdrop-filter: blur(12px);
}

.analytics-consent[hidden] { display: none; }
.analytics-consent p { margin: 0; font-size: .72rem; line-height: 1.45; }
.analytics-consent strong { color: #142238; font-weight: 750; }
.analytics-consent a { color: var(--ch-brand-navy); font-weight: 650; text-underline-offset: 2px; }
.analytics-consent > div { display: flex; justify-content: flex-end; gap: 7px; }
.analytics-consent button { min-height: 32px; padding: 6px 11px; border-radius: 7px; font: inherit; font-size: .7rem; font-weight: 700; line-height: 1.2; cursor: pointer; }
.analytics-consent-decline { border: 1px solid #d8dfeb; background: #fff; color: #5b687b; }
.analytics-consent-allow { border: 1px solid var(--ch-brand-navy); background: var(--ch-brand-navy); color: #fff; }
.analytics-consent button:focus-visible { outline: 3px solid rgba(var(--ch-brand-blue-rgb), .2); outline-offset: 2px; }
.analytics-settings-button { appearance: none; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

@media (max-width: 680px) {
  .app-page .analytics-consent { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .analytics-consent { right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); width: calc(100% - 20px); }
  .analytics-consent p { font-size: .69rem; }
}
