.analytics-consent {
  position: fixed;
  z-index: 1000;
  inset: auto 20px 20px;
  max-width: 980px;
  margin-inline: auto;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 36px rgb(27 26 23 / 14%);
}
.analytics-consent[hidden] { display: none; }
.analytics-consent h2 { margin: 0 0 8px; font: 700 18px/1.3 var(--sans); letter-spacing: normal; }
.analytics-consent p { margin: 0; font: 400 14px/1.5 var(--sans); color: var(--muted); }
.analytics-consent a { color: inherit; text-decoration: underline; }
.analytics-consent__status:empty { display: none; }
.analytics-consent__actions { display: flex; gap: 10px; flex-shrink: 0; }
.analytics-consent button {
  padding: 12px 16px;
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  font: 700 14px/1.3 var(--sans);
  cursor: pointer;
}
.analytics-consent button:hover { background: var(--shelf); }
.analytics-settings {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.analytics-consent button:focus-visible, .analytics-settings:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (max-width: 720px) {
  .analytics-consent { inset: auto 12px 12px; padding: 20px; display: block; max-height: 70vh; overflow-y: auto; }
  .analytics-consent__actions { margin-top: 16px; }
  .analytics-consent button { flex: 1; }
}
