.footer-privacy { display: flex; justify-content: flex-end; }
.privacy-settings { border: 0; padding: 0; min-height: 44px; background: transparent; color: var(--muted); font: 14px/1.5 var(--sans); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.analytics-choice { position: fixed; z-index: 30; right: 24px; bottom: 24px; width: 470px; max-width: calc(100% - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 26px; border: 1px solid var(--rule); background: var(--paper); box-shadow: 0 12px 50px #173f3326; }
.analytics-choice h2 { font: 500 25px/1.3 var(--sans); letter-spacing: -.6px; margin-bottom: 12px; }
.analytics-choice p { font: 16px/1.65 var(--sans); color: var(--muted); }
.analytics-choice summary { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.analytics-choice details p { padding-bottom: 16px; }
.analytics-choice details a { text-decoration: underline; text-underline-offset: 4px; }
.analytics-category { padding-top: 12px; margin-top: 14px; border-top: 1px solid var(--rule); }
.analytics-category label { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; font-size: 17px; font-weight: 600; cursor: pointer; }
.analytics-category small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.analytics-category input { width: 24px; height: 24px; margin: 0; accent-color: var(--ink); flex-shrink: 0; cursor: pointer; }
.analytics-category input:disabled { cursor: default; }
.analytics-choice .analytics-category p { font-size: 15px; }
.analytics-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.analytics-buttons--single { grid-template-columns: 1fr; margin-top: 10px; }
.analytics-buttons button { min-height: 48px; padding: 10px 12px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 500 15px/1.5 var(--sans); cursor: pointer; }
.analytics-buttons button:hover { background: var(--sage); }
.analytics-buttons .analytics-primary { color: var(--paper); background: var(--ink); }
.analytics-buttons .analytics-primary:hover { background: #244e40; }
.analytics-close { min-height: 44px; margin-top: 10px; padding: 0; border: 0; background: transparent; color: var(--muted); font: 14px/1.5 var(--sans); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.privacy-settings:focus-visible, .analytics-choice button:focus-visible, .analytics-choice input:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.analytics-choice h2:focus { outline: none; }
.privacy-settings[hidden], .analytics-choice[hidden], .analytics-choice [hidden] { display: none; }
@media (max-width: 640px) {
  .analytics-choice { right: 16px; bottom: 16px; padding: 22px; }
  .footer-privacy { justify-content: flex-start; }
}
