#analytics-notice[hidden] { display: none; }
#analytics-notice { position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 10000;
  max-width: 620px; padding: 20px; box-sizing: border-box; background: #121218;
  color: #fff; border: 1px solid #6d6d7b; border-radius: 8px; font: 16px/1.5 system-ui; }
#analytics-notice h2 { font-size: 20px; margin: 0 0 8px; }
#analytics-notice p { margin: 0 0 12px; }
#analytics-notice a { color: #5ee5d2; text-decoration: underline; }
#analytics-notice .analytics-actions { display: flex; gap: 12px; flex-wrap: wrap; }
#analytics-notice button, #analytics-settings { font: inherit; cursor: pointer;
  border: 1px solid #aaa; border-radius: 4px; padding: 10px 14px; background: #191922; color: #fff; }
#analytics-notice button:focus-visible, #analytics-settings:focus-visible { outline: 3px solid #5ee5d2; outline-offset: 3px; }

/* Keep the controls readable inside the existing AMD and legal-page themes. */
#analytics-settings[hidden] { display: none; }
#analytics-notice { max-height: calc(100dvh - 32px); overflow: auto; }
#analytics-notice h2 { padding: 0; border: 0; border-radius: 0; background: transparent;
  color: inherit; line-height: 1.3; letter-spacing: normal; }
#analytics-notice p { color: inherit; font: inherit; padding: 0; }
.analytics-web-scope { max-width: 800px; margin: 16px; padding: 16px;
  font: 14px/1.5 system-ui; background: #121218; color: #fff; border-radius: 4px; }
.analytics-web-scope a { color: #5ee5d2; text-decoration: underline; }
@media print { #analytics-notice, #analytics-settings, .analytics-web-scope { display: none; } }
