/* Merydion portal — the notice of the visit statistics (ADR 0782, feature 1162), shared by the pages of the
   shell (styles.css) and by the coming-soon page (coming-soon.css): it reads only the brand tokens both
   sheets define (--night-2, --on-night, --on-night-2, --mint, --mint-2, --gold, --ease, --ease-out).

   A night card anchored bottom-left — the motion control and the sign-out toast hold the bottom right —,
   built like the sign-out toast (title, a text that wraps, actions, ×) and dark like the motion control, the
   site's two fixed controls: on the paper of the portal and on the night of the coming-soon page it reads as
   part of the frame. Accept and Decline have the same weight, and the × declines. It never blocks the page:
   no veil, no scroll lock. Below 640px it spans the width, above the motion control when the page has one. */
.analytics-notice {
  position: fixed; z-index: 110;
  left: max(20px, env(safe-area-inset-left)); bottom: max(20px, env(safe-area-inset-bottom));
  width: min(420px, calc(100vw - 40px));
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 8px;
  padding: 18px 12px 18px 20px;
  background: var(--night-2); color: var(--on-night);
  border: 1px solid rgba(238, 245, 241, 0.16); border-radius: 16px;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.18);
  font-size: 0.9375rem; line-height: 1.5;
  animation: analytics-notice-in 0.36s var(--ease-out);
}
.analytics-notice[hidden] { display: none; }
/* The control that opens the notice again stays hidden until the script finds an installation with
   statistics: the cookie policy's wears `.btn`, whose author `display` would beat the UA's `[hidden]`. */
[data-analytics-preferences][hidden] { display: none; }
.analytics-notice-body { min-width: 0; }
.analytics-notice-title { margin: 0; font-weight: 700; font-size: 1rem; line-height: 1.35; color: var(--on-night); }
.analytics-notice-text { margin: 6px 0 0; color: var(--on-night-2); overflow-wrap: break-word; }
.analytics-notice-text a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.analytics-notice-text a:hover { color: var(--mint-2); }
.analytics-notice-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.analytics-notice-choice {
  padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(143, 227, 190, 0.38);
  background: rgba(143, 227, 190, 0.12); color: var(--mint-2);
  font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.analytics-notice-choice:hover { background: var(--mint); border-color: var(--mint); color: var(--night-2); }
.analytics-notice-close {
  width: 32px; height: 32px; margin: -6px -2px 0 0; display: grid; place-items: center;
  border: 0; border-radius: 10px; background: none; color: var(--on-night-2); cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.analytics-notice-close:hover { background: rgba(238, 245, 241, 0.08); color: var(--on-night); }
.analytics-notice-close .ui-glyph { width: 18px; height: 18px; }
.analytics-notice a:focus-visible, .analytics-notice button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@keyframes analytics-notice-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .analytics-notice { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: auto; }
  body:has(.motion) .analytics-notice { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 56px); }
}
@media (prefers-reduced-motion: reduce) {
  .analytics-notice { animation: none; }
}
@media print {
  .analytics-notice { display: none; }
}
