/* Dark mode: shared foreground tokens and solid accent actions. */
html[data-bmf-dark-active="true"] {
    --bmf-ink: var(--bmf-text);
}
html[data-bmf-dark-active="true"] :is(
    .bmf-button--primary,
    .bmf-profile-primary,
    .bmf-profile-action,
    .bmf-new-button,
    .home-hero__search-button,
    .home-partner__button,
    .home-login-form__submit,
    .bmf-doctor-bookings__apply,
    .bmf-doctor-bookings__confirm,
    .bmf-doctor-bookings__views a.is-active,
    .bmf-notifications__apply,
    .bmf-pagination button.is-active,
    .bmf-link-pagination a.is-active,
    .bmf-slot.is-selected,
    .bmf-calendar__day.is-selected,
    .bmf-step.is-active > span,
    .bmf-step.is-done > span,
    .bmf-ui-theme-switch button.is-selected,
    .bmf-ui-theme-switch button[aria-pressed="true"]
) {
    background-color: #963c61;
    border-color: #963c61;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}
html[data-bmf-dark-active="true"] :is(
    .bmf-button--primary,
    .bmf-profile-primary,
    .bmf-profile-action,
    .bmf-new-button,
    .home-hero__search-button,
    .home-partner__button,
    .home-login-form__submit,
    .bmf-doctor-bookings__apply,
    .bmf-doctor-bookings__confirm,
    .bmf-notifications__apply
):is(:hover,:focus-visible) {
    background-color: #a94572;
    border-color: #a94572;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}
html[data-bmf-dark-active="true"] :is(
    .bmf-button--primary,
    .bmf-profile-primary,
    .bmf-profile-action,
    .bmf-new-button,
    .home-hero__search-button,
    .home-partner__button,
    .home-login-form__submit,
    .bmf-doctor-bookings__apply,
    .bmf-doctor-bookings__confirm,
    .bmf-notifications__apply
) :is(span,strong,small,.bmf-icon,svg) {
    color: inherit !important;
    -webkit-text-fill-color: inherit;
}
html[data-bmf-dark-active="true"] :is(
    .bmf-badge--primary,.bmf-notification-bell__badge,.bmf-check input:checked + .bmf-check__box
) { color:#fff !important; }

/* Neutral controls must not retain their light-theme white background. */
html[data-bmf-dark-active="true"] :is(.bmf-button--secondary,.bmf-button--ghost,.bmf-icon-button,.bmf-admin-logs__refresh,.bmf-admin-logs__clear,.bmf-post-modal__close,.bmf-modal-secondary) {
    background: var(--bmf-surface-2) !important;
    color: var(--bmf-text) !important;
    border-color: var(--bmf-border) !important;
    -webkit-text-fill-color: var(--bmf-text) !important;
}
html[data-bmf-dark-active="true"] :is(.bmf-button--secondary,.bmf-button--ghost,.bmf-icon-button,.bmf-admin-logs__clear,.bmf-post-modal__close,.bmf-modal-secondary):is(:hover,:focus-visible):not(:disabled) {
    background: var(--bmf-surface-3) !important;
}
html[data-bmf-dark-active="true"] :is(.bmf-button--secondary,.bmf-button--ghost,.bmf-icon-button,.bmf-admin-logs__clear,.bmf-post-modal__close,.bmf-modal-secondary) :is(svg,span) {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}
html[data-bmf-dark-active="true"] .bmf-button--secondary:disabled {
    opacity:.58;
}
