.analytics-consent[hidden] { display: none; }
.analytics-consent {
  position: fixed;
  z-index: 20;
  right: 24px;
  bottom: max(76px, calc(env(safe-area-inset-bottom) + 64px));
  width: min(480px, calc(100% - 48px));
  max-height: calc(100svh - 112px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  text-align: left;
  color-scheme: light;
  font-family: "DM Mono", monospace;
}
.analytics-consent h2 {
  margin: 0 0 16px;
  font: 700 30px/1.05 "Instrument Sans", Arial, sans-serif;
  letter-spacing: -.04em;
}
.analytics-consent p { margin: 0 0 16px; font-size: 12px; line-height: 1.7; }
.analytics-consent a { color: inherit; text-underline-offset: .25em; }
.analytics-consent .analytics-choice { font-size: 11px; }
.analytics-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.analytics-actions button {
  min-height: 44px;
  padding: 10px;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
  font: 400 12px/1.5 "DM Mono", monospace;
  cursor: pointer;
}
.analytics-settings {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .3em;
}
.legal-footer .analytics-settings { position: absolute; left: 50%; transform: translateX(-50%); color: #ddd; text-decoration: none; }
.analytics-actions button:hover, .analytics-settings:hover, .analytics-consent a:hover { color: #ff3600; }
.analytics-actions button:focus-visible, .analytics-settings:focus-visible, .analytics-consent a:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
.legal-footer .analytics-settings:focus-visible { outline-color: currentColor; }
@media (max-width: 480px) {
  .analytics-consent { right: 16px; width: calc(100% - 32px); padding: 20px; }
}
