.analytics-consent {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10000;
  display: grid;
  width: min(720px, calc(100% - 32px));
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  padding: 20px;
  border: 1px solid #394258;
  border-radius: 14px;
  background: #131720;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  color: #f4f5f8;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  line-height: 1.55;
  margin: 0;
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.analytics-consent[hidden],
.analytics-settings[hidden] {
  display: none;
}

.analytics-consent h2 {
  margin: 0 0 6px;
  color: #f4f5f8;
  font-size: 1.05rem;
  line-height: 1.3;
}

.analytics-consent p {
  margin: 0;
  color: #c1c8d7;
  font-size: 0.94rem;
}

.analytics-consent a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #b9c0ff;
}

.analytics-consent__actions {
  display: flex;
  min-width: 220px;
  flex-direction: column;
  gap: 8px;
}

.analytics-consent button,
.analytics-settings {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #7b87ff;
  border-radius: 8px;
  background: #7b87ff;
  color: #0b0d12;
  cursor: pointer;
  font:
    750 0.9rem/1.25 Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}

.analytics-consent .analytics-consent__secondary {
  border-color: #4a5368;
  background: transparent;
  color: #f4f5f8;
}

.analytics-settings {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 9999;
  padding: 7px 11px;
  border-color: #4a5368;
  background: #131720;
  color: #d9ddff;
  font-size: 0.78rem;
}

/* Inline footer variant: sits in the page flow, never floats over content. */
.analytics-settings-wrap { margin: 10px 0 0; }
.analytics-settings--inline {
  position: static;
  z-index: auto;
  min-height: 32px;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  /* #6b7484 -> #8f99a9: same rendered-contrast fix as site.css --dim (3.9-4.2:1 -> 6.4-6.8:1 on the dark page background), Lane C 2026-10-13 */
  color: #8f99a9;
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.analytics-settings--inline:hover {
  color: #f2f4f7;
  filter: none;
}

.analytics-consent button:hover,
.analytics-settings:hover {
  filter: brightness(1.08);
}

.analytics-consent button:focus-visible,
.analytics-consent a:focus-visible,
.analytics-settings:focus-visible {
  outline: 3px solid #d9ddff;
  outline-offset: 3px;
}

@media (max-width: 680px) {
  .analytics-consent {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .analytics-consent__actions {
    min-width: 0;
  }
}
