.academy-analytics-preferences {
  position: fixed;
  z-index: 1200;
  inset: auto auto max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  width: min(350px, calc(100vw - 24px));
  color: #172238;
  font: 14px/1.5 system-ui, sans-serif;
}
.academy-analytics-preferences [hidden] { display: none !important; }
.academy-analytics-preferences__panel {
  box-sizing: border-box;
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
  margin-bottom: 8px;
  padding: 16px;
  border: 1px solid #a8b4c7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 20px #17223826;
}
.academy-analytics-preferences h2 { margin: 0 0 8px; font: 600 17px/1.3 system-ui, sans-serif; }
.academy-analytics-preferences p { margin: 0 0 12px; }
.academy-analytics-preferences__status { font-weight: 600; }
.academy-analytics-preferences__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.academy-analytics-preferences button {
  box-sizing: border-box;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #52637d;
  border-radius: 7px;
  color: #172238;
  background: #fff;
  font: 600 13px/1.35 system-ui, sans-serif;
  cursor: pointer;
}
.academy-analytics-preferences__actions button { flex: 1 1 135px; }
.academy-analytics-preferences button:hover { background: #edf3fa; }
.academy-analytics-preferences button:focus-visible { outline: 3px solid #086bc1; outline-offset: 3px; }
.academy-analytics-preferences button:disabled { cursor: not-allowed; opacity: .6; }
