.analytics-consent[hidden], .analytics-preferences[hidden] { display: none; }
.analytics-consent {
  position: fixed; inset-inline-start: 16px; bottom: 16px; z-index: 1500;
  width: min(420px, calc(100vw - 32px)); padding: 18px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel); color: var(--text); box-shadow: 0 8px 32px #0006;
  font: 14px/1.6 var(--font); text-align: start;
}
.analytics-consent strong { font-size: 15px; }
.analytics-consent p { margin: 8px 0 14px; color: var(--soft); }
.analytics-consent-actions { display: flex; gap: 10px; }
.analytics-consent-actions button, .analytics-preferences {
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2);
  color: var(--text); font: inherit; cursor: pointer; min-height: 44px;
}
.analytics-consent-actions button { flex: 1; padding: 8px 14px; }
.analytics-consent-actions button:hover, .analytics-preferences:hover { border-color: var(--accent); }
.analytics-consent-actions button:focus-visible, .analytics-preferences:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.analytics-preferences {
  position: fixed; inset-inline-end: 12px; bottom: 12px; z-index: 100;
  padding: 6px 12px; font: 12px/1.4 var(--font); opacity: .9;
}
