/* Shared palette. Light leaves the established component colors unchanged. */
:root {
  color-scheme: light;
  --wf-theme-bg: #f7f8f4;
  --wf-theme-surface: #fff;
  --wf-theme-raised: #fff;
  --wf-theme-soft: #edf3eb;
  --wf-theme-input: #fbfcfb;
  --wf-theme-border: #dce6df;
  --wf-theme-text: #25424a;
  --wf-theme-muted: #5f716a;
  --wf-theme-accent: #367b70;
  --wf-theme-link: #276764;
  --wf-theme-primary: #1c5360;
  --wf-theme-on-primary: #fff;
  --wf-theme-danger: #a43e35;
  --wf-theme-danger-bg: #fff3f0;
  --wf-theme-success: #397657;
  --wf-theme-success-bg: #edf5e9;
  --wf-theme-warning: #806328;
  --wf-theme-warning-bg: #fbf6e8;
  --wf-theme-shadow: 0 12px 40px #25424a12;
}

html[data-wf-theme="dark"] {
  color-scheme: dark;
  --wf-theme-bg: #101a1c;
  --wf-theme-surface: #182629;
  --wf-theme-raised: #203236;
  --wf-theme-soft: #25383b;
  --wf-theme-input: #132225;
  --wf-theme-border: #3b5559;
  --wf-theme-text: #edf5f3;
  --wf-theme-muted: #b1c5bf;
  --wf-theme-accent: #a7d2bd;
  --wf-theme-link: #addbce;
  --wf-theme-primary: #97cbb7;
  --wf-theme-on-primary: #122c27;
  --wf-theme-danger: #ffb4ab;
  --wf-theme-danger-bg: #432d2c;
  --wf-theme-success: #b0dfb6;
  --wf-theme-success-bg: #233d31;
  --wf-theme-warning: #f0d194;
  --wf-theme-warning-bg: #403a29;
  --wf-theme-shadow: 0 16px 42px #0005;
  --wf-teal: var(--wf-theme-link);
  --wf-deep: #d2eee3;
  --wf-ink: var(--wf-theme-text);
  --wf-muted: var(--wf-theme-muted);
  --wf-gold: #edc77b;
  --wf-paper: var(--wf-theme-bg);
  --wf-line: var(--wf-theme-border);
  --wf-soft: var(--wf-theme-soft);
  --wf-shadow: var(--wf-theme-shadow);
  background: var(--wf-theme-bg);
}

