#analytics-notice[hidden], #analytics-preferences[hidden] { display: none; }
#analytics-notice {
  position: fixed;
  z-index: 150;
  inset: auto max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) auto;
  width: min(28rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  box-sizing: border-box;
  padding: 1.25rem;
  border: 1px solid #52666a;
  background: #101a1d;
  color: #f4f7f6;
  box-shadow: 0 .5rem 2rem #0007;
}
#analytics-notice h2 { margin: 0; font-size: 1.5rem; line-height: 1.25; }
#analytics-notice p { margin: .65rem 0 1rem; font-size: 1rem; line-height: 1.5; }
#analytics-notice a { color: var(--teal); text-decoration: underline; }
.analytics-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.analytics-actions button {
  flex: 1 1 10rem;
  min-height: 44px;
  padding: .5rem .8rem;
  border: 1px solid #90bbb7;
  color: #f4f7f6;
  background: #15282b;
  cursor: pointer;
  font: inherit;
}
.analytics-actions button:hover, .analytics-actions button:focus-visible { background: #263e42; }
#analytics-preferences { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
#analytics-preferences:hover { text-decoration: underline; }
