.analytics-consent { position: fixed; z-index: 10000;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px)); left: 12px; right: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-sizing: border-box; max-width: 760px; margin: auto; padding: 10px 12px;
  border: 1px solid var(--line, #e1e8ee); border-radius: 12px;
  background: var(--paper, #fff); color: var(--text, #222c33); box-shadow: 0 4px 20px #16202814;
  font: 500 12px/1.5 Manrope, sans-serif; }
.analytics-consent[hidden], [data-analytics-settings][hidden] { display: none !important; }
.analytics-consent p { margin: 0; }
.analytics-consent a { color: var(--sky, #215b88); text-decoration: underline; }
.analytics-consent div { display: flex; flex: none; gap: 6px; }
.analytics-consent button { box-sizing: border-box; min-height: 36px; padding: 7px 12px;
  border: 1px solid var(--line, #e1e8ee); border-radius: 8px;
  background: var(--paper, #fff); color: var(--text, #222c33); font: inherit; font-weight: 600; white-space: nowrap; cursor: pointer; }
.analytics-consent [data-analytics-yes] { background: #b94a2e; color: #fff; }
.analytics-consent :is(button, a):focus-visible { outline: 3px solid #215b88; outline-offset: 3px; }
[data-analytics-settings] { font: inherit; cursor: pointer; }
@media (max-width: 600px) {
  .analytics-consent { flex-direction: column; align-items: stretch; gap: 8px; }
  .analytics-consent div { justify-content: flex-end; }
  .analytics-consent button { min-height: 40px; }
}
@media (max-width: 1023px) {
  body[data-view] .analytics-consent {
    bottom: calc(var(--tabbar-h, 64px) + 20px + env(safe-area-inset-bottom, 0px));
  }
  body[data-view="swipes"]:has(.analytics-consent:not([hidden])) .viewfinder {
    padding-bottom: calc(var(--tabbar-h, 64px) + 88px + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 600px) {
  body[data-view="swipes"]:has(.analytics-consent:not([hidden])) .viewfinder {
    padding-bottom: calc(var(--tabbar-h, 64px) + 120px + env(safe-area-inset-bottom, 0px));
  }
}
