.analytics-settings {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.analytics-settings:hover { color: var(--text); }
.analytics-consent {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 20px;
  max-width: 560px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  max-height: calc(100dvh - 40px - env(safe-area-inset-bottom));
  overflow: auto;
  border: 1px solid rgba(79, 140, 255, .35);
  border-radius: 20px;
  background: linear-gradient(115deg, rgba(79, 140, 255, .08), transparent 65%), var(--surface);
  box-shadow: 0 16px 64px rgba(0, 0, 0, .45);
}
.analytics-consent[hidden] { display: none; }
.analytics-consent-copy { flex: 1; min-width: 0; }
.analytics-consent h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.3; letter-spacing: -.02em; }
.analytics-consent p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.analytics-consent p.analytics-consent-details { margin-top: 10px; font-size: 12px; }
.analytics-consent a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.analytics-consent a:hover { color: var(--teal); }
.analytics-consent-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.analytics-consent-actions button {
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface-raised);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}
.analytics-consent-actions button:hover { border-color: var(--blue); background: #202d47; }
.analytics-consent-actions button:active { background: #263754; }
.analytics-settings:focus-visible,
.analytics-consent :focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
@media (max-width: 720px) {
  .analytics-consent { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); padding: 20px; max-height: calc(100dvh - 24px - env(safe-area-inset-bottom)); border-radius: 16px; }
}
@media (max-width: 360px) {
  .analytics-consent { padding: 16px; }
  .analytics-consent h2 { font-size: 18px; }
  .analytics-consent-actions button { padding: 12px 8px; font-size: 13px; }
}

.analytics-stop {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.analytics-stop:hover { color: var(--text); }

.analytics-settings-options[hidden] { display: none; }
.analytics-settings-options { border-top: 1px solid var(--border-strong); padding-top: 16px; }
.analytics-settings-options p { font-size: 12px; }
.analytics-settings-controls { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-top: 12px; font-size: 12px; }
