.analytics-consent {
  position: fixed;
  z-index: 20;
  right: max(16px, calc((100vw - 760px) / 2));
  bottom: 18px;
  display: grid;
  gap: 12px;
  width: min(calc(100vw - 32px), 520px);
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 14px 40px rgb(0 0 0 / .2);
  animation: consent-in 180ms ease-out;
}

.analytics-consent strong { font-size: .94rem; }
.analytics-consent p { margin: 5px 0 4px; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.analytics-consent a { color: var(--muted); font-size: .78rem; font-weight: 650; }
.analytics-consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.analytics-consent-actions button {
  min-height: 42px;
  padding: 7px 10px;
  border: 1px solid var(--text);
  border-radius: 9px;
  color: var(--text);
  background: var(--surface);
  font: inherit;
  font-size: .78rem;
  font-weight: 750;
  cursor: pointer;
}
.analytics-consent-actions button:hover { color: var(--surface); background: var(--text); }

.analytics-privacy-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface);
  font-size: .84rem;
  font-weight: 750;
  text-decoration: none;
}
.analytics-privacy-link:hover { border-color: var(--text); }

.analytics-consent-feedback {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes consent-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .analytics-consent { animation: none; }
}

@media (max-width: 420px) {
  .analytics-consent { right: 16px; bottom: 16px; }
  .analytics-consent-actions { grid-template-columns: 1fr; }
  .analytics-privacy-link { align-items: flex-start; flex-direction: column; gap: 5px; }
}
