.analytics-consent {
  position: fixed;
  z-index: var(--z-drawer-scrim, 101);
  inset-inline: max(var(--space-4, 16px), env(safe-area-inset-left));
  bottom: calc(env(safe-area-inset-bottom) + var(--space-4, 16px));
  max-width: 576px;
  max-height: min(75vh, 26rem);
  margin-inline: auto;
  padding: var(--space-4, 16px);
  overflow: auto;
  color: var(--text, #fff1df);
  background: var(--raised, #23201e);
  border: 1px solid var(--line-strong, #625a53);
  border-radius: var(--r-lg, 16px);
  box-shadow: var(--sh-md, 0 8px 28px #0004);
  font-size: var(--fs-small, 15px);
  line-height: 1.5;
}

.analytics-consent[hidden], .analytics-consent [hidden] { display: none; }
.analytics-consent__form { display: grid; gap: var(--space-3, 12px); }
.analytics-consent__intro { display: grid; gap: var(--space-1, 4px); }
.analytics-consent__heading { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2, 8px); }
.analytics-consent__title, .analytics-consent__text, .analytics-consent__status { margin: 0; }
.analytics-consent__title { font-size: var(--fs-body, 16px); font-weight: 700; }
.analytics-consent__close {
  min-height: var(--hit, 44px);
  padding: 0 var(--space-2, 8px);
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.analytics-consent__text a { color: var(--amber-text, #f6ba72); text-decoration: underline; text-underline-offset: 3px; }
.analytics-consent__actions { display: flex; flex-wrap: wrap; gap: var(--space-2, 8px); }
.analytics-consent__actions button {
  min-height: var(--hit, 44px);
  padding: 8px var(--space-4, 16px);
  border: 1px solid var(--line-strong, #746b61);
  border-radius: var(--r-sm, 8px);
  background: var(--active, #34302d);
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.analytics-consent__actions button:hover { border-color: currentColor; }
.analytics-consent button:focus-visible { outline: 2px solid var(--amber-text, #f6ba72); outline-offset: 2px; }
.analytics-consent__actions button:disabled { cursor: wait; opacity: .7; }
.analytics-consent__actions button[type="submit"] { flex: 1 1 156px; }
.analytics-consent__status { color: var(--amber-text, #f6ba72); }
