/* One consolidated analytics dialog for the studio pages (home + privacy hub).
   The per-product pages keep their own dialogs; this only replaces the pair of
   footer buttons that used to sit side by side. */
.studio-analytics {
  width: min(92vw, 420px);
  border: 0;
  border-radius: 18px;
  padding: 28px;
  background: #fff;
  color: #1d1d1f;
  font: inherit;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}
.studio-analytics::backdrop { background: rgba(20, 20, 22, 0.45); }
.studio-analytics h2 { margin: 0 0 10px; font-size: 22px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; }
.studio-analytics p { margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: #6e6e73; }
.studio-analytics a { color: inherit; text-underline-offset: 3px; transition: color 200ms ease; }
/* White surface, so links go blue — yellow is for the dark footer */
@media (hover: hover) and (pointer: fine) { .studio-analytics a:hover { color: #2255d4; } }

/* One row per product, each independently switchable */
.studio-analytics ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.studio-analytics li { margin: 0; }
.sa-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 56px; padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 13px;
  background: none; color: inherit; font: inherit; font-size: 15px;
  text-align: left; cursor: pointer;
  touch-action: manipulation;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.sa-row img { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.sa-name { flex: 1; font-weight: 500; }
/* The switch is decorative; the whole row is the button */
.sa-switch { flex: none; width: 42px; height: 25px; border-radius: 999px; background: rgba(0, 0, 0, 0.16); position: relative; transition: background-color 200ms ease; }
.sa-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 220ms cubic-bezier(0.19, 1, 0.22, 1); }
.sa-row[aria-pressed="true"] .sa-switch { background: #2255d4; }
.sa-row[aria-pressed="true"] .sa-switch::after { transform: translateX(17px); }
.sa-row[disabled] { opacity: 0.5; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .sa-row:not([disabled]):hover { border-color: rgba(0, 0, 0, 0.24); background: rgba(0, 0, 0, 0.02); }
}
.studio-analytics:focus { outline: none; }
.studio-analytics :focus-visible { outline: 2px solid #2255d4; outline-offset: 3px; }

.studio-analytics .sa-note { margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: #6e6e73; }
.sa-close {
  margin: 20px 0 0; width: 100%; min-height: 44px;
  border: 1px solid rgba(0, 0, 0, 0.14); border-radius: 999px;
  background: none; color: inherit; font: inherit; font-size: 15px;
  cursor: pointer; touch-action: manipulation;
}
@media (hover: hover) and (pointer: fine) { .sa-close:hover { background: rgba(0, 0, 0, 0.04); } }

@media (prefers-reduced-motion: reduce) {
  .sa-row, .sa-switch, .sa-switch::after { transition: none; }
}
