.analytics-preferences {
  position: fixed;
  z-index: 30;
  inset: auto 1rem 1rem;
  margin-inline: auto;
  max-width: 37rem;
  padding: 1rem 1.25rem;
  border: 1px solid #34506a;
  border-radius: 1rem;
  background: #0c2035;
  color: #f5f9ff;
  box-shadow: 0 8px 32px #0007;
}

.analytics-preferences h2 {
  margin: 0;
  font-size: 1.125rem;
}

.analytics-preferences p {
  margin: .4rem 0 .8rem;
  font-size: .9375rem;
  line-height: 1.5;
}

.analytics-choices {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.analytics-choices button {
  min-height: 2.75rem;
}

#behavior-analytics {
  margin-block: 2rem;
}

.behavior-reports {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: .9rem;
  margin-top: .8rem;
}

.behavior-reports[hidden] {
  display: none;
}

.behavior-reports h3, .behavior-reports h4 {
  margin-block: .25rem .6rem;
}

.behavior-reports dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .45rem .75rem;
  font-size: .9rem;
}

.behavior-reports dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.behavior-sections {
  width: 100%;
  margin-top: .75rem;
  border-collapse: collapse;
  text-align: left;
  font-size: .9rem;
}

.behavior-sections th, .behavior-sections td {
  padding: .4rem .25rem;
  border-bottom: 1px solid var(--line);
}

.behavior-sections th:not(:first-child), .behavior-sections td {
  text-align: right;
  white-space: nowrap;
}
