/*
 * Fallback dark bridge for admin pages loaded inside Desktop Mode iframes.
 * Studio Hub screen CSS still applies when focus + theme classes are present;
 * this covers base chrome when color mode is synced onto the iframe document.
 */
html:is([data-yooadmin-studio-color-mode-effective="dark"], .is-dark-theme) body.desktop-mode-chromeless {
  background: var(--ysh-surface, #121418) !important;
  color: var(--ysh-text, #d0d7df) !important;
}

html:is([data-yooadmin-studio-color-mode-effective="dark"], .is-dark-theme) body.desktop-mode-chromeless #wpwrap,
html:is([data-yooadmin-studio-color-mode-effective="dark"], .is-dark-theme) body.desktop-mode-chromeless #wpcontent,
html:is([data-yooadmin-studio-color-mode-effective="dark"], .is-dark-theme) body.desktop-mode-chromeless #wpbody,
html:is([data-yooadmin-studio-color-mode-effective="dark"], .is-dark-theme) body.desktop-mode-chromeless #wpbody-content {
  background: transparent !important;
  color: inherit;
}

html:is([data-yooadmin-studio-color-mode-effective="dark"], .is-dark-theme) body.desktop-mode-chromeless .wrap,
html:is([data-yooadmin-studio-color-mode-effective="dark"], .is-dark-theme) body.desktop-mode-chromeless .wp-list-table,
html:is([data-yooadmin-studio-color-mode-effective="dark"], .is-dark-theme) body.desktop-mode-chromeless .form-table {
  color: var(--ysh-text, #d0d7df);
}