/* One consistent switch in the application header, menu and standalone pages. */
.wf-site .wf-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--wf-theme-border);
  border-radius: 11px;
  background: var(--wf-theme-surface);
  color: var(--wf-theme-text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.wf-site .wf-theme-toggle:hover { background: var(--wf-theme-soft); }
.wf-site .wf-theme-toggle:focus-visible { outline: 3px solid var(--wf-gold, #d99c35); outline-offset: 3px; }
.wf-site .wf-theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wf-site .wf-theme-toggle [data-theme-icon="dark"] { display: none; }
html[data-wf-theme="dark"] .wf-site .wf-theme-toggle [data-theme-icon="light"] { display: none; }
html[data-wf-theme="dark"] .wf-site .wf-theme-toggle [data-theme-icon="dark"] { display: block; }
.wf-theme-setting { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; border-block-start: 1px solid var(--wf-theme-border); color: var(--wf-theme-text); font-size: 14px; }
.wf-theme-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-block-end: 20px; }
.wf-site .wf-public-language { display: flex; align-items: center; gap: 10px; }
/* Share-page action buttons are full width; the header switch stays compact. */
.wf-site .wf-mobile-share-brand .wf-theme-toggle { inline-size: auto; min-inline-size: 44px; min-block-size: 44px; flex: 0 0 auto; margin-inline-start: auto; padding: 9px 12px; }
html .wf-site .wf-mobile-share-brand .wf-theme-toggle { color: var(--wf-theme-text); background: var(--wf-theme-surface); border-color: var(--wf-theme-border); }
html .wf-site .wf-mobile-share-brand .wf-theme-toggle:hover { color: var(--wf-theme-text); background: var(--wf-theme-soft); border-color: var(--wf-theme-border); }
@media (max-width: 700px) {
  .wf-site .wf-app-header .wf-header-actions { gap: 6px; }
  .wf-site .wf-app-header .wf-header-left { min-width: 0; }
  .wf-site .wf-app-header .wf-header-context { min-width: 0; }
  .wf-site .wf-app-header .wf-page-context { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .wf-site :is(.wf-app-header, .wf-public-header, .wf-mobile-share-brand) .wf-theme-toggle { width: 44px; min-width: 44px; inline-size: 44px; padding: 10px; }
  .wf-site :is(.wf-app-header, .wf-public-header, .wf-mobile-share-brand) .wf-theme-toggle .wf-theme-label { display: none; }
  .wf-site .wf-theme-toggle--labeled .wf-theme-label { display: inline; }
  .wf-site .wf-app-header .wf-language-switcher summary { min-height: 44px; padding-inline: 8px; }
  .wf-site .wf-public-language { gap: 6px; }
}
@media (max-width: 370px) {
  .wf-site.wf-guest .wf-public-header .wf-brand img { width: 148px; height: 44px; object-fit: contain; }
}

/* Application shell and family navigation. */
html[data-wf-theme="dark"] body.wf-site { color: var(--wf-theme-text); background: var(--wf-theme-bg); }
html[data-wf-theme="dark"] .wf-site :is(.wf-public-header, .wf-app-header, .wf-sidebar, .wf-menu-sheet, .wf-mobile-dock, .wf-language-options, .wf-account-menu > div, .wf-login-card, .wf-error main, .wf-offline main) {
  color: var(--wf-theme-text);
  background: var(--wf-theme-surface);
  border-color: var(--wf-theme-border);
  box-shadow: var(--wf-theme-shadow);
}
html[data-wf-theme="dark"] .wf-site :is(.wf-app-header, .wf-public-header, .wf-sidebar) { box-shadow: none; }
.wf-site :is(.wf-brand img, .wf-error main > img) { background: transparent; }
/* Select the rendition from the website setting, including in mobile Safari.
   Both assets have identical geometry and transparent backgrounds. */
html[data-wf-theme="dark"] .wf-site img.wf-adaptive-logo {
  content: url("/images/wari/branding/wari-logo-dark.svg?v=20261016-alpha");
}
html[data-wf-theme="dark"] .wf-site :is(.wf-page-context, .wf-menu-heading h2, .wf-menu-member, .wf-feature-list strong, .wf-membership-note h3) { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site :is(.wf-header-brandname, .wf-sidebar-label, .wf-sidebar-bottom, .wf-sidebar-bottom strong, .wf-eyebrow, .wf-menu-heading p, .wf-menu-section-title, .wf-menu-current-language, .wf-menu-order-hint, .wf-menu-order-status, .wf-app-footer, .wf-public-footer, .wf-invitation-note, .wf-invitation-note strong, .wf-belonging-note, .wf-emblem-caption) { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-site :is(.wf-main-nav a, .wf-personal-nav a, .wf-personal-nav button, .wf-menu-account a, .wf-menu-languages summary, .wf-menu-language-options a, .wf-language-options a, .wf-account-menu summary, .wf-account-menu > div > a, .wf-account-menu button, .wf-mobile-dock > a, .wf-mobile-dock > button) { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-site :is(.wf-main-nav a, .wf-personal-nav a, .wf-personal-nav button, .wf-menu-account a, .wf-menu-language-options a, .wf-language-options a, .wf-account-menu > div > a, .wf-account-menu button, .wf-mobile-dock > a):hover { color: var(--wf-theme-text); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-site :is(.wf-main-nav a[aria-current="page"], .wf-language-options a[aria-current="true"], .wf-menu-language-options a[aria-current="true"], .wf-mobile-dock > a[aria-current="page"]) { color: var(--wf-theme-accent); background: var(--wf-theme-soft); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site :is(.wf-member-tag, .wf-mobile-brand, .wf-avatar, .wf-feature-icon, .wf-login-icon, .wf-language-switcher summary, .wf-menu-close, .wf-menu-customize button, .wf-menu-move-controls, .wf-menu-move-controls button, .wf-menu-grid a, .wf-menu-drag-ghost, .wf-menu-footer button) { color: var(--wf-theme-accent); background: var(--wf-theme-raised); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site :is(.wf-menu-grid a svg, .wf-menu-account svg, .wf-menu-languages svg, .wf-app-footer svg, .wf-icon-button, .wf-menu-drag) { color: var(--wf-theme-accent) !important; }
html[data-wf-theme="dark"] .wf-site :is(.wf-menu-grid a:hover, .wf-menu-grid a[aria-current="page"], .wf-menu-grid a.is-reorder-selected, .wf-language-switcher[open] summary) { background: var(--wf-theme-soft); color: var(--wf-theme-text); border-color: #6e9c89; }
html[data-wf-theme="dark"] .wf-site .wf-menu-footer { background: var(--wf-theme-surface); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site :is(.wf-menu-handle, .wf-sidebar-divider) { background: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site :is(.wf-menu-sheet, .wf-contacts-dialog, .wf-profile-menu-dialog)::backdrop { background: #020b0dbd; }
html[data-wf-theme="dark"] .wf-site :is(.wf-mobile-dock > button[data-mobile-menu-toggle], .wf-menu-reorder-actions .wf-menu-order-save, .wf-button, .wf-header-signin) { color: var(--wf-theme-on-primary) !important; background: var(--wf-theme-primary); border-color: var(--wf-theme-primary); }
html[data-wf-theme="dark"] .wf-site :is(.wf-menu-reorder-actions .wf-menu-order-save, .wf-button, .wf-header-signin):hover { background: #b3ddcb; color: var(--wf-theme-on-primary) !important; }

/* Native social/community foundations and shared form controls. */
html[data-wf-theme="dark"] .wf-site :is(#es, #ed, #fd) {
  --family-ink: var(--wf-theme-text);
  --family-teal: var(--wf-theme-link);
  --family-line: var(--wf-theme-border);
  --family-soft: var(--wf-theme-soft);
  color: var(--wf-theme-text);
}
html[data-wf-theme="dark"] .wf-site .wf-component :is(#es, #ed) { background-color: transparent; }
html[data-wf-theme="dark"] .wf-site :is(#es, #ed) :is(.es-stream, .es-story, .es-card, .es-panel, .es-island, .es-widget, .es-side-widget, .es-mobile-info, .es-cat-header, .es-forms, .o-card, .o-empty, .ed-post, .ed-post-item, .ed-category, .ed-reply, .ed-ask, .es-convo, .es-convo__sidebar, .es-convo__content, .es-convo-composer) {
  color: var(--wf-theme-text) !important;
  background-color: var(--wf-theme-surface) !important;
  border-color: var(--wf-theme-border) !important;
  box-shadow: none;
}
html[data-wf-theme="dark"] .wf-site :is(#es, #ed) :is(h1, h2, h3, h4, h5, legend, .o-control-label, .es-stream-title, .es-stream-embed__title, .es-snackbar2__title, .es-side-widget__title, .es-cat-header__title, .ed-post-title, .ed-post-title a) { color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-site :is(#es, #ed) :is(.t-text--muted, .text-muted, .help-block, .es-cat-header__desc, .o-empty__text, .o-empty__icon, .es-stream-meta-footer, .es-stream-embed__desc, .es-stream-embed__meta, .es-stream-end-message, .es-side-widget__bd, .es-widget__title, .es-convo-list__meta, .ed-post-meta, .ed-attachment-dropzone__note) { color: var(--wf-theme-muted) !important; }
html[data-wf-theme="dark"] .wf-site :is(#es, #ed) a { color: var(--wf-theme-link); }
html[data-wf-theme="dark"] .wf-site :is(#es, #ed) a:hover { color: #d2eee3; }
html[data-wf-theme="dark"] .wf-site :is(#es, #ed) :is(.es-stream-header, .es-story-footer, .es-story-text, .es-actions__item-comment, .es-snackbar2, .es-stream-filter-bar, .es-toolbar, .ed-toolbar, .o-form-actions, .es-forms__actions, .es-mobile-filter, .ed-attachment-dropzone, .ed-attachment-dropzone__surface, .es-convo-list__item.is-active) { background: var(--wf-theme-raised) !important; border-color: var(--wf-theme-border) !important; color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-site :is(#es, #ed) :is(.es-story-textbox, .es-comment-content, .es-comments-form .mentions, .es-comment-content a, .es-convo-list__item, .es-convo-list__item a) { color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-site :is(#es, #ed) :is(.es-story-textbox, .es-comments-form .mentions) { background: transparent !important; }
/* The expanded composer and its body-mounted destination picker own light surfaces. */
html[data-wf-theme="dark"] .wf-site #es .es-story.is-expanded .es-story-body {
  background-color: var(--wf-theme-raised);
  border-color: var(--wf-theme-border);
}
html[data-wf-theme="dark"] .wf-site #es .es-story :is(.es-story-avatar-popbox-toggle, .es-story-panel-button__label) {
  background: var(--wf-theme-raised);
  border-color: var(--wf-theme-border);
  color: var(--wf-theme-link);
}
html[data-wf-theme="dark"] .wf-site #es .es-story :is(.es-story-avatar-popbox-toggle__icon, .es-story-panel-button__label > b > i) { color: var(--wf-theme-link); }
html[data-wf-theme="dark"] .wf-site #es .es-story .es-story-avatar-popbox-toggle:is(:hover, :active, :focus-visible, .active, [aria-expanded="true"]) .es-story-panel-button__label {
  background: var(--wf-theme-soft);
  color: var(--wf-theme-text);
}
html[data-wf-theme="dark"] .wf-site #es .es-story .es-story-avatar-popbox-toggle:focus-visible { outline: 2px solid var(--wf-theme-accent) !important; outline-offset: 2px; }
html[data-wf-theme="dark"] .wf-site #es .es-story > .story-loading { background-color: #182629cc; }
html[data-wf-theme="dark"] .wf-site #es .es-story-swiper-nav:not(.is-end-left)::before { background: linear-gradient(270deg, #1826291a 2%, var(--wf-theme-surface) 50%); }
html[data-wf-theme="dark"] .wf-site #es .es-story-swiper-nav:not(.is-end-right)::after { background: linear-gradient(90deg, #1826291a 2%, var(--wf-theme-surface) 50%); }
html[data-wf-theme="dark"] .wf-site #es.popbox--story-select :is(.es-story-selection-popbox__hd, .es-story-selection-popbox__tabs, .es-story-selection-popbox__ft) {
  background: var(--wf-theme-raised);
  border-color: var(--wf-theme-border);
  color: var(--wf-theme-text);
}
html[data-wf-theme="dark"] .wf-site #es.popbox--story-select .es-story-selection-popbox__content { background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site #es.popbox--story-select .o-tabs--horizontal { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site #es.popbox--story-select .o-tabs__link {
  background: transparent;
  border-color: transparent;
  color: var(--wf-theme-muted);
}
html[data-wf-theme="dark"] .wf-site #es.popbox--story-select .o-tabs__item.active .o-tabs__link {
  background: var(--wf-theme-soft);
  border-color: var(--wf-theme-accent);
  color: var(--wf-theme-accent);
}
html[data-wf-theme="dark"] .wf-site #es.popbox--story-select :is(.o-tabs__link, .es-story-selection-popbox__ft > a):is(:hover, :focus-visible) {
  background: var(--wf-theme-soft);
  color: var(--wf-theme-text);
}
html[data-wf-theme="dark"] .wf-site #es.popbox--story-select :is(.es-list-item, .es-story-selection-popbox__ft > a) { color: var(--wf-theme-link); }
html[data-wf-theme="dark"] .wf-site #es.popbox--story-select .es-list__item:is(:hover, :focus-within) { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-site #es.popbox--story-select a:focus-visible { outline: 2px solid var(--wf-theme-accent) !important; outline-offset: -2px; }

/* Video, audio and file uploads share the composer upload-card presentation. */
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story :is(.es-story-video-form, .es-story-audio-form, .es-story-files-content) .es-video-dropzone { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story :is(.es-story-video-form, .es-story-audio-form, .es-story-files-content) .es-video-dropzone:is(.is-empty:hover,.is-dragover) { border-color: #477e68; background: var(--wf-theme-raised); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story :is(.es-story-video-form, .es-story-audio-form, .es-story-files-content) .es-video-dropzone__text { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story :is(.es-story-video-form, .es-story-audio-form, .es-story-files-content) .es-video-dropzone__helper { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story :is(.es-story-video-form, .es-story-audio-form, .es-story-files-content) .es-video-dropzone__browse { border-color: var(--wf-theme-primary); background: var(--wf-theme-primary); color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story :is(.es-story-video-form, .es-story-audio-form, .es-story-files-content) .es-video-upload-card { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story :is(.es-story-video-form, .es-story-audio-form, .es-story-files-content) .es-video-upload-card__fileicon { color: var(--wf-theme-text); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story :is(.es-story-video-form, .es-story-audio-form, .es-story-files-content) .es-video-upload-card__filetag { color: var(--wf-theme-text); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story :is(.es-story-video-form, .es-story-audio-form, .es-story-files-content) .es-video-upload-card__name { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story :is(.es-story-video-form, .es-story-audio-form, .es-story-files-content) .es-video-upload-card__action { color: var(--wf-theme-text); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story :is(.es-story-video-form, .es-story-audio-form, .es-story-files-content) :is(.es-video-upload-card__meta,.es-video-upload-card__timing) { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story :is(.es-story-video-form, .es-story-audio-form, .es-story-files-content) .es-video-upload-card__status { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story :is(.es-story-video-form, .es-story-audio-form, .es-story-files-content) .es-video-upload-card__progress { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story :is(.es-story-video-form, .es-story-audio-form, .es-story-files-content) .es-video-upload-card__progress-bar { background: #36796a; }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story :is(.es-story-video-form, .es-story-audio-form, .es-story-files-content) :is(.es-video-dropzone,.es-video-upload-card).is-success { border-color: var(--wf-theme-border); background: var(--wf-theme-success-bg); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story :is(.es-story-video-form, .es-story-audio-form, .es-story-files-content) :is(.es-video-dropzone,.es-video-upload-card).is-error { border-color: var(--wf-theme-border); background: var(--wf-theme-danger-bg); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story :is(.es-story-video-form, .es-story-audio-form, .es-story-files-content) .es-video-upload-card.is-error .es-video-upload-card__status { color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story :is(.es-story-video-form, .es-story-audio-form, .es-story-files-content) .es-video-dropzone__message { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story :is(.es-story-video-form, .es-story-audio-form, .es-story-files-content) .es-video-dropzone__message.is-error { border-color: var(--wf-theme-border); background: var(--wf-theme-danger-bg); color: var(--wf-theme-danger); }

html[data-wf-theme="dark"] .wf-site #es .es-story-video-form :is(.es-video-form-divider, .es-video-item-desp) { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-site #es .es-story-video-form .es-video-form-divider span::before,
html[data-wf-theme="dark"] .wf-site #es .es-story-video-form .es-video-form-divider span::after { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site #es .es-story-video-form .es-video-item-title { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site #es .es-story-video-form .es-video-item-wrap { background: var(--wf-theme-surface); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site #es .es-story-video-form .es-video-item-desp.no-description { opacity: 1; }
html[data-wf-theme="dark"] .wf-site #es .es-story-video-form :is(.es-video-item-title, .es-video-item-desp):hover { background: var(--wf-theme-soft); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site #es .es-story :is(.es-story-video-form, .es-story-audio-form, .es-story-files-content) :is(.es-video-dropzone__browse, .es-video-upload-card__action, [data-insert-video], [data-insert-audio]):focus-visible { outline: 2px solid var(--wf-theme-accent) !important; outline-offset: 2px; }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story :is(.es-story-video-form, .es-story-audio-form, .es-story-files-content) .es-video-upload-card__action:hover { background: var(--wf-theme-raised); color: var(--wf-theme-text); }

/* Audio previews retain their artwork while editable metadata follows the theme. */
html[data-wf-theme="dark"] .wf-site #es .es-story-audio-form :is(.es-audio-form-divider, .es-audio-item-desp) { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-site #es .es-story-audio-form .es-audio-form-divider span::before,
html[data-wf-theme="dark"] .wf-site #es .es-story-audio-form .es-audio-form-divider span::after { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site #es .es-story-audio-form :is(.es-audio-item-title, .es-audio-item-artist, .es-audio-item-album) { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site #es .es-story-audio-form .es-audio-item-wrap { background: var(--wf-theme-surface); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site #es .es-story-audio-form .es-audio-item-desp.no-description { opacity: 1; }
html[data-wf-theme="dark"] .wf-site #es .es-story-audio-form :is(.es-audio-item-title, .es-audio-item-artist, .es-audio-item-album, .es-audio-item-desp):hover { background: var(--wf-theme-soft); border-color: var(--wf-theme-border); }

/* Other composer tabs use native surfaces that need explicit dark colors. */
html[data-wf-theme="dark"] .wf-site #es .es-story .es-story-files-content .es-story-files-dropsite .es-story-files-upload { background: var(--wf-theme-soft); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site #es .es-story .es-story-files-content .es-story-files-dropsite .es-story-files-upload > span { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site #es .es-story .es-story-files-content .es-story-files-dropsite .es-story-files-upload:is(:hover, :focus-within) { background: var(--wf-theme-raised) !important; }
html[data-wf-theme="dark"] .wf-site #es .es-story .es-story-files-content .es-story-files-dropsite .es-story-files-upload:is(:hover, :focus-within) > span { color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-site #es .es-story .es-story-files-content :is(.es-story-files-items .file-item, .es-story-files-progress) { background: var(--wf-theme-surface); border-color: var(--wf-theme-border); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site #es .es-story :is(.es-story-link-textbox, .es-story-link-item) { background: var(--wf-theme-surface); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site #es .es-story .es-story-link-title { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site #es .es-story .es-story-link-description { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-site #es .es-story .es-story-link-item :is(.o-checkbox > label, .es-story-link-image-count, .es-story-image-dimension) { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-site #es .es-story .es-story-link-remove-button { color: var(--wf-theme-link); }
html[data-wf-theme="dark"] .wf-site #es .es-story .es-story-link-remove-button:hover { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site #es .es-story .es-story-link-description.no-description { opacity: 1; }
html[data-wf-theme="dark"] .wf-site #es .es-story :is(.es-story-link-title, .es-story-link-description):hover { background: var(--wf-theme-soft); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site #es .es-story :is(.es-story-link-images, img.es-story-link-image) { background-color: var(--wf-theme-soft); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site #es .es-story .es-story-link-url a { color: var(--wf-theme-link); }
html[data-wf-theme="dark"] .wf-site #es .es-story .es-story-link-url a:hover { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site #es .es-story-event-form .o-input-group__addon[data-picker-toggle] { background: var(--wf-theme-soft); border-color: var(--wf-theme-border); color: var(--wf-theme-link); }
html[data-wf-theme="dark"] .wf-site #es .es-story-event-form .o-input-group__addon[data-picker-toggle]:is(:hover, :focus-visible) { background: var(--wf-theme-raised); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site #es .es-story-event-form .o-input-group:focus-within { outline: 2px solid var(--wf-theme-accent); outline-offset: 2px; }
html[data-wf-theme="dark"] .wf-site #es .es-story-event-form [data-event-form-error].o-alert--danger { background: var(--wf-theme-danger-bg) !important; border-color: var(--wf-theme-border) !important; color: var(--wf-theme-danger) !important; }

/* Keep portrait photos at their natural proportions on a theme-matched frame. */
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .wf-social-dashboard .es-stream-photos.photos-1.pattern-tile > .es-photo { background: var(--wf-theme-soft); }

/* Composer photo uploads share the album uploader, including progress and failure states. */
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-uploader-panel__surface { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-uploader-panel__surface:is(:hover, .is-dragover) { border-color: var(--wf-theme-border); background: var(--wf-theme-raised); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-uploader-panel__surface:is(.is-uploading, .is-processing) { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-uploader-panel__surface.is-success { border-color: var(--wf-theme-border); background: var(--wf-theme-success-bg); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-uploader-panel__surface.is-error { border-color: var(--wf-theme-border); background: var(--wf-theme-danger-bg); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-uploader-panel__icon { background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-uploader-panel__title { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story :is(.es-photo-uploader-panel__helper, .es-photo-uploader-panel__summary-detail) { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-uploader-panel__summary { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-uploader-panel__summary-label { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-uploader-panel__summary-percent { color: var(--wf-theme-link); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-uploader-panel__summary-progress { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story :is(.es-photo-uploader-panel__summary-bar, .es-photo-upload-tile__progress-bar) { background: #317466; }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-uploader-panel__status { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-link); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-upload-tile { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-upload-item.es-photo-item { background: transparent; }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-upload-tile__preview { background-color: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-upload-tile__preview:not(.has-preview) { background-image: none; }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-upload-tile__placeholder { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-upload-tile__remove { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-link); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-upload-tile__remove:hover { background: var(--wf-theme-raised); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-upload-tile__body { background: transparent; }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-upload-tile__status { color: var(--wf-theme-link); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-upload-tile__name { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-upload-tile__meta { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-upload-tile__meta-separator { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-upload-tile__progress { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .upload-percentage { background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-upload-tile__action { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-link); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-upload-tile__action:hover { border-color: var(--wf-theme-border); background: var(--wf-theme-raised); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-upload-tile__action--retry { border-color: var(--wf-theme-primary); background: var(--wf-theme-primary); color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-upload-tile__action--retry:hover { border-color: #b3ddcb; background: #b3ddcb; }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-upload-item.done .es-photo-upload-tile,
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-uploader-panel__summary.is-success { border-color: var(--wf-theme-border); background: var(--wf-theme-success-bg); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-upload-item.done .es-photo-upload-tile__status,
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .is-success :is(.es-photo-uploader-panel__summary-percent, .es-photo-uploader-panel__status) { color: var(--wf-theme-link); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-upload-item.done .es-photo-upload-tile__progress-bar,
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .is-success .es-photo-uploader-panel__summary-bar { background: #4c8055; }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-upload-item.failed .es-photo-upload-tile,
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-uploader-panel__summary.is-error { border-color: var(--wf-theme-border); background: var(--wf-theme-danger-bg); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-upload-item.failed .es-photo-upload-tile__status,
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-upload-tile__action--details,
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .is-error :is(.es-photo-uploader-panel__summary-percent, .es-photo-uploader-panel__status) { color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .es-photo-upload-item.failed .es-photo-upload-tile__progress-bar,
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story .is-error .es-photo-uploader-panel__summary-bar { background: #b75a4e; }

html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story :is(.es-photo-uploader-panel__browse, .es-photo-upload-tile__action, .es-photo-upload-tile__remove):focus-visible { outline: 2px solid var(--wf-theme-accent); outline-offset: 2px; }

/* Only the empty map placeholder is recolored; loaded map images and tiles retain their colors. */
html[data-wf-theme="dark"] .wf-site #es .es-story .es-story-meta-contents {
  background: var(--wf-theme-raised);
  border-color: var(--wf-theme-border);
  color: var(--wf-theme-text);
}
html[data-wf-theme="dark"] .wf-site #es .es-story [data-story-location] .es-location-map.is-empty { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-site #es .es-story [data-story-location] .es-location-form {
  background: var(--wf-theme-input);
  border-color: var(--wf-theme-border);
  color: var(--wf-theme-text);
}
html[data-wf-theme="dark"] .wf-site #es .es-story [data-story-location] .es-location-form:focus-within { outline: 2px solid var(--wf-theme-accent); outline-offset: -2px; }
html[data-wf-theme="dark"] .wf-site #es .es-story [data-story-location] .es-location-textbox input {
  background: transparent !important;
  color: var(--wf-theme-text) !important;
  -webkit-text-fill-color: var(--wf-theme-text);
}
html[data-wf-theme="dark"] .wf-site #es .es-story [data-story-location] .es-location-textbox input:disabled {
  color: var(--wf-theme-muted) !important;
  -webkit-text-fill-color: var(--wf-theme-muted);
}
html[data-wf-theme="dark"] .wf-site #es .es-story [data-story-location] .es-location-textbox input::placeholder { -webkit-text-fill-color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-site #es .es-story [data-story-location] .es-location-suggestions {
  background: var(--wf-theme-raised);
  border-color: var(--wf-theme-border);
  color: var(--wf-theme-text);
  box-shadow: var(--wf-theme-shadow);
}
html[data-wf-theme="dark"] .wf-site #es .es-story [data-story-location] .es-location-suggestion + .es-location-suggestion { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site #es .es-story [data-story-location] .es-location-suggestion:is(.active, :hover, :focus-visible) { background: var(--wf-theme-soft); color: var(--wf-theme-accent); }

html[data-wf-theme="dark"] .wf-site :is(#es, #ed) :is(.es-comment, .es-actions, .es-actions__item, .es-stream-meta, .es-list__item, .es-forms__group, .o-form-group, .ed-post-meta, .ed-list__item, hr) { border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-site :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="hidden"]), textarea, select, .o-form-control) {
  color: var(--wf-theme-text) !important;
  background-color: var(--wf-theme-input) !important;
  border-color: var(--wf-theme-border) !important;
  caret-color: var(--wf-theme-accent);
  color-scheme: dark;
}
html[data-wf-theme="dark"] .wf-site :is(input, textarea)::placeholder { color: var(--wf-theme-muted) !important; opacity: .85; }
html[data-wf-theme="dark"] .wf-site :is(input, textarea, select):focus { border-color: var(--wf-theme-accent) !important; box-shadow: 0 0 0 2px #a7d2bd26; }
html[data-wf-theme="dark"] .wf-site :is(input, textarea, select):disabled { color: #94aaa4 !important; background-color: var(--wf-theme-soft) !important; }
html[data-wf-theme="dark"] .wf-site :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--wf-theme-primary); }
html[data-wf-theme="dark"] .wf-site input:-webkit-autofill { -webkit-text-fill-color: var(--wf-theme-text) !important; -webkit-box-shadow: 0 0 0 1000px var(--wf-theme-input) inset !important; }
html[data-wf-theme="dark"] .wf-site :is(#es, #ed) :is(.btn-es-default, .btn-es-default-o, .btn-default, .o-btn--default, .o-btn--default-o, .btn-popdown, .es-privacy-toggle, .es-reaction-option__link) {
  color: var(--wf-theme-link) !important;
  background-color: var(--wf-theme-raised) !important;
  border-color: var(--wf-theme-border) !important;
}
html[data-wf-theme="dark"] .wf-site :is(#es, #ed) :is(.btn-es-default, .btn-es-default-o, .btn-default, .o-btn--default, .o-btn--default-o, .btn-popdown):hover { background-color: var(--wf-theme-soft) !important; }
html[data-wf-theme="dark"] .wf-site :is(#es, #ed) :is(.btn-es-primary, .btn-es-primary-o, .o-btn--primary, .o-btn--primary-o, .es-story-submit, .es-comments-form button[type="submit"]) {
  color: var(--wf-theme-on-primary) !important;
  background: var(--wf-theme-primary) !important;
  border-color: var(--wf-theme-primary) !important;
}
html[data-wf-theme="dark"] .wf-site :is(#es, #ed) :is(.btn-es-primary, .btn-es-primary-o, .o-btn--primary, .o-btn--primary-o):hover { background: #b3ddcb !important; border-color: #b3ddcb !important; }
html[data-wf-theme="dark"] .wf-site :is(#es, #ed) :is(.btn-es-danger, .btn-es-danger-o, .btn-danger, .o-btn--danger) { background: var(--wf-theme-danger-bg) !important; color: var(--wf-theme-danger) !important; border-color: #87534f !important; }

/* Popovers are appended to body by native components, outside the page root. */
html[data-wf-theme="dark"] .wf-site :is(.dropdown-menu, .o-dropdown, .popbox, .es-dialog-modal, .es-dialog-header, .es-dialog-body, .es-dialog-footer, .es-dialog-container, .ed-dialog, .ed-dialog-header, .ed-dialog-body, .ed-dialog-footer, .modal-content, .modal-header, .modal-body, .modal-footer, .tippy-box, .tribute-container) {
  background-color: var(--wf-theme-raised) !important;
  color: var(--wf-theme-text) !important;
  border-color: var(--wf-theme-border) !important;
}
html[data-wf-theme="dark"] .wf-site :is(.dropdown-menu, .o-dropdown, .popbox, .es-dialog-modal, .ed-dialog, .modal-content, .tribute-container) { box-shadow: var(--wf-theme-shadow); }
html[data-wf-theme="dark"] .wf-site :is(.dropdown-menu, .o-dropdown, .popbox, .es-dialog, .ed-dialog, .tribute-container) :is(a:not(.btn), label, .es-dialog-title, .o-dropdown__hd, .o-dropdown__ft, .text-gray-800, .text-gray-700) { color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-site :is(.dropdown-menu, .o-dropdown, .popbox) :is(.divider, .o-dropdown__hd, .o-dropdown__ft, .o-dropdown__bd, [class*="divide-"] > *) { border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-site :is(.dropdown-menu, .o-dropdown, .popbox, .tribute-container) :is(a:hover, li.highlight) { background-color: var(--wf-theme-soft) !important; color: var(--wf-theme-link) !important; }

/* Native sorting menus keep a separate fill on the selected option. */
html[data-wf-theme="dark"] .wf-site #es .dropdown-menu--popdown > li { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site #es .dropdown-menu--popdown > li.active > a {
  background-color: var(--wf-theme-soft) !important;
  color: var(--wf-theme-accent) !important;
}
html[data-wf-theme="dark"] .wf-site #es .dropdown-menu--popdown > li > a:is(:hover, :focus-visible) { background-color: var(--wf-theme-soft) !important; color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-site #es .dropdown-menu--popdown__desp { color: var(--wf-theme-muted); }

/* Toolbar notification/message panels are mounted under body. Their Foundry
   appearance can still be light, so bridge the nested content to our theme. */
html[data-wf-theme="dark"] .wf-site #fd [data-fd-toolbar-dropdown-menus] {
  --si-body: var(--wf-theme-surface);
  --fd-gray-100-hex: var(--wf-theme-soft);
  --fd-gray-200-hex: var(--wf-theme-border);
  --fd-gray-400-hex: var(--wf-theme-muted);
  --fd-gray-500-hex: var(--wf-theme-muted);
  --fd-gray-800-hex: var(--wf-theme-text);
  background-color: var(--wf-theme-surface);
  color: var(--wf-theme-text);
  border-color: var(--wf-theme-border);
}
html[data-wf-theme="dark"] .wf-site #fd [data-fd-toolbar-dropdown-menus] :is(.o-empty__text, .o-empty__icon) { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-site #fd [data-fd-toolbar-dropdown-menus] .o-placeholder-box::after { background-image: linear-gradient(90deg, transparent, #b1c5bf20, #b1c5bf40, transparent); }
html[data-wf-theme="dark"] .wf-site #fd [data-fd-toolbar-dropdown-menus] > :is([data-fd-notification-items], [data-ck-chat]).is-unread { background-color: var(--wf-theme-raised); }
html[data-wf-theme="dark"] .wf-site #fd [data-fd-toolbar-dropdown-menus] > :is([data-fd-notification-items], [data-ck-chat]):is(:hover, :focus-visible) { background-color: var(--wf-theme-soft) !important; color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-site #fd [data-fd-dropdown-wrapper]:has([data-fd-toolbar-dropdown-menus]) a:focus-visible { outline: 2px solid var(--wf-theme-accent); outline-offset: -2px; }

/* Member and family-group previews are mounted directly under body. */
/* Preserve the native photo size while replacing stacked status rings in both themes. */
.wf-site #es.popbox.popbox-userprofile .popbox-content__bd > .o-media > .o-media__image > .o-avatar-v2,
.wf-site #es.popbox.popbox-userprofile .popbox-content__bd > .o-media > .o-media__image > .o-avatar-v2 > .o-avatar-v2__content {
  background-color: transparent;
  border-color: transparent;
}
.wf-site #es.popbox.popbox-userprofile .popbox-content__bd > .o-media > .o-media__image > .o-avatar-v2 > .o-avatar-v2__content {
  box-shadow: 0 0 0 1px var(--wf-theme-border, #dce6df);
}
html[data-wf-theme="dark"] .wf-site #es.popbox.popbox--cluster .popbox-label {
  background-color: var(--wf-theme-soft);
  color: var(--wf-theme-text);
}
html[data-wf-theme="dark"] .wf-site #es.popbox.popbox--cluster :is(.popbox-label__meta, .o-meta) { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-site #es.popbox.popbox--cluster .popbox-content > * + * { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site #es.popbox.popbox--cluster .popbox-content__ft { background-color: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site #es.popbox.popbox--cluster .popbox-label > a:is(:hover, :focus-visible) {
  background-color: transparent !important;
  color: var(--wf-theme-accent) !important;
}
html[data-wf-theme="dark"] .wf-site #es.popbox.popbox--cluster a:focus-visible {
  outline: 2px solid var(--wf-theme-accent) !important;
  outline-offset: 2px;
}

/* Shared privacy pickers also render in photo popups outside .wf-component. */
html[data-wf-theme="dark"] .wf-site #es .es-privacy [data-privacy-menu] > li { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site #es .es-privacy [data-privacy-menu] > li > a {
  background-color: transparent !important;
  color: var(--wf-theme-text) !important;
}
html[data-wf-theme="dark"] .wf-site #es .es-privacy [data-privacy-menu] > li > a:is(:hover, :focus),
html[data-wf-theme="dark"] .wf-site #es .es-privacy [data-privacy-menu] > li.active > a {
  background-color: var(--wf-theme-soft) !important;
  color: var(--wf-theme-accent) !important;
}
html[data-wf-theme="dark"] .wf-site #es .es-privacy [data-privacy-toggle]:focus-visible,
html[data-wf-theme="dark"] .wf-site #es .es-privacy [data-privacy-menu] > li > a:focus-visible {
  outline: 2px solid var(--wf-theme-accent) !important;
  outline-offset: -2px;
}
html[data-wf-theme="dark"] .wf-site #es [data-privacy-custom-form]:not(.wf-privacy-people-panel) .textboxlist { background-color: var(--wf-theme-input) !important; border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-site #es [data-privacy-custom-form]:not(.wf-privacy-people-panel) .textboxlist:focus-within { border-color: var(--wf-theme-accent) !important; }
html[data-wf-theme="dark"] .wf-site #es [data-privacy-custom-form]:not(.wf-privacy-people-panel) .textboxlist-item { background-color: var(--wf-theme-soft) !important; color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-site #es :is([data-privacy-custom-notice], [data-privacy-field-notice]) { color: var(--wf-theme-warning) !important; }
/* Native member suggestions are portaled directly into the page body. */
html[data-wf-theme="dark"] .wf-site #es.textboxlist-autocomplete .textboxlist-autocomplete-inner { background-color: var(--wf-theme-raised); border-color: var(--wf-theme-border); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site #es.textboxlist-autocomplete .textboxlist-menuItem { border-color: var(--wf-theme-border); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site #es.textboxlist-autocomplete .textboxlist-menuItem:is(.active, :hover) { background-color: var(--wf-theme-soft); color: var(--wf-theme-accent); }
html[data-wf-theme="dark"] .wf-site #es.textboxlist-autocomplete .textboxlist-autocomplete-empty-text { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-site :is(.o-alert, .alert, joomla-alert) { background-color: var(--wf-theme-soft) !important; color: var(--wf-theme-text) !important; border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-site :is(.o-alert--error, .alert-danger, .alert-error, joomla-alert[type="danger"], .has-error .help-block, .form-control-feedback) { background-color: var(--wf-theme-danger-bg) !important; color: var(--wf-theme-danger) !important; border-color: #87534f !important; }
html[data-wf-theme="dark"] .wf-site :is(.o-alert--success, .alert-success, joomla-alert[type="success"]) { background-color: var(--wf-theme-success-bg) !important; color: var(--wf-theme-success) !important; }
html[data-wf-theme="dark"] .wf-site :is(.o-alert--warning, .alert-warning, joomla-alert[type="warning"]) { background-color: var(--wf-theme-warning-bg) !important; color: var(--wf-theme-warning) !important; }
html[data-wf-theme="dark"] .wf-site :is(.datepicker, .datepicker-dropdown, .bootstrap-datetimepicker-widget, .flatpickr-calendar, .flatpickr-months, .flatpickr-current-month, .flatpickr-weekdays, .daterangepicker, .daterangepicker .calendar-table) { color: var(--wf-theme-text) !important; background: var(--wf-theme-raised) !important; border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-site :is(.datepicker, .bootstrap-datetimepicker-widget, .flatpickr-calendar, .daterangepicker) :is(th, td, span, button, .flatpickr-day) { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site :is(.datepicker, .bootstrap-datetimepicker-widget, .daterangepicker) :is(td.day:hover, td span:hover, th:hover),
html[data-wf-theme="dark"] .wf-site .flatpickr-day:hover { background: var(--wf-theme-soft) !important; border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-site :is(.datepicker, .bootstrap-datetimepicker-widget, .daterangepicker) :is(.active, .selected),
html[data-wf-theme="dark"] .wf-site .flatpickr-day.selected { background: var(--wf-theme-primary) !important; color: var(--wf-theme-on-primary) !important; border-color: var(--wf-theme-primary) !important; }
html[data-wf-theme="dark"] .wf-site :is(.datepicker, .flatpickr-calendar, .daterangepicker) :is(.old, .new, .disabled, .flatpickr-disabled, .prevMonthDay, .nextMonthDay) { color: #829b94 !important; }

/* Utility toolbar and the single-field search results page. */
html[data-wf-theme="dark"] .wf-site .wf-component #fd.wari-family-tools.wf-utility-toolbar {
  --wf-utility-ink: var(--wf-theme-link);
  --wf-utility-input-text: var(--wf-theme-text);
  --wf-utility-muted: var(--wf-theme-muted);
  --wf-utility-line: var(--wf-theme-border);
  --wf-utility-soft: var(--wf-theme-input);
}
html[data-wf-theme="dark"] .wf-site .wf-component #fd.wari-family-tools.wf-utility-toolbar .fd-toolbar { background: var(--wf-theme-surface); border-color: var(--wf-theme-border); box-shadow: none; }
html[data-wf-theme="dark"] .wf-site .wf-component #fd.wf-utility-toolbar--search-page .fd-toolbar { background: transparent !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #fd.wf-utility-toolbar--search-page .wf-search-page-title { color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #fd.wf-utility-toolbar .fd-toolbar__link { color: var(--wf-theme-link) !important; border-color: transparent; }
html[data-wf-theme="dark"] .wf-site .wf-component #fd.wf-utility-toolbar--search-page .fd-toolbar__link { background: var(--wf-theme-raised) !important; border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #fd.wf-utility-toolbar :is(.fd-toolbar__link:hover, .fd-toolbar__link[aria-expanded="true"], .wf-utility-search-filter:hover, [data-fd-toolbar-search-link]) { background: var(--wf-theme-soft) !important; color: var(--wf-theme-link) !important; border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #fd.wf-utility-toolbar .fd-toolbar__search-form { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site .wf-component #fd.wf-utility-toolbar .fd-toolbar__link-bubble { border-color: var(--wf-theme-surface); background: #d87f77; color: #241312; }
html[data-wf-theme="dark"] .wf-site .wf-component #es .wf-search-page {
  --wf-search-ink: var(--wf-theme-text);
  --wf-search-muted: var(--wf-theme-muted);
  --wf-search-line: var(--wf-theme-border);
  --wf-search-soft: var(--wf-theme-soft);
}
html[data-wf-theme="dark"] .wf-site .wf-component #es .wf-search-page :is(.wf-search-panel, .es-list-item.es-island, .o-empty, [data-search-pagination] [data-more]) { background: var(--wf-theme-surface) !important; border-color: var(--wf-theme-border) !important; color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es .wf-search-page :is(.wf-search-input-row, .es-search-filter-toggle, [data-es-search-filter-panel], .o-avatar-v2__content, [data-avatar-image][style*="/defaults/search/"]) { background-color: var(--wf-theme-input) !important; color: var(--wf-theme-muted) !important; border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es .wf-search-page :is(.es-search-advance, .es-list-item__title a, .es-search-filter-item label, [data-search-pagination] [data-more]) { color: var(--wf-theme-link) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es .wf-search-page :is(.es-list-item__desc, .es-list-item__meta, .es-list-item__meta a, .es-list-item__meta i) { color: var(--wf-theme-muted) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es .wf-search-page .wf-search-submit { background: var(--wf-theme-primary); color: var(--wf-theme-on-primary); border-color: var(--wf-theme-primary); }
html[data-wf-theme="dark"] .wf-site .wf-component #es .wf-search-page [data-avatar-image][style*="/defaults/search/"]::before { background: var(--wf-theme-accent); }

/* Public sign-in, recovery, password changes and standalone error pages. */
html[data-wf-theme="dark"] .wf-site :is(.wf-welcome-story, .wf-feature-list, .wf-member-welcome) { background: var(--wf-theme-raised); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site :is(.wf-welcome-copy h1 em, .wf-welcome-lead, .wf-auth-recovery a, .wari-login-recovery a, .wf-auth-method-hint) { color: var(--wf-theme-link) !important; }
html[data-wf-theme="dark"] .wf-site :is(.wf-auth-secure, .wf-auth-setup-hint, .wf-auth-divider, .wf-header-note, .wf-header-note svg, .wf-member-welcome p:last-child, .wf-member-welcome-intro) { color: var(--wf-theme-muted) !important; }
html[data-wf-theme="dark"] .wf-site .wf-auth-divider::before,
html[data-wf-theme="dark"] .wf-site .wf-auth-divider::after { background: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-guest .wf-auth-component :is(label, .control-label, .wari-login-field > label) { color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-site :is(#es, #ed) :is(.wari-login-field > label, .es-login-box label, .es-account-form label, .control-label) { color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-guest .wf-auth-component :is(.wf-auth-method, .input-password-toggle) { background: var(--wf-theme-raised) !important; color: var(--wf-theme-link) !important; border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-guest .wf-auth-component #es .wari-family-login button[type="submit"],
html[data-wf-theme="dark"] .wf-guest .wf-auth-component .wf-auth-submit { background: var(--wf-theme-primary) !important; border-color: var(--wf-theme-primary) !important; color: var(--wf-theme-on-primary) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es .wf-password-panel { color: var(--wf-theme-text); background: var(--wf-theme-surface); border-color: var(--wf-theme-border); box-shadow: none; }
html[data-wf-theme="dark"] .wf-site .wf-component #es :is(.wf-password-emblem, .wf-password-toggle:hover) { background: var(--wf-theme-soft); color: var(--wf-theme-accent); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site .wf-component #es :is(.wf-password-eyebrow, .wf-password-intro, .wf-password-hint, .wf-password-advice, .wf-password-footer) { color: var(--wf-theme-muted); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site .wf-component #es :is(.wf-password-field > label, .wf-password-toggle) { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site .wf-component #es .wf-password-error { color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] .wf-site .wf-component #es .wf-password-submit { color: var(--wf-theme-on-primary); background: var(--wf-theme-primary); border-color: var(--wf-theme-primary); }
html[data-wf-theme="dark"] .wf-site.wf-offline :is(#frame, .outline, #form-login, #frmlogin) { background-color: var(--wf-theme-surface); color: var(--wf-theme-text); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site.wf-offline input.button { background: var(--wf-theme-primary); border-color: var(--wf-theme-primary); color: var(--wf-theme-on-primary); }

/* Family feed, member directory, profiles and account settings. */
/* The personal Files app uses the native explorer, including AJAX-loaded rows. */
html[data-wf-theme="dark"] .wf-site #es .app-explorer.app-profile .es-explorer {
  background: var(--wf-theme-surface);
  border-color: var(--wf-theme-border);
  color: var(--wf-theme-text);
}
html[data-wf-theme="dark"] .wf-site #es .app-explorer.app-profile .es-explorer :is(.es-explorer__sidebar, .es-explorer__content) {
  background: var(--wf-theme-surface);
  border-color: var(--wf-theme-border);
}
html[data-wf-theme="dark"] .wf-site #es .app-explorer.app-profile .es-explorer :is(.es-explorer__sidebar-hd, .es-explorer__content-hd) {
  background: var(--wf-theme-raised);
  border-color: var(--wf-theme-border);
}
html[data-wf-theme="dark"] .wf-site #es .app-explorer.app-profile .es-explorer :is(.es-explorer-browser-action-bar__cell-back, .es-explorer-browser-action-bar__cell-upload, .fd-explorer-file + .fd-explorer-file) { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site #es .app-explorer.app-profile .es-explorer :is(.fd-explorer-folder, .file-title) { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site #es .app-explorer.app-profile .es-explorer :is(.es-explorer__sidebar-title, .upload-limit, .file-meta) { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-site #es .app-explorer.app-profile .es-explorer .fd-explorer-folder .fa-folder { color: var(--wf-theme-accent); }
html[data-wf-theme="dark"] .wf-site #es .app-explorer.app-profile .es-explorer :is(.fd-explorer-folder:not(.is-active):hover, .fd-explorer-file:not(.is-checked):not(.is-selected):hover) { background: var(--wf-theme-raised); }
html[data-wf-theme="dark"] .wf-site #es .app-explorer.app-profile .es-explorer .fd-explorer-folder.is-active { background: var(--wf-theme-soft); color: var(--wf-theme-accent); }
html[data-wf-theme="dark"] .wf-site #es .app-explorer.app-profile .es-explorer .fd-explorer-file.is-checked { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-site #es .app-explorer.app-profile .es-explorer .fd-explorer-file.is-selected { background: var(--wf-theme-primary); color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] .wf-site #es .app-explorer.app-profile .es-explorer .fd-explorer-file.is-selected :is(.file-title, .file-meta) { color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] .wf-site #es .app-explorer.app-profile .es-explorer :is(.fd-folder-remove-button, .es-explorer-browser-action-bar__back a) { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-site #es .app-explorer.app-profile .es-explorer :is(.fd-folder-remove-button, .es-explorer-browser-action-bar__back a):hover { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site #es .app-explorer.app-profile .es-explorer :is(a, button):focus-visible { outline: 2px solid var(--wf-theme-accent); outline-offset: -2px; }
html[data-wf-theme="dark"] .wf-site #es .app-explorer.app-profile .es-explorer .o-checkbox label::before { background: var(--wf-theme-input); border-color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-site #es .app-explorer.app-profile .es-explorer .o-checkbox input[type="checkbox"]:checked + label::before { background: var(--wf-theme-primary); border-color: var(--wf-theme-primary); }
html[data-wf-theme="dark"] .wf-site #es .app-explorer.app-profile .es-explorer .o-checkbox input[type="checkbox"]:checked + label::after { color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] .wf-site #es .app-explorer.app-profile .es-explorer .o-checkbox input[type="checkbox"]:disabled + label::before { background: var(--wf-theme-soft); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site #es .app-explorer.app-profile .es-explorer .o-checkbox input[type="checkbox"]:disabled + label::after { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-site #es .app-explorer.app-profile .es-explorer .o-checkbox input[type="checkbox"]:focus-visible + label::before { outline: 2px solid var(--wf-theme-accent); outline-offset: 2px; }

/* The welcome banner belongs to the application shell, outside #es. */
html[data-wf-theme="dark"] .wf-site.wf-member .wf-member-welcome { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-member-welcome h1 { color: var(--wf-theme-text); }

/* Native listing placeholders are rendered before feed content arrives and on refresh. */
html[data-wf-theme="dark"] .wf-site #es .ph-item { background: var(--wf-theme-surface); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site #es .ph-item :is(.ph-avatar, .ph-picture, .ph-row > div:not(.empty)) { background-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site #es .ph-item .ph-row > .empty { background: transparent; }
html[data-wf-theme="dark"] .wf-site #es .ph-item::before {
  background: linear-gradient(90deg, transparent 46%, #a7d2bd14 50%, transparent 54%) 50% 50%;
  animation-duration: 1.4s;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  html[data-wf-theme="dark"] .wf-site #es .ph-item::before { animation: none; background: none; }
}

html[data-wf-theme="dark"] .wf-site .wf-component #es .es-stream-filter-bar :is(.o-media__image, .es-stream-filter-dropdown__desc) { color: var(--wf-theme-muted) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es .es-stream-filter-bar :is(.es-timeline-filter-dropdown__title, .es-stream-filter-dropdown__title) { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site .wf-component #es .es-stream-filter-bar .es-timeline-filter-dropdown__bubble { color: var(--wf-theme-accent); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-site .wf-component #es .es-stream-filter-bar .dropdown-menu :is(.active > a, a:focus) { color: var(--wf-theme-link) !important; background: var(--wf-theme-soft) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es :is(.wf-feed-refresh, .wf-profile-header, .wf-profile-menu, .wf-profile-menu-dialog, .wf-profile-stats, .wf-about-details-card, .wf-community-section, .wf-community-album, .wf-directory-person, .wf-directory-empty, .wf-account-profile-heading, .wf-account-jumps a, .wf-passkeys, .wf-stream-settings-menu) {
  background: var(--wf-theme-surface) !important; border-color: var(--wf-theme-border) !important; color: var(--wf-theme-text) !important;
}
html[data-wf-theme="dark"] .wf-site .wf-component #es :is(.wf-directory-heading, .wf-community-hero, .wf-feed-refresh-status, .wf-profile-stat, .wf-profile-stat-icon, .wf-about-details-card > header, .wf-community-member, .wf-community-empty, .wf-community-count, .wf-account-profile-icon, .wf-passkeys__empty, .wf-passkeys__notice, .wf-passkeys__icon, .data-field-datetime-yearprivacy, .wf-stream-settings-menu > li > a > span:first-child) {
  background: var(--wf-theme-raised) !important; border-color: var(--wf-theme-border) !important; color: var(--wf-theme-accent) !important;
}
html[data-wf-theme="dark"] .wf-site .wf-component #es :is(.wf-directory-summary, .wf-directory-heading__icon, .wf-directory-eyebrow, .wf-community-eyebrow, .wf-community-hero-icon, .wf-community-view-all, .wf-community-member-text, .wf-community-album-body, .wf-profile-stat-count, .wf-about-section-edit, .profile-data-info, .wf-profile-header .es-profile-header-nav__link, .wf-profile-header .o-avatar-v2__action, .wf-profile-header .es-flyout-button, .wf-stream-settings .btn-control, .wf-profile-menu li > a, .wf-stream-settings-menu li > a) { color: var(--wf-theme-link) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es :is(.wf-profile-header .es-profile-header-nav, .wf-profile-header .es-flyout-button, .wf-profile-header .o-avatar-v2__action, .wf-stream-settings .btn-control, .wf-profile-menu li > a, .wf-stream-settings-menu li > a, .wf-about-section-edit) { background-color: var(--wf-theme-raised) !important; border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es :is(.wf-directory-person-profile, .wf-directory-person-actions .btn, .wf-profile-stat:hover, .wf-community-member:hover, .wf-profile-header .is-active .es-profile-header-nav__link, .wf-profile-menu li > a:hover, .wf-stream-settings-menu li > a:hover) { background-color: var(--wf-theme-soft) !important; border-color: var(--wf-theme-border) !important; color: var(--wf-theme-link) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es :is(.wf-profile-menu .divider, .wf-stream-settings-menu .divider) { background: var(--wf-theme-border) !important; }
/* The avatar camera link has its own color and does not inherit its container. */
html[data-wf-theme="dark"] .wf-site .wf-component #es .wf-profile-header .o-avatar-v2__action > a { color: var(--wf-theme-link) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es .wf-profile-header .o-avatar-v2__action > a:is(:hover, :focus-visible) { background: var(--wf-theme-soft) !important; color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es :is(.wf-directory-intro, .wf-directory-person-name > span, .wf-directory-summary small, .wf-community-description, .wf-community-section-heading p, .wf-community-member-text small, .wf-community-album-body small, .es-profile-header__meta, .es-profile-header__meta a, .profile-data-label, .wf-account-heading p, .wf-account-profile-heading p, .wf-account-save-hint, .wf-passkeys__heading p, .wf-passkeys__note, .wf-passkeys__table thead th, .wf-stream-settings-heading p, .wf-profile-menu-heading p) { color: var(--wf-theme-muted) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es :is(.wf-passkeys__table th, .wf-passkeys__table td, .wf-passkeys__table tr, .wf-about-details-card header, .wf-about-details-card .profile-data, .wf-profile-header .es-profile-header__avatar-wrap .o-avatar-v2) { border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es .wf-account-page .es-mobile-filter__hd .swiper-slide > a { color: var(--wf-theme-muted) !important; background: var(--wf-theme-raised) !important; border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es .wf-account-page .es-mobile-filter__hd .swiper-slide.is-active > a { color: var(--wf-theme-accent) !important; background: var(--wf-theme-soft) !important; border-color: var(--wf-theme-accent) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es :is(.wf-profile-edit, .wf-community-directory, .wf-passkeys__add, .wf-passkeys__secure) { background: var(--wf-theme-primary) !important; border-color: var(--wf-theme-primary) !important; color: var(--wf-theme-on-primary) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es .wf-passkeys .plg_system_webauthn-manage-edit { color: var(--wf-theme-link) !important; border-color: var(--wf-theme-border) !important; background: var(--wf-theme-raised) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es :is(.wf-profile-menu-danger, .wf-passkeys .plg_system_webauthn-manage-delete, .wf-account-page .es-mobile-filter__hd [data-profile-edit-delete] > a) { color: var(--wf-theme-danger) !important; background: var(--wf-theme-danger-bg) !important; border-color: #87534f !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es .wf-profile-header :is(.es-profile-header__title, .es-profile-header__title a) { color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es .wf-profile-about .wf-about-details-card thead th { background: var(--wf-theme-raised) !important; border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es .wf-profile-about .wf-about-details-card :is(td, tbody > tr) { border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es .es-profile-header-nav-slider::before { background: linear-gradient(90deg, var(--wf-theme-raised), transparent) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es .es-profile-header-nav-slider::after { background: linear-gradient(90deg, transparent, var(--wf-theme-raised)) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es :is(.wf-social-explore, .wf-social-profile, .es-story.is-expanded .es-story-header, .es-stream-filter-bar .btn) { background: var(--wf-theme-surface) !important; border-color: var(--wf-theme-border) !important; color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es :is(.wf-feed-private, .wf-social-edit, .wf-social-shortcut__icon, .wf-social-note, .wf-social-note__icon, .wf-social-profile__avatar) { background: var(--wf-theme-soft) !important; border-color: var(--wf-theme-border) !important; color: var(--wf-theme-accent) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es :is(.wf-social-shortcut, .wf-social-profile h2 a, .wf-empty-title, .es-stream-content, .es-stream-content a, .es-stream-meta .es-stream-title a, .es-story-textfield, .es-actions-list .es-reaction-option__link) { color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es :is(.wf-feed-heading p, .wf-social-kicker, .wf-social-shortcut small, .wf-social-note p, .wf-empty-copy, .es-stream-filter-bar__cell > span, .es-actions-list .action-title-repost-counter) { color: var(--wf-theme-muted) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es .wf-social-shortcut:hover { background: var(--wf-theme-soft) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es .es-dashboard .es-streams > .o-empty { background: var(--wf-theme-surface) !important; }

/* Video updates share these native elements across home, profiles and AJAX streams.
   Theme the surrounding card without changing the player, poster or media colors. */
html[data-wf-theme="dark"] .wf-site .wf-component #es .es-stream .es-stream-embed.is-video {
  background-color: var(--wf-theme-surface);
  border-color: var(--wf-theme-border);
}
html[data-wf-theme="dark"] .wf-site .wf-component #es .es-stream .es-stream-embed.is-video .es-stream-embed--border { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site .wf-component #es .es-stream .es-stream-meta-footer time a,
html[data-wf-theme="dark"] .wf-site .wf-component #es .es-stream .es-actions-list .action-title-repost-counter > a { color: var(--wf-theme-muted) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es .es-stream .es-actions-list > li > a { color: var(--wf-theme-link) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es .es-stream .es-actions-list > li > a:is(:hover, :focus-visible) { color: var(--wf-theme-text) !important; background-color: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-site .wf-component #es .es-stream .es-reaction-option__link.is-active .es-reaction-option__text { color: var(--wf-theme-accent) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es .es-stream .es-actions__item-stats { background-color: var(--wf-theme-surface) !important; border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es .es-stream :is(.es-comments-form .es-form, .es-comments-form .es-input-gif, .es-reactions-pop) { background-color: var(--wf-theme-raised) !important; border-color: var(--wf-theme-border) !important; color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es .es-stream .es-actions__item-stats :is([data-likes-content], [data-likes-content] a) { color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es .es-stream .es-form-attach > label { color: var(--wf-theme-muted); }

/* Native reactions and comments keep their own nested surfaces, including after
   AJAX updates. Leave media-specific transparent layouts free to inherit. */
html[data-wf-theme="dark"] .wf-site #es .es-reaction-stats {
  background-color: var(--wf-theme-surface);
  color: var(--wf-theme-text);
}
html[data-wf-theme="dark"] .wf-site #es :is(.es-comments-control__load, .es-comments-wrap) {
  background-color: var(--wf-theme-raised);
  color: var(--wf-theme-text);
}
html[data-wf-theme="dark"] .wf-site #es .es-comment { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site #es .es-reaction-option__link .es-reaction-option__text { color: inherit; }
html[data-wf-theme="dark"] .wf-site #es :is(.es-reaction-stats__text, .es-reaction-icon-stat__counter, .es-comments-control__stats, .es-comment-item-meta, .es-comment-item-meta a, .es-comment-actions-toggle i, .es-comments-form .es-form-attach > label) { color: var(--wf-theme-muted) !important; }
html[data-wf-theme="dark"] .wf-site #es :is(.es-reaction-stats__text > a, .es-comments-control__link) { color: var(--wf-theme-link) !important; }
html[data-wf-theme="dark"] .wf-site #es :is(.es-reaction-stats__text > a, .es-comments-control__link, .es-comment-item-meta a):is(:hover, :focus-visible),
html[data-wf-theme="dark"] .wf-site #es .es-comments-form .es-form-attach > label:hover { color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-site #es :is(.es-comments-form .attachments, .es-reaction-stats-pop__hd, .es-reaction-stats-list__item + .es-reaction-stats-list__item) { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site #es .es-comment-item-meta__item + .es-comment-item-meta__item::before { background-color: var(--wf-theme-border); }

/* The same emoji picker is used in comments, conversations and photo popups. */
html[data-wf-theme="dark"] .wf-site #es .es-input-smiley__popup {
  background: var(--wf-theme-raised);
  border-color: var(--wf-theme-border);
  color: var(--wf-theme-text);
  box-shadow: var(--wf-theme-shadow);
}
html[data-wf-theme="dark"] .wf-site #es .es-input-smiley__popup::before { border-top-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site #es .es-input-smiley__popup::after { border-top-color: var(--wf-theme-raised); }
html[data-wf-theme="dark"] .wf-site #es .es-input-smiley__popup .es-input-smiley__close {
  background: var(--wf-theme-soft);
  color: var(--wf-theme-text);
  box-shadow: 0 0 0 1px var(--wf-theme-border);
}
html[data-wf-theme="dark"] .wf-site #es .es-input-smiley__popup .es-input-smiley__close:is(:hover, :focus-visible) { background: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site #es .es-input-smiley__popup .es-input-smiley__close::before,
html[data-wf-theme="dark"] .wf-site #es .es-input-smiley__popup .es-input-smiley__close::after { background: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site #es .es-input-smiley__popup .es-input-smiley__close:focus-visible {
  outline: 2px solid var(--wf-theme-accent) !important;
  outline-offset: 2px;
}
html[data-wf-theme="dark"] .wf-site #es .es-input-smiley__popup .es-smileys > li:is(:hover, :active, :focus-within) { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-site #es [data-comment-smileys].es-input-smiley.active { color: var(--wf-theme-link) !important; }

/* Match the actual strong/small heading and icon elements in Update options. */
html[data-wf-theme="dark"] .wf-site .wf-component #es .wf-stream-settings-heading { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site .wf-component #es .wf-stream-settings-heading strong { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site .wf-component #es .wf-stream-settings-heading small { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-site .wf-component #es .wf-stream-settings > .btn-control > i { color: var(--wf-theme-link); }
html[data-wf-theme="dark"] .wf-site .wf-component #es [data-wf-stream-settings-close],
html[data-wf-theme="dark"] .wf-site .wf-component #es .wf-stream-settings-menu > li > a > i,
html[data-wf-theme="dark"] .wf-site .wf-component #es .wf-stream-settings-menu > .wf-stream-settings-report > a::before {
  background-color: var(--wf-theme-soft);
  color: var(--wf-theme-accent);
}
html[data-wf-theme="dark"] .wf-site .wf-component #es .wf-stream-settings-menu > li > a:focus-visible { background-color: var(--wf-theme-soft) !important; color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #es [data-wf-stream-settings-close]:is(:hover, :focus-visible) { background-color: var(--wf-theme-border); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .wf-stream-settings-menu > .wf-stream-settings-danger { background-color: transparent !important; }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .wf-stream-settings-menu > .wf-stream-settings-danger > a,
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .wf-stream-settings-menu > .wf-stream-settings-danger > a > i {
  color: var(--wf-theme-danger) !important;
  background-color: var(--wf-theme-danger-bg) !important;
}
html[data-wf-theme="dark"] .wf-site .wf-component #es.is-mobile .wf-stream-settings-menu::before { background-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site .wf-component #es.is-mobile .wf-stream-settings-menu > li { border-color: var(--wf-theme-border); }

/* These native controls declare colors important at their original page scope. */
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .wf-account-page .wf-passkeys .wf-passkeys__add,
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .wf-account-page .es-forms__actions :is(.btn-es-primary, .btn-es-primary-o),
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .wf-social-dashboard .es-comments-form [data-comments-form-submit],
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story-panel-button.active .es-story-panel-button__shape {
  color: var(--wf-theme-on-primary) !important; background: var(--wf-theme-primary) !important; border-color: var(--wf-theme-primary) !important;
}
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .wf-account-page .wf-passkeys .plg_system_webauthn-manage-edit,
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .wf-account-page .es-forms__actions .btn-es-default,
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-story-panel-button__shape {
  color: var(--wf-theme-link) !important; background: var(--wf-theme-raised) !important; border-color: var(--wf-theme-border) !important;
}
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .wf-account-page .wf-passkeys .plg_system_webauthn-manage-delete {
  color: var(--wf-theme-danger) !important; background: var(--wf-theme-danger-bg) !important; border-color: #87534f !important;
}
html[data-wf-theme="dark"] .wf-site.wf-member #es.es-dialog:has(.wf-stream-confirmation) [data-cancel-button] { color: var(--wf-theme-link) !important; background: var(--wf-theme-raised) !important; border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-site.wf-member #es.es-dialog:has(.wf-stream-confirmation) [data-upload-button] { color: var(--wf-theme-on-primary) !important; background: var(--wf-theme-primary) !important; border-color: var(--wf-theme-primary) !important; }
html[data-wf-theme="dark"] .wf-site.wf-member #es.es-dialog:has(.wf-stream-confirmation) [data-delete-button] { color: var(--wf-theme-danger) !important; background: var(--wf-theme-danger-bg) !important; border-color: #87534f !important; }

/* Directory colors are declared on the directory itself, not inherited from #es. */
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es.view-users .wf-directory {
  --directory-ink: var(--wf-theme-text);
  --directory-muted: var(--wf-theme-muted);
  --directory-line: var(--wf-theme-border);
}
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es.view-users .wf-directory-heading__icon { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es.view-users .wf-directory-summary strong { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es.view-users .wf-directory-summary span { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es.view-users :is(.wf-directory-summary, .wf-directory-person-actions) { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es.view-users .wf-directory-person-avatar {
  background: #294039; color: #c3dfca; box-shadow: 0 0 0 4px var(--wf-theme-raised);
}
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es.view-users .wf-directory-person-avatar--1 { background: #273f46; color: #b9dce7; }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es.view-users .wf-directory-person-avatar--2 { background: #443b29; color: #ebd19b; }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es.view-users .wf-directory-person-avatar--3 { background: #393341; color: #d5c4e3; }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es.view-users .wf-directory-person-actions :is(a, button):is(:hover, :focus, :active) {
  background: var(--wf-theme-border) !important; border-color: var(--wf-theme-accent) !important; color: var(--wf-theme-text) !important;
}
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es.view-users .wf-directory-person-menu .dropdown-menu .divider { background: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es.view-users .wf-directory-person-menu .dropdown-menu > li > a:is(:hover, :focus) {
  background: var(--wf-theme-soft) !important; color: var(--wf-theme-text) !important;
}
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es.view-users .wf-directory-empty i { color: var(--wf-theme-accent); }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es.view-users .wf-directory-pagination .o-pagination > li > :is(a, span) {
  background: var(--wf-theme-surface); border-color: var(--wf-theme-border); color: var(--wf-theme-link);
}
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es.view-users .wf-directory-pagination .o-pagination > li:not(.disabled) > a:not(.disabled):is(:hover, :focus-visible) {
  background: var(--wf-theme-soft); color: var(--wf-theme-text);
}
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es.view-users .wf-directory-pagination .o-pagination > li.active > :is(a, span) {
  background: var(--wf-theme-primary); border-color: var(--wf-theme-primary); color: var(--wf-theme-on-primary);
}
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es.view-users .wf-directory-pagination .o-pagination > li.disabled > :is(a, span),
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es.view-users .wf-directory-pagination .o-pagination > li > a.disabled {
  background: var(--wf-theme-surface); border-color: var(--wf-theme-border); color: var(--wf-theme-muted);
}

/* Events, groups, notifications, activity and private conversations. */
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es {
  --wf-page-ink: var(--wf-theme-text);
  --wf-page-muted: var(--wf-theme-muted);
  --wf-page-teal: var(--wf-theme-link);
  --wf-page-line: var(--wf-theme-border);
  --wf-page-soft: var(--wf-theme-soft);
  --wf-page-shadow: var(--wf-theme-shadow);
  --directory-ink: var(--wf-theme-text);
  --directory-muted: var(--wf-theme-muted);
}
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es :is(.wf-events-heading, .es-event, .es-group, .es-cluster-header, .es-profile-info, .es-forms__group, .es-list-item, .es-convo__sidebar-item, .es-convo-message, .es-noti__item, .es-activity) { background-color: var(--wf-theme-surface) !important; color: var(--wf-theme-text) !important; border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es :is(.es-card__ft, .es-cluster-header__content, .es-cluster-header__footer, .es-cluster-header__nav, .es-forms__title, .es-convo__sidebar-hd, .es-convo__content-hd, .es-convo-composer__ft, .es-convo__sidebar-item:hover, .es-convo__sidebar-item.is-active, .es-noti__item.is-unread, .es-noti__item:hover) { background-color: var(--wf-theme-raised) !important; color: var(--wf-theme-text) !important; border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es :is(.es-convo-text, .es-convo__sidebar-item-title, .es-convo__content-hd-title, .es-noti__title, .es-noti__desp, .activity-title, .activity-content, .es-list-item__title, .es-card__title, .es-list-item__title a, .es-card__title a, .es-cluster-header__title, .es-cluster-header__nav-link) { color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es :is(.wf-events-heading p, .es-convo-meta, .es-noti__date, .es-noti__meta, .activity-meta, .es-list-item__meta, .es-list-item__desc, .es-card__meta, .es-card__desc, .es-cluster-header__meta, .es-cluster-header__desc) { color: var(--wf-theme-muted) !important; }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es :is(.es-mobile-filter-slider__btn, .es-mobile-filter-slider__tab, .o-tabs__link, .es-convo-sidebar-tab .o-nav__link) { color: var(--wf-theme-link) !important; border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-convo-sidebar-tab .o-nav__item.active > .o-nav__link { background: var(--wf-theme-soft) !important; color: var(--wf-theme-text) !important; border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es.view-events .wf-events-page .es-mobile-filter-slider .is-active .es-mobile-filter-slider__btn { background: var(--wf-theme-primary) !important; border-color: var(--wf-theme-primary) !important; color: var(--wf-theme-on-primary) !important; }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-profile-header__cover.no-cover[style*="/defaults/covers/user/default.jpg"] { background-image: linear-gradient(120deg, #294439, #355957 52%, #426a70) !important; }
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-noti__item-indicator,
html[data-wf-theme="dark"] .wf-site.wf-member .wf-component #es .es-mobile-filter-slider .is-active::before { background-color: var(--wf-theme-accent); }

/* The native discussion component keeps its own structure and editor. */
html[data-wf-theme="dark"] .wf-site .wf-component #ed :is(.wari-discussions-heading, .ed-post-item, .ed-post, .ed-reply, .ed-entry, .ed-replies, .ed-post-reply, .ed-reply-form, .ed-ask, .ed-editor, .ed-guest-success__dialog, .ed-category, .ed-sidebar, .o-panel, .o-tabs) { background-color: var(--wf-theme-surface) !important; color: var(--wf-theme-text) !important; border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #ed :is(.ed-post-item__hd, .ed-post-item__ft, .ed-entry__hd, .ed-entry__ft, .ed-reply__hd, .ed-ask__hd, .ed-ask__ft, .ed-editor__hd, .ed-guest-success__ft, .ed-attachment-dropzone__fact, .ed-attachment-dropzone__icon) { background-color: var(--wf-theme-raised) !important; color: var(--wf-theme-text) !important; border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #ed :is(.wari-discussions-heading p, .wari-community-eyebrow, .ed-post-item__meta, .ed-post-item__desc, .ed-post-item__stat, .ed-entry__meta, .ed-reply__meta, .ed-category__desc, .ed-form-note) { color: var(--wf-theme-muted) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #ed :is(.ed-post-item__title, .ed-post-item__title a, .ed-entry__title, .ed-entry__content, .ed-reply__content, .ed-post-content, .ed-editor__content, .ed-guest-success__title, .o-tabs__link) { color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-site .wf-component #ed :is(.markItUpHeader, .redactor-toolbar, .tox-toolbar, .tox-editor-header, .CodeMirror) { background-color: var(--wf-theme-raised) !important; color: var(--wf-theme-text) !important; border-color: var(--wf-theme-border) !important; }

/* JCE/TinyMCE editor chrome only; authored content lives in its own iframe. */
html[data-wf-theme="dark"] .wf-site .wf-editor-container {
  --nav-tabs-border-color: var(--wf-theme-border);
  --nav-link-color: var(--wf-theme-muted);
  --nav-tabs-link-hover-border-color: var(--wf-theme-border);
  --nav-tabs-link-active-bg: var(--wf-theme-raised);
  --nav-tabs-link-active-border-color: var(--wf-theme-border);
  --nav-tabs-link-active-color: var(--wf-theme-text);
  color: var(--wf-theme-text);
}
html[data-wf-theme="dark"] .wf-site :is(.wf-editor-container.mce-fullscreen, .wf-editor-header, .wf-editor-source, .wf-editor-preview, .mceLayout, .mceIframeContainer, .mceMenu, .mcePanel, .mcePanelContent, .mceModalContainer, .mceModalContent) { background-color: var(--wf-theme-surface) !important; border-color: var(--wf-theme-border) !important; color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-site :is(.mceToolbar, .mceStatusbar, .mcePanelFooter, .mceMenuItemTitle, .mceModalHeader, .mceModalFooter) { background-color: var(--wf-theme-raised) !important; border-color: var(--wf-theme-border) !important; color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-site :is(.wf-editor-container, .mceMenu, .mceModal, .mceDefaultSkin) :is(button, a, label, legend, h4, h5, .mceText, .mcePreview, .mceIcon, .mceAction, .mceButtonLabel, .mcePathLabel, .mcePathPath, .mceWordCount, .mceResize span, .mceModalContent p) { color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-site :is(.mceButton, .mceListBox .mceText, .mceListBox .mceOpen, .mceSplitButton .mceText, .mceSplitButton .mceOpen, .mceComboBox, .mceModalClose, .mceMoreColors) { background-color: var(--wf-theme-raised) !important; border-color: var(--wf-theme-border) !important; color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-site :is(.mceButton:hover, .mceButton:focus-visible, .mceButtonActive, .mceButtonSelected, .mcePanelButtonActive, .mceListBox:hover .mceText, .mceListBox:hover .mceOpen, .mceSplitButton:hover .mceText, .mceSplitButton:hover .mceOpen, .mceMenuItemActive, .mceMenuItemEnabled:hover, .mceMenuItemEnabled:focus, .mceMenuItems .mceSelected, .mceModalClose:hover) { background-color: var(--wf-theme-soft) !important; border-color: var(--wf-theme-accent) !important; }
html[data-wf-theme="dark"] .wf-site :is(.wf-editor-tabs > button.active, .mcePanelFooter .mceButtonPrimary, .mceModalFooter .mceButtonPrimary) { background-color: var(--wf-theme-primary) !important; border-color: var(--wf-theme-primary) !important; color: var(--wf-theme-on-primary) !important; }
html[data-wf-theme="dark"] .wf-site :is(.mceButtonPrimary .mceText, .mceButtonPrimary .mceIcon) { color: var(--wf-theme-on-primary) !important; }
html[data-wf-theme="dark"] .wf-site :is(.mceButton, .wf-editor-tabs > button, .wf-editor-toggle):focus-visible { outline: 2px solid var(--wf-theme-accent) !important; outline-offset: 2px; }
html[data-wf-theme="dark"] .wf-site :is(.mceListBox .mceOpen, .mceSplitButton .mceOpen)::after { color: var(--wf-theme-muted) !important; background-image: none !important; }
html[data-wf-theme="dark"] .wf-site :is(.mceModalClose, .mceClear, .mceComboBox .mceButton, .mceMenuFilter .mceButton)::after { color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-site :is(.mcePanel, .mceButtonMenu)::before,
html[data-wf-theme="dark"] .wf-site :is(.mceListBoxSelected, .mceSplitButtonSelected)::after { background-color: var(--wf-theme-surface) !important; border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-site :is(.mceSeparator, .mceMenuItemSeparator) { background-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-site :is(.wf-editor-container, .mceMenu, .mceModal) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), select, textarea),
html[data-wf-theme="dark"] .wf-site :is(.wf-no-editor, .wf-editor) { background-color: var(--wf-theme-input) !important; border-color: var(--wf-theme-border) !important; color: var(--wf-theme-text) !important; caret-color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-site :is(.wf-editor-container, .mceMenu, .mceModal) :is(input, select, textarea):focus { border-color: var(--wf-theme-accent) !important; }
html[data-wf-theme="dark"] .wf-site :is(.wf-editor-toggle > svg, .mceMenuFilter svg, .mceIcon svg) { fill: var(--wf-theme-muted) !important; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin .mceWordCountLimit { color: var(--wf-theme-danger) !important; }
html[data-wf-theme="dark"] .wf-site .wf-editor-container.mce-loading::before,
html[data-wf-theme="dark"] .wf-site .mceLoading .mceModalContent::before { background: var(--wf-theme-surface) !important; border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-site :is(.mceColorSplitMenu, .mceTableSplitMenu, .mceTableSplitMenu td, .mceTableGridCount) { background-color: var(--wf-theme-surface) !important; color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-site .mceTableSplitMenu td a { border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-site .mceTableSplitMenu .selected a { background-color: var(--wf-theme-primary) !important; border-color: var(--wf-theme-primary) !important; }
/* Legacy JCE icons are a transparent PNG sprite. Reuse its alpha channel,
   retaining the original offsets; leave modern fonts, SVGs and photos intact. */
@supports ((mask-image: url("")) or (-webkit-mask-image: url(""))) {
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) :is(.mceIcon, .mceAction):empty:not(.mceIconImage):is(.mce_bold, .mce_italic, .mce_underline, .mce_strikethrough, .mce_source_undo, .mce_undo, .mce_redo, .mce_source_redo, .mce_cleanup, .mce_bullist, .mce_numlist, .mce_source_linenumbers, .mce_justifyleft, .mce_justifyright, .mce_justifycenter, .mce_justifyfull, .mce_anchor, .mce_indent, .mce_source_format, .mce_outdent, .mce_link, .mce_lnk, .mce_unlink, .mce_sub, .mce_sup, .mce_removeformat, .mce_newdocument, .mce_image, .mce_help, .mce_code, .mce_source, .mce_hr, .mce_visualaid, .mce_charmap, .mce_paste, .mce_copy, .mce_cut, .mce_blockquote, .mce_forecolor, .mce_backcolor, .mce_forecolorpicker, .mce_backcolorpicker, .mce_readmore, .mce_pagebreak, .mce_advhr, .mce_ltr, .mce_rtl, .mce_emotions, .mce_fullpage, .mce_fullscreen, .mce_source_fullscreen, .mce_iespell, .mce_insertdate, .mce_inserttime, .mce_layerabsolute, .mce_insertlayer, .mce_layerbackward, .mce_layerforward, .mce_media, .mce_video, .mce_nonbreaking, .mce_pastetext, .mce_pasteword, .mce_selectall, .mce_preview, .mce_print, .mce_cancel, .mce_save, .mce_replace, .mce_source_replace, .mce_search, .mce_style, .mce_styleprops, .mce_table, .mce_table_insert, .mce_cell_props, .mce_delete_table, .mce_delete_col, .mce_delete_row, .mce_col_after, .mce_col_before, .mce_row_after, .mce_row_before, .mce_merge_cells, .mce_table_props, .mce_row_props, .mce_split_cells, .mce_template, .mce_visualchars, .mce_abbr, .mce_acronym, .mce_attribs, .mce_cite, .mce_del, .mce_ins, .mce_source_highlight, .mce_source_wrap, .mce_source_search_previous, .mce_source_search_next, .mce_source_replace_all, .mce_source_search_regex, .mce_columns, .mce_columns_add, .mce_columns_add_before, .mce_columns_delete, .mce_source_search_wholeword, .mce_source_search_matchcase, .mce_joomla, .mce_upload, .mce_langcode, .mce_restoredraft, .mce_spellchecker, .mce_autosave, .mce_imgmanager, .mce_article, .mce_textcase, .mce_visualblocks, .mce_kitchensink, .mce_mediamanager, .mce_imgmanager_ext, .mce_templatemanager, .mce_iframe, .mce_filemanager, .mce_caption_add, .mce_caption_delete, .mce_microdata, .mce_plus, .mce_cross, .mce_delete, .mce_trash, .mce_check),
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) :is(.mce_forecolor, .mce_backcolor) .mceAction:empty {
  background-image: none !important;
  background-color: currentColor !important;
  -webkit-mask-image: url("/media/com_jce/editor/tinymce/themes/advanced/img/icons.png");
  mask-image: url("/media/com_jce/editor/tinymce/themes/advanced/img/icons.png");
  -webkit-mask-position: var(--wf-jce-icon-position);
  mask-position: var(--wf-jce-icon-position);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_bold { --wf-jce-icon-position: 0 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_italic { --wf-jce-icon-position: -60px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_underline { --wf-jce-icon-position: -140px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_strikethrough { --wf-jce-icon-position: -120px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) :is(span.mce_source_undo, span.mce_undo) { --wf-jce-icon-position: -160px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) :is(span.mce_redo, span.mce_source_redo) { --wf-jce-icon-position: -100px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_cleanup { --wf-jce-icon-position: -40px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_bullist { --wf-jce-icon-position: -20px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) :is(span.mce_numlist, span.mce_source_linenumbers) { --wf-jce-icon-position: -80px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_justifyleft { --wf-jce-icon-position: -460px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_justifyright { --wf-jce-icon-position: -480px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_justifycenter { --wf-jce-icon-position: -420px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_justifyfull { --wf-jce-icon-position: -440px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_anchor { --wf-jce-icon-position: -200px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) :is(span.mce_indent, span.mce_source_format) { --wf-jce-icon-position: -400px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_outdent { --wf-jce-icon-position: -540px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) :is(span.mce_link, span.mce_lnk) { --wf-jce-icon-position: -500px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_unlink { --wf-jce-icon-position: -640px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_sub { --wf-jce-icon-position: -600px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_sup { --wf-jce-icon-position: -620px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_removeformat { --wf-jce-icon-position: -580px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_newdocument { --wf-jce-icon-position: -520px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) :is(span.mce_image, span.mce_imgmanager) { --wf-jce-icon-position: -380px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_help { --wf-jce-icon-position: -340px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) :is(span.mce_code, span.mce_source) { --wf-jce-icon-position: -260px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_hr { --wf-jce-icon-position: -360px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_visualaid { --wf-jce-icon-position: -660px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_charmap { --wf-jce-icon-position: -240px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_paste { --wf-jce-icon-position: -560px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_copy { --wf-jce-icon-position: -700px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_cut { --wf-jce-icon-position: -680px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_blockquote { --wf-jce-icon-position: -220px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) :is(.mce_forecolor span.mceAction, span.mce_forecolor, span.mce_forecolorpicker) { --wf-jce-icon-position: -720px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) :is(.mce_backcolor span.mceAction, span.mce_backcolor, span.mce_backcolorpicker) { --wf-jce-icon-position: -760px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) :is(span.mce_readmore, span.mce_article) { --wf-jce-icon-position: -920px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_pagebreak { --wf-jce-icon-position: -940px 0; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_advhr { --wf-jce-icon-position: 0 -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_ltr { --wf-jce-icon-position: -20px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_rtl { --wf-jce-icon-position: -40px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_emotions { --wf-jce-icon-position: -60px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_fullpage { --wf-jce-icon-position: -80px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) :is(span.mce_fullscreen, span.mce_source_fullscreen) { --wf-jce-icon-position: -100px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_iespell { --wf-jce-icon-position: -120px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_insertdate { --wf-jce-icon-position: -140px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_inserttime { --wf-jce-icon-position: -160px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_layerabsolute { --wf-jce-icon-position: -180px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_insertlayer { --wf-jce-icon-position: -240px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_layerbackward { --wf-jce-icon-position: -200px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_layerforward { --wf-jce-icon-position: -220px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_media { --wf-jce-icon-position: -320px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) :is(span.mce_video, span.mce_mediamanager) { --wf-jce-icon-position: -320px -40px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_nonbreaking { --wf-jce-icon-position: -340px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_pastetext { --wf-jce-icon-position: -360px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_pasteword { --wf-jce-icon-position: -380px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_selectall { --wf-jce-icon-position: -400px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_preview { --wf-jce-icon-position: -420px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_print { --wf-jce-icon-position: -440px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_cancel { --wf-jce-icon-position: -460px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_save { --wf-jce-icon-position: -480px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) :is(span.mce_replace, span.mce_source_replace) { --wf-jce-icon-position: -500px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_search { --wf-jce-icon-position: -520px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) :is(span.mce_style, span.mce_styleprops) { --wf-jce-icon-position: -560px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) :is(span.mce_table, span.mce_table_insert) { --wf-jce-icon-position: -580px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_cell_props { --wf-jce-icon-position: -600px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_delete_table { --wf-jce-icon-position: -620px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_delete_col { --wf-jce-icon-position: -640px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_delete_row { --wf-jce-icon-position: -660px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_col_after { --wf-jce-icon-position: -680px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_col_before { --wf-jce-icon-position: -700px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_row_after { --wf-jce-icon-position: -720px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_row_before { --wf-jce-icon-position: -740px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_merge_cells { --wf-jce-icon-position: -760px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_table_props { --wf-jce-icon-position: -980px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_row_props { --wf-jce-icon-position: -780px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_split_cells { --wf-jce-icon-position: -800px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_template { --wf-jce-icon-position: -820px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_visualchars { --wf-jce-icon-position: -840px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_abbr { --wf-jce-icon-position: -860px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_acronym { --wf-jce-icon-position: -880px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_attribs { --wf-jce-icon-position: -900px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_cite { --wf-jce-icon-position: -920px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_del { --wf-jce-icon-position: -940px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_ins { --wf-jce-icon-position: -960px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_source_highlight { --wf-jce-icon-position: -140px -40px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_source_wrap { --wf-jce-icon-position: -100px -40px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_source_search_previous { --wf-jce-icon-position: -440px -40px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_source_search_next { --wf-jce-icon-position: -460px -40px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_source_replace_all { --wf-jce-icon-position: -480px -40px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_source_search_regex { --wf-jce-icon-position: -500px -40px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_columns { --wf-jce-icon-position: -520px -40px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_columns_add { --wf-jce-icon-position: -560px -40px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_columns_add_before { --wf-jce-icon-position: -660px -40px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_columns_delete { --wf-jce-icon-position: -580px -40px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_source_search_wholeword { --wf-jce-icon-position: -680px -40px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_source_search_matchcase { --wf-jce-icon-position: -700px -40px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_joomla { --wf-jce-icon-position: -600px -40px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_upload { --wf-jce-icon-position: -620px -40px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_langcode { --wf-jce-icon-position: -640px -40px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) :is(span.mce_restoredraft, span.mce_autosave) { --wf-jce-icon-position: -20px -40px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_spellchecker { --wf-jce-icon-position: -540px -20px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_textcase { --wf-jce-icon-position: -40px -40px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_visualblocks { --wf-jce-icon-position: -160px -40px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_kitchensink { --wf-jce-icon-position: -180px -40px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_imgmanager_ext { --wf-jce-icon-position: -420px -40px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_templatemanager { --wf-jce-icon-position: -380px -40px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_iframe { --wf-jce-icon-position: -400px -40px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_filemanager { --wf-jce-icon-position: -360px -40px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_caption_add { --wf-jce-icon-position: -280px -40px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_caption_delete { --wf-jce-icon-position: -300px -40px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_microdata { --wf-jce-icon-position: -340px -40px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_plus { --wf-jce-icon-position: -200px -40px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) :is(span.mce_cross, span.mce_delete, span.mce_trash) { --wf-jce-icon-position: -220px -40px; }
html[data-wf-theme="dark"] .wf-site .mceDefaultSkin:not(.mceModernSkin):not(.mceO2k7Skin) span.mce_check { --wf-jce-icon-position: -540px -40px; }
}

/* Joomla's alternate TinyMCE editor and its body-mounted menus/dialogs. */
html[data-wf-theme="dark"] .wf-site .tox :is(.tox-editor-container, .tox-edit-area, .tox-edit-area__iframe, .tox-dialog, .tox-dialog__body, .tox-menu, .tox-collection, .tox-pop, .tox-pop__dialog) { background-color: var(--wf-theme-surface) !important; border-color: var(--wf-theme-border) !important; color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-site :is(.tox-tinymce, .tox .tox-editor-header, .tox .tox-menubar, .tox .tox-toolbar, .tox .tox-toolbar__primary, .tox .tox-toolbar__overflow, .tox .tox-statusbar, .tox .tox-dialog__header, .tox .tox-dialog__footer, .tox .tox-toolbar-overlord) { background: var(--wf-theme-raised) !important; border-color: var(--wf-theme-border) !important; color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-site .tox :is(.tox-tbtn, .tox-mbtn, .tox-label, .tox-collection__item, .tox-dialog__title, .tox-dialog__body-nav-item, .tox-statusbar__path-item, .tox-statusbar__wordcount, .tox-statusbar__branding a) { color: var(--wf-theme-text) !important; background-color: transparent !important; }
html[data-wf-theme="dark"] .wf-site .tox :is(.tox-tbtn, .tox-mbtn, .tox-collection__item, .tox-button--icon) svg { fill: currentColor !important; }
html[data-wf-theme="dark"] .wf-site .tox :is(.tox-tbtn:hover, .tox-tbtn--enabled, .tox-tbtn:focus, .tox-mbtn:hover, .tox-mbtn--active, .tox-collection__item--active, .tox-collection__item--enabled) { background-color: var(--wf-theme-soft) !important; }
html[data-wf-theme="dark"] .wf-site .tox :is(.tox-textfield, .tox-textarea, .tox-listboxfield .tox-listbox--select) { background-color: var(--wf-theme-input) !important; border-color: var(--wf-theme-border) !important; color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-site .tox .tox-button { background-color: var(--wf-theme-primary) !important; border-color: var(--wf-theme-primary) !important; color: var(--wf-theme-on-primary) !important; }
html[data-wf-theme="dark"] .wf-site .tox :is(.tox-button--secondary, .tox-button--naked, .tox-button--icon) { background-color: var(--wf-theme-raised) !important; border-color: var(--wf-theme-border) !important; color: var(--wf-theme-text) !important; }

/* Private contacts, editor, import completion and device synchronization. */
html[data-wf-theme="dark"] .wf-site :is(.wf-contacts, .wf-contacts-dialog) {
  --wc-ink: var(--wf-theme-text);
  --wc-muted: var(--wf-theme-muted);
  --wc-line: var(--wf-theme-border);
  --wc-soft: var(--wf-theme-soft);
  --wc-accent: var(--wf-theme-accent);
  color: var(--wf-theme-text);
}
html[data-wf-theme="dark"] .wf-site :is(.wf-contacts-heading, .wf-contacts-workspace, .wf-contacts-sidebar, .wf-contact-letter, .wf-contact-detail-section, .wf-contacts-dialog, .wf-contact-dialog-header, .wf-contact-dialog-footer, .wf-contact-import-complete .wf-contact-dialog-header, .wf-contact-import-complete .wf-contact-dialog-footer) { background: var(--wf-theme-surface) !important; color: var(--wf-theme-text) !important; border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-site :is(.wf-contacts-detail, .wf-contact-optional-item, .wf-contact-address-row, .wf-contact-service-row, .wf-contact-ocr, .wf-contact-card, .wf-contact-sync-intro, .wf-contact-sync-platform, .wf-contact-sync-create, .wf-contact-sync-credentials, .wf-contact-sync-import, .wf-contact-import-totals) { background: var(--wf-theme-raised) !important; border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-site :is(.wf-contacts-heading-icon, .wf-contacts-private, .wf-contact-chip, .wf-contact-group-chip, .wf-contact-import-success-icon, .wf-contact-placeholder > svg) { color: var(--wf-theme-accent) !important; background: var(--wf-theme-soft) !important; border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-site :is(.wf-contact-avatar) { background: linear-gradient(140deg, #345349, #28434a) !important; color: #cce6d8 !important; }
html[data-wf-theme="dark"] .wf-site :is(.wf-contacts-eyebrow, .wf-contact-field, .wf-contact-detail-line > span:first-child, .wf-contact-detail-line dt, .wf-contact-detail-section h3, .wf-contact-group-heading, .wf-contact-group-empty, .wf-contact-group-hint, .wf-contact-sync-import .wf-contact-sync-note, .wf-contact-ocr > p, .wf-contact-ocr dt, .wf-contact-search) { color: var(--wf-theme-muted) !important; }
html[data-wf-theme="dark"] .wf-site :is(.wf-contact-detail-line a, .wf-contact-extra-name > summary, .wf-contact-group-remove, .wf-contact-group-more, .wf-contact-placeholder h2) { color: var(--wf-theme-link) !important; }
html[data-wf-theme="dark"] .wf-site :is(.wf-contact-list-item:hover, .wf-contact-list-item[aria-current="true"], .wf-contact-list-item.is-selected) { color: var(--wf-theme-text) !important; background: var(--wf-theme-soft) !important; border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-site :is(.wf-contact-button, .wf-contact-group-option, .wf-contact-group-add, .wf-contact-card > button, .wf-contact-ocr pre) { color: var(--wf-theme-link) !important; background: var(--wf-theme-raised) !important; border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-site :is(.wf-contact-button:hover, .wf-contact-group-option:hover, .wf-contact-group-remove:hover, .wf-contact-group-more:hover, .wf-contact-sync-platform .wf-contact-button[aria-pressed="true"]) { color: var(--wf-theme-text) !important; background: var(--wf-theme-soft) !important; border-color: var(--wf-theme-accent) !important; }
html[data-wf-theme="dark"] .wf-site .wf-contact-button.is-primary { color: var(--wf-theme-on-primary) !important; background: var(--wf-theme-primary) !important; border-color: var(--wf-theme-primary) !important; }
html[data-wf-theme="dark"] .wf-site .wf-contact-button.is-primary:hover { background: #b3ddcb !important; color: var(--wf-theme-on-primary) !important; }
html[data-wf-theme="dark"] .wf-site :is(.wf-contact-button.is-danger, .wf-contact-message.is-error, .wf-contact-group-status.is-error) { color: var(--wf-theme-danger) !important; }
html[data-wf-theme="dark"] .wf-site .wf-contact-button.is-danger { background: var(--wf-theme-danger-bg) !important; border-color: #87534f !important; }
html[data-wf-theme="dark"] .wf-site :is(.wf-contact-message.is-success, .wf-contact-toast) { color: var(--wf-theme-success) !important; }
html[data-wf-theme="dark"] .wf-site .wf-contact-toast { background: var(--wf-theme-success-bg) !important; }
html[data-wf-theme="dark"] .wf-site :is(.wf-contact-list-star, .wf-contact-import-duplicate, .wf-contact-button.is-favorite) { color: var(--wf-theme-warning) !important; }
html[data-wf-theme="dark"] .wf-site .wf-contact-button.is-favorite { background: var(--wf-theme-warning-bg) !important; border-color: #7a6a46 !important; }
html[data-wf-theme="dark"] .wf-site :is(.wf-contact-group-options, .wf-contact-detail-line, .wf-contact-editor-section, .wf-contact-import-list li, .wf-contact-sync-device-list li, .wf-contact-import-totals > div) { border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-site .wf-contact-sync-dialog .wf-contact-sync-intro { background: transparent !important; }
html[data-wf-theme="dark"] .wf-site .wf-contact-sync-dialog .wf-contact-sync-disclosure { background: var(--wf-theme-surface) !important; }
html[data-wf-theme="dark"] .wf-site .wf-contact-sync-dialog .wf-contact-sync-close { background: transparent !important; border-color: transparent !important; }
html[data-wf-theme="dark"] .wf-site .wf-contact-sync-dialog .wf-contact-sync-close:hover { background: var(--wf-theme-soft) !important; border-color: var(--wf-theme-border) !important; }

@media (prefers-reduced-motion: reduce) {
  .wf-site .wf-theme-toggle { transition: none; }
}
