/* Optional analytics controls, scoped to avoid changing the school website. */
.analytics-preferences {
  position: fixed;
  z-index: 70;
  right: 24px;
  bottom: 24px;
  width: min(430px, calc(100vw - 40px));
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
  padding: 26px;
  border: 1px solid #b9c5d1;
  border-radius: 6px;
  background: #fff;
  color: #233449;
  box-shadow: 0 12px 45px #18345126;
  font-family: var(--sans, Arial, sans-serif);
  line-height: 1.65;
}
.analytics-preferences[hidden] { display: none !important; }
.analytics-preferences h2 { margin: 0 0 12px; font: 600 24px/1.25 var(--serif, Georgia, serif); letter-spacing: -.4px; }
.analytics-preferences p { margin: 0 0 13px; font-size: 13px; color: #526173; }
.analytics-preferences .analytics-preferences-status { font-size: 12px; font-weight: 600; color: #233449; }
.analytics-preferences > a { font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.analytics-preferences-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.analytics-choice { flex: 1; min-width: 145px; min-height: 44px; padding: 10px 14px; background: #183451; color: #fff; border: 1px solid #183451; border-radius: 3px; font: 600 12px/1.5 var(--sans, Arial, sans-serif); }
.analytics-choice[data-analytics-choice="denied"] { background: #fff; color: #183451; }
.analytics-choice:hover { background: #edf2f7; color: #183451; }
.analytics-preferences-close { min-height: 44px; border: 0; background: transparent; padding: 10px 0 0; margin-top: 4px; font: 600 12px/1.5 var(--sans, Arial, sans-serif); color: #183451; text-decoration: underline; text-underline-offset: 3px; }
.analytics-preferences :is(button,a):focus-visible { outline: 3px solid #8c641f; outline-offset: 3px; }
@media (max-width: 720px) { .analytics-preferences { right: 20px; bottom: 76px; padding: 22px; } }
