.analytics-preferences {
  position: fixed;
  z-index: 60;
  inset: auto 16px 16px auto;
  width: min(420px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 8px 30px #20211f26;
  font-size: 14px;
  line-height: 1.5;
}

.analytics-preferences h2 { font-size: 20px; letter-spacing: -.5px; }
.analytics-preferences p { margin: 8px 0; }
.analytics-preferences a { text-decoration: underline; text-underline-offset: 3px; }

.analytics-preferences-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.analytics-preferences-actions button {
  min-height: 44px;
  flex: 1 1 120px;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  border-radius: 30px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.analytics-preferences-actions button:hover { background: var(--lime); }

.analytics-settings {
  margin-inline-start: 14px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
