/* Consent choices share the public workspace's brand variables. */
.studio-page.analytics-consent-open {
  padding-bottom: var(--analytics-consent-space, 190px);
}
.studio-page .analytics-consent {
  position: fixed;
  z-index: 80;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: calc(100% - 32px);
  max-width: 1000px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 4px 30px #172b2520;
}
.studio-page .analytics-consent[hidden] {
  display: none;
}
.studio-page .analytics-consent-copy {
  min-width: 0;
}
.studio-page .analytics-consent h2 {
  margin: 0 0 5px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}
.studio-page .analytics-consent p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.studio-page .analytics-ads-choice:not([hidden]) {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 8px;
  line-height: 1.5;
  cursor: pointer;
}
.studio-page .analytics-ads-choice input {
  flex: none;
  inline-size: 1rem;
  block-size: 1rem;
  margin: 0;
  accent-color: var(--brand);
}
.studio-page .analytics-consent-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-shrink: 0;
}
.studio-page .analytics-consent button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--brand);
  border-radius: 7px;
  color: var(--brand);
  background: var(--surface);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}
.studio-page .analytics-consent button:hover {
  background: var(--tint);
}
@media (max-width: 760px) {
  .studio-page .analytics-consent {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 15px;
  }
  .studio-page .analytics-consent-actions button {
    flex: 1 1 0;
    min-width: 0;
    white-space: normal;
  }
}
