#analytics-consent {
  position: fixed;
  z-index: 20;
  inset-inline-end: max(1rem, env(safe-area-inset-right));
  inset-block-end: max(1rem, env(safe-area-inset-bottom));
  width: min(27rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.15rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 .5rem 2rem #1e382930;
  color: var(--ink);
  font-size: .94rem;
  line-height: 1.5;
}

#analytics-consent h2 {
  margin: 0 0 .45rem;
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--ink);
}

#analytics-consent a,
#analytics-preferences {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.analytics-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin-top: .9rem;
}

.analytics-actions button {
  min-height: 44px;
  padding: .5rem;
  background: var(--pine);
  color: white;
  font-weight: 700;
  border-radius: 2rem;
}

.analytics-actions button:hover { background: #344e36; }

#analytics-preferences {
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: start;
}
