/* Light appearance for the authenticated BlessChurch app. */
body.bc-app-mode.bc-app-theme-light {
    color-scheme: light;
    color: #172033;
    background:
        radial-gradient(circle at 30% 0%, rgba(50,170,255,.08), transparent 30%),
        #f3f6fa;
}

body.bc-app-mode.bc-app-theme-light .bc-app {
    --bc-surface: #ffffff;
    --bc-surface-2: #f8fafc;
    --bc-surface-3: #ffffff;
    --bc-border: #e2e8f0;
    --bc-border-soft: rgba(15,23,42,.10);
    --bc-text: #172033;
    --bc-text-muted: #536174;
    --bc-text-soft: #718096;
    --bc-accent: #1687d1;
    --bc-accent-2: #0878c2;
    --bc-shadow: 0 14px 34px rgba(15,23,42,.12);
    --bc-shadow-soft: 0 8px 22px rgba(15,23,42,.08);
}

body.bc-app-mode.bc-app-theme-light .bc-topbar {
    background: rgba(255,255,255,.96);
    border-bottom-color: #e2e8f0;
    box-shadow: 0 4px 18px rgba(15,23,42,.045);
}

body.bc-app-mode.bc-app-theme-light .bc-topbar__separator {
    background: #d8e0e9;
}

body.bc-app-mode.bc-app-theme-light .bc-topbar__church {
    color: #596579;
}

body.bc-app-mode.bc-app-theme-light .bc-topbar__icon {
    color: #475569 !important;
    background: #f8fafc;
    border-color: #e2e8f0;
}

body.bc-app-mode.bc-app-theme-light .bc-topbar__icon:hover {
    color: #172033 !important;
    background: #eef4f9;
    border-color: #cbd5e1;
}

body.bc-app-mode.bc-app-theme-light .bc-topbar__user-copy strong {
    color: #172033;
}

body.bc-app-mode.bc-app-theme-light .bc-topbar__user-copy span {
    color: #718096;
}

body.bc-app-mode.bc-app-theme-light .bc-topbar__logout {
    color: #536174 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-topbar__logout:hover {
    color: #172033 !important;
    background: #f1f5f9;
}

body.bc-app-mode.bc-app-theme-light .bc-app-nav {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 14px 38px rgba(15,23,42,.08);
}

body.bc-app-mode.bc-app-theme-light .bc-app-nav__divider {
    background: #e2e8f0;
}

body.bc-app-mode.bc-app-theme-light .bc-app-nav__section-label {
    color: #8793a5;
}

