.nova-sync-consent,
.nova-sync-consent-dialog {
  --sync-bg: #171c27;
  --sync-fg: #edf1fb;
  --sync-muted: #b8c2d6;
  --sync-border: #46516a;
  --sync-accent: #99baff;
  box-sizing: border-box;
  pointer-events: auto;
  color: var(--sync-fg);
  background: var(--sync-bg);
  border: 1px solid var(--sync-border);
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  font-family: inherit;
  color-scheme: dark;
}
[data-theme="light"] .nova-sync-consent,
[data-theme="light"] .nova-sync-consent-dialog,
body.light .nova-sync-consent,
body.light .nova-sync-consent-dialog {
  --sync-bg: #fff;
  --sync-fg: #182239;
  --sync-muted: #4b5870;
  --sync-border: #c6d0e0;
  --sync-accent: #214fae;
  color-scheme: light;
}
.nova-sync-consent {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin: 0 0 10px;
  width: 100%;
}
.nova-sync-consent-copy { flex: 1; color: var(--sync-muted); font-size: 13px; }
.nova-sync-consent-button {
  appearance: none;
  border: 1px solid var(--sync-border);
  border-radius: 9px;
  background: transparent;
  color: var(--sync-fg);
  padding: 9px 12px;
  font: inherit;
  cursor: pointer;
  min-height: 40px;
}
.nova-sync-consent-button:focus-visible,
.nova-sync-consent-row input:focus-visible { outline: 2px solid var(--sync-accent); outline-offset: 3px; }
.nova-sync-consent-button:disabled { opacity: .5; cursor: not-allowed; }
.nova-sync-consent-dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  padding: 22px;
  overflow: auto;
  overscroll-behavior: contain;
}
.nova-sync-consent-dialog::backdrop { background: rgb(9 15 27 / 65%); }
.nova-sync-consent-dialog h2 { margin: 0 0 12px; font-size: 20px; }
.nova-sync-consent-dialog p { margin: 10px 0; color: var(--sync-muted); }
.nova-sync-consent-account { overflow-wrap: anywhere; }
.nova-sync-consent-list { max-height: 240px; overflow: auto; border-block: 1px solid var(--sync-border); margin: 14px 0; }
.nova-sync-consent-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 2px; cursor: pointer; overflow-wrap: anywhere; }
.nova-sync-consent-row span { min-width: 0; }
.nova-sync-consent-row input[type="checkbox"] { appearance: auto; flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--sync-accent); }
.nova-sync-consent-status { min-height: 1.5em; }
.nova-sync-consent-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
@media (max-width: 540px) {
  .nova-sync-consent { flex-wrap: wrap; gap: 8px; }
  .nova-sync-consent-copy { flex-basis: 100%; }
  .nova-sync-consent-dialog { padding: 16px; }
  .nova-sync-consent-actions .nova-sync-consent-button { flex: 1; }
}
