/* theme-core.css */
/* 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; }
}

/* theme-media.css */
/* Media color layer. Loaded after the component styles and theme-core.css.
 * Keep the exact component selectors so native dialogs and AJAX-inserted panels
 * receive the same palette. No filters, geometry or image/canvas transformations.
 * Scanner camera/review stages and cinematic photo/video controls intentionally
 * retain their established dark appearance in both themes.
 */


/* Albums */
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-albums-heading { border-color: var(--wf-theme-border); background: linear-gradient(115deg,var(--wf-theme-surface) 55%,var(--wf-theme-soft)); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-albums-eyebrow { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-albums-heading h1 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-albums-heading p:last-child { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-create { border-color: var(--wf-theme-primary); color: var(--wf-theme-on-primary); background: var(--wf-theme-primary); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-create:hover { background: #b3ddcb; border-color: #b3ddcb; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-albums-page .es-snackbar2 { background: transparent; border-bottom-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-tabs a { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-tabs a:hover { color: var(--wf-theme-text); background: var(--wf-theme-raised); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-tabs a[aria-current] { color: var(--wf-theme-text); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-albums-empty { background: var(--wf-theme-surface); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-albums-empty .o-empty__icon { color: var(--wf-theme-muted); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-albums-empty h2 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-albums-empty p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-card--album-item:hover { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item.layout-form .es-media-header-affix-wrapper--top { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-editor-title h1 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-editor-title p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums [data-album-done-button] { border-color: var(--wf-theme-primary) !important; color: var(--wf-theme-on-primary) !important; background: var(--wf-theme-primary) !important; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-field-label { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-title-field { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-caption-field { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums :is(.es-album-title-field,.es-album-caption-field):focus { border-color: #3f7c70; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-privacy .es-privacy-toggle { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-photo-uploader-panel__surface:not(.is-error):not(.is-success) { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-photo-uploader-panel__icon { background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-photo-uploader-panel__title { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-photo-uploader-panel__helper { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-photo-uploader-panel__browse { border-color: var(--wf-theme-primary) !important; background: var(--wf-theme-primary) !important; color: var(--wf-theme-on-primary) !important; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums [data-album-locales-panel] > .o-card { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-locales-summary { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-back { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums :is(.es-album-title-field,.es-album-caption-field) { border-color: var(--wf-theme-border) !important; color: var(--wf-theme-text) !important; background: var(--wf-theme-surface) !important; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums :is(.es-album-title-field,.es-album-caption-field):focus { border-color: #3f7c70 !important; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-privacy .es-privacy-toggle { border-color: var(--wf-theme-border) !important; background: var(--wf-theme-soft) !important; color: var(--wf-theme-text) !important; }

/* Album library */
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-library .wf-album-library-heading { background: var(--wf-theme-surface); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-library-heading .wf-albums-eyebrow:before { background: #d99c35; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-library .wf-album-library-tabs { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-library-tabs a { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-library-tabs a[aria-current=page] { background: var(--wf-theme-primary); color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-library-tabs a:not([aria-current]):hover { background: var(--wf-theme-raised); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-library .wf-album-collection-toolbar { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-collection-copy h2 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-collection-copy p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-collection-toolbar [data-popdown-button] { color: var(--wf-theme-text); background: var(--wf-theme-surface); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-date-heading { border-bottom-color: var(--wf-theme-border); background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-date-heading h3 { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-core-links { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-core-links summary { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-core-links a { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-library .wf-albums-empty { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-albums-empty .o-empty__icon { background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-library .o-pagination>li>a,
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-library .o-pagination>li>span { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-library .o-pagination>li.active>a,
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-library .o-pagination>li.active>span { background: var(--wf-theme-primary); border-color: var(--wf-theme-primary); color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-sort { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-sort>summary { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-sort>summary:hover { border-color: var(--wf-theme-border); background: var(--wf-theme-raised); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-sort-label>span,
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-sort-label small { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-sort-panel { background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-sort>.wf-album-sort-panel { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-sort-header h2 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-sort [data-wf-album-sort-close] { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-sort [data-wf-album-sort-close]:hover { background: var(--wf-theme-raised); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-sort-intro { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums a.wf-album-sort-option { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums a.wf-album-sort-option:hover { border-color: var(--wf-theme-border); background: var(--wf-theme-raised); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-sort-icon { background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-sort-copy small { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-sort-check { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums a.wf-album-sort-option[aria-current=true] { background: var(--wf-theme-soft); border-color: var(--wf-theme-border); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums a.wf-album-sort-option[aria-current=true] .wf-album-sort-icon { background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-sort-dialog { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-sort-dialog .wf-album-sort-header { background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-sort-dialog::backdrop { background: #17382f80; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-standalone-media .wf-feature-title { color: var(--wf-theme-text); }

/* Album cards */
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-grid .wf-album-card { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-grid .wf-album-card:hover { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-grid .wf-album-card .wf-album-card__cover { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-grid .wf-album-card .wf-album-card__photo-count { border-color: #ffffff24; background: #172b33cc; color: #fff; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-grid .wf-album-card .es-card__bd.wf-album-card__body { background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-grid .wf-album-card .wf-album-card__title { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-grid .wf-album-card .wf-album-card__title a:hover { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-grid .wf-album-card .wf-album-card__meta { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-grid .wf-album-card .wf-album-card__meta > div > i { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-grid .wf-album-card .wf-album-card__author a { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-grid .wf-album-card .wf-album-card__location { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-grid .wf-album-card .wf-album-card__footer { border-block-start-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-grid .wf-album-card .wf-album-card__stats { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-grid .wf-album-card .wf-album-card__stats i { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-grid .wf-album-card .wf-album-card__open { color: var(--wf-theme-text); background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-grid .wf-album-card .wf-album-card__open:hover { background: var(--wf-theme-raised); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-grid .wf-album-card .wf-album-card__locked { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-grid .wf-album-card .wf-album-card__locked .o-form-control { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-grid .wf-album-card .wf-album-card__locked button { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-grid .wf-album-card .wf-album-card__cover .o-empty { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-grid .wf-album-card .wf-album-card__cover .o-empty__icon { color: var(--wf-theme-muted); }

/* Album view */
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item { background: var(--wf-theme-surface); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item > .wf-album-toolbar { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item > .wf-album-toolbar .es-album-owner { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item > .wf-album-toolbar .btn { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item > .wf-album-toolbar .btn:hover { background: var(--wf-theme-raised); color: var(--wf-theme-text); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item > .wf-album-toolbar .btn-album-add-photos { 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-member .wf-component #es.view-albums:not(.is-mobile) .wf-album-workspace.layout-item .wf-album-settings > .dropdown-menu { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item .wf-album-settings > .dropdown-menu > li > a { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item .wf-album-settings > .dropdown-menu > li > a:is(:hover,:focus-visible) { background: var(--wf-theme-raised); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item .wf-album-settings > .dropdown-menu > [data-album-delete-button] > a { color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item .wf-album-settings > .dropdown-menu > [data-album-delete-button] > a:is(:hover,:focus-visible) { background: var(--wf-theme-danger-bg); color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums:not(.is-mobile) .wf-album-workspace.layout-item .wf-album-settings > .dropdown-menu > .divider { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item .es-album-title a { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item .es-album-caption { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item .es-album-info > small { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item .es-album-header > .es-media-header-affix-wrapper { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item .es-media-delete-all-actions { border-top-color: var(--wf-theme-border); border-bottom-color: var(--wf-theme-border); background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item .es-media-delete-all-actions label { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item > .es-album-content { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item [data-photo-viewport] { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item > .es-album-footer { border-top-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item .es-album-taglist { background: var(--wf-theme-soft); border-color: var(--wf-theme-border); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item .es-album-taglist > div:first-child { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item .es-comments { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item .es-comments-form { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item .es-comments-form .btn { background: #1c5360 !important; border-color: #1c5360 !important; color: #fff !important; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item .es-comments-wrap { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item .es-actions__item-comment { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item .es-comments-control { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item .es-actions-list a { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-browser .es-mobile-filter { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-browser .es-mobile-filter-slider__btn { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-browser .es-mobile-filter-slider__item.is-active .es-mobile-filter-slider__btn { background: var(--wf-theme-soft); color: var(--wf-theme-text); border-color: #1c5360; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item :is(.es-comments-wrapper,[data-es-comments],.es-comments-control__load) { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-browser [data-es-swiper-filter-group].is-active > a { background: var(--wf-theme-soft) !important; border-color: var(--wf-theme-border) !important; color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-browser .es-mobile-filter-slider__item.is-active { border-color: #1c5360; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-item .wf-album-panel-heading { border-bottom-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-item .wf-album-panel-icon { background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-item .wf-album-panel-heading h2 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-item .wf-album-panel-heading p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item .es-actions-list { border-bottom-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item .es-comments-control { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item .es-album-taglist { background: var(--wf-theme-soft); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item > .es-album-footer .es-action-privacy .es-privacy-toggle { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item > .es-album-footer .es-action-privacy .es-privacy.active > .es-privacy-toggle { color: var(--wf-theme-text); border-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item > .es-album-footer .es-action-privacy .es-privacy-menu { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item > .es-album-footer .es-action-privacy [data-privacy-menu] > li > a { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item > .es-album-footer .es-action-privacy [data-privacy-menu] > li.active > a,
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item > .es-album-footer .es-action-privacy [data-privacy-menu] > li > a:hover { color: var(--wf-theme-text); background: var(--wf-theme-raised); }

/* Native album pagination keeps its state and spinner; only its palette changes. */
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums [data-album-more-button] { background-color: var(--wf-theme-raised); border-color: var(--wf-theme-border); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums [data-album-more-button]:is(:hover, :focus-visible, :active, .active) { background-color: var(--wf-theme-soft) !important; border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums [data-album-more-button]:focus-visible { outline: 3px solid var(--wf-gold); outline-offset: 3px; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums [data-album-more-button].is-loading::before { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums [data-album-more-button].is-loading::after { border-top-color: var(--wf-theme-primary); }

/* Album editor */
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-form { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-form > .wf-album-toolbar { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .wf-album-editor-mark { background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .wf-album-editor-nav { border-top-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .wf-album-editor-nav a { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .wf-album-editor-nav a:hover { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .wf-album-editor-title h1 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .wf-album-editor-title p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-form > .es-album-header,
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-form > .es-album-content { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .es-album-form { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .es-album-form-fields { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .wf-album-story-fields { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .wf-album-panel-icon { background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .wf-album-panel-heading h2 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .wf-album-panel-heading p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .wf-album-field-hint { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .wf-album-cover-preview { background: var(--wf-theme-soft); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .wf-album-cover-preview .es-album-cover-field { border-color: var(--wf-theme-border); background-color: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .wf-album-cover-preview .es-album-cover-field.no-cover > i { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .wf-album-settings-section { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .wf-album-section-title { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .wf-album-section-title > i { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .es-album-privacy .es-privacy-toggle { background: var(--wf-theme-soft) !important; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .wf-album-locales-summary { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .es-album-password-field { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .es-album-password-field__input { background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .es-album-password-field:focus-within { border-color: #3f7c70; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .es-album-location,
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .es-album-date { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .wf-album-meta-control > .wf-album-field-label { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .wf-album-meta-control .wf-album-meta-trigger { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .wf-album-meta-control .wf-album-meta-trigger:hover { border-color: var(--wf-theme-border); background: var(--wf-theme-raised); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .wf-album-meta-control .wf-album-location-clear { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .wf-album-location-clear:hover { background: var(--wf-theme-raised); color: var(--wf-theme-danger); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .wf-album-meta-control > .dropdown-menu { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .wf-album-meta-control > .dropdown-backdrop { background: transparent !important; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .es-album-date-form :is(input,select) { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form [data-album-locales-panel] > .o-card { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form .wf-album-locales-content { border-top-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .layout-form > .es-album-footer { background: transparent; }

/* Album settings */
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace .wf-album-settings > .wf-album-settings-menu { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-settings-menu .wf-album-settings-heading { border-bottom-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-settings-heading strong { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-settings-heading small { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums [data-wf-album-settings-close] { background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item .wf-album-settings > .wf-album-settings-menu > li > a > i:first-child { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-settings-menu a small { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-settings-menu .wf-album-settings-arrow { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item .wf-album-settings > .wf-album-settings-menu > [data-album-delete-button] > a > i:first-child { background: var(--wf-theme-danger-bg); color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-settings-menu .divider { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums.is-mobile .wf-album-workspace .wf-album-settings > .wf-album-settings-menu { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums.is-mobile .wf-album-settings-menu::before { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums.is-mobile .wf-album-settings > .dropdown-backdrop { background: rgba(15,32,34,.52); }
html[data-wf-theme="dark"] .wf-member #es.es-dialog:has(.wf-album-delete-confirmation) .es-dialog-modal { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member #es.es-dialog:has(.wf-album-delete-confirmation) .es-dialog-header { background: transparent; color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es.es-dialog:has(.wf-album-delete-confirmation) .es-dialog-body,
html[data-wf-theme="dark"] .wf-member #es.es-dialog:has(.wf-album-delete-confirmation) .es-dialog-container { background: transparent; }
html[data-wf-theme="dark"] .wf-member #es .wf-album-delete-icon { background: var(--wf-theme-danger-bg); color: var(--wf-theme-danger); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member #es .wf-album-delete-confirmation p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-album-delete-confirmation .wf-album-delete-warning { color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] .wf-member #es.es-dialog:has(.wf-album-delete-confirmation) .es-dialog-footer { border-top-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member #es.es-dialog:has(.wf-album-delete-confirmation) [data-cancel-button] { color: var(--wf-theme-text) !important; background: var(--wf-theme-surface) !important; border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-member #es.es-dialog:has(.wf-album-delete-confirmation) [data-delete-button] { color: #fff !important; background: #a43e35 !important; border-color: #a43e35 !important; }

/* Album upload */
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-photo-location-notice { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-photo-location-notice__icon { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-photo-location-notice p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-photo-location-notice__dismiss { background: transparent; color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-photo-location-notice__dismiss:hover { background: var(--wf-theme-raised); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .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-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .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-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .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-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .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-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .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-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .es-photo-uploader-panel__icon { background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .es-photo-uploader-panel__title { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) :is(.es-photo-uploader-panel__helper, .es-photo-uploader-panel__summary-detail) { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .es-photo-uploader-panel__summary { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .es-photo-uploader-panel__summary-label { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .es-photo-uploader-panel__summary-percent { color: var(--wf-theme-link); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .es-photo-uploader-panel__summary-progress { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) :is(.es-photo-uploader-panel__summary-bar, .es-photo-upload-tile__progress-bar) { background: var(--wf-upload-bar, #317466); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .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-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .es-photo-upload-tile { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .es-photo-upload-tile__preview { background-color: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .es-photo-upload-tile__placeholder { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .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-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .es-photo-upload-tile__remove:hover { background: var(--wf-theme-raised); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .es-photo-upload-tile__body { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .es-photo-upload-tile__status { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .es-photo-upload-tile__name { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .es-photo-upload-tile__meta { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .es-photo-upload-tile__meta-separator { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .es-photo-upload-tile__progress { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .upload-percentage { background: transparent; color: inherit; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .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-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .es-photo-upload-tile__action:hover { border-color: var(--wf-theme-border); background: var(--wf-theme-raised); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .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-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .es-photo-upload-tile__action--retry:hover { border-color: #b3ddcb; background: #b3ddcb; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .es-photo-upload-item.done .es-photo-upload-tile,
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .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-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .es-photo-upload-item.done .es-photo-upload-tile__status,
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .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-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .es-photo-upload-item.done .es-photo-upload-tile__progress-bar,
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .is-success .es-photo-uploader-panel__summary-bar { background: #4c8055; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .es-photo-upload-item.failed .es-photo-upload-tile,
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .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-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .es-photo-upload-item.failed .es-photo-upload-tile__status,
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .es-photo-upload-tile__action--details,
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .is-error :is(.es-photo-uploader-panel__summary-percent, .es-photo-uploader-panel__status) { color: var(--wf-upload-error); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .es-photo-upload-item.failed .es-photo-upload-tile__progress-bar,
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .is-error .es-photo-uploader-panel__summary-bar { background: #b75a4e; }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-album-scanner { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-album-scanner .wf-album-scan-button { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-album-scan-button:hover { background: var(--wf-theme-raised); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-album-scanner .wf-album-scan-hint { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-album-scanner .wf-album-scan-status { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace:is(.layout-form, .layout-item) > .es-album-content.wf-album-photo-section { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item .wf-album-photo-section .wf-album-photo-heading .wf-album-panel-icon { background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item .wf-album-photo-section .wf-album-photo-heading h2 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item .wf-album-photo-section .wf-album-photo-heading p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item .wf-album-photo-section .wf-album-photo-heading .wf-album-browse-action { border-color: var(--wf-theme-primary); background: var(--wf-theme-primary); color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item .wf-album-photo-section .wf-album-photo-heading .wf-album-browse-action:is(:hover, :focus, :focus-visible, :active) { border-color: #b3ddcb; background: #b3ddcb; color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item .wf-album-photo-section .wf-album-photo-heading .wf-album-browse-action:is(:disabled, [aria-busy="true"]) { border-color: var(--wf-theme-primary); background: var(--wf-theme-primary); color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .wf-album-add-panel { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .wf-album-add-panel .es-photo-uploader-panel__surface { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .wf-album-add-panel .es-photo-uploader-panel__icon { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .wf-album-add-actions > :is(.es-photo-uploader-panel__actions, .wf-album-scanner) { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .wf-album-add-actions :is(.es-photo-uploader-panel__browse, .wf-album-scan-button) { border-color: var(--wf-theme-primary); background: var(--wf-theme-primary); color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .wf-album-add-actions .es-photo-uploader-panel__browse { border-color: var(--wf-theme-primary); background: var(--wf-theme-primary); color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .wf-album-add-actions .es-photo-uploader-panel__browse:hover { border-color: #b3ddcb; background: #b3ddcb; color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .wf-album-add-actions .wf-album-scan-button:hover { border-color: var(--wf-theme-border); background: var(--wf-theme-raised); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .wf-album-add-panel:has(.es-photo-uploader-panel__surface.is-error) { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .wf-album-add-panel:has(.es-photo-uploader-panel__surface.is-error) .es-photo-uploader-panel__status { color: var(--wf-upload-error); border-color: var(--wf-theme-border); background: var(--wf-theme-danger-bg); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item:is(.layout-form, .layout-item) .wf-album-add-panel:has(.es-photo-uploader-panel__surface.is-success) .es-photo-uploader-panel__status { color: var(--wf-theme-link); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-album-item .wf-album-photo-section [data-wari-upload-recovery-note] { color: var(--wf-theme-muted); }

/* Album photo editor */
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-photo-item.layout-form:not([data-photo-upload-item]) { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-photo-item.layout-form .es-photo-content { border-bottom-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-photo-item.layout-form .es-photo { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-photo-item.layout-form .es-photo-image { background-color: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-photo-item.layout-form .es-photo-header { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-photo-item.layout-form .wf-album-photo-toolbar { border-bottom-color: var(--wf-theme-border); background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-photo-item.layout-form .wf-album-photo-toolbar .btn { border-color: var(--wf-theme-border) !important; background: var(--wf-theme-surface) !important; color: var(--wf-theme-muted) !important; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-photo-item.layout-form .wf-album-photo-toolbar .btn:hover { border-color: var(--wf-theme-border) !important; background: var(--wf-theme-raised) !important; color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-photo-item.layout-form .wf-album-photo-finish [data-photo-done-button] { background: var(--wf-theme-primary) !important; color: var(--wf-theme-on-primary) !important; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-photo-item.layout-form .wf-photo-details-heading { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-photo-item.layout-form .es-photo-form-fields { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-photo-item.layout-form .wf-photo-details-label { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-photo-item.layout-form :is(.es-photo-title-field,.es-photo-caption-field) { border-color: var(--wf-theme-border) !important; background: var(--wf-theme-surface); color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-photo-item.layout-form :is(.es-photo-title-field,.es-photo-caption-field):focus { border-color: #3f7c70 !important; background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-photo-item.layout-form .wf-photo-rotation-note { background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-photo-item.layout-form .es-photo-privacy { border-top-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .es-photo-item.layout-form .es-photo-privacy .es-privacy-toggle { border-color: var(--wf-theme-border); background: var(--wf-theme-soft) !important; color: var(--wf-theme-text); }

/* Photo viewer */
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup { background: rgba(9, 25, 29, .8); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .es-popup-viewport { background: #10191c; }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .es-photo-header { background: #10191c; border-bottom-color: rgba(255,255,255,.08); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .es-photo-footer { background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .es-photo-footer > .o-flag { border-bottom-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .es-photo-album { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .es-photo-album a { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .es-photo-title a { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .es-photo-caption { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .es-photo-info small { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .es-photo-close-button { background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-tool,
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .es-photo-popup-nav > .o-nav__item > a,
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .es-photo-popup-nav .btn,
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-view-options,
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-view-close button { border-color: var(--wf-theme-border) !important; background: #202d31 !important; color: #f3f7f5 !important; }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-tool:hover,
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .es-photo-popup-nav .btn:hover,
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-view-options:hover { background: #304348 !important; border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-edit-done { 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"] body.wf-member #es.es-photo-popup .wf-photo-edit-done:hover { background: #b3ddcb !important; }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-edit-cancel { background: transparent !important; }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .dropdown-menu { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .dropdown-menu > li > a { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .dropdown-menu .wf-photo-action-delete { color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-details-heading { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-details-label { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .es-photo-form-fields { background: transparent; }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .es-photo-title-field,
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .es-photo-caption-field { border-color: var(--wf-theme-border) !important; background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-rotation-note { color: var(--wf-theme-muted); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .es-photo-exif { border-top-color: var(--wf-theme-border); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .es-comments-form { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .es-comments-form [data-comments-form-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"] body.wf-member #es.es-photo-popup [data-message-group] { background: var(--wf-theme-surface); color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-album-context { background: var(--wf-theme-soft); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-album-context > i { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-section-label { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup :is(.es-photo-title,.wf-photo-friendly-title) { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-metadata { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-meta-label { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es .wf-photo-directions-link { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-member #es .wf-photo-directions-link:hover { border-color: var(--wf-theme-border); background: var(--wf-theme-raised); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-camera { border-block-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-camera summary { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-camera-field dt { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-camera-field dd { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-audience :is(.es-privacy-toggle,.es-privacy-toggle-label) { border-color: var(--wf-theme-border) !important; background: var(--wf-theme-surface) !important; color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-sidebar-response :is(.es-reaction-option__link,[data-repost-action]) { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-sidebar-response :is(.es-reaction-option__link,[data-repost-action]):hover { background: var(--wf-theme-raised); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-sidebar-response .es-reaction-option__link.is-active { background: var(--wf-theme-soft); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-sidebar-response [data-es-repost-counter] { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-sidebar-response .es-actions__item-comment { background: transparent; border-top-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-sidebar-response .es-comments-control { background: transparent; }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-sidebar-response .es-comments-control__stats { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-sidebar-response .es-comments-form { background: transparent; }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-sidebar-response .es-comments-form .mentions { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-sidebar-response .es-comments-form textarea { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-sidebar-response .es-comments-form [data-mentions-textarea] { background: transparent !important; }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-sidebar-response .es-comments-control__load { background: transparent; }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-sidebar-response .es-comments-wrap { background: transparent; }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-sidebar-response .es-comments-form .es-form { background: transparent; }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-sidebar-response .es-comments-form .mentions:focus-within { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] body.wf-member #es .wf-photo-details-form .wf-photo-edit-metadata { border-top-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] body.wf-member #es .wf-photo-details-form .wf-photo-date-trigger { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-member #es .wf-photo-details-form .wf-photo-date-trigger::before { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es .wf-photo-details-form .wf-photo-date-trigger:hover { border-color: var(--wf-theme-border); background: var(--wf-theme-raised); }
html[data-wf-theme="dark"] body.wf-member #es .wf-photo-details-form .wf-photo-date-fields { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] body.wf-member #es .wf-photo-details-form .wf-photo-date-fields .o-form-control { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-member #es .wf-photo-details-form .wf-photo-location-search { background: transparent; }
html[data-wf-theme="dark"] body.wf-member #es .wf-photo-details-form .wf-photo-location-label > span { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es .wf-photo-details-form .wf-photo-location-search-icon { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es .wf-photo-details-form .wf-photo-location-widget [data-location-textField] { border-color: var(--wf-theme-border) !important; background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-member #es .wf-photo-details-form .wf-photo-location-widget [data-location-textField]:focus { background: var(--wf-theme-surface); border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] body.wf-member #es .wf-photo-details-form .wf-photo-location-hint { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es .wf-photo-details-form .wf-photo-location-widget [data-detect-location-button] { border-color: var(--wf-theme-border) !important; background: var(--wf-theme-surface) !important; color: var(--wf-theme-muted) !important; }
html[data-wf-theme="dark"] body.wf-member #es .wf-photo-details-form .wf-photo-location-widget [data-location-autocomplete] { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] body.wf-member #es .wf-photo-details-form .wf-photo-location-editor.has-data .wf-photo-location-selected { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es .wf-photo-details-form .wf-photo-location-selected-label { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es .wf-photo-details-form .wf-photo-remove-location { background: transparent; color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es .wf-photo-details-form .wf-photo-remove-location:hover { color: var(--wf-theme-danger); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] body.wf-member #es .wf-photo-details-form .wf-photo-location-widget .es-location-textbox { background: transparent; }
html[data-wf-theme="dark"] body.wf-member #es [data-photo-locales-panel] .o-card { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] body.wf-member #es [data-photo-locales-panel] .o-card__hd { color: var(--wf-theme-text); border-bottom-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] body.wf-member #es [data-photo-locales-panel] .help-block { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es [data-photo-locales-panel] .peace-locales-language-tab { background: var(--wf-theme-surface); color: var(--wf-theme-text); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] body.wf-member #es [data-photo-locales-panel] .peace-locales-language-tab.is-active { background: var(--wf-mac-accent-soft, var(--wf-theme-soft)); border-color: var(--wf-theme-primary); color: var(--wf-theme-link); }
html[data-wf-theme="dark"] body.wf-member #es [data-photo-locales-panel] .peace-locales-language-pane-head { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es [data-photo-locales-panel] .peace-locales-section-label,
html[data-wf-theme="dark"] body.wf-member #es [data-photo-locales-panel] .o-form-label { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es [data-photo-locales-panel] :is(input[type="text"],textarea,select) { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-member #es [data-photo-locales-panel] :is(input,textarea):disabled { color: var(--wf-theme-muted); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] body.wf-member #es [data-photo-locales-status] { border-color: var(--wf-theme-border); color: var(--wf-theme-muted); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] body.wf-member #es [data-photo-locales-status] button { border-color: var(--wf-theme-border); color: var(--wf-theme-text); background: var(--wf-theme-surface); }

/* Photo viewer browse */
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup.wf-album-viewer:not(.wf-gallery-editing) { background: #071719e8; color: #eef4ee; }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup.wf-album-viewer:not(.wf-gallery-editing) .es-popup-viewport { border-color: #ffffff20; background: #111e21; }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup.wf-album-viewer:not(.wf-gallery-editing) .wf-photo-viewer-item.layout-item > .es-photo-header { border-bottom-color: #ffffff12; background: #152528; }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup.wf-album-viewer [data-wf-gallery-album] { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup.wf-album-viewer [data-wf-gallery-title] { color: #f0f5ed; }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup.wf-album-viewer:not(.wf-gallery-editing) :is(.wf-photo-view-options, [data-wf-gallery-details], .wf-photo-view-close button) { border-color: #ffffff28 !important; background: #263b3e !important; color: #f0f5ed !important; }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup.wf-album-viewer:not(.wf-gallery-editing) [data-wf-gallery-details][aria-expanded="true"] { border-color: var(--wf-theme-border) !important; background: var(--wf-theme-soft) !important; color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup.wf-album-viewer:not(.wf-gallery-editing) .wf-photo-viewer-item.layout-item > .es-photo-content { background: radial-gradient(ellipse at center, #1b292a, #0c171a 80%); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup.wf-album-viewer:not(.wf-gallery-editing) .wf-photo-viewer-item.layout-item > .es-photo-footer { border-inline-start-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup.wf-album-viewer:not(.wf-gallery-editing) .wf-photo-album-context { background: var(--wf-theme-soft); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup.wf-album-viewer:not(.wf-gallery-editing) .es-photo-nav-button { border-color: #ffffff50; background: #243b3ed9; color: #f0f5ed; }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup.wf-album-viewer .wf-gallery-download { border-color: #ffffff66; background: #142c30e6; color: #fff; }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup.wf-album-viewer :is(.wf-gallery-download, .es-photo-nav-button):hover:not(.disabled) { background: #36574fe8; border-color: var(--wf-theme-border); color: #fff; }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup.wf-album-viewer .wf-gallery-filmstrip { border-color: #ffffff20; border-top-color: #ffffff12; background: #152528; color: #e5efe1; }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup.wf-album-viewer .wf-gallery-filmstrip-heading { color: #c6d8c9; }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup.wf-album-viewer .wf-gallery-filmstrip-heading > :last-child { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup.wf-album-viewer .wf-gallery-filmstrip-track::-webkit-scrollbar-thumb { background: #4e6760; }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup.wf-album-viewer .wf-gallery-thumb { border-color: #ffffff30; background: #273a3c; color: #eef4ea; }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup.wf-album-viewer .wf-gallery-thumb > span { background: #10211de6; color: #fff; }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup.wf-album-viewer .wf-gallery-thumb[aria-current="true"] { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup.wf-album-viewer .wf-gallery-swipe { border-color: #ffffff20; background: #152528; color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup.wf-album-viewer .wf-gallery-status { border-color: #ffffff25; background: #183137f2; color: #edf5e9; }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup.wf-album-viewer .wf-gallery-status button { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup.wf-album-viewer .wf-gallery-shell-close { border-color: #ffffff28; background: #263b3e; color: #f0f5ed; }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup.wf-album-viewer.wf-gallery-tagging .es-popup-viewport { border-bottom-color: #ffffff20; }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup.wf-album-viewer.wf-gallery-tagging .es-photo-hint.tag-hint.alert { border-color: #ffffff30; background: #21393cf5; color: #eef4ee; }
@media (orientation: landscape) and (max-height: 500px) and (max-width: 1000px) {
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup.wf-album-viewer .wf-gallery-filmstrip { border-bottom-color: #ffffff20; }
}
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item > .es-album-content { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item .wf-album-browse-action { border-color: var(--wf-theme-primary); background: var(--wf-theme-primary); color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item .wf-album-browse-action:hover { border-color: #b3ddcb; background: #b3ddcb; color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item [data-photo-viewport] { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-albums .wf-album-workspace.layout-item .es-album-taglist { background: var(--wf-theme-soft); }

/* Native face tagging is also mounted inside the body-level photo viewer. */
html[data-wf-theme="dark"] body.wf-member #es .es-photo-tag-item .es-photo-tag-form > div {
  background: var(--wf-theme-raised);
  color: var(--wf-theme-text);
  border-color: var(--wf-theme-border);
  box-shadow: var(--wf-theme-shadow);
}
html[data-wf-theme="dark"] body.wf-member #es .es-photo-tag-item .es-photo-tag-form > i::before { border-bottom-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] body.wf-member #es .es-photo-tag-item .es-photo-tag-form > i::after { border-bottom-color: var(--wf-theme-raised); }
html[data-wf-theme="dark"] body.wf-member #es .es-photo-tag-item .es-photo-tag-input {
  background: var(--wf-theme-input) !important;
  border-color: var(--wf-theme-border) !important;
  color: var(--wf-theme-text) !important;
  -webkit-text-fill-color: var(--wf-theme-text);
  caret-color: var(--wf-theme-text);
}
html[data-wf-theme="dark"] body.wf-member #es .es-photo-tag-item .es-photo-tag-input::placeholder {
  color: var(--wf-theme-muted) !important;
  -webkit-text-fill-color: var(--wf-theme-muted);
  opacity: 1;
}
html[data-wf-theme="dark"] body.wf-member #es .es-photo-tag-item .es-photo-tag-input:focus-visible {
  outline: 2px solid var(--wf-theme-accent);
  outline-offset: -2px;
}
html[data-wf-theme="dark"] body.wf-member #es .es-photo-tag-item .es-photo-tag-menu-item {
  color: var(--wf-theme-text);
  border-color: var(--wf-theme-border);
}
html[data-wf-theme="dark"] body.wf-member #es .es-photo-tag-item .es-photo-tag-menu-item:is(.active, :hover, :focus-visible) {
  background: var(--wf-theme-soft);
  color: var(--wf-theme-link);
}
html[data-wf-theme="dark"] body.wf-member #es .es-photo-tag-item .es-photo-tag-menu-name { color: inherit; }
html[data-wf-theme="dark"] body.wf-member #es .es-photo-tag-form .es-photo-tag-remove-button { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es .es-photo-tag-form .es-photo-tag-remove-button:hover { color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] body.wf-member #es .es-photo-tag-form .es-photo-tag-remove-button > i { color: inherit; }

/* Photo page */
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .wf-photo-page-heading > a { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .wf-photo-page-heading > a:hover { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .wf-photo-page-heading h1 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page :is(.es-photo-browser,.es-content,[data-photo-browser-content]) { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page [data-photo-browser-content] > .es-photo-item { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .es-photo-header > .o-media { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .es-photo-album { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .es-photo-header [data-photo-menu] { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .es-photo-header [data-photo-menu] .btn { border-color: var(--wf-theme-border) !important; color: var(--wf-theme-text) !important; background: var(--wf-theme-surface) !important; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .es-photo-header [data-photo-menu] .btn:hover { background: var(--wf-theme-raised) !important; border-color: var(--wf-theme-border) !important; }
/* Share and Report render their own links inside the button wrappers. */
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .es-photo-header [data-photo-menu] .btn:is([data-photo-share-button], [data-photo-report-button]) :is(a, i, span) { color: inherit !important; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .es-photo-header [data-photo-menu] [data-photo-done-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-member .wf-component #es.view-photos .wf-photo-page .es-photo-header [data-photo-menu] [data-photo-done-button]:hover { background: #b3ddcb !important; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .es-photo-header .wf-album-photo-rotation .btn { background: var(--wf-theme-soft) !important; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .es-photo-content { border-color: #233b36; background: #182c28; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .es-photo-content .es-photo { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .es-photo-content .es-photo-image { background-color: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .es-photo-header > :is([data-photo-form],[data-photo-info]) { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .wf-photo-details-heading { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .es-photo-form-fields { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .wf-photo-details-label { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page :is(.es-photo-title-field,.es-photo-caption-field) { border-color: var(--wf-theme-border) !important; background: var(--wf-theme-surface); color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page :is(.es-photo-title-field,.es-photo-caption-field):focus { border-color: var(--wf-theme-border) !important; background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .wf-photo-edit-metadata { border-block-start-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .wf-photo-rotation-note { background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .es-photo-form .es-photo-privacy { border-block-start-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .es-photo-form .es-privacy-toggle { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .wf-photo-page-languages { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .wf-photo-page-languages > summary { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .wf-photo-page-languages[open] > summary { border-block-end-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .wf-photo-page-languages [data-photo-locales-panel] > .o-card { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .es-photo-title { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .es-photo-caption { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .wf-photo-metadata { border-block-start-color: var(--wf-theme-border); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es .wf-photo-info > .wf-photo-metadata > span { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .es-photo-footer { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .es-media-stats { border-block-end-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .es-media-stat b { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .es-media-stat span { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .es-photo-exif { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .es-comments-form { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-photos .wf-photo-page .es-comments-form [data-comments-form-submit] { background: var(--wf-theme-primary) !important; color: var(--wf-theme-on-primary) !important; border-color: var(--wf-theme-primary) !important; }

/* Photo menu */
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-settings > .wf-photo-settings-menu { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-settings-menu > .wf-photo-settings-heading { border-bottom-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-settings-heading strong { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-settings-heading small { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-settings-heading button { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-settings-menu > li > a { color: var(--wf-theme-text); background: transparent; }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-settings-menu > li > a > i { background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-settings-menu > li > a small { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-settings-menu > li > a:hover,
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-settings-menu > li > a:focus-visible { background: var(--wf-theme-raised); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-settings-menu > .divider { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-settings-menu > .wf-photo-settings-danger { border-top-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-settings-menu > .wf-photo-settings-danger > a { color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-settings-menu > .wf-photo-settings-danger > a > i { background: var(--wf-theme-danger-bg); color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-settings-menu > .wf-photo-settings-danger > a:hover,
html[data-wf-theme="dark"] body.wf-member #es.es-photo-popup .wf-photo-settings-menu > .wf-photo-settings-danger > a:focus-visible { background: var(--wf-theme-danger-bg); }

/* Photo grid menu */
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-photo-grid-settings > [data-es-toggle="dropdown"] { color: var(--wf-theme-text); background: var(--wf-theme-surface); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-photo-grid-settings > .wf-photo-grid-settings-menu { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-photo-grid-settings-menu > .wf-photo-grid-settings-heading { border-bottom-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-photo-grid-settings-heading strong { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-photo-grid-settings-heading small { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es [data-wf-photo-grid-settings-close] { background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-photo-grid-settings-menu > li > a { color: var(--wf-theme-text); background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-photo-grid-settings-menu > li > a > i { background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-photo-grid-settings-menu a small { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-photo-grid-settings-menu > li > a:hover,
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-photo-grid-settings-menu > li > a:focus-visible { color: var(--wf-theme-text); background: var(--wf-theme-raised); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-photo-grid-settings-menu > .divider { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-photo-grid-settings-menu > .wf-photo-grid-settings-danger { border-top-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-photo-grid-settings-menu > .wf-photo-grid-settings-danger > a { color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-photo-grid-settings-menu > .wf-photo-grid-settings-danger > a > i { background: var(--wf-theme-danger-bg); color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-photo-grid-settings-menu > .wf-photo-grid-settings-danger > a:hover { background: var(--wf-theme-danger-bg); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.is-mobile .wf-photo-grid-settings > .wf-photo-grid-settings-menu { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.is-mobile .wf-photo-grid-settings > .dropdown-backdrop { background: rgba(15,32,34,.52); }

/* Photo dialogs */
html[data-wf-theme="dark"] .wf-member #es.es-dialog:has(:is(.wf-photo-move,.wf-photo-delete)) .es-dialog-modal { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member #es.es-dialog:has(:is(.wf-photo-move,.wf-photo-delete)) .es-dialog-header { background: transparent; color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es.es-dialog:has(:is(.wf-photo-move,.wf-photo-delete)) :is(.es-dialog-body,.es-dialog-container) { background: transparent; }
html[data-wf-theme="dark"] .wf-member #es :is(.wf-photo-move,.wf-photo-delete) .wf-photo-dialog-icon { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-delete .wf-photo-dialog-icon { border-color: var(--wf-theme-border); background: var(--wf-theme-danger-bg); color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] .wf-member #es :is(.wf-photo-move,.wf-photo-delete) p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-delete .wf-photo-delete-warning { color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-move .wf-photo-empty-help { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-move .wf-photo-album-field label { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-move .wf-photo-album-select::after { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-move [data-album-selection] { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-move [data-wf-album-trigger] { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-move [data-wf-album-trigger] > i { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-move [data-wf-album-trigger][aria-expanded="true"] { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-move .wf-photo-album-panel { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-move .wf-photo-album-search { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-move .wf-photo-album-search > i { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-move [data-wf-album-search] { background: transparent !important; color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-move [data-wf-album-search]::placeholder { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-move .wf-photo-album-search:focus-within { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-move [data-wf-album-clear] { background: transparent; color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-move [data-wf-album-clear]:hover { background: var(--wf-theme-raised); }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-move [data-wf-album-option] { background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-move [data-wf-album-option] > i { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-move [data-wf-album-option]:hover,
html[data-wf-theme="dark"] .wf-member #es .wf-photo-move [data-wf-album-option].is-active { border-color: var(--wf-theme-border); background: var(--wf-theme-raised); }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-move [data-wf-album-option][aria-selected="true"] { background: var(--wf-theme-raised); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-move .wf-photo-album-empty { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es.es-dialog:has(:is(.wf-photo-move,.wf-photo-delete)) .es-dialog-footer { border-top-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member #es.es-dialog:has(:is(.wf-photo-move,.wf-photo-delete)) [data-cancel-button] { border-color: var(--wf-theme-border) !important; background: var(--wf-theme-surface) !important; color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-member #es.es-dialog:has(.wf-photo-move) [data-move-button] { border-color: var(--wf-theme-primary) !important; background: var(--wf-theme-primary) !important; color: var(--wf-theme-on-primary) !important; }
html[data-wf-theme="dark"] .wf-member #es.es-dialog:has(.wf-photo-delete) [data-delete-button] { border-color: #a43e35 !important; background: #a43e35 !important; color: #fff !important; }

/* Photo share */
html[data-wf-theme="dark"] .wf-member .wf-photo-share { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-photo-share::backdrop { background: #071d26a6; }
html[data-wf-theme="dark"] .wf-member .wf-photo-share-header h2 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-photo-share-header button { background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-photo-share-preview { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-photo-share .wf-photo-share-preview p { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-photo-share p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-photo-share-access { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-photo-share-access button { background: transparent; color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-photo-share-access button[aria-pressed="true"] { background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-photo-share label { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-photo-share :is(select,input) { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-photo-share-preferences legend { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-photo-share-preference + .wf-photo-share-preference { border-top-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-photo-share-switch span { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-photo-share .wf-photo-share-switch input { border-color: var(--wf-theme-border); background: #a6b4ac; }
html[data-wf-theme="dark"] .wf-member .wf-photo-share .wf-photo-share-switch input:checked { background: #287556; border-color: #287556; }
html[data-wf-theme="dark"] .wf-member .wf-photo-share .wf-photo-share-preference p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-photo-share .wf-photo-guest-permissions { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-photo-share [data-photo-guest-create] { background: var(--wf-theme-primary); color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] .wf-member .wf-photo-share .wf-photo-guest-expiry { border-color: var(--wf-theme-border); background: var(--wf-theme-success-bg); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-photo-share .wf-photo-share-status { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-photo-share-options > :is(a,button) { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-photo-share-options > :is(a,button):hover,
html[data-wf-theme="dark"] .wf-member .wf-photo-share-options > [aria-expanded="true"] { background: var(--wf-theme-raised); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-photo-share-options .wf-photo-share-icon { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-photo-share-options .wf-photo-share-whatsapp { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-photo-share-options .wf-photo-share-wechat { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-photo-wechat { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-photo-share .wf-photo-wechat > p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-photo-share .wf-photo-phone-share { border-color: var(--wf-theme-primary); background: var(--wf-theme-primary); color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] .wf-member .wf-photo-share .wf-photo-phone-share:hover { background: #b3ddcb; border-color: #b3ddcb; color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] .wf-member .wf-photo-share [data-photo-native-share-hint] { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-photo-guest-manage { border-top-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-photo-guest-manage summary { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-photo-share [data-photo-guest-links] { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-photo-guest-link { border-top-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-photo-guest-link button { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] .wf-member .wf-photo-share .wf-photo-guest-note { color: var(--wf-theme-muted); }

/* People pets */
html[data-wf-theme="dark"] .wf-member #es .wf-pp { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-hero { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-heading h1 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-heading p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-heading-icon { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-heading-icon i:last-child { background: var(--wf-theme-surface); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-private { border-top-color: var(--wf-theme-border); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp button { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp button:hover { background: var(--wf-theme-raised); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp button.wf-pp-primary { color: var(--wf-theme-on-primary); border-color: var(--wf-theme-primary); background: var(--wf-theme-primary); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp button.wf-pp-primary:hover { background: #b3ddcb; }
html[data-wf-theme="dark"] .wf-member #es .wf-pp button.wf-pp-danger { color: var(--wf-theme-danger); background: var(--wf-theme-danger-bg); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp button[aria-pressed=true] { background: var(--wf-theme-primary); border-color: var(--wf-theme-primary); color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-library-heading h2 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-library-heading p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-total { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-filters { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-filters button { border-color: transparent; background: transparent; }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-search { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-search:focus-within { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-search input { background: transparent; color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-card { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-card:hover,
html[data-wf-theme="dark"] .wf-member #es .wf-pp-card:focus-within { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-card > button.wf-pp-open { background: transparent; color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-portrait { background: var(--wf-theme-soft); border-color: var(--wf-theme-border); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-card-meta { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-card > .wf-pp-icon { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-card > .wf-pp-icon:not([aria-pressed=true]) { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-card > .wf-pp-icon[aria-pressed=true],
html[data-wf-theme="dark"] .wf-member #es .wf-pp-detail-actions > .wf-pp-icon[aria-pressed=true] { color: var(--wf-theme-warning); background: var(--wf-theme-warning-bg); border-color: #e7d8b5; }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-card-footer { border-top-color: var(--wf-theme-border); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-review { color: var(--wf-theme-warning); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-pagination { border-top-color: var(--wf-theme-border); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-feedback { border-inline-start-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-feedback.is-error { color: var(--wf-theme-danger); background: var(--wf-theme-danger-bg); border-inline-start-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-progress { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-progress.has-error { background: var(--wf-theme-soft); border-color: #e9e2d0; color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-empty { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-empty > i { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-empty h3 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-empty p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-detail-topbar .wf-pp-back { border-color: transparent; background: transparent; color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-detail-topbar .wf-pp-back:hover { color: var(--wf-theme-text); background: transparent; }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-overview { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-detail-heading .wf-pp-detail-eyebrow { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-detail-heading h2 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-detail-heading p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-detail-actions button[data-pp-action=hide],
html[data-wf-theme="dark"] .wf-member #es .wf-pp-detail-actions button[data-pp-action=show] { border-color: transparent; color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-gallery-heading h3,
html[data-wf-theme="dark"] .wf-member #es .wf-pp-photo-heading { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-gallery-summary { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-selection { background: var(--wf-theme-soft); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-selection > span { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-photo { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-photo:hover { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-photo > button { background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-photo > button:hover { background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-photo-media { background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-photo label { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-photo.is-selected { border-color: #39735f; }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-photo.is-selected .wf-pp-photo-caption { background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-suggestions { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-suggestions p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-matches { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-matches-heading > i { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-matches-heading h3 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-matches-heading p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp button.wf-pp-match-open { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp button.wf-pp-match-open:hover { border-color: var(--wf-theme-border); background: var(--wf-theme-raised); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-match-copy strong { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-match-copy small { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-match-link { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp button.wf-pp-match-open > i { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-dialog { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-dialog::backdrop { background: #17342f80; }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-dialog header { border-bottom-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-dialog h3 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-dialog-body p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-dialog-body label { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-dialog-body :is(input,select) { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-dialog footer { border-top-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-match-portraits figcaption small { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-match-portraits figcaption strong { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-match-dialog .wf-pp-match-hint { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-form-error { color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-skeleton { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-skeleton span { background: var(--wf-theme-soft); }
@container people-pets (max-width:600px) {
html[data-wf-theme="dark"] .wf-member #es .wf-pp-detail-actions { border-top-color: var(--wf-theme-border); }
}
html[data-wf-theme="dark"] .wf-member #es .wf-pp-name-language { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-name-locales { border-top-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-name-locales h4 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp .wf-pp-name-tabs button { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp .wf-pp-name-tabs button[aria-selected=true] { border-color: var(--wf-theme-primary); background: var(--wf-theme-primary); color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-name-pane { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-name-pane input { background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-name-dialog .wf-pp-name-status { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-name-status.is-manual { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-name-dialog footer { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-cover-picker { border-top-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-cover-picker h4 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-cover-status { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-cover-status.is-error { color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-cover-grid button[data-pp-cover-id] { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-cover-grid button[data-pp-cover-id]:hover { border-color: var(--wf-theme-border); background: var(--wf-theme-raised); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-cover-grid button[data-pp-cover-id][aria-pressed=true] { border-color: #39735f; background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-cover-grid button[data-pp-cover-id] > i { border-color: var(--wf-theme-border); background: #39735f; color: #fff; }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-name-dialog .wf-pp-cover-footer { background: transparent; }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-card > button.wf-pp-icon,
html[data-wf-theme="dark"] .wf-member #es .wf-pp-card > button.wf-pp-icon[aria-pressed] { background: transparent; }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-card > button.wf-pp-icon > i { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-card > button.wf-pp-icon[aria-pressed=true] > i { border-color: #e7d8b5; background: var(--wf-theme-warning-bg); }
html[data-wf-theme="dark"] .wf-member #es .wf-pp-card > button.wf-pp-icon:hover > i { border-color: var(--wf-theme-border); }

/* Media people */
html[data-wf-theme="dark"] .wf-member #es .wf-media-people { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-media-people .wf-media-people-heading { border-block-end-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member #es .wf-media-people .wf-media-people-heading > i { background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-media-people .wf-media-people-heading > h3 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-media-people [data-wf-media-people-count] { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-media-people .wf-media-people-status { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-media-people[aria-busy="true"] .wf-media-people-status::before { border-color: var(--wf-theme-border); border-block-start-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member #es .wf-media-people .wf-media-people-group + .wf-media-people-group { border-block-start-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member #es .wf-media-people .wf-media-people-group > h4 { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-media-people .wf-media-person { background: transparent; color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-media-people a.wf-media-person:hover { border-color: var(--wf-theme-border); background: var(--wf-theme-raised); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-media-people .wf-media-person-portrait { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-media-people .wf-media-person-copy > small { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-media-people .wf-media-people-private { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-media-people .wf-media-people-manage { border-block-start-color: var(--wf-theme-border); background: transparent; color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-media-people .wf-media-people-manage:hover { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-media-people :is([data-wf-media-people-retry], [data-wf-media-people-more]) { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-media-people :is([data-wf-media-people-retry], [data-wf-media-people-more]):hover { border-color: var(--wf-theme-border); background: var(--wf-theme-raised); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-media-people .wf-media-person-suggest { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-media-match-dialog { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-media-match-dialog::backdrop { background: rgb(10 32 36 / 55%); }
html[data-wf-theme="dark"] .wf-media-match-dialog > header { border-bottom-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-media-match-dialog h2 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-media-match-dialog .wf-media-match-close { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-media-match-heading > p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-media-match-body > p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-media-match-portrait { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-media-match-dialog button { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-media-match-dialog button.is-primary { border-color: var(--wf-theme-primary); background: var(--wf-theme-primary); color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] .wf-media-match-dialog > footer { border-top-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-media-match-dialog .wf-media-match-error:not(:empty) { color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] .wf-media-match-manage { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-media-match-loading::before { border-color: var(--wf-theme-border); border-top-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member #es .wf-media-people .wf-media-person-entry { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member #es .wf-media-people .wf-media-person > .fa-chevron-right { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-media-name-summary figcaption { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-media-name-summary > p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-media-name-form > label { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-media-name-form > input { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-media-name-form > input::placeholder { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-media-name-form > input[aria-invalid="true"] { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-media-name-choice { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-media-name-existing { border-top-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-media-name-existing > h3 { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-media-match-dialog .wf-media-name-option { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-media-match-dialog .wf-media-name-option[aria-pressed="true"] { background: var(--wf-theme-soft); border-color: var(--wf-theme-border); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-media-name-status { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-media-name-scope { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-media-match-dialog .wf-media-match-manage { border-top-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-media-match-dialog .wf-media-name-alternative { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-media-name-success > p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-media-name-confirmation > p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-media-name-success-mark { background: var(--wf-theme-success-bg); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-person { background: transparent; }
html[data-wf-theme="dark"] .wf-photo-person-portrait { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-person-badge { border-color: var(--wf-theme-border); background: #2481b4; color: #fff; }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-person-badge.is-member { background: #386858; }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-person:hover { background: #8ca69715; }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-person[aria-expanded="true"] .wf-photo-person-portrait { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-person-more .wf-photo-person-portrait { background: transparent; }
html[data-wf-theme="dark"] .wf-person-menu { border-color: var(--wf-theme-border); background: var(--wf-person-menu-bg); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-person-menu::backdrop { background: #0002; }
html[data-wf-theme="dark"] .wf-person-menu-heading { border-bottom-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-person-menu-heading p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-person-menu-close { background: transparent; color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-person-menu .wf-person-menu-action { background: transparent; color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-person-menu .wf-person-menu-action.is-destructive { border-top-color: var(--wf-theme-border); color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] .wf-person-menu :is(.wf-person-menu-action, .wf-person-menu-close):hover { background: var(--wf-person-menu-hover); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-person-menu .wf-person-menu-action.is-destructive:hover { color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] .wf-person-menu-hint { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-person-menu-error { color: var(--wf-theme-danger); }

/* Shared media/event filters: native buttons use important light fills, and the
   horizontal sliders own white edge fades in both directions. */
html[data-wf-theme="dark"] .wf-member .wf-component #es:is(.view-videos, .view-albums, .view-events) .es-mobile-filter-slider__btn {
  background-color: var(--wf-theme-raised) !important;
  color: var(--wf-theme-link) !important;
  border-color: var(--wf-theme-border) !important;
}
html[data-wf-theme="dark"] .wf-member .wf-component #es:is(.view-videos, .view-albums, .view-events) .es-mobile-filter-slider__btn:is(:hover, :focus, :active) {
  background-color: var(--wf-theme-soft) !important;
  color: var(--wf-theme-text) !important;
  border-color: var(--wf-theme-accent) !important;
}
html[data-wf-theme="dark"] .wf-member .wf-component #es:is(.view-videos, .view-albums, .view-events) .es-mobile-filter-slider__tab { color: var(--wf-theme-muted) !important; border-bottom-color: transparent !important; }
html[data-wf-theme="dark"] .wf-member .wf-component #es:is(.view-videos, .view-albums, .view-events) .es-mobile-filter-slider .is-active > .es-mobile-filter-slider__tab { color: var(--wf-theme-accent) !important; border-bottom-color: var(--wf-theme-accent) !important; }
html[data-wf-theme="dark"] .wf-member .wf-component #es:is(.view-videos, .view-albums, .view-events) .es-mobile-filter-slider:not(.is-end-left)::before { background-image: linear-gradient(to right, var(--wf-theme-raised) 15%, transparent 85%); }
html[data-wf-theme="dark"] .wf-member .wf-component #es:is(.view-videos, .view-albums, .view-events) .es-mobile-filter-slider:not(.is-end-right)::after { background-image: linear-gradient(to right, transparent 15%, var(--wf-theme-raised) 85%); }
html[data-wf-theme="dark"][dir="rtl"] .wf-member .wf-component #es:is(.view-videos, .view-albums, .view-events) .es-mobile-filter-slider:not(.is-end-left)::before { background-image: linear-gradient(to left, var(--wf-theme-raised) 15%, transparent 85%); }
html[data-wf-theme="dark"][dir="rtl"] .wf-member .wf-component #es:is(.view-videos, .view-albums, .view-events) .es-mobile-filter-slider:not(.is-end-right)::after { background-image: linear-gradient(to left, transparent 15%, var(--wf-theme-raised) 85%); }

/* Videos */
html .wf-member .wf-component #es.view-videos .wf-video-browser .o-pagination > li > :is(a, span) { background: var(--wf-theme-surface); border-color: var(--wf-theme-border); color: var(--wf-theme-link); }
html .wf-member .wf-component #es.view-videos .wf-video-browser .o-pagination > li:not(.disabled) > a:not(.disabled):is(:hover, :focus-visible) { background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html .wf-member .wf-component #es.view-videos .wf-video-browser .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 .wf-member .wf-component #es.view-videos .wf-video-browser .o-pagination > li.disabled > :is(a, span),
html .wf-member .wf-component #es.view-videos .wf-video-browser .o-pagination > li > a.disabled { background: var(--wf-theme-surface); border-color: var(--wf-theme-border); color: var(--wf-theme-muted); }
html .wf-member .wf-component #es.view-videos .wf-video-browser .o-pagination > li > a:not(.disabled):focus-visible { outline: 2px solid var(--wf-theme-accent); outline-offset: -3px; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-videos-heading { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-videos-heading h1 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-videos-heading p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-videos-page .es-mobile-filter { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-videos-page .es-mobile-filter__hd { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-videos-page .es-mobile-filter-slider .is-active .es-mobile-filter-slider__btn { color: #fff!important; background-color: var(--wf-video-teal)!important; border-color: var(--wf-video-teal)!important; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-videos-page .es-mobile-filter-slider .is-active .es-mobile-filter-slider__tab { color: var(--wf-theme-link); border-bottom-color: var(--wf-video-teal); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-videos-page .es-snackbar2 { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-videos-page .es-snackbar2__title { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-videos-page .es-card { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-videos-page .es-card__cover { background-color: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-videos-page .es-card__bd { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-videos-page .es-card__title { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-videos-page .es-card__title a { color: var(--wf-theme-link); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-videos-page .es-card__meta { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-videos-page .es-card__ft { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-videos-empty { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-videos-empty__icon { background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-videos-empty h2 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-videos-empty p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos [data-videos-form] { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos [data-videos-form] .es-forms__title { border-block-end-color: var(--wf-theme-border); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos [data-videos-form] .o-control-label { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos [data-videos-form] :is(input.o-form-control,select.o-form-control,textarea.o-form-control) { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos [data-videos-form] .help-block { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos [data-videos-form] .es-forms__actions { border-block-start-color: var(--wf-theme-border); background: var(--wf-theme-soft); }

/* The language editor is injected after the native description field on both
   new and existing videos. Theme its own surfaces as well as the form inputs. */
html[data-wf-theme="dark"] body.wf-member #es form[data-videos-form] [data-video-locales-panel] { background: var(--wf-theme-raised); border-color: var(--wf-theme-border); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-member #es form[data-videos-form] [data-video-locales-panel] :is(.wf-video-locales-heading, .wf-video-locales-pane-heading) { color: var(--wf-theme-text); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] body.wf-member #es form[data-videos-form] [data-video-locales-panel] label { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-member #es form[data-videos-form] [data-video-locales-panel] :is(.wf-video-locales-note, .wf-video-locales-help) { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member #es form[data-videos-form] [data-video-locales-panel] .wf-video-locales-tab { background: var(--wf-theme-surface); border-color: var(--wf-theme-border); color: var(--wf-theme-link); }
html[data-wf-theme="dark"] body.wf-member #es form[data-videos-form] [data-video-locales-panel] .wf-video-locales-tab:hover { background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-member #es form[data-videos-form] [data-video-locales-panel] .wf-video-locales-tab[aria-selected="true"] { background: var(--wf-theme-primary); border-color: var(--wf-theme-primary); color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] body.wf-member #es form[data-videos-form] [data-video-locales-panel] .wf-video-locales-input { background: var(--wf-theme-input); border-color: var(--wf-theme-border); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-member #es form[data-videos-form] [data-video-locales-panel] .wf-video-locales-input:disabled {
  background: var(--wf-theme-soft) !important;
  color: var(--wf-theme-muted) !important;
  -webkit-text-fill-color: var(--wf-theme-muted);
}
html[data-wf-theme="dark"] body.wf-member #es form[data-videos-form] [data-video-locales-panel] .wf-video-locales-flag { background: var(--wf-theme-soft); color: var(--wf-theme-text); }

/* Video library */
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-browser .wf-videos-heading { background: transparent; }
html[data-wf-theme="dark"] .wf-member:not(.wf-shorts-mode) .wf-component #es.view-videos .wf-video-browser .wf-shorts-tabs { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member:not(.wf-shorts-mode) .wf-component #es.view-videos .wf-video-browser .wf-shorts-tabs button[aria-pressed=true] { color: var(--wf-theme-on-primary); background: var(--wf-theme-primary); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-browser .wf-shorts-tabs button:disabled { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-browser .wf-videos-page .es-mobile-filter__hd { border-bottom-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-browser .wf-videos-page .es-mobile-filter-slider__btn { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-browser .wf-videos-page .es-mobile-filter-slider .is-active .es-mobile-filter-slider__btn { background: var(--wf-theme-soft)!important; border-color: var(--wf-theme-border)!important; color: var(--wf-theme-text)!important; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-browser .wf-videos-page .es-mobile-filter-slider .is-active .es-mobile-filter-slider__tab { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-saved-filters-empty > i { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-saved-filters-empty h2 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-saved-filters-empty p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-browser .wf-video-collection__icon { color: var(--wf-theme-muted); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-browser .wf-video-collection h2 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-browser .wf-video-collection p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-browser .wf-video-collection__actions :is(.btn,.btn-popdown) { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-browser .wf-video-collection--pending { border-color: #e8dec8; background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-browser .wf-video-collection--pending .wf-video-collection__icon { color: var(--wf-theme-warning); background: var(--wf-theme-warning-bg); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-browser .wf-video-card:hover { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-browser .wf-video-card .es-card__cover { background-color: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-browser .wf-video-play { border-color: #ffffff9c; background: #102b32a8; color: #fff; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-browser .wf-video-card a:hover .wf-video-play { background: #1c5360; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-browser .wf-video-card .es-card__title a { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-browser .wf-video-card .es-card__title a:hover { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-browser .wf-video-card .es-card__ft { background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-browser .wf-video-card .es-card__ft .g-list-flex { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-browser .wf-video-card .es-card__video-time { background: #152b35c9; color: #fff; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-browser .wf-video-card .es-card__admin-action .dropdown-toggle_ { border-color: var(--wf-theme-border); color: var(--wf-theme-text); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-browser .wf-video-processing-preview { border-color: var(--wf-theme-border); background: linear-gradient(135deg,var(--wf-theme-soft),var(--wf-theme-soft)); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-browser .wf-video-processing-clock { background: var(--wf-theme-surface); color: var(--wf-theme-warning); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-browser .wf-video-status { background: var(--wf-theme-warning-bg); color: var(--wf-theme-warning); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-browser .wf-videos-empty { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-browser .wf-video-empty-action { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }

/* Video categories */
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-category-directory { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-category-heading h2 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-category-heading p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-category-all { border-color: var(--wf-theme-border); color: var(--wf-theme-text); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-category-all:hover { background: var(--wf-theme-raised); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-category-search { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-category-search:focus-within { border-color: #40796c; }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-category-search input { background: transparent; color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-category-search button { background: transparent; color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-category-count { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-category-card { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-category-card:hover { border-color: var(--wf-theme-border); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-category-card.is-current { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-category-icon { background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-category-current { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-category-card h3 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-category-card p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-category-card-bottom { border-block-start-color: var(--wf-theme-border); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-category-arrow { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-category-empty { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-category-empty > i { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-category-empty h3 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-category-empty p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-category-empty button { border-color: var(--wf-theme-primary); background: var(--wf-theme-primary); color: var(--wf-theme-on-primary); }

/* Video form */
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form-heading .wf-video-form-eyebrow { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form-heading h1 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form-heading p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form-card { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form-card h2 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-section-intro { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form .o-control-label { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form :is(input.o-form-control,select.o-form-control,textarea.o-form-control) { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form .help-block { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form .o-radio label { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form .o-radio input:checked + label { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form .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-member .wf-component #es.view-videos .wf-video-form .es-video-dropzone:is(.is-empty:hover,.is-dragover) { border-color: #477e68; background: var(--wf-theme-raised); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form .es-video-dropzone__text { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form .es-video-dropzone__helper { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form .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-member .wf-component #es.view-videos .wf-video-form .es-video-upload-card { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form .es-video-upload-card__fileicon { color: var(--wf-theme-text); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form .es-video-upload-card__filetag { color: var(--wf-theme-text); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form .es-video-upload-card__name { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form .es-video-upload-card__action { color: var(--wf-theme-text); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form :is(.es-video-upload-card__meta,.es-video-upload-card__timing) { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form .es-video-upload-card__status { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form .es-video-upload-card__progress { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form .es-video-upload-card__progress-bar { background: #36796a; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form :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-member .wf-component #es.view-videos .wf-video-form :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-member .wf-component #es.view-videos .wf-video-form .es-video-upload-card.is-error .es-video-upload-card__status { color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form .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-member .wf-component #es.view-videos .wf-video-form .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-member .wf-component #es.view-videos .wf-video-form [data-video-desc-field] textarea:not([data-mentions-textarea]) { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form .wf-video-extra-heading { border-block-start-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-extra-heading h3 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-extra-heading p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form .es-forms__actions { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form .es-forms__actions .o-form-actions { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form .wf-video-extra-heading::after { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-extra-title { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-extra-hint { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form .wf-video-privacy [data-privacy-toggle] { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form .o-radio input:checked + label::before { background: #1c5360; border-color: #1c5360; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-card-heading { border-block-end-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-card-icon { color: var(--wf-theme-muted); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-card-heading p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-current { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-current span { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-current strong { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form :is(input.o-form-control,textarea.o-form-control,select.o-form-control):focus { border-color: #4b8370; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form .textboxlist { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form .textboxlist-textField { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form .textboxlist-item { background: var(--wf-theme-soft); color: var(--wf-theme-text); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form .textboxlist-itemRemoveButton { color: var(--wf-theme-link); opacity: 1; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form .textboxlist-itemRemoveButton:hover { background: var(--wf-theme-raised); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form [data-es-datepicker] .o-input-group__addon { background: var(--wf-theme-soft); border-color: var(--wf-theme-border); color: var(--wf-theme-link); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form [data-es-datepicker] .o-input-group__addon:is(:hover, :focus-visible) { background: var(--wf-theme-raised); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form .es-form-hashtags-wrap { border-color: var(--wf-theme-border); background: var(--wf-theme-input); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form .es-form-hashtags-wrap .mentions > div span { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form :is(.textboxlist, .es-form-hashtags-wrap):focus-within { border-color: var(--wf-theme-accent); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-location-group .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-member .wf-component #es.view-videos .wf-video-location-group .es-location-map { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-location-group .es-location-textbox { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-location-group .es-location-textbox > input { background: transparent; color: var(--wf-theme-text) !important; -webkit-text-fill-color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-location-group .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-member .wf-component #es.view-videos .wf-video-location-group .es-location-textbox > input::placeholder { color: var(--wf-theme-muted); -webkit-text-fill-color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-location-group .es-location-remove-button { color: var(--wf-theme-link); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-location-group .es-location-remove-button:is(:hover, :focus-visible) { background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form :is([data-es-datepicker] .o-input-group__addon, .es-location-remove-button):focus-visible { outline: 2px solid var(--wf-theme-accent); outline-offset: -2px; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-location-group .es-location-form:focus-within { outline: 2px solid var(--wf-theme-accent); outline-offset: -2px; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-location-group .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-member .wf-component #es.view-videos .wf-video-location-group .es-location-suggestion + .es-location-suggestion { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-location-group .es-location-suggestion:is(.active, :hover, :focus-visible) { background: var(--wf-theme-soft); color: var(--wf-theme-accent); }
/* Hashtag suggestions are mounted outside the editor by the native mentions helper. */
html[data-wf-theme="dark"] body.wf-member.view-videos #es.mentions-autocomplete .mentions-autocomplete-inner { 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"] body.wf-member.view-videos #es.mentions-autocomplete .mentions-menuItem { color: var(--wf-theme-text); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] body.wf-member.view-videos #es.mentions-autocomplete .mentions-menuItem:is(.active, :hover, :focus-visible) { background: var(--wf-theme-soft); color: var(--wf-theme-accent); }
html[data-wf-theme="dark"] body.wf-member.view-videos #es.mentions-autocomplete :is(.mentions-autocomplete-empty, .mentions-autocomplete-search) { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form .es-forms__actions [data-save-button] { background: var(--wf-theme-primary); border-color: var(--wf-theme-primary); color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-form .es-forms__actions [data-cancel-button] { background: var(--wf-theme-surface); border-color: var(--wf-theme-border); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member.view-videos #es.bootstrap-datetimepicker-widget { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-member.view-videos #es.bootstrap-datetimepicker-widget .datepicker :is(th,td) { background: transparent; }
html[data-wf-theme="dark"] body.wf-member.view-videos #es.bootstrap-datetimepicker-widget .datepicker thead tr:first-child th { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-member.view-videos #es.bootstrap-datetimepicker-widget .datepicker :is(th.prev,th.next,th.switch):not(.disabled):hover { background: var(--wf-theme-raised); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-member.view-videos #es.bootstrap-datetimepicker-widget .datepicker .dow { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member.view-videos #es.bootstrap-datetimepicker-widget .datepicker td.day { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-member.view-videos #es.bootstrap-datetimepicker-widget .datepicker td.day:not(.disabled):hover { background: var(--wf-theme-raised); }
html[data-wf-theme="dark"] body.wf-member.view-videos #es.bootstrap-datetimepicker-widget .datepicker td:is(.old,.new) { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-member.view-videos #es.bootstrap-datetimepicker-widget :is(.datepicker-months,.datepicker-years) td > span { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-member.view-videos #es.bootstrap-datetimepicker-widget :is(.datepicker-months,.datepicker-years) td > span:not(.disabled):hover { background: var(--wf-theme-raised); }
html[data-wf-theme="dark"] body.wf-member.view-videos #es.bootstrap-datetimepicker-widget .datepicker td.active,
html[data-wf-theme="dark"] body.wf-member.view-videos #es.bootstrap-datetimepicker-widget .datepicker td.active:hover,
html[data-wf-theme="dark"] body.wf-member.view-videos #es.bootstrap-datetimepicker-widget .datepicker td > span.active,
html[data-wf-theme="dark"] body.wf-member.view-videos #es.bootstrap-datetimepicker-widget .datepicker td > span.active:hover { background: #1c5360; color: #fff; }
html[data-wf-theme="dark"] body.wf-member.view-videos #es.bootstrap-datetimepicker-widget .datepicker :is(td.disabled,th.disabled,td > span.disabled) { background: transparent; color: var(--wf-theme-muted); }

/* Previous/Next media navigation is shared by video and audio detail pages. */
html[data-wf-theme="dark"] .wf-member .wf-component #es .es-media-nav {
  background: var(--wf-theme-border);
  border-color: var(--wf-theme-border);
  overflow: hidden;
}
html[data-wf-theme="dark"] .wf-member .wf-component #es .es-media-nav > :is(.es-media-nav__prev, .es-media-nav__next),
html[data-wf-theme="dark"] .wf-member .wf-component #es .es-media-nav > :is(.es-media-nav__prev, .es-media-nav__next) > a {
  background: var(--wf-theme-surface);
  color: var(--wf-theme-text);
}
html[data-wf-theme="dark"] .wf-member .wf-component #es .es-media-nav .es-media-nav__meta { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .es-media-nav .es-media-nav__title { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .es-media-nav .es-media-nav__img { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .es-media-nav > :is(.es-media-nav__prev, .es-media-nav__next) > a:is(:hover, :focus-visible) {
  background: var(--wf-theme-raised);
}
html[data-wf-theme="dark"] .wf-member .wf-component #es .es-media-nav > :is(.es-media-nav__prev, .es-media-nav__next) > a:is(:hover, :focus-visible) .es-media-nav__title { color: var(--wf-theme-link); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .es-media-nav > :is(.es-media-nav__prev, .es-media-nav__next) > a:active { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .es-media-nav > :is(.es-media-nav__prev, .es-media-nav__next) > a:focus-visible {
  outline: 2px solid var(--wf-theme-accent) !important;
  outline-offset: -3px;
}

/* Video item */
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-navigation { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-navigation .wf-watch-back { background: transparent!important; color: var(--wf-theme-muted)!important; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-navigation .dropdown-menu { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-header h1.es-video-title { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-featured { color: var(--wf-theme-warning); background: var(--wf-theme-warning-bg); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-byline { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-byline a { color: var(--wf-theme-link); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-main .es-video-content-body { background: #14272d; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-main .video-js { background: #14272d; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-main .vjs-poster { background-color: #14272d; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-main .vjs-big-play-button { border-color: var(--wf-theme-border); background: rgb(18 53 61 / 88%); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-main [data-video-thumbnail-wraper] { background: var(--wf-theme-surface); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos :is(.wf-watch-details,.wf-watch-people) { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-details h2 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-fact { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-fact > i { background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-fact strong { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-description { border-block-start-color: var(--wf-theme-border); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-location h3 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-directions { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-link); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-directions:hover { border-color: var(--wf-theme-border); background: var(--wf-theme-raised); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-people .es-video-tagging > b { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-people [data-video-tag] { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-link); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-people .o-empty { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-people .o-empty__text { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-conversation { background: var(--wf-theme-surface); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-actions { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-actions .es-actions__item-action { border-block-end-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-actions .es-actions-list > li > a,
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-actions .es-actions-list > li > [data-wf-video-share],
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-actions .es-actions-list > li > div > a { background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-actions .es-actions-list > li a:hover { background: var(--wf-theme-raised); color: var(--wf-theme-link); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-actions .es-actions__item-comment { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-actions :is(.es-comments-wrapper,.es-comments-wrap,.es-comments-control,.es-comments-form,.es-comments) { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-actions .es-comments-control__load { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-actions .es-comments-control__stats { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-watch-actions [data-comments-form-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-member .wf-component #es.view-videos .wf-watch-actions [data-wf-video-share]:hover { background: var(--wf-theme-raised); color: var(--wf-theme-link); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-share-status { color: var(--wf-theme-muted); }

/* Video settings */
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .dropdown_.wf-video-settings > .wf-video-settings-menu { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-settings-menu .wf-video-settings-heading { border-bottom-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-settings-heading strong { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-settings-heading small { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos [data-wf-video-settings-close] { background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .dropdown_.wf-video-settings > .wf-video-settings-menu > li > a > i:first-child { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-settings-menu a small { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-settings-menu .wf-video-settings-arrow { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .dropdown_.wf-video-settings > .wf-video-settings-menu > .wf-video-settings-danger > a > i:first-child { background: var(--wf-theme-danger-bg); color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-settings-menu .divider { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos.is-mobile .dropdown_.wf-video-settings > .wf-video-settings-menu { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos.is-mobile .wf-video-settings-menu::before { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos.is-mobile .dropdown_.wf-video-settings > .dropdown-backdrop { background: rgba(15,32,34,.52); }
html[data-wf-theme="dark"] .wf-member #es.es-dialog:has(.wf-video-confirmation) .es-dialog-modal { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member #es.es-dialog:has(.wf-video-confirmation) .es-dialog-header { background: transparent; color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es.es-dialog:has(.wf-video-confirmation) .es-dialog-body,
html[data-wf-theme="dark"] .wf-member #es.es-dialog:has(.wf-video-confirmation) .es-dialog-container { background: transparent; }
html[data-wf-theme="dark"] .wf-member #es .wf-video-confirmation-icon { background: var(--wf-theme-soft); color: var(--wf-theme-danger); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member #es .wf-video-confirmation p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-video-confirmation .wf-video-confirmation-warning { color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] .wf-member #es.es-dialog:has(.wf-video-confirmation) .es-dialog-footer { border-top-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member #es.es-dialog:has(.wf-video-confirmation) [data-cancel-button] { color: var(--wf-theme-text) !important; background: var(--wf-theme-surface) !important; border-color: var(--wf-theme-border) !important; }
html[data-wf-theme="dark"] .wf-member #es.es-dialog:has(.wf-video-confirmation) [data-submit-button],
html[data-wf-theme="dark"] .wf-member #es.es-dialog:has(.wf-video-confirmation) [data-upload-button] { color: #fff !important; background: #1c5360 !important; border-color: #1c5360 !important; }
html[data-wf-theme="dark"] .wf-member #es.es-dialog:has(.wf-video-confirmation--delete) [data-submit-button] { color: #fff !important; background: #a43e35 !important; border-color: #a43e35 !important; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .dropdown_.wf-video-settings > [data-es-toggle="dropdown"] { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-settings-menu > .wf-video-settings-danger > a { color: var(--wf-theme-danger) !important; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-settings-menu > li > a { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .dropdown_.wf-video-settings > .wf-video-settings-menu > li > a:is(:hover,:focus-visible,:active) { background: var(--wf-theme-soft) !important; color: var(--wf-theme-text) !important; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .dropdown_.wf-video-settings > .wf-video-settings-menu > .wf-video-settings-danger > a:is(:hover,:focus-visible,:active) { color: var(--wf-theme-danger) !important; background: var(--wf-theme-danger-bg) !important; }
html[data-wf-theme="dark"] .wf-member #es .wf-video-confirmation:not(.wf-video-confirmation--delete) .wf-video-confirmation-icon { background: var(--wf-theme-soft); border-color: var(--wf-theme-border); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-video-confirmation .es-avatar-file { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-video-confirmation .es-avatar-file::file-selector-button { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-cover-editor { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-cover-editor .es-video-cover-action { background: transparent; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-cover-heading h2 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-cover-editor .embed-responsive { background: #102025; }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-cover-controls { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-cover-editor .btn { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es.view-videos .wf-video-cover-editor [data-video-thumbnail-upload] { background: var(--wf-theme-primary); border-color: var(--wf-theme-primary); color: var(--wf-theme-on-primary); }

/* Video share */
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-share { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-share::backdrop { background: rgb(4 15 18 / 65%); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-share > header h2 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-share > header button { background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-share p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-share-options > :is(a,button) { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-share-options > :is(a,button):hover,
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-share-options > [aria-expanded=true] { background: var(--wf-theme-raised); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-share-options .fa-whatsapp { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-share-options .fa-weixin { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-share-options .fa-link { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-wechat { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-wechat > p { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-phone-share { border-color: var(--wf-theme-primary); background: var(--wf-theme-primary); color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-phone-share:hover { background: #b3ddcb; border-color: #b3ddcb; color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-wechat [data-short-native-share-hint] { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-share .wf-shorts-share-status { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-share > label { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-share > input { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-access { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-access button { background: transparent; color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-access button[aria-pressed=true] { background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-guest-form label,
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) [data-short-share-ready] > label { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-guest-form :is(select,input),
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) [data-short-share-ready] > input { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-guest-form button { background: var(--wf-theme-primary); color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-share .wf-shorts-guest-expiry { background: var(--wf-theme-success-bg); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-guest-manage { border-block-start-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-guest-manage summary { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) [data-short-guest-links] { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-guest-link { border-block-start-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-guest-link button { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-share .wf-shorts-guest-note { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-video-share-preferences { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-video-share-preferences legend { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-video-share-switch span { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-share .wf-video-share-switch input { border-color: var(--wf-theme-border); background: #a6b4ac; }
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-share .wf-video-share-switch input:checked { background: #287556; border-color: #287556; }

/* Video people */
html[data-wf-theme="dark"] .wf-member #es .wf-video-people,
html[data-wf-theme="dark"] body .wf-video-people-dialog { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-video-people { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member #es .wf-video-people-heading h2 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-video-people-icon { background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-video-people-status { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-video-people-status.is-error { color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] .wf-member #es .wf-video-people-list > li + li { border-block-start-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member #es .wf-video-person { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es a.wf-video-person:hover { color: var(--wf-theme-link); }
html[data-wf-theme="dark"] .wf-member #es .wf-video-people .wf-video-person-portrait,
html[data-wf-theme="dark"] body .wf-video-people-dialog .wf-video-person-portrait { background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-video-people button,
html[data-wf-theme="dark"] body .wf-video-people-dialog button { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-link); }
html[data-wf-theme="dark"] .wf-member #es .wf-video-people button:hover,
html[data-wf-theme="dark"] body .wf-video-people-dialog button:hover { border-color: var(--wf-theme-border); background: var(--wf-theme-raised); }
html[data-wf-theme="dark"] .wf-member #es .wf-video-people .wf-video-person-remove { border-color: transparent; background: transparent; color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-video-people .wf-video-person-remove:hover { border-color: var(--wf-theme-border); background: var(--wf-theme-danger-bg); color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] body .wf-video-people-dialog { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] body .wf-video-people-dialog::backdrop { background: #17342f80; }
html[data-wf-theme="dark"] body .wf-video-people-dialog > header { border-block-end-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] body .wf-video-people-dialog > header p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body .wf-video-people-dialog h2 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body .wf-video-people-dialog .wf-video-people-close { border-color: transparent; background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body .wf-video-people-dialog .wf-video-people-search-label { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body .wf-video-people-dialog .wf-video-people-search { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body .wf-video-people-dialog .wf-video-people-search::placeholder { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body .wf-video-people-dialog .wf-video-people-hint { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body .wf-video-people-dialog .wf-video-people-search-status { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body .wf-video-people-dialog .wf-video-people-choice { border-color: transparent; background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body .wf-video-people-dialog .wf-video-people-choice > svg { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body .wf-video-people-dialog .wf-video-person-confirm > strong { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body .wf-video-people-dialog .wf-video-person-confirm > p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body .wf-video-people-dialog .wf-video-person-change { border-color: transparent; background: transparent; }
html[data-wf-theme="dark"] body .wf-video-people-dialog .wf-video-people-error { border-color: var(--wf-theme-border); background: var(--wf-theme-danger-bg); color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] body .wf-video-people-dialog > footer { border-block-start-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] body .wf-video-people-dialog button.is-primary { border-color: var(--wf-theme-primary); background: var(--wf-theme-primary); color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] body .wf-video-people-dialog button.is-primary:hover { border-color: #b3ddcb; background: #b3ddcb; }
html[data-wf-theme="dark"] body .wf-video-people-dialog button.is-danger { border-color: #a25441; background: #a25441; }
html[data-wf-theme="dark"] body .wf-video-people-dialog button.is-danger:hover { border-color: #843f30; background: #843f30; }

/* Video faces */
html[data-wf-theme="dark"] .wf-member #es .wf-video-faces { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-video-faces-heading h2 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-video-faces-count { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-video-faces-intro { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-video-faces-status { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-video-faces-status.is-error { color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] .wf-member #es .wf-video-faces-error { border-color: var(--wf-theme-border); background: var(--wf-theme-danger-bg); color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] .wf-member #es .wf-video-faces button { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-video-faces button:hover { border-color: var(--wf-theme-border); background: var(--wf-theme-raised); }
html[data-wf-theme="dark"] .wf-member #es .wf-video-faces .wf-video-face { border-color: transparent; background: transparent; }
html[data-wf-theme="dark"] .wf-member #es .wf-video-faces .wf-video-face:hover { background: var(--wf-theme-raised); }
html[data-wf-theme="dark"] .wf-member #es .wf-video-face-portrait { background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-video-face-time { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-video-faces-limited { color: var(--wf-theme-muted); }

/* People videos */
html[data-wf-theme="dark"] .wf-member #es .wf-ppv,
html[data-wf-theme="dark"] body .wf-ppv-dialog { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-ppv { border-block-end-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member #es .wf-ppv-heading h3 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-ppv-count { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-ppv button,
html[data-wf-theme="dark"] body .wf-ppv-dialog button { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-ppv button:hover,
html[data-wf-theme="dark"] body .wf-ppv-dialog button:hover { border-color: var(--wf-theme-border); background: var(--wf-theme-raised); }
html[data-wf-theme="dark"] .wf-member #es .wf-ppv-tile { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member #es .wf-ppv-tile:hover { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member #es .wf-ppv-open { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-ppv-open:hover { color: var(--wf-theme-link); }
html[data-wf-theme="dark"] .wf-member #es .wf-ppv-poster,
html[data-wf-theme="dark"] body .wf-ppv-dialog .wf-ppv-poster { background: linear-gradient(135deg,var(--wf-theme-soft),var(--wf-theme-soft)); color: #fff; }
html[data-wf-theme="dark"] .wf-member #es .wf-ppv-play,
html[data-wf-theme="dark"] body .wf-ppv-dialog .wf-ppv-play { border-color: #ffffff80; background: #173e428c; }
html[data-wf-theme="dark"] .wf-member #es .wf-ppv-duration,
html[data-wf-theme="dark"] body .wf-ppv-dialog .wf-ppv-duration { background: #142b30cf; color: #fff; }
html[data-wf-theme="dark"] .wf-member #es .wf-ppv-caption { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-ppv .wf-ppv-remove { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-ppv .wf-ppv-remove:hover { background: var(--wf-theme-danger-bg); color: var(--wf-theme-danger); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member #es .wf-ppv-empty { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-ppv-status { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-ppv-error,
html[data-wf-theme="dark"] body .wf-ppv-dialog .wf-ppv-error { border-color: var(--wf-theme-border); background: var(--wf-theme-danger-bg); color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] body .wf-ppv-dialog { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] body .wf-ppv-dialog::backdrop { background: #17342f80; }
html[data-wf-theme="dark"] body .wf-ppv-dialog > header { border-block-end-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] body .wf-ppv-dialog h2 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body .wf-ppv-dialog .wf-ppv-close { border-color: transparent; background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body .wf-ppv-dialog .wf-ppv-search-label { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body .wf-ppv-dialog .wf-ppv-search { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body .wf-ppv-dialog .wf-ppv-search::placeholder { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body .wf-ppv-dialog .wf-ppv-search-status { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body .wf-ppv-dialog .wf-ppv-choice { border-color: transparent; background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body .wf-ppv-dialog .wf-ppv-choice > svg { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body .wf-ppv-dialog .wf-ppv-confirm > strong { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body .wf-ppv-dialog .wf-ppv-confirm > p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body .wf-ppv-dialog .wf-ppv-change { border-color: transparent; background: transparent; }
html[data-wf-theme="dark"] body .wf-ppv-dialog > footer { border-block-start-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] body .wf-ppv-dialog button.is-primary { border-color: var(--wf-theme-primary); background: var(--wf-theme-primary); color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] body .wf-ppv-dialog button.is-primary:hover { border-color: #b3ddcb; background: #b3ddcb; }
html[data-wf-theme="dark"] body .wf-ppv-dialog button.is-danger { border-color: #a25441; background: #a25441; }
html[data-wf-theme="dark"] body .wf-ppv-dialog button.is-danger:hover { border-color: #843f30; background: #843f30; }

/* Photo map */
html[data-wf-theme="dark"] .wf-member #es .wf-photo-map { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-heading-icon { border-color: var(--wf-theme-border); background: linear-gradient(145deg,var(--wf-theme-soft),var(--wf-theme-soft)); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-heading :is(h1,h2) { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-heading p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-heading .wf-map-eyebrow { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-stats { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-stats > div + div { border-inline-start-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-stats dt { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-stats dd { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-toolbar { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-private,
html[data-wf-theme="dark"] .wf-member #es .wf-map-note { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-private > i,
html[data-wf-theme="dark"] .wf-member #es .wf-map-note > i { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-map button { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-map button:hover { border-color: var(--wf-theme-border); background: var(--wf-theme-raised); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-types { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-types button { background: transparent; color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-types button[aria-pressed=true] { background: var(--wf-theme-primary); color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-types button:not([aria-pressed=true]):hover { background: #b3ddcb; color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-search { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-search:focus-within { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-search input { background: transparent; color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-year { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-year > span { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-year select { background-color: transparent; color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-feedback { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-feedback.is-error { color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-workspace { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-stage { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-canvas { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-panel { border-inline-start-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-panel-heading { border-bottom-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-count { background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-panel-heading :is(h2,h3) { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-description { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-map button.wf-map-place-directions { background: var(--wf-theme-primary); border-color: var(--wf-theme-primary); color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-map button.wf-map-place-directions:hover { background: #b3ddcb; border-color: #b3ddcb; }
html[data-wf-theme="dark"] .wf-member #es .wf-map-media-card { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-media-card:hover { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-map button.wf-map-photo { background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-map button.wf-map-photo:hover { background: var(--wf-theme-raised); }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-map button.wf-map-card-directions { border-top-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-photo-map button.wf-map-card-directions:hover { background: var(--wf-theme-raised); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-media-visual { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-photo-placeholder { background: linear-gradient(145deg,var(--wf-theme-soft),var(--wf-theme-soft)); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-media-badge { border-color: #ffffff30; background: #204c40e8; color: #fff; }
html[data-wf-theme="dark"] .wf-member #es .wf-map-media-badge.is-video { background: #315777ee; }
html[data-wf-theme="dark"] .wf-member #es .wf-map-duration { background: #172d2bdd; color: #fff; }
html[data-wf-theme="dark"] .wf-member #es .wf-map-photo small { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-photo small.wf-map-photo-date { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-empty > span { background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-empty h3 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-empty p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-marker { background: transparent; color: #fff; }
html[data-wf-theme="dark"] .wf-member #es .wf-map-marker > span:first-child { background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-marker-cover > i { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-marker > span:first-child::after { background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-marker-type { border-color: var(--wf-theme-border); background: #315777; color: #fff; }
html[data-wf-theme="dark"] .wf-member #es .wf-map-marker.is-mixed .wf-map-marker-type { background: #765e35; }
html[data-wf-theme="dark"] .wf-member #es .wf-map-marker :is(.wf-map-marker-count,[data-map-marker-count]),
html[data-wf-theme="dark"] .wf-member #es .wf-map-marker > span + span { border-color: var(--wf-theme-border); background: #234f4b; color: #fff; }
html[data-wf-theme="dark"] .wf-member #es .wf-map-canvas .leaflet-bar { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member #es .wf-map-canvas .leaflet-bar a { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
@media(max-width:900px) {
html[data-wf-theme="dark"] .wf-member #es .wf-map-panel { border-top-color: var(--wf-theme-border); }
}

/* Maps */
html[data-wf-theme="dark"] .wf-localized-map { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-localized-map .leaflet-control-attribution { color: var(--wf-theme-text); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-localized-map .leaflet-control-attribution a { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-localized-map .wf-map-status { background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-localized-map .wf-map-status button,
html[data-wf-theme="dark"] .wf-localized-map .wf-map-status a { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }

/* Map chooser */
html[data-wf-theme="dark"] .wf-map-chooser { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-map-chooser::backdrop { background: #071d26a6; }
html[data-wf-theme="dark"] .wf-map-chooser h2 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-map-chooser-header p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-map-chooser-close { background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-map-chooser-close:hover { background: var(--wf-theme-raised); }
html[data-wf-theme="dark"] .wf-map-chooser-hint { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-map-chooser-options a { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-map-chooser-options a:hover { border-color: var(--wf-theme-border); background: var(--wf-theme-raised); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-map-provider-icon { background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] [data-map-provider="google"] .wf-map-provider-icon { background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] [data-map-provider="waze"] .wf-map-provider-icon { background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] [data-map-provider="amap"] .wf-map-provider-icon { background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] [data-map-provider="baidu"] .wf-map-provider-icon { background: var(--wf-theme-soft); color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] .wf-map-chooser .wf-map-provider-arrow { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-map-device-option small { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-map-app-help { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-map-app-help p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-map-app-help a { background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-map-address { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-map-google-precision p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-map-google-precision a { background: var(--wf-theme-surface); }

/* Shorts */
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-shorts-tabs { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-shorts-tabs button { background: transparent; color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-shorts-tabs button[aria-pressed=true] { color: var(--wf-theme-on-primary); background: var(--wf-theme-primary); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-shorts-tabs button[aria-pressed=false]:hover { color: var(--wf-theme-text); background: var(--wf-theme-raised); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-shorts-add { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-shorts-add:hover { background: var(--wf-theme-raised); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-short-reaction .es-reactions-pop { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-short-fallback a { background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-shorts-navigation button { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-shorts-navigation button:hover { border-color: var(--wf-theme-border); background: var(--wf-theme-raised); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-shorts-end :is(a,button) { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-shorts-comments { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-shorts-comments::backdrop { background: rgb(12 30 33 / 58%); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-shorts-comments > header { border-block-end-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-shorts-comments > header h2 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-shorts-comments > header button { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .wf-shorts-comments iframe { background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-member .wf-component #es .is-fullscreen .wf-shorts-navigation button { background: rgb(15 29 32 / 72%); color: #fff; border-color: rgb(255 255 255 / 25%); }

/* Shorts panel */
html[data-wf-theme="dark"] body.wf-shorts-panel-view { background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-shorts-panel-view #es { background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-shorts-panel-view #es .wf-shorts-panel__context { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-shorts-panel-view #es .wf-shorts-panel__actions,
html[data-wf-theme="dark"] .wf-shorts-panel-view #es .es-actions__item { background: transparent; }
html[data-wf-theme="dark"] .wf-shorts-panel-view #es .es-reaction-option__link.btn { color: var(--wf-theme-text); background: var(--wf-theme-soft); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-shorts-panel-view #es .es-reaction-option__link.btn.is-active { color: #fff; border-color: #1c5360; background: #1c5360; }
html[data-wf-theme="dark"] .wf-shorts-panel-view #es .es-comments-control { border-block-color: var(--wf-theme-border); background: transparent; }
html[data-wf-theme="dark"] .wf-shorts-panel-view #es .es-comments-control__stats { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-shorts-panel-view #es .es-comment { border-color: var(--wf-theme-border); background: transparent; }
html[data-wf-theme="dark"] .wf-shorts-panel-view #es .es-comment-content { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-shorts-panel-view #es .es-comments-form { background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-shorts-panel-view #es .es-comments-form .mentions { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] .wf-shorts-panel-view #es .es-comments-form .mentions:focus-within { border-color: #367b79; }
html[data-wf-theme="dark"] .wf-shorts-panel-view #es .es-comments-form [data-mentions-textarea] { background: transparent; }
html[data-wf-theme="dark"] .wf-shorts-panel-view #es .es-form-attach > label { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-shorts-panel-view #es [data-comments-form-submit],
html[data-wf-theme="dark"] .wf-shorts-panel-view #es [data-save] { color: var(--wf-theme-on-primary) !important; border-color: var(--wf-theme-primary) !important; background: var(--wf-theme-primary) !important; }
html[data-wf-theme="dark"] .wf-shorts-panel-view #es .es-reactions-pop { background: var(--wf-theme-surface); color: var(--wf-theme-text); }

/* Mobile share */
html[data-wf-theme="dark"] .wf-mobile-share { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] .wf-mobile-share-brand { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-mobile-share h1 { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-mobile-share p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] .wf-mobile-share button { border-color: var(--wf-theme-primary); background: var(--wf-theme-primary); color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] .wf-mobile-share button:hover { background: #b3ddcb; border-color: #b3ddcb; }
html[data-wf-theme="dark"] .wf-mobile-share [data-mobile-share-status] { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-mobile-share-link-panel { border-block-start-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-mobile-share label { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-mobile-share input { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-mobile-share [data-mobile-share-copy] { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] .wf-mobile-share [data-mobile-share-copy]:hover { border-color: var(--wf-theme-border); background: var(--wf-theme-raised); }
html[data-wf-theme="dark"] .wf-mobile-share[data-state="invalid"] { border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] .wf-mobile-share[data-state="invalid"] [data-mobile-share-intro] { color: var(--wf-theme-danger); }
html[data-wf-theme="dark"] .wf-mobile-share noscript { color: var(--wf-theme-danger); }

/* guestphotos standalone page */
html[data-wf-theme="dark"] body.wf-guest-photo-share { background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-guest-photo-share .badge { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-guest-photo-share .photo-card { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] body.wf-guest-photo-share .player { background: #090e10; }
html[data-wf-theme="dark"] body.wf-guest-photo-share .photo-surface { background: #090e10; }
html[data-wf-theme="dark"] body.wf-guest-photo-share .photo-touch-shield { background: transparent; }
html[data-wf-theme="dark"] body.wf-guest-photo-share .photo-load-message { color: #fff; }
html[data-wf-theme="dark"] body.wf-guest-photo-share .photo-retry { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-guest-photo-share .save-photo { border-color: var(--wf-theme-primary); background: var(--wf-theme-primary); color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] body.wf-guest-photo-share .save-photo:hover { background: #b3ddcb; }
html[data-wf-theme="dark"] body.wf-guest-photo-share .photo-request { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-guest-photo-share .eyebrow { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-guest-photo-share .expiry { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-guest-photo-share .expiry svg { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-guest-photo-share .expiry-row+.expiry-row { border-top-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] body.wf-guest-photo-share time { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-guest-photo-share .expiry-owner { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-guest-photo-share .expiry-fallback { border-top-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] body.wf-guest-photo-share .page-footer { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-guest-photo-share .page-footer svg { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-guest-photo-share .expired-icon { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-guest-photo-share .expired p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-guest-photo-share .expired .expired-help { border-top-color: var(--wf-theme-border); color: var(--wf-theme-muted); }

/* guestvideos standalone page */
html[data-wf-theme="dark"] body.wf-guest-video-share { background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-guest-video-share .badge { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-guest-video-share .video-card { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] body.wf-guest-video-share .player { background: #090e10; }
html[data-wf-theme="dark"] body.wf-guest-video-share .download-video { border-color: var(--wf-theme-primary); background: var(--wf-theme-primary); color: var(--wf-theme-on-primary); }
html[data-wf-theme="dark"] body.wf-guest-video-share .eyebrow { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-guest-video-share .expiry { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-guest-video-share .expiry svg { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-guest-video-share .expiry-row+.expiry-row { border-top-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] body.wf-guest-video-share time { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-guest-video-share .expiry-owner { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-guest-video-share .expiry-fallback { border-top-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] body.wf-guest-video-share .page-footer { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-guest-video-share .page-footer svg { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-guest-video-share .expired-icon { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-guest-video-share .expired p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-guest-video-share .expired .expired-help { border-top-color: var(--wf-theme-border); color: var(--wf-theme-muted); }

/* guestalbums standalone page */
html[data-wf-theme="dark"] body.wf-guest-album-share { background: var(--wf-theme-soft); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-guest-album-share .badge { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-guest-album-share .album-header { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] body.wf-guest-album-share .album-header:before { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] body.wf-guest-album-share .eyebrow { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-guest-album-share .scope { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-guest-album-share .count { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-guest-album-share .view-photos { background: var(--wf-theme-primary); color: var(--wf-theme-on-primary); border-color: var(--wf-theme-primary); }
html[data-wf-theme="dark"] body.wf-guest-album-share .view-photos:hover:not(:disabled) { background: #b3ddcb; }
html[data-wf-theme="dark"] body.wf-guest-album-share .expiry { border-color: var(--wf-theme-border); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] body.wf-guest-album-share .expiry-icon { color: var(--wf-theme-muted); background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] body.wf-guest-album-share .expiry strong { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-guest-album-share .expiry time { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-guest-album-share .gallery-heading p { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-guest-album-share .photo { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); }
html[data-wf-theme="dark"] body.wf-guest-album-share .photo-open { background: var(--wf-theme-soft); }
html[data-wf-theme="dark"] body.wf-guest-album-share .photo-open .expand { border-color: #ffffff45; background: #142821a6; color: #fff; }
html[data-wf-theme="dark"] body.wf-guest-album-share .photo-title { color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-guest-album-share .photo-number { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-guest-album-share .pagination { color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-guest-album-share .pagination a,
html[data-wf-theme="dark"] body.wf-guest-album-share .retry { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-text); }
html[data-wf-theme="dark"] body.wf-guest-album-share .pagination a:hover { background: var(--wf-theme-raised); }
html[data-wf-theme="dark"] body.wf-guest-album-share .empty { border-color: var(--wf-theme-border); background: var(--wf-theme-surface); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-guest-album-share .page-footer { border-top-color: var(--wf-theme-border); color: var(--wf-theme-muted); }
html[data-wf-theme="dark"] body.wf-guest-album-share .unavailable { background: var(--wf-theme-surface); border-color: var(--wf-theme-border); }
html[data-wf-theme="dark"] body.wf-guest-album-share .unavailable p { color: var(--wf-theme-muted); }

/* Portal menus use local variables because the same menu also opens from the
   intentionally dark photo viewer, outside the component's normal hierarchy. */
html[data-wf-theme="dark"] .wf-person-menu {
  --wf-person-menu-bg: var(--wf-theme-raised);
  --wf-person-menu-text: var(--wf-theme-text);
  --wf-person-menu-muted: var(--wf-theme-muted);
  --wf-person-menu-line: var(--wf-theme-border);
  --wf-person-menu-hover: var(--wf-theme-soft);
}
html[data-wf-theme="dark"] body .wf-video-people-dialog button.is-danger,
html[data-wf-theme="dark"] body .wf-ppv-dialog button.is-danger {
  color: #fff;
  background: #a25441;
  border-color: #a25441;
}
html[data-wf-theme="dark"] body .wf-video-people-dialog button.is-danger:hover,
html[data-wf-theme="dark"] body .wf-ppv-dialog button.is-danger:hover {
  color: #fff;
  background: #843f30;
  border-color: #843f30;
}

/* Guest shares have no application wrapper. Keep the page and card separate,
   preserve original logo and QR pixels, and let the viewer stay cinematic. */
html[data-wf-theme="dark"] body:is(.wf-guest-photo-share, .wf-guest-video-share, .wf-guest-album-share, .wf-mobile-share-page) {
  background: var(--wf-theme-bg);
  color: var(--wf-theme-text);
}
body:is(.wf-guest-photo-share, .wf-guest-video-share, .wf-guest-album-share) .brand {
  background: transparent;
}
html[data-wf-theme="dark"] body:is(.wf-guest-photo-share, .wf-guest-video-share, .wf-guest-album-share) :is(h1, .gallery-heading h2) {
  color: var(--wf-theme-text);
}
html[data-wf-theme="dark"] .wf-member .wf-photo-wechat img,
html[data-wf-theme="dark"] :is(.wf-member .wf-component #es, body.wf-member) .wf-shorts-wechat img {
  background: #fff;
}

/* Native comments in the short-video iframe are not inside the full site shell. */
html[data-wf-theme="dark"] body.wf-shorts-panel-view #es {
  color: var(--wf-theme-text);
  background: var(--wf-theme-surface);
}
html[data-wf-theme="dark"] body.wf-shorts-panel-view #es :is(a, .es-comment-actions-toggle, .es-comments-control__link) {
  color: var(--wf-theme-link);
}
html[data-wf-theme="dark"] body.wf-shorts-panel-view #es :is(.es-reaction-option__link.btn.is-active, [data-comments-form-submit], [data-save]) {
  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"] body.wf-shorts-panel-view #es :is(.es-comments-form textarea, .es-comments-form input, [data-mentions-textarea], [data-mentions-overlay]) {
  color: var(--wf-theme-text);
  caret-color: var(--wf-theme-accent);
}
html[data-wf-theme="dark"] body.wf-shorts-panel-view #es :is(.dropdown-menu, .es-input-smiley__popup) {
  background: var(--wf-theme-raised);
  border-color: var(--wf-theme-border);
  color: var(--wf-theme-text);
}
html[data-wf-theme="dark"] body.wf-shorts-panel-view #es :is(.dropdown-menu, .es-input-smiley__popup) a:hover {
  background: var(--wf-theme-soft);
  color: var(--wf-theme-text);
}

/* EasySocial's reaction statistics and nested comment form own white fills in
   the vendor theme, even when the surrounding media card already has a theme. */
html[data-wf-theme="dark"] body.wf-member #es:is(.view-albums, .view-photos, .view-videos, .es-photo-popup) :is(.es-actions__item-stats, .es-actions__item-comment),
html[data-wf-theme="dark"] body.wf-shorts-panel-view #es :is(.es-actions__item-stats, .es-actions__item-comment) {
  background-color: var(--wf-theme-soft) !important;
  border-color: var(--wf-theme-border) !important;
  color: var(--wf-theme-text) !important;
}
html[data-wf-theme="dark"] body.wf-member #es:is(.view-albums, .view-photos, .view-videos, .es-photo-popup) :is(.es-comments-form .es-form, .es-comments-form .es-input-gif, .es-reactions-pop),
html[data-wf-theme="dark"] body.wf-shorts-panel-view #es :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"] body.wf-member #es:is(.view-albums, .view-photos, .view-videos, .es-photo-popup) .es-actions__item-stats :is([data-likes-content], [data-likes-content] a),
html[data-wf-theme="dark"] body.wf-shorts-panel-view #es .es-actions__item-stats :is([data-likes-content], [data-likes-content] a) {
  color: var(--wf-theme-text) !important;
}