body.bc-app-mode.bc-app-theme-light .bc-app-nav__link {
    color: #536174 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app-nav__link:hover {
    color: #172033 !important;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

body.bc-app-mode.bc-app-theme-light .bc-app-nav__link.is-active {
    color: #0878c2 !important;
    background: #eaf5fc;
    border-color: #cce8f8;
}

body.bc-app-mode.bc-app-theme-light .bc-app-nav__badge {
    color: #8a5b00;
    background: #fff7df;
    border-color: #f5dfa2;
}

body.bc-app-mode.bc-app-theme-light .bc-dashboard .bc-card {
    color: #172033;
    background-color: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 10px 28px rgba(15,23,42,.055);
}

body.bc-app-mode.bc-app-theme-light .bc-dashboard .bc-card h3,
body.bc-app-mode.bc-app-theme-light .bc-dashboard .bc-card h4 {
    color: #172033;
}

body.bc-app-mode.bc-app-theme-light .bc-dashboard .bc-card p {
    color: #5b6678;
}

body.bc-app-mode.bc-app-theme-light .bc-dashboard .bc-section-kicker {
    color: #0878c2;
}

body.bc-app-mode.bc-app-theme-light .bc-dashboard-hero {
    background:
        radial-gradient(circle at top left, rgba(50,170,255,.10), transparent 42%),
        linear-gradient(135deg, #ffffff, #f8fbfe);
}

body.bc-app-mode.bc-app-theme-light .bc-dashboard-hero__text {
    color: #536174;
}

body.bc-app-mode.bc-app-theme-light .bc-dashboard-pill {
    color: #344256;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

body.bc-app-mode.bc-app-theme-light .bc-dashboard-hero__meta .bc-dashboard-pill:nth-child(2)[style*="86efac"] {
    color: #15803d !important;
    background: #e8f7ee !important;
    border-color: #b7e4c7 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-dashboard-hero__meta .bc-dashboard-pill:nth-child(2)[style*="93c5fd"] {
    color: #0369a1 !important;
    background: #e0f2fe !important;
    border-color: #bae6fd !important;
}

body.bc-app-mode.bc-app-theme-light .bc-dashboard-hero__meta .bc-dashboard-pill:nth-child(2)[style*="fcd34d"] {
    color: #92400e !important;
    background: #fff7df !important;
    border-color: #f5dfa2 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-dashboard-hero__meta .bc-dashboard-pill:nth-child(2)[style*="fca5a5"] {
    color: #b91c1c !important;
    background: #fef2f2 !important;
    border-color: #fecaca !important;
}

body.bc-app-mode.bc-app-theme-light .bc-dashboard-hero__cover,
body.bc-app-mode.bc-app-theme-light .bc-dashboard-hero__logo-only,
body.bc-app-mode.bc-app-theme-light .bc-dashboard-hero__placeholder {
    border-color: #dce5ee;
    background-color: #f8fafc;
}

body.bc-app-mode.bc-app-theme-light .bc-dashboard-hero__placeholder {
    background:
        radial-gradient(circle at center, rgba(50,170,255,.15), transparent 58%),
        #f8fafc;
}

body.bc-app-mode.bc-app-theme-light .bc-progress-bar {
    background: #e8edf3;
}

body.bc-app-mode.bc-app-theme-light .bc-progress-pill {
    color: #0878c2;
    background: #eaf5fc;
}

body.bc-app-mode.bc-app-theme-light .bc-checklist-item,
body.bc-app-mode.bc-app-theme-light .bc-activity-item {
    color: #344256;
    background: #fbfdff;
    border-color: #e2e8f0;
}

body.bc-app-mode.bc-app-theme-light .bc-checklist-item:hover,
body.bc-app-mode.bc-app-theme-light .bc-activity-item:hover {
    background: #f5faff;
}

body.bc-app-mode.bc-app-theme-light .bc-checklist-mark {
    color: #64748b;
    background: #eef2f6;
}

body.bc-app-mode.bc-app-theme-light .bc-checklist-mark.is-done {
    color: #15803d;
    background: #e8f7ee;
}

body.bc-app-mode.bc-app-theme-light .bc-activity-title {
    color: #263449;
}

body.bc-app-mode.bc-app-theme-light .bc-activity-meta,
body.bc-app-mode.bc-app-theme-light .bc-activity-empty p {
    color: #64748b;
}

body.bc-app-mode.bc-app-theme-light .bc-activity-empty {
    border-color: #dbe4ee;
    background: #fbfdff;
}

body.bc-app-mode.bc-app-theme-light .bc-feature-request-card,
body.bc-app-mode.bc-app-theme-light .bc-next-action-card {
    background:
        radial-gradient(circle at top left, rgba(50,170,255,.10), transparent 46%),
        #ffffff;
}

body.bc-app-mode.bc-app-theme-light .bc-feature-request-icon {
    background: linear-gradient(135deg, #f1f7fc, #ffffff);
    box-shadow: inset 0 0 0 1px #e2e8f0;
}

body.bc-app-mode.bc-app-theme-light .bc-dashboard-support {
    background:
        radial-gradient(circle at 92% 0%, rgba(109,93,252,.08), transparent 32%),
        #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 10px 28px rgba(15,23,42,.055);
}

body.bc-app-mode.bc-app-theme-light .bc-dashboard-support__title h3,
body.bc-app-mode.bc-app-theme-light .bc-dashboard-support__stats strong {
    color: #172033;
}

body.bc-app-mode.bc-app-theme-light .bc-dashboard-support__title p:last-child {
    color: #5b6678;
}

body.bc-app-mode.bc-app-theme-light .bc-dashboard-support__stats {
    border-color: #e8edf3;
    background: #f8fafc;
}

body.bc-app-mode.bc-app-theme-light .bc-dashboard-support__stats > div {
    border-color: #e8edf3;
}

body.bc-app-mode.bc-app-theme-light .bc-dashboard-support__stats span {
    color: #718096;
}

body.bc-app-mode.bc-app-theme-light .bc-dashboard-support__ticket:hover {
    background: #f5f7fb;
}

body.bc-app-mode.bc-app-theme-light .bc-dashboard-support__ticket-main strong {
    color: #344256;
}

body.bc-app-mode.bc-app-theme-light .bc-dashboard-support__empty {
    border-color: #e2e8f0;
}

body.bc-app-mode.bc-app-theme-light .bc-dashboard-support__empty strong {
    color: #344256;
}

body.bc-app-mode.bc-app-theme-light .bc-dashboard-support__empty span {
    color: #718096;
}

body.bc-app-mode.bc-app-theme-light .bc-dashboard-support__footer {
    border-color: #e8edf3;
}

body.bc-app-mode.bc-app-theme-light .bc-alert-success {
    color: #166534;
}

body.bc-app-mode.bc-app-theme-light .bc-alert-error {
    color: #b91c1c;
}

.bc-app-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    color: #e2e8f0;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.bc-app-theme-toggle:hover {
    border-color: rgba(50,170,255,.45);
    background: rgba(50,170,255,.10);
}

.bc-app-theme-toggle:focus-visible {
    outline: 3px solid rgba(50,170,255,.35);
    outline-offset: 2px;
}

.bc-app-theme-toggle__icon {
    font-size: 17px;
    line-height: 1;
}

body.bc-app-mode.bc-app-theme-light .bc-app-theme-toggle {
    color: #344256;
    background: #ffffff;
    border-color: #d6e0ea;
    box-shadow: 0 2px 5px rgba(15,23,42,.04);
}

body.bc-app-mode.bc-app-theme-light .bc-app-theme-toggle:hover {
    color: #0878c2;
    background: #f3f9fd;
    border-color: #9ed2f1;
}

@media (max-width: 800px) {
    .bc-app-theme-toggle {
        flex: 0 0 auto;
        width: 38px;
        min-height: 36px;
        padding: 0;
    }

    .bc-app-theme-toggle__label {
        display: none;
    }
}

/* Shared light surfaces across app modules. */
body.bc-app-mode.bc-app-theme-light .bc-app .bc-card,
body.bc-app-mode.bc-app-theme-light .bc-app .bc-member-card,
body.bc-app-mode.bc-app-theme-light .bc-app .bc-settings-section,
body.bc-app-mode.bc-app-theme-light .bc-app .bc-give-stat,
body.bc-app-mode.bc-app-theme-light .bc-app .bc-give-card,
body.bc-app-mode.bc-app-theme-light .bc-app .bc-feedback-stat,
body.bc-app-mode.bc-app-theme-light .bc-app .bc-feedback-vote,
body.bc-app-mode.bc-app-theme-light .bc-app .bc-sermon-form-card,
body.bc-app-mode.bc-app-theme-light .bc-app .bc-sermon-list-card,
body.bc-app-mode.bc-app-theme-light .bc-app .bc-website-widget-card,
body.bc-app-mode.bc-app-theme-light .bc-app .bc-billing-summary-stat,
body.bc-app-mode.bc-app-theme-light .bc-app .bc-billing-side-card,
body.bc-app-mode.bc-app-theme-light .bc-app .bc-billing-usage-card,
body.bc-app-mode.bc-app-theme-light .bc-app .bc-billing-plan-card,
body.bc-app-mode.bc-app-theme-light .bc-app .bc-billing-quickfact,
body.bc-app-mode.bc-app-theme-light .bc-app .bc-billing-compare-card {
    color: #172033;
    background-color: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 10px 28px rgba(15,23,42,.055);
}

body.bc-app-mode.bc-app-theme-light .bc-app :is(
    .bc-settings-header h2,
    .bc-settings-section-head h3,
    .bc-settings-upgrade strong,
    .bc-settings-media-label strong,
    .bc-settings-toggle-copy strong,
    .bc-settings-footer strong,
    .bc-members-page-head h1,
    .bc-members-page-head h2,
    .bc-member-info h4,
    .bc-member-name,
    .bc-members-list-section h3,
    .bc-give-header h1,
    .bc-give-card-heading h2,
    .bc-give-empty h3,
    .bc-give-stat strong,
    .bc-give-fund-row strong,
    .bc-give-fund-main strong,
    .bc-give-report-stat strong,
    .bc-give-report-heading h3,
    .bc-feedback-title,
    .bc-feedback-item-title,
    .bc-website-title,
    .bc-website-widget-title,
    .bc-sermon-form-heading h3,
    .bc-sermon-list-heading h3,
    .bc-billing-title,
    .bc-billing-price,
    .bc-billing-side-card h4,
    .bc-billing-plan-price,
    .bc-billing-compare-planname,
    .bc-billing-compare-price
) {
    color: #172033 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app :is(
    .bc-settings-header p,
    .bc-settings-section-head p,
    .bc-settings-upgrade p,
    .bc-settings-media-label span,
    .bc-settings-toggle-copy span,
    .bc-settings-footer span,
    .bc-member-meta,
    .bc-member-contact,
    .bc-give-header p,
    .bc-give-card-heading p,
    .bc-give-empty p,
    .bc-give-stat > span,
    .bc-give-fund-row > span,
    .bc-give-fund-main > span,
    .bc-give-fund-main p,
    .bc-give-report-stat > span,
    .bc-give-report-stat small,
    .bc-give-muted,
    .bc-feedback-subtitle,
    .bc-feedback-stat-label,
    .bc-feedback-side-card p,
    .bc-feedback-checklist li,
    .bc-feedback-tab-count,
    .bc-feedback-vote-label,
    .bc-feedback-copy,
    .bc-website-subtitle,
    .bc-website-stat-label,
    .bc-website-side-card p,
    .bc-website-checklist li,
    .bc-website-widget-copy,
    .bc-website-option,
    .bc-website-code-label,
    .bc-website-preview-label,
    .bc-website-preview-text,
    .bc-sermon-form-heading p,
    .bc-sermon-list-heading p,
    .bc-sermon-form-grid small,
    .bc-billing-subtitle,
    .bc-billing-usage-summary,
    .bc-billing-summary-label,
    .bc-billing-summary-sub,
    .bc-billing-side-card p,
    .bc-billing-plan-copy,
    .bc-billing-footer-note,
    .bc-billing-quickfact-label,
    .bc-billing-compare-helper
) {
    color: #536174 !important;
}

/* Settings, feedback, and website cards. */
body.bc-app-mode.bc-app-theme-light .bc-settings-section-head,
body.bc-app-mode.bc-app-theme-light .bc-settings-section-body,
body.bc-app-mode.bc-app-theme-light .bc-settings-toggle-card,
body.bc-app-mode.bc-app-theme-light .bc-settings-color-card,
body.bc-app-mode.bc-app-theme-light .bc-feedback-stat,
body.bc-app-mode.bc-app-theme-light .bc-feedback-vote,
body.bc-app-mode.bc-app-theme-light .bc-feedback-tab,
body.bc-app-mode.bc-app-theme-light .bc-feedback-code-wrap,
body.bc-app-mode.bc-app-theme-light .bc-website-stat,
body.bc-app-mode.bc-app-theme-light .bc-website-code-wrap,
body.bc-app-mode.bc-app-theme-light .bc-website-preview {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-feedback-tab,
body.bc-app-mode.bc-app-theme-light .bc-website-badge,
body.bc-app-mode.bc-app-theme-light .bc-website-code,
body.bc-app-mode.bc-app-theme-light .bc-give-status,
body.bc-app-mode.bc-app-theme-light .bc-give-tabs a,
body.bc-app-mode.bc-app-theme-light .bc-give-fund-row > span,
body.bc-app-mode.bc-app-theme-light .bc-sermon-checkbox,
body.bc-app-mode.bc-app-theme-light .bc-sermon-status-label {
    color: #344256 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-feedback-tab.is-active,
body.bc-app-mode.bc-app-theme-light .bc-give-tabs a.is-active {
    color: #0878c2 !important;
    background: #eaf5fc !important;
    border-color: #cce8f8 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-website-badge--free {
    color: #344256 !important;
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-website-badge--growth {
    color: #0369a1 !important;
    background: #e0f2fe !important;
    border-color: #bae6fd !important;
}

body.bc-app-mode.bc-app-theme-light .bc-website-badge--pro {
    color: #92400e !important;
    background: #fff7df !important;
    border-color: #f5dfa2 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-sermon-form-options {
    border-top-color: #e2e8f0;
}

body.bc-app-mode.bc-app-theme-light .bc-sermon-form-options select,
body.bc-app-mode.bc-app-theme-light .bc-sermon-form-options select option {
    color: #172033 !important;
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-give-tabs,
body.bc-app-mode.bc-app-theme-light .bc-give-fund-row,
body.bc-app-mode.bc-app-theme-light .bc-give-setting-row,
body.bc-app-mode.bc-app-theme-light .bc-give-table td,
body.bc-app-mode.bc-app-theme-light .bc-give-report-section,
body.bc-app-mode.bc-app-theme-light .bc-give-report-heading {
    border-color: #e2e8f0 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-give-tabs,
body.bc-app-mode.bc-app-theme-light .bc-give-empty,
body.bc-app-mode.bc-app-theme-light .bc-give-report-section {
    background: #f8fafc !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app :is(h1, h2, h3, h4, h5, h6) {
    color: #172033 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app :is(p, label, small) {
    color: #536174 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-feedback-badge--under_review {
    color: #92400e !important;
}

body.bc-app-mode.bc-app-theme-light .bc-feedback-badge--planned {
    color: #0369a1 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-feedback-badge--in_progress {
    color: #4338ca !important;
}

body.bc-app-mode.bc-app-theme-light .bc-feedback-badge--completed,
body.bc-app-mode.bc-app-theme-light .bc-sermon-status.is-publish {
    color: #15803d !important;
}

body.bc-app-mode.bc-app-theme-light .bc-feedback-badge--rejected {
    color: #b91c1c !important;
}

body.bc-app-mode.bc-app-theme-light .bc-feedback-badge--source,
body.bc-app-mode.bc-app-theme-light .bc-sermon-status.is-draft {
    color: #475569 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-sermon-featured-tag {
    color: #92400e !important;
}

body.bc-app-mode.bc-app-theme-light .bc-settings-plan-badge {
    color: #15803d !important;
}

body.bc-app-mode.bc-app-theme-light .bc-settings-plan-badge.is-locked {
    color: #64748b !important;
}

/* Billing has inline component styles, so use the app theme's higher priority. */
body.bc-app-mode.bc-app-theme-light .bc-billing-hero,
body.bc-app-mode.bc-app-theme-light .bc-billing-plan-card,
body.bc-app-mode.bc-app-theme-light .bc-billing-side-card,
body.bc-app-mode.bc-app-theme-light .bc-billing-usage-card,
body.bc-app-mode.bc-app-theme-light .bc-billing-summary-stat,
body.bc-app-mode.bc-app-theme-light .bc-billing-quickfact,
body.bc-app-mode.bc-app-theme-light .bc-billing-compare-card {
    color: #172033 !important;
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-billing-cycle,
body.bc-app-mode.bc-app-theme-light .bc-billing-cycle-btn,
body.bc-app-mode.bc-app-theme-light .bc-billing-compare-table th,
body.bc-app-mode.bc-app-theme-light .bc-billing-compare-table td {
    color: #344256 !important;
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-billing-cycle-btn.is-active {
    color: #0878c2 !important;
    background: #eaf5fc !important;
}

body.bc-app-mode.bc-app-theme-light .bc-billing-callout-warning {
    color: #92400e !important;
}

body.bc-app-mode.bc-app-theme-light .bc-billing-callout-danger {
    color: #b91c1c !important;
}

body.bc-app-mode.bc-app-theme-light .bc-billing-callout-info {
    color: #0369a1 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-billing-compare-value {
    color: #344256 !important;
}

/* Shared forms, tables, event modals, and team actions. */
body.bc-app-mode.bc-app-theme-light .bc-app .bc-field > label,
body.bc-app-mode.bc-app-theme-light .bc-app .bc-form-group > label {
    color: #344256 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app input:not([type="checkbox"]):not([type="radio"]),
body.bc-app-mode.bc-app-theme-light .bc-app select,
body.bc-app-mode.bc-app-theme-light .bc-app textarea,
body.bc-app-mode.bc-app-theme-light .bc-modal input:not([type="checkbox"]):not([type="radio"]),
body.bc-app-mode.bc-app-theme-light .bc-modal select,
body.bc-app-mode.bc-app-theme-light .bc-modal textarea {
    color: #172033 !important;
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color-scheme: light;
}

body.bc-app-mode.bc-app-theme-light .bc-app input::placeholder,
body.bc-app-mode.bc-app-theme-light .bc-app textarea::placeholder,
body.bc-app-mode.bc-app-theme-light .bc-modal input::placeholder,
body.bc-app-mode.bc-app-theme-light .bc-modal textarea::placeholder {
    color: #8793a5 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-table-wrap,
body.bc-app-mode.bc-app-theme-light .bc-give-table-wrap,
body.bc-app-mode.bc-app-theme-light .bc-modal-content {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-give-dialog {
    color: #172033 !important;
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-give-dialog-header > button {
    color: #475569 !important;
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-give-field > span {
    color: #344256 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-give-notice.is-success {
    color: #166534 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-give-notice.is-error {
    color: #b91c1c !important;
}

body.bc-app-mode.bc-app-theme-light .bc-table thead th,
body.bc-app-mode.bc-app-theme-light .bc-table tbody td,
body.bc-app-mode.bc-app-theme-light .bc-give-table th,
body.bc-app-mode.bc-app-theme-light .bc-give-table td {
    color: #344256 !important;
    background: #ffffff !important;
    border-color: #e8edf3 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-table tbody tr:hover td {
    background: #f8fafc !important;
}

body.bc-app-mode.bc-app-theme-light .bc-table-actions .bc-btn-secondary {
    color: #344256 !important;
    background: #f8fafc !important;
    border-color: #d6e0ea !important;
}

body.bc-app-mode.bc-app-theme-light .bc-table-actions .bc-btn-secondary:hover {
    color: #172033 !important;
    background: #eef4f9 !important;
    border-color: #cbd5e1 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-empty-state,
body.bc-app-mode.bc-app-theme-light .bc-member-view-section,
body.bc-app-mode.bc-app-theme-light .bc-member-form-section,
body.bc-app-mode.bc-app-theme-light .bc-calendar-day,
body.bc-app-mode.bc-app-theme-light .bc-calendar-topbar {
    color: #344256;
    background: #ffffff;
    border-color: #e2e8f0;
}

body.bc-app-mode.bc-app-theme-light .bc-calendar-weekday,
body.bc-app-mode.bc-app-theme-light .bc-calendar-day-number,
body.bc-app-mode.bc-app-theme-light .bc-calendar-event-title,
body.bc-app-mode.bc-app-theme-light .bc-calendar-event-meta,
body.bc-app-mode.bc-app-theme-light .bc-empty-state p {
    color: #536174 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-msg__hero :is(h1, h2, h3, p, span),
body.bc-app-mode.bc-app-theme-light .bc-support-primary,
body.bc-app-mode.bc-app-theme-light .bc-support-primary :is(span, strong) {
    color: #ffffff !important;
}

/* Give has its own dark palette, so explicitly restyle every screen in light mode. */
body.bc-app-mode.bc-app-theme-light .bc-give {
    color: #344256 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-give :is(
    .bc-give-stat,
    .bc-give-card,
    .bc-give-empty,
    .bc-give-connect,
    .bc-give-setting-row,
    .bc-give-filters,
    .bc-give-report-stat,
    .bc-give-tabs,
    .bc-give-table-wrap
) {
    color: #344256 !important;
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 10px 28px rgba(15,23,42,.055);
}

body.bc-app-mode.bc-app-theme-light .bc-give :is(
    h1, h2, h3, h4, h5, h6, strong,
    .bc-give-report-heading > span
) {
    color: #172033 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-give :is(
    p, label, small, td, th,
    .bc-give-eyebrow,
    .bc-give-status,
    .bc-give-tabs a,
    .bc-give-stat > span,
    .bc-give-fund-row > span,
    .bc-give-fund-row > div > span,
    .bc-give-fund-main > span,
    .bc-give-fund-main p,
    .bc-give-connect p,
    .bc-give-setting-row > div > span,
    .bc-give-report-stat > span,
    .bc-give-report-stat small,
    .bc-give-muted,
    .bc-give-form-help,
    .bc-give-field-help,
    .bc-give-anonymous-option,
    .bc-give-pagination
) {
    color: #536174 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-give :is(
    .bc-give-header p,
    .bc-give-card-heading p,
    .bc-give-empty p,
    .bc-give-report-heading > span,
    .bc-give-muted,
    .bc-give-form-help,
    .bc-give-field-help
) {
    color: #536174 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-give :is(
    .bc-give-tabs a.is-active,
    .bc-give-tabs a:hover,
    .bc-give-card-heading a,
    .bc-give-filter-actions a,
    .bc-give-recent-link a,
    .bc-give-pagination a
) {
    color: #0878c2 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-give :is(
    .bc-give-badge,
    .bc-give-badge-muted,
    .bc-give-status
) {
    color: #475569 !important;
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-give :is(
    .bc-give-badge-success,
    .bc-give-status-active
) {
    color: #166534 !important;
    background-color: #ecfdf3 !important;
    border-color: #bbf7d0 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-give .bc-give-status-pending {
    color: #92400e !important;
    background-color: #fff7df !important;
    border-color: #f5dfa2 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-give .bc-give-notice.is-success {
    color: #166534 !important;
    background: #ecfdf3 !important;
    border-color: #bbf7d0 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-give .bc-give-notice.is-error {
    color: #b91c1c !important;
    background: #fef2f2 !important;
    border-color: #fecaca !important;
}

body.bc-app-mode.bc-app-theme-light .bc-give .bc-give-source-badge {
    color: #0369a1 !important;
    background: #e0f2fe !important;
}

body.bc-app-mode.bc-app-theme-light .bc-give .bc-give-source-badge.is-manual {
    color: #92400e !important;
    background: #fff7df !important;
}

body.bc-app-mode.bc-app-theme-light .bc-give :is(
    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea
) {
    color: #172033 !important;
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color-scheme: light;
}

body.bc-app-mode.bc-app-theme-light .bc-give :is(input, textarea)::placeholder {
    color: #8793a5 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-give :is(select, option) {
    color: #172033 !important;
    background-color: #ffffff !important;
}

body.bc-app-mode.bc-app-theme-light .bc-give :is(
    .bc-button-secondary,
    .bc-give-fund-actions button,
    .bc-give-more-button
) {
    color: #344256 !important;
    background: #f8fafc !important;
    border-color: #d6e0ea !important;
}

body.bc-app-mode.bc-app-theme-light .bc-give :is(
    .bc-button-secondary:hover,
    .bc-give-fund-actions button:hover,
    .bc-give-more-button:hover
) {
    color: #172033 !important;
    background: #eef4f9 !important;
    border-color: #cbd5e1 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-give .bc-button-primary,
body.bc-app-mode.bc-app-theme-light .bc-give .bc-button-primary:hover,
body.bc-app-mode.bc-app-theme-light .bc-give .bc-give-fund-actions button.is-danger {
    color: #ffffff !important;
}

body.bc-app-mode.bc-app-theme-light .bc-give .bc-give-fund-actions button.is-danger {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
}

body.bc-app-mode.bc-app-theme-light .bc-give-dialog {
    color: #344256 !important;
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-give-dialog :is(
    h1, h2, h3, h4, h5, h6, strong
) {
    color: #172033 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-give-dialog :is(
    p, label, small, .bc-give-field > span
) {
    color: #536174 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-give-dialog :is(input, select, textarea) {
    color: #172033 !important;
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color-scheme: light;
}

/* The Website builder has several legacy dark-only components. */
body.bc-app-mode.bc-app-theme-light .bc-app :is(
    .bc-website-overview-card,
    .bc-website-setup-card,
    .bc-website-widget-card,
    .bc-website-stat,
    .bc-website-side-card,
    .bc-website-code-wrap,
    .bc-website-preview,
    .bc-website-install-box,
    .bc-website-editor-section,
    .bc-website-module-toggle,
    .bc-website-live-settings,
    .bc-website-giving-settings,
    .bc-navigation-row,
    .bc-ministry-editor-item
) {
    color: #344256 !important;
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 10px 28px rgba(15,23,42,.055) !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app :is(
    .bc-website-title,
    .bc-website-widget-title,
    .bc-website-overview-main h3,
    .bc-website-manager-title,
    .bc-website-setup-card-head h3,
    .bc-website-integrations-head h3,
    .bc-website-editor-head h2,
    .bc-website-editor-section-head h3,
    .bc-website-module-toggle h3,
    .bc-website-page-editor .bc-card h3,
    .bc-navigation-card-head h3,
    .bc-website-integrations-count,
    .bc-website-domain-item > strong,
    .bc-website-color-row strong,
    .bc-website-hero-media-empty strong,
    .bc-ministry-editor-item :is(strong, label)
) {
    color: #172033 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app :is(
    .bc-website-kicker,
    .bc-website-subtitle,
    .bc-website-stat-label,
    .bc-website-stat-value,
    .bc-website-side-card p,
    .bc-website-checklist li,
    .bc-website-widget-copy,
    .bc-website-option,
    .bc-website-code-label,
    .bc-website-preview-label,
    .bc-website-preview-text,
    .bc-website-tip,
    .bc-website-upgrade-copy,
    .bc-website-manager-copy,
    .bc-website-overview-label,
    .bc-website-url-label,
    .bc-website-url,
    .bc-website-coming-note,
    .bc-website-setup-title,
    .bc-website-setup-card-head p,
    .bc-website-color-row small,
    .bc-website-check-row,
    .bc-website-check-row small,
    .bc-website-page-list > span,
    .bc-website-page-list small,
    .bc-website-domain-item > span,
    .bc-website-domain-item > small,
    .bc-website-feature-coming,
    .bc-website-integrations-head p,
    .bc-website-integrations-count span,
    .bc-website-editor-back,
    .bc-website-editor-head > div > p,
    .bc-website-editor-section-head p,
    .bc-website-module-toggle p,
    .bc-website-page-editor .bc-field label,
    .bc-website-page-editor .bc-form-group > label,
    .bc-website-page-editor .bc-form-group > small,
    .bc-website-hero-media-empty span,
    .bc-website-page-item,
    .bc-website-page-item small,
    .bc-navigation-card-head p,
    .bc-navigation-toggle,
    .bc-navigation-label-field label,
    .bc-navigation-order-field label,
    .bc-ministry-editor-item :is(p, small)
) {
    color: #536174 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app :is(
    .bc-website-setup-link,
    .bc-website-page-list small,
    .bc-website-page-item small,
    .bc-website-editor-back:hover
) {
    color: #0878c2 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app :is(
    .bc-website-stat,
    .bc-website-code-wrap,
    .bc-website-preview,
    .bc-website-install-box,
    .bc-website-color-row,
    .bc-website-hero-media-preview,
    .bc-website-page-item,
    .bc-navigation-row,
    .bc-website-editor-section-head
) {
    border-color: #e2e8f0 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app :is(
    .bc-website-color-row,
    .bc-website-hero-media-preview,
    .bc-website-page-item-featured,
    .bc-website-preview,
    .bc-website-install-box
) {
    background: #f8fafc !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app :is(
    .bc-website-badge,
    .bc-website-status,
    .bc-website-method-tab,
    .bc-website-page-preview,
    .bc-website-overview-actions .bc-btn.bc-btn-secondary,
    .bc-ministry-editor-item .bc-btn-secondary
) {
    color: #344256 !important;
    background: #f1f5f9 !important;
    border-color: #d6e0ea !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app .bc-website-badge--free {
    color: #475569 !important;
    background: #f1f5f9 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app .bc-website-badge--growth {
    color: #0369a1 !important;
    background: #e0f2fe !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app .bc-website-badge--pro {
    color: #92400e !important;
    background: #fff7df !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app .bc-website-status.is-published {
    color: #166534 !important;
    background: #ecfdf3 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app .bc-website-status.is-draft {
    color: #92400e !important;
    background: #fff7df !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app :is(
    .bc-website-method-tab:hover,
    .bc-website-overview-actions .bc-btn.bc-btn-secondary:hover,
    .bc-ministry-editor-item .bc-btn-secondary:hover
) {
    color: #172033 !important;
    background: #eaf0f6 !important;
    border-color: #cbd5e1 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app .bc-website-method-tab.is-active {
    color: #ffffff !important;
    background: #0878c2 !important;
    border-color: #0878c2 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app :is(
    .bc-website-code-wrap,
    .bc-website-code-pre
) {
    color: #344256 !important;
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app .bc-website-code {
    color: #334155 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app .bc-website-setup-number,
body.bc-app-mode.bc-app-theme-light .bc-app .bc-navigation-position span {
    color: #0878c2 !important;
    background: #eaf5fc !important;
    border-color: #cce8f8 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app .bc-navigation-position span {
    color: #0878c2 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app .bc-website-check-row .is-ready {
    color: #15803d !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app .bc-website-check-row .is-missing {
    color: #64748b !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app :is(
    .bc-navigation-toggle,
    .bc-website-switch span
) {
    border-color: #cbd5e1 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app .bc-website-switch span {
    background: #e2e8f0 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app .bc-website-switch span::after {
    background: #ffffff !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app .bc-website-switch input:checked + span {
    background: #1687d1 !important;
    border-color: #1687d1 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app :is(
    .bc-website-page-editor input:not([type="checkbox"]):not([type="radio"]),
    .bc-website-page-editor select,
    .bc-website-page-editor textarea,
    .bc-navigation-row input,
    .bc-ministry-editor-item input:not([type="checkbox"]):not([type="radio"]),
    .bc-ministry-editor-item textarea
) {
    color: #172033 !important;
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color-scheme: light;
}

body.bc-app-mode.bc-app-theme-light .bc-app :is(
    .bc-website-page-editor input::placeholder,
    .bc-website-page-editor textarea::placeholder,
    .bc-navigation-row input::placeholder,
    .bc-ministry-editor-item input::placeholder,
    .bc-ministry-editor-item textarea::placeholder
) {
    color: #8793a5 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app :is(
    .bc-website-overview-actions .bc-btn.bc-btn-primary,
    .bc-website-page-editor .bc-website-actions .bc-button,
    .bc-website-page-editor .bc-website-actions .bc-button-primary
),
body.bc-app-mode.bc-app-theme-light .bc-app :is(
    .bc-website-overview-actions .bc-btn.bc-btn-primary,
    .bc-website-page-editor .bc-website-actions .bc-button,
    .bc-website-page-editor .bc-website-actions .bc-button-primary
):hover {
    color: #ffffff !important;
}

/* Preserve the simulated church site's white copy on its colored hero. */
body.bc-app-mode.bc-app-theme-light .bc-app :is(
    .bc-website-preview-brand,
    .bc-website-preview-hero-copy :is(span, strong, p),
    .bc-website-preview-hero-copy button
) {
    color: #ffffff !important;
}

/* Member list actions: keep Edit readable and Delete visibly destructive. */
body.bc-app-mode.bc-app-theme-light .bc-app .bc-member-actions :is(
    .bc-btn-secondary,
    .bc-edit-member-btn,
    .bc-view-member-btn
) {
    color: #344256 !important;
    background: #f8fafc !important;
    border-color: #d6e0ea !important;
    box-shadow: none !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app .bc-member-actions :is(
    .bc-btn-secondary:hover,
    .bc-edit-member-btn:hover,
    .bc-view-member-btn:hover
) {
    color: #172033 !important;
    background: #eef4f9 !important;
    border-color: #cbd5e1 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app .bc-member-actions .bc-btn-danger {
    color: #b91c1c !important;
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    box-shadow: none !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app .bc-member-actions .bc-btn-danger:hover {
    color: #991b1b !important;
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
}

/* Settings brand color descriptions. */
body.bc-app-mode.bc-app-theme-light .bc-app .bc-settings-color-copy {
    color: #344256 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app .bc-settings-color-copy strong {
    color: #172033 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app .bc-settings-color-copy span {
    color: #536174 !important;
}

@media (prefers-reduced-motion: reduce) {
    body.bc-app-mode.bc-app-theme-light *,
    body.bc-app-mode.bc-app-theme-light *::before,
    body.bc-app-mode.bc-app-theme-light *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* BC Settings UI polish v0.1.0 */
/* Improve locked Branding states in dark mode. */
body.bc-app-mode:not(.bc-app-theme-light) .bc-app .bc-settings-locked-media,
body.bc-app-mode:not(.bc-app-theme-light) .bc-app .bc-settings-locked-color {
    color: rgba(255,255,255,.72) !important;
    background: rgba(255,255,255,.035) !important;
    border-color: rgba(255,255,255,.18) !important;
}

body.bc-app-mode:not(.bc-app-theme-light) .bc-app .bc-settings-colors-head span {
    color: rgba(255,255,255,.68) !important;
}

/* Use deliberate light surfaces and readable text in light mode. */
body.bc-app-mode.bc-app-theme-light .bc-app .bc-settings-media-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app .bc-settings-locked-media,
body.bc-app-mode.bc-app-theme-light .bc-app .bc-settings-locked-color {
    color: #536174 !important;
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app .bc-settings-colors-head strong {
    color: #172033 !important;
}

body.bc-app-mode.bc-app-theme-light .bc-app .bc-settings-colors-head span {
    color: #536174 !important;
}
