/* Native form controls must use the same theme as the campaign panel. */
.raf-cockpit-shell [aria-labelledby="campagne-proprietaires-ab"] :is(input:not([type="checkbox"]), select, option) {
  background-color: var(--raf-surface-card);
  color: var(--raf-text);
  border-color: var(--raf-border-strong);
}

.raf-cockpit-shell [aria-labelledby="campagne-proprietaires-ab"] input::placeholder {
  color: var(--raf-text-muted);
  opacity: 1;
}

.raf-cockpit-shell[data-theme="dark"] [aria-labelledby="campagne-proprietaires-ab"] :is(input, select) {
  color-scheme: dark;
}

.raf-cockpit-shell[data-theme="light"] [aria-labelledby="campagne-proprietaires-ab"] :is(input, select) {
  color-scheme: light;
}

.raf-campagne-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: 90vh;
  overflow: auto;
  padding: 0;
  border: 1px solid var(--raf-border);
  border-radius: 16px;
  background: var(--raf-surface-card);
  color: var(--raf-text);
}
.raf-campagne-dialog::backdrop { background: rgb(0 0 0 / 65%); }

/* Keep the recipient list inside its scroll area, including scoped releases. */
.raf-cockpit-shell [aria-labelledby="campagne-proprietaires-ab"] .max-h-96 {
  max-height: 24rem;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
