/* BuildUp Command Center 0.17.6 - application-wide dark-mode contract.
 * Loaded after every screen-specific stylesheet so later feature CSS cannot
 * silently reintroduce light surfaces or low-contrast text.
 */
html[data-bub-theme="dark"]{
  --bub-bg:#08111f;
  --bub-card:#111d2e;
  --bub-card-alt:#18273b;
  --bub-card-raised:#20334b;
  --bub-text:#f5f8fc;
  --bub-muted:#becada;
  --bub-subtle:#9eafc3;
  --bub-line:#354a64;
  --bub-line-strong:#526b89;
  --bub-input:#0c1727;
  --bub-hover:#1e3047;
  --bub-table-head:#192a40;
  --bub-blue:#63a7ff;
  --bub-blue-dark:#3f86e8;
  --bub-green:#55d7a0;
  --bub-red:#ff9a9a;
  --bub-yellow:#ffd071;
  --bub-shadow:0 14px 38px rgba(0,0,0,.34);
  color-scheme:dark;
}
html[data-bub-theme="dark"] .bub-cc-portal-body,
html[data-bub-theme="dark"] .bub-main,
html[data-bub-theme="dark"] .bub-content{background:var(--bub-bg)!important;color:var(--bub-text)!important}
html[data-bub-theme="dark"] .bub-topbar,
html[data-bub-theme="dark"] .bub-mobile-topbar{background:#0d1828!important;border-color:var(--bub-line)!important;color:var(--bub-text)!important}
html[data-bub-theme="dark"] .bub-site-menu{background:var(--bub-card)!important;border-color:var(--bub-line)!important;box-shadow:var(--bub-shadow)!important}
html[data-bub-theme="dark"] .bub-site-menu>a{color:var(--bub-text)!important}
html[data-bub-theme="dark"] .bub-site-menu>a:hover{background:var(--bub-hover)!important}

/* Text contract */
html[data-bub-theme="dark"] .bub-cc-portal-body :where(h1,h2,h3,h4,h5,h6,strong,b,legend,summary,dt,dd,label){color:var(--bub-text)}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(p,li,td,th,span,small){border-color:var(--bub-line)}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-muted,.description,.bub-field-note span,.bub-card p,.bub-card-head p,label small,dd small,td small,.bub-toolbar-note){color:var(--bub-muted)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-eyebrow,.bub-kicker,.bub-cc-kicker){color:#83bcff!important}
html[data-bub-theme="dark"] .bub-cc-portal-body a:not(.bub-btn):not(.button):not(.bub-button){color:#86bdff}
html[data-bub-theme="dark"] .bub-cc-portal-body a:not(.bub-btn):not(.button):not(.bub-button):hover{color:#b5d8ff}

/* Core surfaces */
html[data-bub-theme="dark"] .bub-cc-portal-body :where(
  .bub-card,.bub-metric,.bub-analytics-card,.bub-analytics-filters,.bub-cc-card,
  .bub-site-card,.bub-integration-card,.bub-package-card,.bub-plan-card,.bub-download-card,
  .bub-license-card,.bub-onboarding-card,.bub-hosting-card,.bub-release-card,.bub-form-section,
  .bub-settings-form,.bub-preview-dialog,.bub-report-builder,.bub-report-actions,.bub-support-panel,
  .bub-support-widget,.bub-support-page,.bub-support-staff-list,.bub-support-staff-thread,
  .bub-client-row,.bub-website-card,.bub-ops-settings-link,.bub-update-deploy-card,
  .bub-update-bootstrap,.bub-update-result,.bub-update-confirm,.bub-lead-layout,.bub-empty-state,
  .bub-recovery-panel,.bub-recovery-dashboard-card,.bub-recovery-kpi,.bub-recovery-win,
  .bub-email-campaign-card,.bub-email-funnel-card,.bub-email-rate-card,.bub-email-maturity-note,
  .bub-email-period-summary,.bub-ga4-report-section,.bub-ga4-connect,.bub-ga4-diagnostics,
  .bub-ga4-loading,.bub-ga4-stale,.bub-code-box,.bub-key-box
){background:var(--bub-card)!important;border-color:var(--bub-line)!important;color:var(--bub-text)!important;box-shadow:var(--bub-shadow)}

html[data-bub-theme="dark"] .bub-cc-portal-body :where(
  .bub-current-plan-grid>div,.bub-detail-grid>div,.bub-client-summary>div,.bub-client-glance>div,
  .bub-ops-metrics>div,.bub-ops-mini-row,.bub-simple-row,.bub-resource-links>a,
  .bub-contact-list article,.bub-ops-note-list article,.bub-activity-list>div,.bub-member-list>div,
  .bub-performance-grid>div,.bub-email-overview-health>div,.bub-email-overview-metrics>div,
  .bub-email-campaign-stats>div,.bub-email-period-summary-grid>div,.bub-recovery-mini-metrics>div,
  .bub-recovery-pulse-grid>div,.bub-recovery-funnel-step,.bub-recovery-ranked-row,
  .bub-source-row,.bub-stat-list>div,.bub-service-option,.bub-connection-option,
  .bub-mailchimp-audience-row,.bub-field-matrix label,.bub-toggle,.bub-switch-row,
  .bub-section-picker label,.bub-attention-list li,.bub-utm-output,.bub-domain-choice,
  .bub-launch-choice,.bub-rule-tester,.bub-danger-zone,.bub-dns-grid>div,.bub-meta-list>div
){background:var(--bub-card-alt)!important;border-color:var(--bub-line)!important;color:var(--bub-text)!important}

/* Forms - including provider setup, settings, modals and remote Site Builder */
html[data-bub-theme="dark"] .bub-cc-portal-body :where(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),textarea,select){background:var(--bub-input)!important;border-color:var(--bub-line)!important;color:var(--bub-text)!important;box-shadow:none!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),textarea,select):hover{border-color:var(--bub-line-strong)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(input,textarea,select,button,a):focus-visible{outline:0!important;box-shadow:0 0 0 3px rgba(99,167,255,.3)!important;border-color:#78b5ff!important}
html[data-bub-theme="dark"] .bub-cc-portal-body input::placeholder,
html[data-bub-theme="dark"] .bub-cc-portal-body textarea::placeholder{color:#8093aa!important;opacity:1}
html[data-bub-theme="dark"] .bub-cc-portal-body select option{background:#0c1727!important;color:var(--bub-text)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body input[type="checkbox"],
html[data-bub-theme="dark"] .bub-cc-portal-body input[type="radio"]{accent-color:#63a7ff}
html[data-bub-theme="dark"] .bub-cc-portal-body input[type="color"]{background:var(--bub-input)!important;border-color:var(--bub-line)!important;color-scheme:light}
html[data-bub-theme="dark"] .bub-cc-portal-body input:-webkit-autofill,
html[data-bub-theme="dark"] .bub-cc-portal-body input:-webkit-autofill:hover,
html[data-bub-theme="dark"] .bub-cc-portal-body input:-webkit-autofill:focus{-webkit-text-fill-color:var(--bub-text);-webkit-box-shadow:0 0 0 1000px var(--bub-input) inset;transition:background-color 9999s ease-out}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-form-grid label>span,.bub-cc-form-grid label>span,.bub-settings-form label>span,.bub-report-builder label>span,.bub-field-matrix label>span){color:#e7eef7!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-check,.bub-checkbox,.bub-radio-line){color:var(--bub-text)!important}

/* Buttons */
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-btn.is-secondary,.button:not(.button-primary),.bub-button-secondary,.bub-icon-btn,.bub-link-button,.bub-text-link){background:var(--bub-card-alt)!important;border-color:var(--bub-line-strong)!important;color:var(--bub-text)!important;text-shadow:none!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-btn.is-secondary,.button:not(.button-primary),.bub-button-secondary,.bub-icon-btn,.bub-link-button):hover{background:var(--bub-card-raised)!important;border-color:#6d8db3!important;color:#fff!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-btn.is-primary,.button-primary,.bub-button:not(.bub-button-secondary):not(.bub-button-quiet)){background:#2e73c9!important;border-color:#5a9ff1!important;color:#fff!important;text-shadow:none!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-btn.is-primary,.button-primary,.bub-button:not(.bub-button-secondary):not(.bub-button-quiet)):hover{background:#3f86e8!important;border-color:#7bb5fb!important}
html[data-bub-theme="dark"] .bub-cc-portal-body .bub-btn.is-danger{background:#3a1d27!important;border-color:#8c4354!important;color:#ffb7c1!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(button:disabled,.button.disabled,.bub-btn:disabled){opacity:.58!important;cursor:not-allowed}

/* Tables and lists */
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-table,.bub-data-table,.widefat){background:transparent!important;color:var(--bub-text)!important;border-color:var(--bub-line)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-table th,.bub-data-table th,.widefat th){background:var(--bub-table-head)!important;color:#d4deea!important;border-color:var(--bub-line)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-table td,.bub-data-table td,.widefat td){background:transparent!important;color:#e5edf7!important;border-color:var(--bub-line)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-table tbody tr:hover,.bub-data-table tbody tr:hover,.widefat tbody tr:hover,.striped tbody tr:nth-child(odd)){background:var(--bub-hover)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-title-link,.bub-title-link strong){color:var(--bub-text)!important}

/* Tabs, navigation, accordions and sticky action areas */
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-ops-tabs,.bub-client-tabs,.bub-analytics-tabs,.bub-analytics-source-tabs,.bub-email-breakdown-tabs,.nav-tab-wrapper,.bub-sb-tabs){border-color:var(--bub-line)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-ops-tabs a,.bub-client-tabs a,.bub-analytics-tabs a,.bub-analytics-source-tabs a,.bub-email-breakdown-tabs a,.nav-tab,.bub-sb-tabs button){color:var(--bub-muted)!important;background:transparent!important;border-color:transparent!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-ops-tabs a:hover,.bub-client-tabs a:hover,.nav-tab:hover,.bub-sb-tabs button:hover){background:var(--bub-hover)!important;color:#fff!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-ops-tabs a.is-active,.bub-client-tabs a.is-active,.bub-analytics-tabs .is-active,.bub-analytics-source-tabs .is-active,.bub-email-breakdown-tabs .is-active,.nav-tab-active,.bub-sb-tabs button.is-active){background:#234f82!important;border-color:#5e95cf!important;color:#fff!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(details,.bub-recovery-disclosure,.bub-sb-details){background:var(--bub-card)!important;border-color:var(--bub-line)!important;color:var(--bub-text)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(summary,.bub-recovery-detail>summary){background:var(--bub-card-alt)!important;border-color:var(--bub-line)!important;color:var(--bub-text)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-builder-save,.bub-report-actions,.bub-form-footer,.bub-toolbar){background:rgba(8,17,31,.96)!important;border-color:var(--bub-line)!important;color:var(--bub-text)!important;box-shadow:0 -12px 30px rgba(0,0,0,.28)}

/* Integration and provider setup */
html[data-bub-theme="dark"] .bub-cc-portal-body .bub-integration-card>header{border-color:var(--bub-line)!important;background:transparent!important}
html[data-bub-theme="dark"] .bub-cc-portal-body .bub-integration-card>header p{color:var(--bub-muted)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body .bub-mailchimp-audience-row{box-shadow:inset 0 0 0 1px rgba(255,255,255,.015)}
html[data-bub-theme="dark"] .bub-cc-portal-body .bub-mailchimp-audience-row:has(input[type="checkbox"]:checked){background:#193858!important;border-color:#5d96d4!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-connection-option:has(input:checked),.bub-service-option:has(input:checked)){background:#193858!important;border-color:#67a4e8!important;box-shadow:0 0 0 1px rgba(99,167,255,.22)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-field-note,.bub-alert.is-info,.bub-note){background:#162d47!important;border-color:#3e6790!important;color:#d9e9fa!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-field-note strong,.bub-alert.is-info strong,.bub-note strong){color:#fff!important}

/* Semantic alerts */
html[data-bub-theme="dark"] .bub-cc-portal-body .bub-alert.is-success{background:#123629!important;border-color:#2e7258!important;color:#b9f3d8!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-alert.is-warning,.bub-field-note.is-warning,.bub-attention-list .is-warning,.bub-sb-alert.is-warning){background:#3b2d13!important;border-color:#8f6b27!important;color:#ffe3a6!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-alert.is-error,.bub-attention-list .is-error,.bub-sb-alert.is-error){background:#3a1b25!important;border-color:#874052!important;color:#ffc0c8!important}
html[data-bub-theme="dark"] .bub-cc-portal-body .bub-alert code{background:rgba(0,0,0,.26)!important;color:inherit!important}

/* Code, URLs and technical values */
html[data-bub-theme="dark"] .bub-cc-portal-body :where(code,pre,.bub-cc-code,.bub-utm-output){background:#091321!important;border-color:var(--bub-line)!important;color:#d8e8fa!important}
html[data-bub-theme="dark"] .bub-cc-portal-body pre{padding:12px;border:1px solid var(--bub-line);border-radius:10px;overflow:auto}

/* Status pills remain semantic and readable */
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-pill.is-active,.bub-pill.is-healthy,.bub-pill.is-success,.bub-pill.is-complete,.bub-pill.is-ready,.bub-status.is-online){background:#123b2d!important;color:#8ff0c0!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-pill.is-warning,.bub-pill.is-paused,.bub-pill.is-completed_with_errors,.bub-status.is-stale){background:#3b2d13!important;color:#ffd778!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-pill.is-critical,.bub-pill.is-failed,.bub-status.is-offline){background:#3b1d27!important;color:#ffadb8!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-pill.is-draft,.bub-pill.is-new,.bub-pill.is-info,.bub-status.is-script,.bub-pill.is-provisioning,.bub-pill.is-configuring,.bub-pill.is-activating,.bub-pill.is-queued){background:#18375a!important;color:#9bcbff!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-pill.is-neutral,.bub-pill.is-unknown){background:#29394e!important;color:#d3deeb!important}

/* Analytics, email and Recovery report surfaces */
html[data-bub-theme="dark"] .bub-analytics{--bub-ink:var(--bub-text);--bub-muted:var(--bub-muted);--bub-line:var(--bub-line);--bub-soft:var(--bub-card-alt)}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-funnel>div>span,.bub-report-builder label>span,.bub-performance-grid strong,.bub-stat-list dd,.bub-big-stat){color:var(--bub-text)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-attention-list li,.bub-section-picker label,.bub-utm-output){background:var(--bub-card-alt)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-email-funnel-track,.bub-source-track,.bub-recovery-funnel-step>i){background:#2a3b51!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-empty-chart,.bub-recovery-empty,.bub-empty){color:var(--bub-muted)!important}

/* Remote Site Builder - final overrides after its own stylesheet */
html[data-bub-theme="dark"] .bub-sb-app{--sb-ink:var(--bub-text);--sb-muted:var(--bub-muted);--sb-line:var(--bub-line);--sb-soft:var(--bub-card-alt);--sb-card:var(--bub-card);color:var(--bub-text)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-sb-statusbar,.bub-sb-job,.bub-sb-form,.bub-sb-kpi,.bub-sb-launch-card,.bub-sb-theme-card,.bub-sb-option-card,.bub-sb-repeat-row,.bub-sb-property,.bub-sb-empty-state,.bub-sb-details,.bub-sb-provider-panel,.bub-sb-mode-card){background:var(--bub-card)!important;border-color:var(--bub-line)!important;color:var(--bub-text)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-sb-quick-action button,.bub-sb-toggle,.bub-sb-section-row,.bub-sb-property-form,.bub-sb-checklist li,.bub-sb-security-note,.bub-sb-mode-details>div){background:var(--bub-card-alt)!important;border-color:var(--bub-line)!important;color:var(--bub-text)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-sb-theme-image,.bub-sb-property-image){background-color:#24364b!important}
html[data-bub-theme="dark"] .bub-cc-portal-body .bub-sb-property-badges em{background:#263b54!important;color:#d9e9fa!important}

/* Dialog backdrop and scrollbars */
html[data-bub-theme="dark"] .bub-mobile-overlay{background:rgba(0,0,0,.62)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body *{scrollbar-color:#51647d #111d2e}

/* Complete application audit: navigation, operations, integrations, support, hosting and reports. */
html[data-bub-theme="dark"] .bub-cc-portal-body :where(h1,h2,h3,h4,h5,h6,strong,b,legend,summary,dt,dd,label){color:var(--bub-text)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-sidebar-site-switcher select,.bub-context-filter select,.bub-date-filter select,.bub-search,.bub-search input){background:var(--bub-input)!important;border-color:var(--bub-line)!important;color:var(--bub-text)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-site-favicon,.bub-metric-icon,.bub-install-icon){background:#193858!important;color:#9bcbff!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-row-menu,.bub-popover,.bub-dropdown,.bub-menu-popover){background:var(--bub-card)!important;border-color:var(--bub-line)!important;color:var(--bub-text)!important;box-shadow:var(--bub-shadow)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-row-menu a,.bub-row-menu button,.bub-popover a,.bub-popover button){color:var(--bub-text)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-row-menu a:hover,.bub-row-menu button:hover,.bub-popover a:hover,.bub-popover button:hover){background:var(--bub-hover)!important;color:#fff!important}

/* Operations and hosting */
html[data-bub-theme="dark"] .bub-cc-portal-body :where(
 .bub-ops-filter,.bub-ops-toolbar,.bub-ops-actions,.bub-ops-app-layout aside,
 .bub-hosting-status,.bub-hosting-details>div,.bub-provision-card,.bub-provision-step,
 .bub-package-footnote,.bub-update-site,.bub-update-form,.bub-update-fields,
 .bub-import-preview,.bub-client-services>span,.bub-service-picker label
){background:var(--bub-card-alt)!important;border-color:var(--bub-line)!important;color:var(--bub-text)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body .bub-provision-progress{background:#2a3b51!important}
html[data-bub-theme="dark"] .bub-cc-portal-body .bub-provision-progress>span{background:#63a7ff!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-details>div,.bub-meta-list>div,.bub-dns-grid>div){border-color:var(--bub-line)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-details dt,.bub-meta-list dt,.bub-hosting-details span){color:var(--bub-muted)!important}

/* Integration setup: Mailchimp, Constant Contact and every connector card. */
html[data-bub-theme="dark"] .bub-cc-portal-body .bub-settings-form{color:var(--bub-text)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body .bub-integration-grid{color:var(--bub-text)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body .bub-integration-card{background:var(--bub-card)!important;border-color:var(--bub-line)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body .bub-integration-card :where(header,h2,h3,p,label,span,strong,small,em){color:inherit}
html[data-bub-theme="dark"] .bub-cc-portal-body .bub-integration-card :where(label>span,label small,.bub-muted){color:var(--bub-muted)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body .bub-integration-card label>span{color:#e7eef7!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-toggle-list,.bub-mailchimp-audience-list){background:transparent!important;color:var(--bub-text)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body .bub-toggle{background:var(--bub-card-alt)!important;border:1px solid var(--bub-line)!important;color:var(--bub-text)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body .bub-toggle :where(strong,span){color:var(--bub-text)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body .bub-toggle small{color:var(--bub-muted)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body .bub-toggle i{background:#3a4c63!important;border-color:#627894!important}
html[data-bub-theme="dark"] .bub-cc-portal-body .bub-toggle input:checked+i{background:#3f86e8!important;border-color:#78b5ff!important}
html[data-bub-theme="dark"] .bub-cc-portal-body .bub-mailchimp-audience-row :where(label,span,strong){color:var(--bub-text)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body .bub-mailchimp-audience-row small{color:var(--bub-muted)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body .bub-form-footer{background:linear-gradient(180deg,rgba(8,17,31,.72),#08111f 34%)!important}

/* Analytics, email reports, GA4 and Booking Recovery */
html[data-bub-theme="dark"] .bub-analytics-portal,
html[data-bub-theme="dark"] .bub-analytics{--bub-ink:#f5f8fc;--bub-muted:#becada;--bub-line:#354a64;--bub-soft:#18273b;--bub-card:#111d2e;color:var(--bub-text)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(
 .bub-cc-metrics>div,.bub-cc-metrics>article,.bub-cc-metric,.bub-email-summary-grid>article,
 .bub-email-snapshot-row,.bub-overview-campaign-row,.bub-email-metrics>div,
 .bub-ga4-section-nav,.bub-section-heading,.bub-analytics-period,.bub-recovery-status,
 .bub-recovery-custom-range,.bub-recovery-range
){background:var(--bub-card-alt)!important;border-color:var(--bub-line)!important;color:var(--bub-text)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-email-snapshot-row:hover,.bub-overview-campaign-row:hover){background:var(--bub-hover)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-email-resend-badge,.bub-badge,.bub-trial-badge){background:#263b54!important;border-color:#4e6683!important;color:#dceaff!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-ga4-error,.bub-error-state){background:#3a1b25!important;border-color:#874052!important;color:#ffc0c8!important}
html[data-bub-theme="dark"] .bub-cc-portal-body .bub-recovery-range button{color:var(--bub-muted)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body .bub-recovery-range button:hover{color:#fff!important;background:#20334b!important}
html[data-bub-theme="dark"] .bub-cc-portal-body .bub-recovery-range button.is-active{background:#f5f8fc!important;color:#102033!important}

/* Support workspace and assistant */
html[data-bub-theme="dark"] .bub-cc-portal-body :where(
 .bub-support-layout,.bub-support-staff-layout,.bub-support-history,.bub-support-staff-context,
 .bub-support-thread,.bub-support-quick,.bub-support-inline-actions,.bub-support-staff-search,
 .bub-support-context-head,.bub-support-context-note,.bub-support-system,.bub-support-resolved-notice
){background:var(--bub-card)!important;border-color:var(--bub-line)!important;color:var(--bub-text)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-support-history,.bub-support-staff-context,.bub-support-thread){background:#0c1727!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-support-history-item,.bub-support-staff-item,.bub-support-message){border-color:var(--bub-line)!important;color:var(--bub-text)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-support-history-item:hover,.bub-support-history-item.is-active,.bub-support-staff-item:hover,.bub-support-staff-item.is-active){background:var(--bub-hover)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body .bub-support-message:not(.is-client){background:var(--bub-card-alt)!important;color:var(--bub-text)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-support-quick button,.bub-support-inline-actions button,.bub-support-action-link,.bub-support-tabs button){background:var(--bub-card-alt)!important;border-color:var(--bub-line-strong)!important;color:#9bcbff!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-support-quick button:hover,.bub-support-inline-actions button:hover,.bub-support-action-link:hover,.bub-support-tabs button:hover,.bub-support-tabs button.is-active){background:#203b5d!important;border-color:#6ea8e7!important;color:#fff!important}
html[data-bub-theme="dark"] .bub-cc-portal-body .bub-support-waiting{background:#3b2d13!important;border-color:#8f6b27!important;color:#ffe3a6!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-support-mode-notice,.bub-support-fresh-notice){background:#162d47!important;border-color:#3e6790!important;color:#d9e9fa!important}
html[data-bub-theme="dark"] .bub-cc-portal-body .bub-support-mode-notice.is-resolved,
html[data-bub-theme="dark"] .bub-cc-portal-body .bub-support-resolved-notice{background:#202d3e!important;border-color:#465b73!important;color:#d3deeb!important}

/* Modals, update tools and account screens */
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-preview-controls,.bub-preview-browser-bar,.bub-preview-toolbar,.bub-update-form,.bub-update-fields,.bub-team-grid>label,.bub-auto-tags){background:var(--bub-card-alt)!important;border-color:var(--bub-line)!important;color:var(--bub-text)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body .bub-team-grid>label:hover{background:var(--bub-hover)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-preview-toolbar span,.bub-team-grid b){background:#263b54!important;color:#d9e9fa!important}
html[data-bub-theme="dark"] .bub-cc-portal-body .bub-preview-dialog-close{background:var(--bub-card-raised)!important;color:#fff!important;border:1px solid var(--bub-line-strong)!important}
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.notice,.updated,.error){background:var(--bub-card)!important;border-color:var(--bub-line)!important;color:var(--bub-text)!important}

/* Login and signup surfaces use the same palette; logo artwork stays on white. */
html[data-bub-theme="dark"] .bub-app-login{background:var(--bub-bg)!important}
html[data-bub-theme="dark"] .bub-login-box,
html[data-bub-theme="dark"] .bub-signup-box{background:var(--bub-card)!important;border-color:var(--bub-line)!important;color:var(--bub-text)!important}
html[data-bub-theme="dark"] .bub-login-logo,
html[data-bub-theme="dark"] .bub-login-mobile-logo,
html[data-bub-theme="dark"] .bub-brand-logo-shell{background:#fff!important}

/* Campaign/site previews intentionally retain their own published colors. */
html[data-bub-theme="dark"] .bub-cc-portal-body :where(.bub-preview-browser iframe,.bub-preview-popup,.bub-campaign-preview-stage,.bub-campaign-preview-stage *){color-scheme:light}

/* Audience management needs the full integration-grid width; otherwise its
 * name, label and default controls collide inside a half-width provider card. */
.bub-integration-grid>.bub-mailchimp-card{grid-column:1/-1}
.bub-mailchimp-card .bub-mailchimp-audience-row{grid-template-columns:minmax(240px,1.2fr) minmax(190px,1fr) minmax(150px,auto)}
@media(max-width:900px){.bub-mailchimp-card .bub-mailchimp-audience-row{grid-template-columns:1fr}}
