.analytics-consent {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 24px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  background: #151517;
  color: #f4f4f5;
  box-shadow: 0 12px 48px rgba(0,0,0,.45);
  font: 14px/1.5 -apple-system, "Segoe UI", system-ui, sans-serif;
  max-height: calc(100dvh - 40px);
  overflow: auto;
}
.analytics-consent[hidden] { display: none; }
.analytics-consent h2 { margin: 0 0 6px; font: 600 18px/1.3 -apple-system, "Segoe UI", system-ui, sans-serif; letter-spacing: normal; }
.analytics-consent p { margin: 0; color: #b5b5ba; font-size: 14px; }
.analytics-consent a { color: #69b5ff; text-decoration: underline; }
.analytics-consent #analytics-current-choice:empty { display: none; }
.analytics-consent #analytics-current-choice { margin-top: 6px; }
.analytics-consent-actions { display: flex; flex-shrink: 0; gap: 10px; }
.analytics-consent-actions button {
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px;
  background: #242428;
  color: #f4f4f5;
  font: inherit;
  cursor: pointer;
}
.analytics-consent-actions button:hover { background: #34343a; }
.analytics-consent-actions button:focus-visible,
[data-analytics-preferences]:focus-visible { outline: 2px solid #69b5ff; outline-offset: 4px; }
.analytics-preferences {
  padding: 0;
  border: 0;
  background: transparent;
  color: #69b5ff;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}
@media (max-width: 700px) {
  .analytics-consent { left: 12px; right: 12px; bottom: 12px; padding: 18px; flex-direction: column; align-items: stretch; gap: 14px; }
  .analytics-consent-actions button { flex: 1; }
}
