/**
 * Studio Hub — native Gutenberg block editor (dark mode + full-bleed layout).
 * Fixes dark wpbody gaps around the default white editor skeleton.
 */

/* Hidden WP chrome must not intercept clicks over the Gutenberg header. */
body.yooadmin-theme-yooadmin-studio-hub.block-editor-page #wpadminbar,
body.yoo-focus.block-editor-page #wpadminbar,
body.yooadmin-network-admin-shell.block-editor-page #wpadminbar,
body.yooadmin-theme-yooadmin-studio-hub.block-editor-page #adminmenuback,
body.yooadmin-theme-yooadmin-studio-hub.block-editor-page #adminmenumain,
body.yooadmin-theme-yooadmin-studio-hub.block-editor-page #adminmenuwrap,
body.yoo-focus.block-editor-page #adminmenuback,
body.yoo-focus.block-editor-page #adminmenumain,
body.yoo-focus.block-editor-page #adminmenuwrap,
body.yooadmin-network-admin-shell.block-editor-page #adminmenuback,
body.yooadmin-network-admin-shell.block-editor-page #adminmenumain,
body.yooadmin-network-admin-shell.block-editor-page #adminmenuwrap {
  pointer-events: none !important;
}

/* Full-bleed — no Studio Hub column padding on block editor */
body.yooadmin-theme-yooadmin-studio-hub.block-editor-page #wpcontent,
body.yooadmin-theme-yooadmin-studio-hub.block-editor-page #wpbody,
body.yooadmin-theme-yooadmin-studio-hub.block-editor-page #wpbody-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

body.yooadmin-theme-yooadmin-studio-hub.block-editor-page #wpbody-content > .block-editor,
body.yooadmin-theme-yooadmin-studio-hub.block-editor-page #wpbody-content > .edit-post-layout {
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

body.yooadmin-theme-yooadmin-studio-hub.block-editor-page .interface-interface-skeleton {
  min-height: 100vh;
}

/* Full-bleed — focus / network admin (theme body class may be absent) */
body.yoo-focus.block-editor-page #wpwrap,
body.yoo-focus.block-editor-page #wpcontent,
body.yoo-focus.block-editor-page #wpbody,
body.yoo-focus.block-editor-page #wpbody-content,
body.yooadmin-network-admin-shell.block-editor-page #wpwrap,
body.yooadmin-network-admin-shell.block-editor-page #wpcontent,
body.yooadmin-network-admin-shell.block-editor-page #wpbody,
body.yooadmin-network-admin-shell.block-editor-page #wpbody-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

body.yoo-focus.block-editor-page #wpbody-content > .block-editor,
body.yoo-focus.block-editor-page #wpbody-content > .edit-post-layout,
body.yooadmin-network-admin-shell.block-editor-page #wpbody-content > .block-editor,
body.yooadmin-network-admin-shell.block-editor-page #wpbody-content > .edit-post-layout {
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

body.yoo-focus.block-editor-page .interface-interface-skeleton,
body.yooadmin-network-admin-shell.block-editor-page .interface-interface-skeleton {
  min-height: 100vh;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
}

body.yoo-focus.block-editor-page.auto-fold .interface-interface-skeleton,
body.yoo-focus.block-editor-page.folded .interface-interface-skeleton,
body.yooadmin-network-admin-shell.block-editor-page.auto-fold .interface-interface-skeleton,
body.yooadmin-network-admin-shell.block-editor-page.folded .interface-interface-skeleton {
  left: 0 !important;
}

@media (min-width: 783px) {
  body.yoo-focus.block-editor-page .interface-interface-skeleton,
  body.yooadmin-network-admin-shell.block-editor-page .interface-interface-skeleton {
    top: 0 !important;
    left: 0 !important;
  }
}

body.yoo-focus.block-editor-page #wpcontent,
body.yooadmin-network-admin-shell.block-editor-page #wpcontent {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

body.yoo-focus.block-editor-page #adminmenuback,
body.yoo-focus.block-editor-page #adminmenumain,
body.yoo-focus.block-editor-page #adminmenuwrap,
body.yooadmin-network-admin-shell.block-editor-page #adminmenuback,
body.yooadmin-network-admin-shell.block-editor-page #adminmenumain,
body.yooadmin-network-admin-shell.block-editor-page #adminmenuwrap {
  display: none !important;
  width: 0 !important;
}

/* -------------------------------------------------------------------------
 * Light mode — explicit reset when toggling from dark (no refresh)
 * ------------------------------------------------------------------------- */
html[data-yooadmin-studio-color-mode-effective='light']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='light']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page {
  --wp-editor-canvas-background: #ddd;
  --wpds-color-bg-surface-neutral-strong: #fff;
  --wpds-color-fg-content-neutral: #1e1e1e;
  --wpds-color-stroke-surface-neutral-weak: rgba(0, 0, 0, 0.1);
  --wp-components-color-foreground: #1e1e1e;
  --wp-components-color-background: #fff;
  background: #fff;
  color: #1e1e1e;
  color-scheme: light;
}

html[data-yooadmin-studio-color-mode-effective='light']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #wpbody-content,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='light']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #wpbody-content {
  background: #fff !important;
}

html[data-yooadmin-studio-color-mode-effective='light']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton,
html[data-yooadmin-studio-color-mode-effective='light']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton__header,
html[data-yooadmin-studio-color-mode-effective='light']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton__body,
html[data-yooadmin-studio-color-mode-effective='light']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton__content,
html[data-yooadmin-studio-color-mode-effective='light']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton__editor,
html[data-yooadmin-studio-color-mode-effective='light']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton__footer,
html[data-yooadmin-studio-color-mode-effective='light']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area,
html[data-yooadmin-studio-color-mode-effective='light']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-visual-editor,
html[data-yooadmin-studio-color-mode-effective='light']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-header,
html[data-yooadmin-studio-color-mode-effective='light']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-header,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='light']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='light']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton__header,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='light']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton__body,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='light']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton__content,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='light']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton__editor,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='light']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton__footer,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='light']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='light']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-visual-editor,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='light']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-header,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='light']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-header {
  background: #fff !important;
  background-color: #fff !important;
  color: #1e1e1e !important;
}

html[data-yooadmin-studio-color-mode-effective='light']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-document-bar,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='light']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-document-bar {
  background: #fff !important;
  color: #1e1e1e !important;
}

/* Focus / network shell — light tokens when theme body class differs */
html[data-yooadmin-studio-color-mode-effective='light'] body.yoo-focus.block-editor-page,
html[data-yooadmin-studio-color-mode-effective='light'] body.yooadmin-network-admin-shell.block-editor-page,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='light'] body.yoo-focus.block-editor-page,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='light']
  body.yooadmin-network-admin-shell.block-editor-page {
  --wp-editor-canvas-background: #ddd;
  --wpds-color-bg-surface-neutral-strong: #fff;
  --wpds-color-fg-content-neutral: #1e1e1e;
  --wpds-color-stroke-surface-neutral-weak: rgba(0, 0, 0, 0.1);
  --wp-components-color-foreground: #1e1e1e;
  --wp-components-color-background: #fff;
  background: #fff;
  color: #1e1e1e;
  color-scheme: light;
}

html[data-yooadmin-studio-color-mode-effective='light'] body.yoo-focus.block-editor-page #wpbody-content,
html[data-yooadmin-studio-color-mode-effective='light']
  body.yooadmin-network-admin-shell.block-editor-page
  #wpbody-content,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='light']
  body.yoo-focus.block-editor-page
  #wpbody-content,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='light']
  body.yooadmin-network-admin-shell.block-editor-page
  #wpbody-content {
  background: #fff !important;
}

html[data-yooadmin-studio-color-mode-effective='light']
  body.yoo-focus.block-editor-page
  :is(
    .interface-interface-skeleton,
    .interface-interface-skeleton__header,
    .interface-interface-skeleton__body,
    .interface-interface-skeleton__content,
    .interface-interface-skeleton__editor,
    .interface-interface-skeleton__footer,
    .editor-header,
    .edit-post-header,
    .interface-complementary-area
  ),
html[data-yooadmin-studio-color-mode-effective='light']
  body.yooadmin-network-admin-shell.block-editor-page
  :is(
    .interface-interface-skeleton,
    .interface-interface-skeleton__header,
    .interface-interface-skeleton__body,
    .interface-interface-skeleton__content,
    .interface-interface-skeleton__editor,
    .interface-interface-skeleton__footer,
    .editor-header,
    .edit-post-header,
    .interface-complementary-area
  ),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='light']
  body.yoo-focus.block-editor-page
  :is(
    .interface-interface-skeleton,
    .interface-interface-skeleton__header,
    .interface-interface-skeleton__body,
    .interface-interface-skeleton__content,
    .interface-interface-skeleton__editor,
    .interface-interface-skeleton__footer,
    .editor-header,
    .edit-post-header,
    .interface-complementary-area
  ),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='light']
  body.yooadmin-network-admin-shell.block-editor-page
  :is(
    .interface-interface-skeleton,
    .interface-interface-skeleton__header,
    .interface-interface-skeleton__body,
    .interface-interface-skeleton__content,
    .interface-interface-skeleton__editor,
    .interface-interface-skeleton__footer,
    .editor-header,
    .edit-post-header,
    .interface-complementary-area
  ) {
  background: #fff !important;
  background-color: #fff !important;
  color: #1e1e1e !important;
}

/* -------------------------------------------------------------------------
 * Dark mode — unified surfaces (no dark/light seams)
 * ------------------------------------------------------------------------- */

/* Focus / network shell — same dark tokens when theme body class differs */
html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-focus.block-editor-page,
html[data-yooadmin-studio-color-mode-effective='dark'] body.yooadmin-network-admin-shell.block-editor-page,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-focus.block-editor-page,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-network-admin-shell.block-editor-page {
  --wp-editor-canvas-background: #1a1d23;
  --wpds-color-bg-surface-neutral-strong: #1a1d23;
  --wpds-color-fg-content-neutral: #cfd6e0;
  --wp-components-color-foreground: #cfd6e0;
  --wp-components-color-background: #1a1d23;
  background: var(--ysh-surface, #121418);
  color: var(--ysh-text, #cfd6e0);
  color-scheme: dark;
}

html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-focus.block-editor-page #wpbody-content,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-network-admin-shell.block-editor-page
  #wpbody-content,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus.block-editor-page
  #wpbody-content,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-network-admin-shell.block-editor-page
  #wpbody-content {
  background: var(--ysh-surface, #121418) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus.block-editor-page
  :is(
    .interface-interface-skeleton,
    .interface-interface-skeleton__header,
    .interface-interface-skeleton__body,
    .interface-interface-skeleton__content,
    .interface-interface-skeleton__editor,
    .interface-interface-skeleton__footer,
    .editor-header,
    .edit-post-header,
    .interface-complementary-area
  ),
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-network-admin-shell.block-editor-page
  :is(
    .interface-interface-skeleton,
    .interface-interface-skeleton__header,
    .interface-interface-skeleton__body,
    .interface-interface-skeleton__content,
    .interface-interface-skeleton__editor,
    .interface-interface-skeleton__footer,
    .editor-header,
    .edit-post-header,
    .interface-complementary-area
  ),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus.block-editor-page
  :is(
    .interface-interface-skeleton,
    .interface-interface-skeleton__header,
    .interface-interface-skeleton__body,
    .interface-interface-skeleton__content,
    .interface-interface-skeleton__editor,
    .interface-interface-skeleton__footer,
    .editor-header,
    .edit-post-header,
    .interface-complementary-area
  ),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-network-admin-shell.block-editor-page
  :is(
    .interface-interface-skeleton,
    .interface-interface-skeleton__header,
    .interface-interface-skeleton__body,
    .interface-interface-skeleton__content,
    .interface-interface-skeleton__editor,
    .interface-interface-skeleton__footer,
    .editor-header,
    .edit-post-header,
    .interface-complementary-area
  ) {
  background: var(--ysh-card, #1a1d23) !important;
  color: var(--ysh-text, #cfd6e0) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page {
  --wp-editor-canvas-background: #1a1d23;
  --wpds-color-bg-surface-neutral-strong: #1a1d23;
  --wpds-color-fg-content-neutral: #cfd6e0;
  --wpds-color-stroke-surface-neutral-weak: rgba(255, 255, 255, 0.08);
  --wp-components-color-foreground: #cfd6e0;
  --wp-components-color-background: #1a1d23;
  background: var(--ysh-surface, #121418);
  color: var(--ysh-text, #cfd6e0);
  color-scheme: dark;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #editor,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #editor {
  --wp-editor-canvas-background: #1a1d23;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #wpwrap,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #wpcontent,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #wpbody,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #wpbody-content,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #wpwrap,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #wpcontent,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #wpbody,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #wpbody-content {
  background: var(--ysh-surface, #121418) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton__header,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton__body,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton__content,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton__editor,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton__sidebar,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton__secondary-sidebar,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton__footer,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-header,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton__header,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton__body,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton__content,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton__editor,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton__sidebar,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton__secondary-sidebar,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton__footer,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-header,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton__actions,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton__actions {
  background: var(--ysh-card, #1a1d23) !important;
  color: var(--ysh-text, #cfd6e0) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton__footer
  .block-editor-block-breadcrumb,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton__footer
  .block-editor-block-breadcrumb {
  background: var(--ysh-card, #1a1d23) !important;
  color: var(--ysh-text, #cfd6e0) !important;
}

/* Canvas shell — WP sets #fff / --wp-editor-canvas-background on several layers */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-visual-editor,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-visual-editor,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-visual-editor__content-area,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-visual-editor__post-title-wrapper,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-visual-editor__post-title-wrapper,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-canvas,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-resizable-editor,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-iframe__container,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-iframe__scale-container,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  iframe[name='editor-canvas'],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-visual-editor,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-visual-editor,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-visual-editor__content-area,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-visual-editor__post-title-wrapper,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-visual-editor__post-title-wrapper,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-canvas,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-resizable-editor,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-iframe__container,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-iframe__scale-container,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  iframe[name='editor-canvas'] {
  background: var(--ysh-card, #1a1d23) !important;
  background-color: var(--ysh-card, #1a1d23) !important;
}

/* Beat block-library reset: html :where(.editor-styles-wrapper){background:#fff} */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  :where(.editor-styles-wrapper),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  :where(.editor-styles-wrapper) {
  background: var(--ysh-card, #1a1d23) !important;
  color: var(--ysh-text, #cfd6e0) !important;
  --wp--preset--color--contrast: #d8d3ce;
  --wp--preset--color--contrast-2: #b4bdc9;
  --wp--preset--color--contrast-3: #9aa5b1;
  --wp--preset--color--base: #1a1d23;
  --wp--preset--color--base-2: #282d36;
  --wp--style--color--link: #eda934;
}

/* Sidebar — .interface-complementary-area { background: #fff } */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area-header,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area__fill,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-navigable-region,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-sidebar,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-sidebar,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-scrollable,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-panel__body,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area-header,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area__fill,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-navigable-region,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-sidebar,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-sidebar,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-scrollable,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-panel__body {
  background: var(--ysh-card, #1a1d23) !important;
  background-color: var(--ysh-card, #1a1d23) !important;
  color: var(--ysh-text, #cfd6e0) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area h2,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area h3,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area h2,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area h3 {
  color: var(--ysh-heading, #d8d3ce) !important;
}

/* Header document bar — title chip is #f0f0f0 in core */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-document-bar,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-document-bar:hover,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-document-bar
  .components-button,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-document-bar
  .components-button:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-document-bar,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-document-bar:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-document-bar
  .components-button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-document-bar
  .components-button:hover {
  background: #22262e !important;
  background-color: #22262e !important;
  color: var(--ysh-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-document-bar__title,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-document-bar__title
  h1,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-document-bar__post-title,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-document-bar__title,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-document-bar__title
  h1,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-document-bar__post-title {
  color: var(--ysh-heading, #d8d3ce) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-document-bar__command,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-document-bar__post-type-label,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-document-bar__shortcut,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-document-bar__command,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-document-bar__post-type-label,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-document-bar__shortcut {
  color: var(--ysh-muted, #b4bdc9) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-document-bar__command.components-button,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-document-bar__command.components-button:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-document-bar__command.components-button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-document-bar__command.components-button:hover {
  background: transparent !important;
  color: var(--ysh-text, #cfd6e0) !important;
}

/* Command palette (Ctrl+K) + search inputs */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .commands-command-menu
  .components-modal__content,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .commands-command-menu__container,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .commands-command-menu
  .components-modal__content,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .commands-command-menu__container {
  background: var(--ysh-card, #1a1d23) !important;
  color: var(--ysh-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .commands-command-menu__header
  .components-button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .commands-command-menu__header
  .components-button {
  background: #22262e !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: var(--ysh-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .commands-command-menu__container
  [cmdk-input],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .commands-command-menu__container
  [cmdk-input] {
  background: transparent !important;
  color: var(--ysh-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .commands-command-menu__container
  [cmdk-input]::placeholder,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .commands-command-menu__container
  [cmdk-input]::placeholder {
  color: var(--ysh-muted, #9aa5b1) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .commands-command-menu__container
  [cmdk-item],
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .commands-command-menu__container
  [cmdk-empty],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .commands-command-menu__container
  [cmdk-item],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .commands-command-menu__container
  [cmdk-empty] {
  color: var(--ysh-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .commands-command-menu__container
  [cmdk-item]
  svg,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .commands-command-menu__container
  [cmdk-item]
  svg {
  fill: currentColor !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .commands-command-menu__container
  [cmdk-item][aria-selected='true'],
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .commands-command-menu__container
  [cmdk-item]:active,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .commands-command-menu__container
  [cmdk-item][aria-selected='true'],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .commands-command-menu__container
  [cmdk-item]:active {
  background: var(--ysh-accent, #eda934) !important;
  color: #fff !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .commands-command-menu__item-category,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .commands-command-menu__item-category {
  color: var(--ysh-muted, #b4bdc9) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .commands-command-menu__container
  [cmdk-root]
  > [cmdk-list]:has([cmdk-group-items]:not(:empty)),
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .commands-command-menu__container
  [cmdk-root]
  > [cmdk-list]:has([cmdk-empty]),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .commands-command-menu__container
  [cmdk-root]
  > [cmdk-list]:has([cmdk-group-items]:not(:empty)),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .commands-command-menu__container
  [cmdk-root]
  > [cmdk-list]:has([cmdk-empty]) {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-search-control__input,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-search-control__input {
  color: var(--ysh-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-search-control__input::placeholder,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-search-control__input::placeholder {
  color: var(--ysh-muted, #9aa5b1) !important;
  opacity: 1 !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-visual-editor,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-writing-flow,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-visual-editor,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-writing-flow {
  background: var(--ysh-card, #1a1d23) !important;
  color: var(--ysh-text, #cfd6e0) !important;
}

/* Canvas — block row surfaces stay transparent (avoid base-color stripes on every block) */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .block-editor-block-list__layout.is-root-container,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .block-editor-block-list__layout
  .block-editor-block-list__block,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .block-editor-block-list__layout
  > .block-list-appender.wp-block,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .block-editor-block-list__layout.is-root-container,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .block-editor-block-list__layout
  .block-editor-block-list__block,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .block-editor-block-list__layout
  > .block-list-appender.wp-block {
  background: transparent !important;
  background-color: transparent !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .block-editor-block-list__layout
  .has-base-background-color:not(.wp-block-group):not(.wp-block-cover):not(.wp-block-template-part),
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .block-editor-block-list__layout
  .has-base-2-background-color:not(.wp-block-group):not(.wp-block-cover):not(.wp-block-template-part),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .block-editor-block-list__layout
  .has-base-background-color:not(.wp-block-group):not(.wp-block-cover):not(.wp-block-template-part),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .block-editor-block-list__layout
  .has-base-2-background-color:not(.wp-block-group):not(.wp-block-cover):not(.wp-block-template-part) {
  background: transparent !important;
  background-color: transparent !important;
}

/* Canvas — block focus/selection overlay (WP white inset glow breaks on dark bg) */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .block-editor-block-list__layout
  .block-editor-block-list__block.is-highlighted::after,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .block-editor-block-list__layout
  .block-editor-block-list__block.is-highlighted
  ~ .is-multi-selected::after,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .block-editor-block-list__layout
  .block-editor-block-list__block:not([contenteditable='true']):focus::after,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .is-outline-mode
  .editor-styles-wrapper
  .block-editor-block-list__block:not(.remove-outline).is-hovered:not(.is-selected)::after,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .is-outline-mode
  .editor-styles-wrapper
  .block-editor-block-list__block:not(.remove-outline):not(.rich-text):not([contenteditable='true']).is-selected::after,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .block-editor-block-list__layout
  .block-editor-block-list__block.is-highlighted::after,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .block-editor-block-list__layout
  .block-editor-block-list__block.is-highlighted
  ~ .is-multi-selected::after,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .block-editor-block-list__layout
  .block-editor-block-list__block:not([contenteditable='true']):focus::after,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .is-outline-mode
  .editor-styles-wrapper
  .block-editor-block-list__block:not(.remove-outline).is-hovered:not(.is-selected)::after,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .is-outline-mode
  .editor-styles-wrapper
  .block-editor-block-list__block:not(.remove-outline):not(.rich-text):not([contenteditable='true']).is-selected::after {
  box-shadow: none !important;
  outline-color: var(--ysh-accent, #eda934) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .block-editor-block-list__layout
  .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::after,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .block-editor-block-list__layout
  .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::after {
  background: var(--ysh-accent, #eda934) !important;
  opacity: 0.22 !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-post-title__input,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-post-title__input::placeholder,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-post-title__input,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-post-title__input::placeholder {
  color: var(--ysh-heading, #d8d3ce) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-post-title__input::placeholder,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-post-title__input::placeholder {
  color: var(--ysh-muted, #9aa5b1) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-default-block-appender
  .block-editor-inserter__toggle,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__toggle,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-default-block-appender
  .block-editor-inserter__toggle,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__toggle {
  background: #22262e !important;
  color: var(--ysh-text, #cfd6e0) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

/* Canvas — block placeholder setup UI (Terms Query, Image, Query, etc.) */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-placeholder,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-placeholder.components-placeholder,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-placeholder,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-placeholder,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-placeholder.components-placeholder,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-placeholder {
  background-color: #22262e !important;
  color: var(--ysh-text, #cfd6e0) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-placeholder__label,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-placeholder__instructions,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-placeholder__fieldset,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-placeholder__error,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-placeholder__label,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-placeholder__instructions,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-placeholder__fieldset,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-placeholder__error {
  color: var(--ysh-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-placeholder__label
  .block-editor-block-icon,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-placeholder__label
  > svg,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-placeholder__label
  .block-editor-block-icon,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-placeholder__label
  > svg {
  color: var(--ysh-text, #cfd6e0) !important;
  fill: currentColor !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-placeholder__input[type='url'],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-placeholder__input[type='url'] {
  background: var(--ysh-card, #1a1d23) !important;
  color: var(--ysh-text, #cfd6e0) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-variation-picker__variations
  .components-button,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-variation-picker__skip
  .components-button,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-group-placeholder__variations
  .components-button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-variation-picker__variations
  .components-button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-variation-picker__skip
  .components-button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-group-placeholder__variations
  .components-button {
  color: var(--ysh-muted, #b4bdc9) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-variation-picker__variations
  svg,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-variation-picker__skip
  svg,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-variation-picker__variations
  svg,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-variation-picker__skip
  svg {
  fill: var(--ysh-muted, #b4bdc9) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-variation-picker__variations
  .components-button:hover,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-variation-picker__skip
  .components-button:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-variation-picker__variations
  .components-button:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-variation-picker__skip
  .components-button:hover {
  color: var(--ysh-accent, #eda934) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-variation-picker__variations
  .components-button:hover
  svg,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-variation-picker__skip
  .components-button:hover
  svg,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-variation-picker__variations
  .components-button:hover
  svg,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-variation-picker__skip
  .components-button:hover
  svg {
  fill: var(--ysh-accent, #eda934) !important;
}

/* Canvas — content links (post terms, rich text, block links) */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  a,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-list__block
  a,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .rich-text
  a,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-post-terms
  a,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-term-name
  a,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  a,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-list__block
  a,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .rich-text
  a,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-post-terms
  a,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-term-name
  a {
  color: var(--ysh-accent, #eda934) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .components-button.is-link,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-list__block
  .components-button.is-link,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .components-button.is-link,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-list__block
  .components-button.is-link {
  color: var(--ysh-accent, #eda934) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  a:hover,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-list__block
  a:hover,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-post-terms
  a:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  a:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-list__block
  a:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-post-terms
  a:hover {
  color: #f5c66a !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-button-block-appender,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-button-block-appender {
  color: rgba(255, 255, 255, 0.65) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-button-block-appender:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-button-block-appender:hover {
  color: var(--ysh-accent, #eda934) !important;
  box-shadow: inset 0 0 0 1px var(--ysh-accent, #eda934) !important;
}

/* Canvas — template content (headings, comments, forms, theme preset surfaces) */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  :where(h1, h2, h3, h4, h5, h6, .wp-block-heading, .wp-block-post-title, .wp-block-query-title),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  :where(h1, h2, h3, h4, h5, h6, .wp-block-heading, .wp-block-post-title, .wp-block-query-title) {
  color: var(--ysh-heading, #d8d3ce) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-comments-title,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-post-comments-count,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .comment-reply-title,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-comments-title,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-post-comments-count,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .comment-reply-title {
  color: var(--ysh-heading, #d8d3ce) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-comment-content,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-post-comments
  .commentlist
  .comment
  p,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-comment-content,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-post-comments
  .commentlist
  .comment
  p {
  color: var(--ysh-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .has-white-background-color,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-group.has-background.has-base-background-color,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-group.has-background.has-base-2-background-color,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-cover.has-base-background-color,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-cover.has-base-2-background-color,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .wp-block-template-part
  .has-base-background-color,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .wp-block-template-part
  .has-base-2-background-color,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-post-terms.has-background,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .has-white-background-color,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-group.has-background.has-base-background-color,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-group.has-background.has-base-2-background-color,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-cover.has-base-background-color,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-cover.has-base-2-background-color,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .wp-block-template-part
  .has-base-background-color,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .wp-block-template-part
  .has-base-2-background-color,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-post-terms.has-background {
  background-color: #22262e !important;
  color: var(--ysh-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .is-root-container
  > .wp-block-group.has-base-2-background-color:first-child,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .is-root-container
  > .wp-block-group.has-base-2-background-color:first-child {
  background-color: #282d36 !important;
  color: var(--ysh-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-post-comments-form
  textarea,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-post-comments-form
  input:not([type='submit']):not([type='checkbox']),
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-post-comments
  textarea,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-post-comments
  input:not([type='submit']):not([type='checkbox']),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-post-comments-form
  textarea,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-post-comments-form
  input:not([type='submit']):not([type='checkbox']),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-post-comments
  textarea,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-post-comments
  input:not([type='submit']):not([type='checkbox']) {
  background: #22262e !important;
  color: var(--ysh-text, #cfd6e0) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-post-comments-form
  label,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-post-comments
  .comment-form
  label,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-post-comments-form
  label,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-post-comments
  .comment-form
  label {
  color: var(--ysh-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  :where(.wp-block-post-comments-form input[type='submit'], .wp-block-post-comments input[type='submit']),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  :where(.wp-block-post-comments-form input[type='submit'], .wp-block-post-comments input[type='submit']) {
  background: var(--ysh-accent, #eda934) !important;
  color: #1a1d23 !important;
  border: none !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  :where(.wp-block-post-comments-form input[type='submit']:hover, .wp-block-post-comments input[type='submit']:hover),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  :where(.wp-block-post-comments-form input[type='submit']:hover, .wp-block-post-comments input[type='submit']:hover) {
  background: #f5c66a !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-post-navigation-link,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-comments-pagination,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-post-navigation-link,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-comments-pagination {
  color: var(--ysh-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-post-navigation-link
  a,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-comments-pagination
  a,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-post-navigation-link
  a,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .wp-block-comments-pagination
  a {
  color: var(--ysh-accent, #eda934) !important;
}

/* Canvas — header/footer bands + section frames (template editor) */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-iframe__scale-container,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-iframe__container,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-iframe__scale-container,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-iframe__container {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .wp-block-template-part[data-area='header'],
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .wp-block-template-part[data-area='header']
  > .wp-block-group,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .wp-block-template-part[data-area='header']
  .has-base-2-background-color,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .is-root-container
  > .wp-block-group.has-base-2-background-color:first-child,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .wp-block-template-part[data-area='header'],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .wp-block-template-part[data-area='header']
  > .wp-block-group,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .wp-block-template-part[data-area='header']
  .has-base-2-background-color,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .is-root-container
  > .wp-block-group.has-base-2-background-color:first-child {
  background-color: #282d36 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .wp-block-template-part[data-area='footer'],
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .wp-block-template-part[data-area='footer']
  > .wp-block-group,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .wp-block-template-part[data-area='footer'],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .wp-block-template-part[data-area='footer']
  > .wp-block-group {
  background-color: #282d36 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .wp-block-template-part[data-area='header'],
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .wp-block-template-part[data-area='footer'],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .wp-block-template-part[data-area='header'],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-wrapper
  .wp-block-template-part[data-area='footer'] {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book__subcategory-title,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book__example-title,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book__subcategory-title,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book__example-title {
  color: var(--ysh-muted, #b4bdc9) !important;
  border-top-color: rgba(255, 255, 255, 0.14) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book__example,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book__example {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.03) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-button.is-secondary,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-button.is-tertiary,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-button.is-secondary,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-button.is-tertiary {
  background: #22262e !important;
  background-color: #22262e !important;
  color: var(--ysh-text, #cfd6e0) !important;
  border: none !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-button.is-secondary:hover,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-button.is-tertiary:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-button.is-secondary:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-button.is-tertiary:hover {
  background: #2a3038 !important;
  background-color: #2a3038 !important;
  color: var(--ysh-heading, #e8ecf1) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-button.is-destructive.is-secondary,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-post-trash.components-button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-button.is-destructive.is-secondary,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-post-trash.components-button {
  background: rgba(204, 24, 24, 0.14) !important;
  background-color: rgba(204, 24, 24, 0.14) !important;
  color: #ff8a8a !important;
  box-shadow: inset 0 0 0 1px rgba(255, 120, 120, 0.22) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-button.is-destructive.is-secondary:hover,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-post-trash.components-button:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-button.is-destructive.is-secondary:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-post-trash.components-button:hover {
  background: rgba(204, 24, 24, 0.22) !important;
  background-color: rgba(204, 24, 24, 0.22) !important;
  color: #ffb4b4 !important;
}

/* Editor footer — Post › Paragraph breadcrumb + bar (#fff in core) */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton__footer,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-interface-skeleton__footer {
  background: var(--ysh-card, #1a1d23) !important;
  background-color: var(--ysh-card, #1a1d23) !important;
  color: var(--ysh-text, #cfd6e0) !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

/* Meta boxes drawer — presenter bar + panel (core #fff) */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-meta-boxes-main,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-meta-boxes-main {
  background: var(--ysh-card, #1a1d23) !important;
  background-color: var(--ysh-card, #1a1d23) !important;
  color: var(--ysh-text, #cfd6e0) !important;
  filter: drop-shadow(0 -1px rgba(0, 0, 0, 0.45)) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-meta-boxes-main__presenter,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-meta-boxes-main__presenter {
  background: var(--ysh-card, #1a1d23) !important;
  background-color: var(--ysh-card, #1a1d23) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-meta-boxes-main__presenter
  > button[aria-expanded],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-meta-boxes-main__presenter
  > button[aria-expanded] {
  color: var(--ysh-muted, #b4bdc9) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-meta-boxes-main__presenter
  > button[aria-expanded]:is(:hover, :focus-visible),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-meta-boxes-main__presenter
  > button[aria-expanded]:is(:hover, :focus-visible) {
  color: var(--ysh-brand, #eda934) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-meta-boxes-main__presenter
  > button[aria-expanded]
  > svg,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-meta-boxes-main__presenter
  > button[aria-expanded]
  > svg {
  fill: currentColor !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-meta-boxes-main__presenter
  > button[role='separator']::before,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-meta-boxes-main__presenter
  > button[role='separator']::before {
  background-color: rgba(255, 255, 255, 0.28) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-meta-boxes-main__presenter
  > button[role='separator']:is(:hover, :focus)::before,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-meta-boxes-main__presenter
  > button[role='separator']:is(:hover, :focus)::before {
  background-color: var(--ysh-brand, #eda934) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-meta-boxes-main__liner,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-meta-boxes-area,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-meta-boxes-main__liner,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-meta-boxes-area {
  background: var(--ysh-card, #1a1d23) !important;
  background-color: var(--ysh-card, #1a1d23) !important;
  color: var(--ysh-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-meta-boxes-area
  .postbox-header,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-meta-boxes-area
  .postbox-header {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-breadcrumb__button,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-breadcrumb__current,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-breadcrumb__separator,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-breadcrumb__button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-breadcrumb__current,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-breadcrumb__separator {
  color: var(--ysh-muted, #b4bdc9) !important;
  fill: currentColor !important;
  background: transparent !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-breadcrumb__button:hover,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-breadcrumb__current,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-breadcrumb__button:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-breadcrumb__current {
  color: var(--ysh-heading, #e8ecf1) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-pinned-items
  .components-button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-pinned-items
  .components-button {
  color: var(--ysh-muted, #b4bdc9) !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-pinned-items
  .components-button.is-pressed,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-pinned-items
  .components-button[aria-pressed='true'],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-pinned-items
  .components-button.is-pressed,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-pinned-items
  .components-button[aria-pressed='true'] {
  color: var(--ysh-heading, #e8ecf1) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__menu,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-inspector,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-popover__content,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-panel,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-modal__frame,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__menu,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-inspector,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-popover__content,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-panel,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-modal__frame {
  background: var(--ysh-card, #1a1d23) !important;
  color: var(--ysh-text, #cfd6e0) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Block sidebar — empty state ("No block selected") */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-inspector__no-blocks,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-inspector__no-block-tools,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-inspector__no-blocks,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-inspector__no-block-tools {
  background: var(--ysh-card, #1a1d23) !important;
  color: var(--ysh-muted, #9aa5b1) !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-panel__body-title,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-base-control__label,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-panel__body-title,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-base-control__label {
  color: var(--ysh-heading, #d8d3ce) !important;
}

/* Sidebar accordion headers (Categories, Tags, …) — core uses #fff title hover + #1e1e1e toggle */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  .components-panel__body
  > .components-panel__body-title,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  .components-panel__body.is-opened
  > .components-panel__body-title,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-sidebar
  .components-panel__body
  > .components-panel__body-title,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-sidebar
  .components-panel__body.is-opened
  > .components-panel__body-title,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  .components-panel__body
  > .components-panel__body-title,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  .components-panel__body.is-opened
  > .components-panel__body-title,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-sidebar
  .components-panel__body
  > .components-panel__body-title,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-sidebar
  .components-panel__body.is-opened
  > .components-panel__body-title {
  background: var(--ysh-card, #1a1d23) !important;
  background-color: var(--ysh-card, #1a1d23) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  .components-panel__body
  > .components-panel__body-title:hover,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-sidebar
  .components-panel__body
  > .components-panel__body-title:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  .components-panel__body
  > .components-panel__body-title:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-sidebar
  .components-panel__body
  > .components-panel__body-title:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  .components-panel__body-toggle.components-button,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  .components-panel__body-toggle.components-button:hover,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  .components-panel__body-toggle.components-button:focus,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  .components-panel__body-toggle.components-button[aria-expanded='true'],
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-sidebar
  .components-panel__body-toggle.components-button,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-sidebar
  .components-panel__body-toggle.components-button:hover,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-sidebar
  .components-panel__body-toggle.components-button:focus,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-sidebar
  .components-panel__body-toggle.components-button[aria-expanded='true'],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  .components-panel__body-toggle.components-button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  .components-panel__body-toggle.components-button:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  .components-panel__body-toggle.components-button:focus,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  .components-panel__body-toggle.components-button[aria-expanded='true'],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-sidebar
  .components-panel__body-toggle.components-button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-sidebar
  .components-panel__body-toggle.components-button:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-sidebar
  .components-panel__body-toggle.components-button:focus,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-sidebar
  .components-panel__body-toggle.components-button[aria-expanded='true'] {
  background: transparent !important;
  background-color: transparent !important;
  color: var(--ysh-heading, #e8ecf1) !important;
  box-shadow: none !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  .components-panel__body-toggle
  .components-panel__arrow,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-sidebar
  .components-panel__body-toggle
  .components-panel__arrow,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  .components-panel__icon,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-sidebar
  .components-panel__icon,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  .components-panel__body-toggle
  .components-panel__arrow,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-sidebar
  .components-panel__body-toggle
  .components-panel__arrow,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  .components-panel__icon,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-sidebar
  .components-panel__icon {
  color: var(--ysh-muted, #b4bdc9) !important;
  fill: currentColor !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  .components-form-token-field__input-container,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  .components-form-token-field__input-container input,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  .components-text-control__input,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  .components-form-token-field__input-container,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  .components-form-token-field__input-container input,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  .components-text-control__input {
  background: #22262e !important;
  background-color: #22262e !important;
  color: var(--ysh-text, #cfd6e0) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Select / dropdown controls — Parent Category, block settings, sidebar */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  select.components-select-control__input,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  select.components-select-control__input {
  color-scheme: dark !important;
  background: transparent !important;
  background-color: transparent !important;
  color: var(--ysh-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  select.components-select-control__input option,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  select.components-select-control__input optgroup,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  select.components-select-control__input option,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  select.components-select-control__input optgroup {
  background-color: #1a1d23 !important;
  color: var(--ysh-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-select-control
  .components-input-control__container,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-select-control
  .components-input-control__container {
  background: #22262e !important;
  background-color: #22262e !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-select-control
  .components-input-control__backdrop,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-select-control
  .components-input-control__backdrop {
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: none !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-select-control:focus-within
  .components-input-control__backdrop,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-select-control:focus-within
  .components-input-control__backdrop {
  border-color: var(--ysh-accent, #eda934) !important;
  box-shadow: 0 0 0 1px var(--ysh-card, #1a1d23),
    0 0 0 3px rgba(var(--ysh-brand-rgb, 237, 169, 52), 0.35) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-select-control
  .components-input-control__suffix
  svg,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-select-control
  .components-input-control__suffix
  svg
  path,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-select-control
  .components-input-control__suffix
  svg,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-select-control
  .components-input-control__suffix
  svg
  path {
  fill: var(--ysh-muted, #b4bdc9) !important;
  color: var(--ysh-muted, #b4bdc9) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-custom-select-control
  [role='combobox'],
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-custom-select-control__item,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-combobox-control__suggestions-container,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-popover__content:has([role='option']),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-custom-select-control
  [role='combobox'],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-custom-select-control__item,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-combobox-control__suggestions-container,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-popover__content:has([role='option']) {
  background: #22262e !important;
  background-color: #22262e !important;
  color: var(--ysh-text, #cfd6e0) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-popover__content
  [role='option'],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-popover__content
  [role='option'] {
  color: var(--ysh-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-custom-select-control__item[data-active-item],
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-popover
  [role='option'][data-active-item],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-custom-select-control__item[data-active-item],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-popover
  [role='option'][data-active-item] {
  background: rgba(var(--ysh-brand-rgb, 237, 169, 52), 0.18) !important;
  background-color: rgba(var(--ysh-brand-rgb, 237, 169, 52), 0.18) !important;
  color: var(--ysh-heading, #e8ecf1) !important;
}

/* Checkbox controls — categories, tags, preferences, sidebar */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-checkbox-control__input[type='checkbox'],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-checkbox-control__input[type='checkbox'] {
  background: #22262e !important;
  background-color: #22262e !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: none !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-checkbox-control__input[type='checkbox']:checked,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-checkbox-control__input[type='checkbox']:indeterminate,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-checkbox-control__input[type='checkbox'][aria-checked='mixed'],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-checkbox-control__input[type='checkbox']:checked,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-checkbox-control__input[type='checkbox']:indeterminate,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-checkbox-control__input[type='checkbox'][aria-checked='mixed'] {
  background: var(--ysh-accent, #eda934) !important;
  background-color: var(--ysh-accent, #eda934) !important;
  border-color: var(--ysh-accent, #eda934) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-checkbox-control__input[type='checkbox']:focus,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-checkbox-control__input[type='checkbox']:focus {
  border-color: var(--ysh-accent, #eda934) !important;
  box-shadow: 0 0 0 1px var(--ysh-card, #1a1d23),
    0 0 0 3px rgba(var(--ysh-brand-rgb, 237, 169, 52), 0.35) !important;
  outline: none !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-checkbox-control__input[type='checkbox']:disabled,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-checkbox-control__input[type='checkbox'][aria-disabled='true'],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-checkbox-control__input[type='checkbox']:disabled,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-checkbox-control__input[type='checkbox'][aria-disabled='true'] {
  background: #1a1d23 !important;
  background-color: #1a1d23 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  opacity: 0.55 !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  svg.components-checkbox-control__checked,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  svg.components-checkbox-control__indeterminate,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  svg.components-checkbox-control__checked,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  svg.components-checkbox-control__indeterminate {
  fill: #fff !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-checkbox-control__label,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-post-taxonomies__hierarchical-terms-choice
  .components-checkbox-control__label,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-checkbox-control__label,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-post-taxonomies__hierarchical-terms-choice
  .components-checkbox-control__label {
  background: transparent !important;
  background-color: transparent !important;
  color: var(--ysh-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-checkbox-control__help,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-checkbox-control__help {
  color: var(--ysh-muted, #b4bdc9) !important;
}

/* Starter patterns modal — footer bar (core hardcodes #fff; language-agnostic) */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-start-page-options__modal
  .editor-start-page-options__modal__actions,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus.block-editor-page
  .editor-start-page-options__modal
  .editor-start-page-options__modal__actions,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-network-admin-shell.block-editor-page
  .editor-start-page-options__modal
  .editor-start-page-options__modal__actions,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-start-page-options__modal
  .editor-start-page-options__modal__actions,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus.block-editor-page
  .editor-start-page-options__modal
  .editor-start-page-options__modal__actions,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-network-admin-shell.block-editor-page
  .editor-start-page-options__modal
  .editor-start-page-options__modal__actions {
  background: var(--ysh-card, #1a1d23) !important;
  background-color: var(--ysh-card, #1a1d23) !important;
  border-top-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--ysh-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-start-page-options__modal
  .editor-start-page-options__modal__actions
  .components-checkbox-control__label,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus.block-editor-page
  .editor-start-page-options__modal
  .editor-start-page-options__modal__actions
  .components-checkbox-control__label,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-network-admin-shell.block-editor-page
  .editor-start-page-options__modal
  .editor-start-page-options__modal__actions
  .components-checkbox-control__label,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-start-page-options__modal
  .editor-start-page-options__modal__actions
  .components-checkbox-control__label,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus.block-editor-page
  .editor-start-page-options__modal
  .editor-start-page-options__modal__actions
  .components-checkbox-control__label,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-network-admin-shell.block-editor-page
  .editor-start-page-options__modal
  .editor-start-page-options__modal__actions
  .components-checkbox-control__label {
  color: var(--ysh-text, #cfd6e0) !important;
}

/* Gutenberg header — native Site Icon back control */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-header__back-button,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus.block-editor-page
  .editor-header__back-button,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-network-admin-shell.block-editor-page
  .editor-header__back-button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-header__back-button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus.block-editor-page
  .editor-header__back-button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-network-admin-shell.block-editor-page
  .editor-header__back-button {
  min-width: 64px;
  flex-shrink: 0;
  overflow: visible !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-fullscreen-mode-close__view-mode-toggle,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus.block-editor-page
  .edit-post-fullscreen-mode-close__view-mode-toggle,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-network-admin-shell.block-editor-page
  .edit-post-fullscreen-mode-close__view-mode-toggle,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-fullscreen-mode-close__view-mode-toggle,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus.block-editor-page
  .edit-post-fullscreen-mode-close__view-mode-toggle,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-network-admin-shell.block-editor-page
  .edit-post-fullscreen-mode-close__view-mode-toggle {
  display: block !important;
  visibility: visible !important;
  width: 64px !important;
  height: 64px !important;
}

/* Constrain icon slot (56px in 64px back button) — never 100% on bare __image div */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-fullscreen-mode-close-site-icon,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus.block-editor-page
  .edit-post-fullscreen-mode-close-site-icon,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-network-admin-shell.block-editor-page
  .edit-post-fullscreen-mode-close-site-icon,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-fullscreen-mode-close-site-icon,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus.block-editor-page
  .edit-post-fullscreen-mode-close-site-icon,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-network-admin-shell.block-editor-page
  .edit-post-fullscreen-mode-close-site-icon {
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
  max-height: 56px !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  img.edit-post-fullscreen-mode-close-site-icon__image,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus.block-editor-page
  img.edit-post-fullscreen-mode-close-site-icon__image,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-network-admin-shell.block-editor-page
  img.edit-post-fullscreen-mode-close-site-icon__image,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  img.edit-post-fullscreen-mode-close-site-icon__image,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus.block-editor-page
  img.edit-post-fullscreen-mode-close-site-icon__image,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-network-admin-shell.block-editor-page
  img.edit-post-fullscreen-mode-close-site-icon__image {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 56px !important;
  max-height: 56px !important;
  object-fit: contain !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-fullscreen-mode-close-site-icon__icon,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus.block-editor-page
  .edit-post-fullscreen-mode-close-site-icon__icon,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-network-admin-shell.block-editor-page
  .edit-post-fullscreen-mode-close-site-icon__icon,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-fullscreen-mode-close-site-icon__icon,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus.block-editor-page
  .edit-post-fullscreen-mode-close-site-icon__icon,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-network-admin-shell.block-editor-page
  .edit-post-fullscreen-mode-close-site-icon__icon {
  fill: var(--ysh-text, #cfd6e0) !important;
  color: var(--ysh-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-header
  .components-button,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus.block-editor-page
  .editor-header
  .components-button,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-network-admin-shell.block-editor-page
  .editor-header
  .components-button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-header
  .components-button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus.block-editor-page
  .editor-header
  .components-button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-network-admin-shell.block-editor-page
  .editor-header
  .components-button {
  color: var(--ysh-heading, #d8d3ce) !important;
}

/* Sidebar tabs (Post / Block) — WP Tabs use #1e1e1e foreground on dark bg */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-panel__header.editor-sidebar__panel-tabs,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  [role='tablist'],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-panel__header.editor-sidebar__panel-tabs,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  [role='tablist'] {
  background: var(--ysh-card, #1a1d23) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-panel__header.editor-sidebar__panel-tabs
  [role='tab'],
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  [role='tablist']
  [role='tab'],
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-tab-panel__tabs-item,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-panel__header.editor-sidebar__panel-tabs
  [role='tab'],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  [role='tablist']
  [role='tab'],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-tab-panel__tabs-item {
  color: var(--ysh-muted, #b4bdc9) !important;
  background: transparent !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-panel__header.editor-sidebar__panel-tabs
  [role='tab'][aria-selected='true'],
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  [role='tablist']
  [role='tab'][aria-selected='true'],
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-tab-panel__tabs-item.is-active,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-panel__header.editor-sidebar__panel-tabs
  [role='tab'][aria-selected='true'],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  [role='tablist']
  [role='tab'][aria-selected='true'],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-tab-panel__tabs-item.is-active {
  color: var(--ysh-heading, #e8ecf1) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-panel__header.editor-sidebar__panel-tabs
  [role='tab']:is(:hover, :focus-visible, [data-focus-visible]),
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  [role='tablist']
  [role='tab']:is(:hover, :focus-visible, [data-focus-visible]),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-panel__header.editor-sidebar__panel-tabs
  [role='tab']:is(:hover, :focus-visible, [data-focus-visible]),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  [role='tablist']
  [role='tab']:is(:hover, :focus-visible, [data-focus-visible]) {
  color: var(--ysh-heading, #e8ecf1) !important;
}

/* Preferences + vertical tabs — chevron inherits hover/active accent (not black) */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .preferences-modal
  .preferences__tabs-tablist
  [role='tab'],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .preferences-modal
  .preferences__tabs-tablist
  [role='tab'] {
  color: var(--ysh-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .preferences-modal
  .preferences__tabs-tablist
  [role='tab']:is(:hover, [data-focus-visible], [aria-selected='true']),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .preferences-modal
  .preferences__tabs-tablist
  [role='tab']:is(:hover, [data-focus-visible], [aria-selected='true']) {
  color: var(--ysh-accent, #eda934) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .preferences-modal
  .preferences__tabs-tablist
  [role='tab']
  svg,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  [role='tablist'][aria-orientation='vertical']
  [role='tab']
  svg,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .preferences-modal
  .preferences__tabs-tablist
  [role='tab']
  svg,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  [role='tablist'][aria-orientation='vertical']
  [role='tab']
  svg {
  fill: currentColor !important;
  color: inherit !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .preferences-modal
  .preferences__tabs-tablist
  [role='tab']:is(:hover, [data-focus-visible], [aria-selected='true'])
  svg,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .preferences-modal
  .preferences__tabs-tablist
  [role='tab']:is(:hover, [data-focus-visible], [aria-selected='true'])
  svg {
  fill: var(--ysh-accent, #eda934) !important;
  color: var(--ysh-accent, #eda934) !important;
}

/* Modals — Preferences title, section headers, toggles */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-modal__frame
  h1,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-modal__frame
  h2,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-modal__frame
  h3,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-modal__header
  .components-modal__header-heading,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-modal__header
  h1,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-modal__frame
  h1,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-modal__frame
  h2,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-modal__frame
  h3,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-modal__header
  .components-modal__header-heading,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-modal__header
  h1 {
  color: var(--ysh-heading, #e8ecf1) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-modal__header,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-modal__content.has-scrolled-content:not(.hide-header)
  .components-modal__header,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-modal__header,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-modal__content.has-scrolled-content:not(.hide-header)
  .components-modal__header {
  background: var(--ysh-card, #1a1d23) !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-modal__header
  .components-button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-modal__header
  .components-button {
  color: var(--ysh-text, #cfd6e0) !important;
  background: transparent !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-modal__header
  .components-button
  svg,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-modal__header
  .components-button
  svg {
  fill: currentColor !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .preferences-modal__section-title,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .preferences-modal__section-legend,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .preferences-modal__section-title,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .preferences-modal__section-legend {
  color: var(--ysh-heading, #e8ecf1) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .preferences-modal__section-description,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .preferences-modal__section-description {
  color: var(--ysh-muted, #b4bdc9) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .preference-base-option
  .components-toggle-control__label,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .preference-base-option
  .components-toggle-control__label {
  color: var(--ysh-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-form-toggle:not(.is-checked)
  .components-form-toggle__track,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-form-toggle:not(.is-checked)
  .components-form-toggle__track {
  background-color: #22262e !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-form-toggle:not(.is-checked)
  .components-form-toggle__thumb,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-form-toggle:not(.is-checked)
  .components-form-toggle__thumb {
  background-color: #e8ecf1 !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-form-toggle.is-checked
  .components-form-toggle__track,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-form-toggle.is-checked
  .components-form-toggle__track {
  background-color: var(--ysh-accent, #eda934) !important;
  border-color: var(--ysh-accent, #eda934) !important;
}

/* Post sidebar — labels, values, summary card */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-post-panel__row-label,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-post-panel__row-label {
  color: var(--ysh-muted, #b4bdc9) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-post-panel__row-control,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-post-panel__row-control
  .components-button,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-post-summary,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-post-card-panel__title,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-post-card-panel__title-name,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-post-card-panel__description,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-post-panel__row-control,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-post-panel__row-control
  .components-button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-post-summary,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-post-card-panel__title,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-post-card-panel__title-name,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-post-card-panel__description {
  color: var(--ysh-text, #e8ecf1) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-post-card-panel__icon,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  .components-button
  .dashicon,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  svg,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-sidebar
  svg,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-post-card-panel__icon,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  .components-button
  .dashicon,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  svg,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-sidebar
  svg {
  color: var(--ysh-muted, #b4bdc9) !important;
  fill: currentColor !important;
}

/* List View — selected row text/icons on accent background */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-list-view-leaf.is-selected
  td,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-list-view-leaf.is-selected
  td {
  background: var(--ysh-accent, #eda934) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-list-view-leaf.is-selected
  .block-editor-list-view-block-contents,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-list-view-leaf.is-selected
  .block-editor-list-view-block-select-button,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-list-view-leaf.is-selected
  .components-button.has-icon,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-list-view-leaf.is-selected
  .block-editor-list-view-block__menu,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-list-view-leaf.is-selected
  .block-editor-block-icon,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-list-view-leaf.is-selected
  .block-editor-list-view-block-contents,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-list-view-leaf.is-selected
  .block-editor-list-view-block-select-button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-list-view-leaf.is-selected
  .components-button.has-icon,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-list-view-leaf.is-selected
  .block-editor-list-view-block__menu,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-list-view-leaf.is-selected
  .block-editor-block-icon {
  color: #fff !important;
  background: transparent !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-list-view-leaf.is-selected
  svg,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-list-view-leaf.is-selected
  .dashicon,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-list-view-leaf.is-selected
  svg,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-list-view-leaf.is-selected
  .dashicon {
  color: #fff !important;
  fill: currentColor !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-list-view-leaf.is-selected
  .block-editor-list-view-block__menu:hover,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-list-view-leaf.is-selected
  .block-editor-list-view-block__menu:focus,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-list-view-leaf.is-selected
  .block-editor-list-view-block__menu:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-list-view-leaf.is-selected
  .block-editor-list-view-block__menu:focus {
  color: #fff !important;
  background: rgba(0, 0, 0, 0.16) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-list-view-leaf:not(.is-selected)
  .block-editor-list-view-block-contents,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-list-view-leaf:not(.is-selected)
  .block-editor-list-view-block-select-button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-list-view-leaf:not(.is-selected)
  .block-editor-list-view-block-contents,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-list-view-leaf:not(.is-selected)
  .block-editor-list-view-block-select-button {
  color: var(--ysh-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-list-view-leaf:not(.is-selected)
  .block-editor-list-view-block-select-button:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-list-view-leaf:not(.is-selected)
  .block-editor-list-view-block-select-button:hover {
  color: var(--ysh-accent, #eda934) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-list-view-leaf:not(.is-selected)
  .block-editor-block-icon,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-list-view-leaf:not(.is-selected)
  .block-editor-list-view-block__menu,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-list-view-leaf:not(.is-selected)
  .block-editor-block-icon,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-list-view-leaf:not(.is-selected)
  .block-editor-list-view-block__menu {
  color: var(--ysh-muted, #b4bdc9) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-list-view-leaf.is-branch-selected:not(.is-selected)
  td,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-list-view-leaf.is-branch-selected:not(.is-selected)
  td {
  background: rgba(var(--ysh-brand-rgb, 237, 169, 52), 0.12) !important;
}

/* Header block toolbar — pressed/options icons on dark chrome */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-collapsible-block-toolbar
  .block-editor-block-toolbar
  .components-button.is-pressed,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-collapsible-block-toolbar
  .block-editor-block-toolbar
  .components-button[aria-pressed='true'],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-collapsible-block-toolbar
  .block-editor-block-toolbar
  .components-button.is-pressed,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-collapsible-block-toolbar
  .block-editor-block-toolbar
  .components-button[aria-pressed='true'] {
  color: var(--ysh-heading, #e8ecf1) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-collapsible-block-toolbar::after,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-collapsible-block-toolbar
  .components-toolbar-group::after,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-collapsible-block-toolbar
  .components-toolbar::after,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-collapsible-block-toolbar::after,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-collapsible-block-toolbar
  .components-toolbar-group::after,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-collapsible-block-toolbar
  .components-toolbar::after {
  background-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-panel__header,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-panel__header {
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: var(--ysh-heading, #d8d3ce) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-base-control__help,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-form-token-field__help,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-base-control__help,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-form-token-field__help {
  color: var(--ysh-muted, #9aa5b1) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  .components-button.is-link,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-sidebar
  .components-button.is-link,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .interface-complementary-area
  .components-button.is-link,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-sidebar
  .components-button.is-link {
  color: var(--ysh-accent, #eda934) !important;
}

/* Floating block toolbar — contextual popover above selected blocks */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-contextual-toolbar,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-contextual-toolbar {
  background-color: var(--ysh-card, #1a1d23) !important;
  color: var(--ysh-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-popover.block-editor-block-list__block-popover
  .block-editor-block-contextual-toolbar,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-popover.block-editor-block-list__block-popover
  .block-editor-block-contextual-toolbar {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-popover.block-editor-block-list__block-popover
  .components-popover__content,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-popover.block-editor-rich-text__inline-format-toolbar
  .components-popover__content,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-switcher__popover
  .components-popover__content,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-settings-menu__popover
  .components-popover__content,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-popover.block-editor-block-list__block-popover
  .components-popover__content,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-popover.block-editor-rich-text__inline-format-toolbar
  .components-popover__content,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-switcher__popover
  .components-popover__content,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-settings-menu__popover
  .components-popover__content {
  background: var(--ysh-card, #1a1d23) !important;
  color: var(--ysh-text, #cfd6e0) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-toolbar
  .components-toolbar-group,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-toolbar
  .components-toolbar,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-popover.block-editor-block-list__block-popover
  .block-editor-block-toolbar
  .components-toolbar-group,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-popover.block-editor-block-list__block-popover
  .block-editor-block-toolbar
  .components-toolbar,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-popover.block-editor-rich-text__inline-format-toolbar
  .components-toolbar-group,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-toolbar
  .components-toolbar-group,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-toolbar
  .components-toolbar,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-popover.block-editor-block-list__block-popover
  .block-editor-block-toolbar
  .components-toolbar-group,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-popover.block-editor-block-list__block-popover
  .block-editor-block-toolbar
  .components-toolbar,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-popover.block-editor-rich-text__inline-format-toolbar
  .components-toolbar-group {
  border-right-color: rgba(255, 255, 255, 0.1) !important;
  background: transparent !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-contextual-toolbar
  .components-button,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-toolbar
  .components-button,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-popover.block-editor-rich-text__inline-format-toolbar
  .components-button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-contextual-toolbar
  .components-button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-toolbar
  .components-button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-popover.block-editor-rich-text__inline-format-toolbar
  .components-button {
  color: var(--ysh-text, #cfd6e0) !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-contextual-toolbar
  .components-button:hover,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-toolbar
  .components-button:hover,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-popover.block-editor-rich-text__inline-format-toolbar
  .components-button:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-contextual-toolbar
  .components-button:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-toolbar
  .components-button:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-popover.block-editor-rich-text__inline-format-toolbar
  .components-button:hover {
  color: var(--ysh-heading, #e8ecf1) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-toolbar
  .components-button.is-pressed::before,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-toolbar
  .components-button[aria-pressed='true']::before,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-popover.block-editor-rich-text__inline-format-toolbar
  .components-button.is-pressed::before,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-toolbar
  .components-button.is-pressed::before,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-toolbar
  .components-button[aria-pressed='true']::before,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-popover.block-editor-rich-text__inline-format-toolbar
  .components-button.is-pressed::before {
  background: rgba(255, 255, 255, 0.14) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-toolbar
  .components-button.is-pressed,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-toolbar
  .components-button[aria-pressed='true'],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-toolbar
  .components-button.is-pressed,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-toolbar
  .components-button[aria-pressed='true'] {
  color: var(--ysh-heading, #e8ecf1) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-toolbar
  .components-button
  svg,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-toolbar
  .dashicons,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-toolbar
  .components-button
  svg,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-toolbar
  .dashicons {
  fill: currentColor !important;
  color: inherit !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-popover.block-editor-block-list__block-popover
  .block-editor-block-parent-selector
  .block-editor-block-parent-selector__button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-popover.block-editor-block-list__block-popover
  .block-editor-block-parent-selector
  .block-editor-block-parent-selector__button {
  background-color: var(--ysh-card, #1a1d23) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: var(--ysh-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-toolbar
  .components-button.block-editor-block-toolbar__block-icon-button[aria-disabled='true'],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-toolbar
  .components-button.block-editor-block-toolbar__block-icon-button[aria-disabled='true'] {
  color: var(--ysh-muted, #b4bdc9) !important;
}

/* Block inserter — quick popover + block type grid (#1e1e1e icons on dark bg) */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__popover
  .components-popover__content,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__quick-inserter,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__menu,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__main-area,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__panel-content,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__no-tab-container,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__popover
  .components-popover__content,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__quick-inserter,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__menu,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__main-area,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__panel-content,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__no-tab-container {
  background: var(--ysh-card, #1a1d23) !important;
  background-color: var(--ysh-card, #1a1d23) !important;
  color: var(--ysh-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__quick-inserter
  > *,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__quick-inserter
  > * {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-button.block-editor-block-types-list__item,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-types-list__item-title,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-button.block-editor-block-types-list__item,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-types-list__item-title {
  color: var(--ysh-text, #e8ecf1) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-types-list__item-icon,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-types-list__item-icon
  svg,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-types-list__item
  .block-editor-block-icon,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-types-list__item
  .block-editor-block-icon
  svg,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-types-list__item-icon,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-types-list__item-icon
  svg,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-types-list__item
  .block-editor-block-icon,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-types-list__item
  .block-editor-block-icon
  svg {
  color: var(--ysh-muted, #b4bdc9) !important;
  fill: currentColor !important;
}

/* Block inserter — preview panel (block card + scaled preview iframe shell) */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__preview-container,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__preview,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__preview-container,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__preview {
  background: var(--ysh-card, #1a1d23) !important;
  color: var(--ysh-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__preview-content,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__preview-content {
  background: #22262e !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__preview-content-missing,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__preview-content-missing {
  background: #22262e !important;
  color: var(--ysh-muted, #9aa5b1) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-card,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__preview-container
  .block-editor-block-card,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-card,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__preview-container
  .block-editor-block-card {
  color: var(--ysh-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-card__title,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-card__name,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-card__description,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-card
  .block-editor-block-icon,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-card
  .block-editor-block-icon
  svg,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-card__title,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-card__name,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-card__description,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-card
  .block-editor-block-icon,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-block-card
  .block-editor-block-icon
  svg {
  color: var(--ysh-text, #cfd6e0) !important;
  fill: currentColor !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-button.block-editor-block-types-list__item.is-active,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-button.block-editor-block-types-list__item.is-active
  .block-editor-block-types-list__item-title,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-button.block-editor-block-types-list__item.is-active
  .block-editor-block-icon,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-button.block-editor-block-types-list__item.is-active
  .block-editor-block-icon
  svg,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-button.block-editor-block-types-list__item.is-active,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-button.block-editor-block-types-list__item.is-active
  .block-editor-block-types-list__item-title,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-button.block-editor-block-types-list__item.is-active
  .block-editor-block-icon,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-button.block-editor-block-types-list__item.is-active
  .block-editor-block-icon
  svg {
  color: var(--ysh-accent, #eda934) !important;
  fill: currentColor !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__panel-title,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__panel-title
  button,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__panel-header,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__search,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__search
  .components-search-control__input,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__quick-inserter-expand.components-button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__panel-title,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__panel-title
  button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__panel-header,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__search,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__search
  .components-search-control__input,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__quick-inserter-expand.components-button {
  color: var(--ysh-text, #e8ecf1) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__panel-header,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__panel-header {
  background: var(--ysh-card, #1a1d23) !important;
  background-color: var(--ysh-card, #1a1d23) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__panel-title,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__panel-title {
  color: var(--ysh-muted, #b4bdc9) !important;
}

/* Full inserter sidebar — Blocks / Patterns / Media tabs + category headers */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-tabbed-sidebar,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-tabbed-sidebar__tablist-and-close-button,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-tabbed-sidebar__close-button,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-tabbed-sidebar__tabpanel,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-inserter-sidebar,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-inserter-sidebar__content,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__block-patterns-tabs-container,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__media-tabs-container,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__category-panel,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__preview-content,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__no-results,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__patterns-filter-help,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-tabbed-sidebar,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-tabbed-sidebar__tablist-and-close-button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-tabbed-sidebar__close-button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-tabbed-sidebar__tabpanel,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-inserter-sidebar,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-inserter-sidebar__content,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__block-patterns-tabs-container,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__media-tabs-container,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__category-panel,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__preview-content,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__no-results,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__patterns-filter-help {
  background: var(--ysh-card, #1a1d23) !important;
  background-color: var(--ysh-card, #1a1d23) !important;
  color: var(--ysh-text, #cfd6e0) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-tabbed-sidebar
  .components-tab-panel__tabs-item,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-tabbed-sidebar__close-button.components-button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-tabbed-sidebar
  .components-tab-panel__tabs-item,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-tabbed-sidebar__close-button.components-button {
  color: var(--ysh-muted, #b4bdc9) !important;
  background: transparent !important;
  background-color: transparent !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-tabbed-sidebar
  .components-tab-panel__tabs-item.is-active,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-tabbed-sidebar
  .components-tab-panel__tabs-item.is-active {
  color: var(--ysh-heading, #e8ecf1) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-tabbed-sidebar
  .components-tab-panel__tabs-item.is-active::after,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-tabbed-sidebar
  .components-tab-panel__tabs-item.is-active::after {
  background: var(--ysh-accent, #eda934) !important;
}

/* Style Book — tab bar, panel scroll, typography preview shell */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book__tablist-container,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .font-library-modal__tablist-container,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book__tablist-container,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .font-library-modal__tablist-container {
  background: var(--ysh-card, #1a1d23) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book__tablist-container
  .components-tab-panel__tabs-item,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .font-library-modal__tablist-container
  .components-tab-panel__tabs-item,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book__tablist-container
  .components-tab-panel__tabs-item,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .font-library-modal__tablist-container
  .components-tab-panel__tabs-item {
  color: var(--ysh-muted, #b4bdc9) !important;
  background: transparent !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book__tablist-container
  .components-tab-panel__tabs-item.is-active,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .font-library-modal__tablist-container
  .components-tab-panel__tabs-item.is-active,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book__tablist-container
  .components-tab-panel__tabs-item.is-active,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .font-library-modal__tablist-container
  .components-tab-panel__tabs-item.is-active {
  color: var(--ysh-heading, #e8ecf1) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book__tablist-container
  .components-tab-panel__tabs-item.is-active::after,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .font-library-modal__tablist-container
  .components-tab-panel__tabs-item.is-active::after,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book__tablist-container
  .components-tab-panel__tabs-item.is-active::after,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .font-library-modal__tablist-container
  .components-tab-panel__tabs-item.is-active::after {
  background: var(--ysh-accent, #eda934) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book__tabpanel,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-canvas,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-canvas__section,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book__tabpanel,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-canvas,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-canvas__section {
  background: var(--ysh-card, #1a1d23) !important;
  color: var(--ysh-text, #cfd6e0) !important;
  color-scheme: dark;
  scrollbar-color: rgba(255, 255, 255, 0.22) var(--ysh-card, #1a1d23);
  scrollbar-width: thin;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book__tabpanel::-webkit-scrollbar,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book::-webkit-scrollbar,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-canvas::-webkit-scrollbar,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-canvas__section::-webkit-scrollbar,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book__tabpanel::-webkit-scrollbar,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book::-webkit-scrollbar,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-canvas::-webkit-scrollbar,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-canvas__section::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book__tabpanel::-webkit-scrollbar-track,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book::-webkit-scrollbar-track,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-canvas::-webkit-scrollbar-track,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-canvas__section::-webkit-scrollbar-track,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book__tabpanel::-webkit-scrollbar-track,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book::-webkit-scrollbar-track,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-canvas::-webkit-scrollbar-track,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-canvas__section::-webkit-scrollbar-track {
  background: var(--ysh-card, #1a1d23) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book__tabpanel::-webkit-scrollbar-thumb,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book::-webkit-scrollbar-thumb,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-canvas::-webkit-scrollbar-thumb,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-canvas__section::-webkit-scrollbar-thumb,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book__tabpanel::-webkit-scrollbar-thumb,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book::-webkit-scrollbar-thumb,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-canvas::-webkit-scrollbar-thumb,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-canvas__section::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22) !important;
  border-radius: 5px;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book__tabpanel::-webkit-scrollbar-thumb:hover,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book::-webkit-scrollbar-thumb:hover,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-canvas::-webkit-scrollbar-thumb:hover,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-canvas__section::-webkit-scrollbar-thumb:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book__tabpanel::-webkit-scrollbar-thumb:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-style-book::-webkit-scrollbar-thumb:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-canvas::-webkit-scrollbar-thumb:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-canvas__section::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.34) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-canvas__close-button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-styles-canvas__close-button {
  background: var(--ysh-card, #1a1d23) !important;
  color: var(--ysh-text, #cfd6e0) !important;
}

/* Block editor — dark scrollbars (sidebar, inserter, modals, preferences, etc.) */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page {
  scrollbar-color: rgba(255, 255, 255, 0.22) var(--ysh-surface, #121418);
  scrollbar-width: thin;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  *,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  * {
  scrollbar-color: rgba(255, 255, 255, 0.22) var(--ysh-card, #1a1d23);
  scrollbar-width: thin;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  *::-webkit-scrollbar,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  *::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  *::-webkit-scrollbar-track,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  *::-webkit-scrollbar-track {
  background: var(--ysh-card, #1a1d23) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  *::-webkit-scrollbar-thumb,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  *::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22) !important;
  border-radius: 5px;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  *::-webkit-scrollbar-thumb:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  *::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.34) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  *::-webkit-scrollbar-corner,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  *::-webkit-scrollbar-corner {
  background: var(--ysh-card, #1a1d23) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__search
  .components-search-control__input,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__search
  .components-search-control__input {
  background: #22262e !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-button.block-editor-block-types-list__item:hover,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-button.block-editor-block-types-list__item:focus,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-button.block-editor-block-types-list__item:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-button.block-editor-block-types-list__item:focus {
  color: var(--ysh-text, #fff) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__quick-inserter-browse-all,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .block-editor-inserter__quick-inserter-browse-all {
  color: var(--ysh-text, #e8ecf1) !important;
}

/* Elementor Gutenberg bridge — duplicate header button + confirm dialog (plugin UI) */
body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #elementor-edit-button-gutenberg {
  display: none !important;
}

/* Elementor header/canvas buttons — color-scheme:dark was flipping :active to black */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #elementor-switch-mode-button,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #elementor-edit-mode-button,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #elementor-editor-button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #elementor-switch-mode-button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #elementor-edit-mode-button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #elementor-editor-button {
  color-scheme: light;
  background: var(--ysh-accent, #eda934) !important;
  background-color: var(--ysh-accent, #eda934) !important;
  color: #1a1d23 !important;
  border-color: transparent !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #elementor-switch-mode-button
  :is(span, i),
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #elementor-edit-mode-button
  :is(span, i),
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #elementor-editor-button
  :is(span, i),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #elementor-switch-mode-button
  :is(span, i),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #elementor-edit-mode-button
  :is(span, i),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #elementor-editor-button
  :is(span, i) {
  color: #1a1d23 !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #elementor-switch-mode-button:hover,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #elementor-switch-mode-button:focus,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #elementor-edit-mode-button:hover,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #elementor-edit-mode-button:focus,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #elementor-editor-button:hover,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #elementor-editor-button:focus,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #elementor-switch-mode-button:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #elementor-switch-mode-button:focus,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #elementor-edit-mode-button:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #elementor-edit-mode-button:focus,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #elementor-editor-button:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #elementor-editor-button:focus {
  background: #f5c66a !important;
  background-color: #f5c66a !important;
  color: #1a1d23 !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #elementor-switch-mode-button:active,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #elementor-edit-mode-button:active,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #elementor-editor-button:active,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #elementor-switch-mode-button:active,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #elementor-edit-mode-button:active,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  #elementor-editor-button:active {
  background: #d99626 !important;
  background-color: #d99626 !important;
  color: #1a1d23 !important;
  border-color: transparent !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18) !important;
  transform: none !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page.elementor-editor-active
  #elementor-switch-mode-button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page.elementor-editor-active
  #elementor-switch-mode-button {
  background: #22262e !important;
  background-color: #22262e !important;
  color: var(--ysh-text, #cfd6e0) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page.elementor-editor-active
  #elementor-switch-mode-button
  :is(span, i),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page.elementor-editor-active
  #elementor-switch-mode-button
  :is(span, i) {
  color: var(--ysh-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page.elementor-editor-active
  #elementor-switch-mode-button:hover,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page.elementor-editor-active
  #elementor-switch-mode-button:focus,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page.elementor-editor-active
  #elementor-switch-mode-button:active,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page.elementor-editor-active
  #elementor-switch-mode-button:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page.elementor-editor-active
  #elementor-switch-mode-button:focus,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page.elementor-editor-active
  #elementor-switch-mode-button:active {
  background: #282d36 !important;
  background-color: #282d36 !important;
  color: var(--ysh-heading, #e8ecf1) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .dialog-type-confirm
  .dialog-widget-content,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .dialog-type-alert
  .dialog-widget-content,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .dialog-type-confirm
  .dialog-widget-content,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .dialog-type-alert
  .dialog-widget-content {
  background: var(--ysh-card, #1a1d23) !important;
  background-color: var(--ysh-card, #1a1d23) !important;
  color: var(--ysh-text, #cfd6e0) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .dialog-type-confirm
  .dialog-header,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .dialog-type-confirm
  .dialog-message,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .dialog-type-alert
  .dialog-header,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .dialog-type-alert
  .dialog-message,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .dialog-type-confirm
  .dialog-header,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .dialog-type-confirm
  .dialog-message,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .dialog-type-alert
  .dialog-header,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .dialog-type-alert
  .dialog-message {
  color: var(--ysh-text, #e8ecf1) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .dialog-type-confirm
  .dialog-header::after,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .dialog-type-alert
  .dialog-header::after,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .dialog-type-confirm
  .dialog-header::after,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .dialog-type-alert
  .dialog-header::after {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .dialog-type-confirm
  .dialog-button.dialog-cancel,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .dialog-type-alert
  .dialog-button.dialog-cancel,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .dialog-type-confirm
  .dialog-button.dialog-cancel,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .dialog-type-alert
  .dialog-button.dialog-cancel {
  color: var(--ysh-muted, #b4bdc9) !important;
  background: transparent !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .dialog-type-confirm
  .dialog-button.dialog-ok,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .dialog-type-alert
  .dialog-button.dialog-ok,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .dialog-type-confirm
  .dialog-button.dialog-ok,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .dialog-type-alert
  .dialog-button.dialog-ok {
  background: var(--ysh-accent, #eda934) !important;
  color: #1a1d23 !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .dialog-type-lightbox,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .dialog-type-lightbox {
  background: rgba(0, 0, 0, 0.72) !important;
}

/* Editor notices — local autosave backup, save errors, etc. (#fff / cream warning) */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-notice,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-notice-list,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-notice,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-notice-list {
  background-color: #22262e !important;
  color: var(--ysh-text, #cfd6e0) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-notice.is-warning,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-notice.is-warning {
  background-color: rgba(240, 184, 73, 0.12) !important;
  border-left-color: #f0b849 !important;
  color: var(--ysh-text, #e8ecf1) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-notice.is-success,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-notice.is-success {
  background-color: rgba(74, 184, 102, 0.12) !important;
  border-left-color: #4ab866 !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-notice.is-error,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-notice.is-error {
  background-color: rgba(204, 24, 24, 0.14) !important;
  border-left-color: #cc1818 !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-notice__content,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-notice__dismiss,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-notice__content,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-notice__dismiss {
  color: var(--ysh-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-notice__dismiss:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-notice__dismiss:hover {
  color: var(--ysh-heading, #fff) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-notice__actions
  .components-button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .components-notice__actions
  .components-button {
  background: #2a3038 !important;
  background-color: #2a3038 !important;
  color: var(--ysh-heading, #e8ecf1) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
}

/* Appearance toggle — injected into Gutenberg header */
body.block-editor-page .editor-header__settings .ysh-appearance--block-editor,
body.block-editor-page .edit-post-header__settings .ysh-appearance--block-editor,
body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .editor-header__settings
  .ysh-appearance--block-editor,
body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
  .edit-post-header__settings
  .ysh-appearance--block-editor {
  display: inline-flex !important;
  align-items: center;
  margin-inline: 4px 8px;
  flex-shrink: 0;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* YOOAdmin logo — injected into Gutenberg header toolbar */
body.yoo-focus.block-editor-page .editor-header__toolbar .ysh-block-editor-logo-link,
body.yoo-focus.block-editor-page .edit-post-header__toolbar .ysh-block-editor-logo-link,
body.yooadmin-theme-yooadmin-studio-hub.block-editor-page .editor-header__toolbar .ysh-block-editor-logo-link,
body.yooadmin-theme-yooadmin-studio-hub.block-editor-page .edit-post-header__toolbar .ysh-block-editor-logo-link,
body.yooadmin-network-admin-shell.block-editor-page .editor-header__toolbar .ysh-block-editor-logo-link,
body.yooadmin-network-admin-shell.block-editor-page .edit-post-header__toolbar .ysh-block-editor-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 36px;
  margin-inline: 4px 8px;
  line-height: 0;
  text-decoration: none;
}

body.yoo-focus.block-editor-page .ysh-block-editor-logo,
body.yooadmin-theme-yooadmin-studio-hub.block-editor-page .ysh-block-editor-logo,
body.yooadmin-network-admin-shell.block-editor-page .ysh-block-editor-logo {
  height: 100%;
  width: auto;
  max-height: 36px;
  max-width: min(160px, 28vw);
  object-fit: contain;
  object-position: left center;
  display: block;
}

@media (prefers-color-scheme: dark) {
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page {
    --wp-editor-canvas-background: #1a1d23;
    --wp-components-color-foreground: #cfd6e0;
    --wp-components-color-background: #1a1d23;
    color-scheme: dark;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    #wpbody-content {
    background: var(--ysh-surface, #121418) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .interface-interface-skeleton,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .interface-interface-skeleton__footer,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .interface-complementary-area,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .edit-post-header,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .editor-visual-editor,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .edit-post-visual-editor,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .editor-styles-wrapper,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    :where(.editor-styles-wrapper),
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .editor-document-bar,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .edit-post-meta-boxes-main,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .edit-post-meta-boxes-main__presenter,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .edit-post-meta-boxes-main__liner {
    background: var(--ysh-card, #1a1d23) !important;
    background-color: var(--ysh-card, #1a1d23) !important;
    color: var(--ysh-text, #cfd6e0) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .edit-post-meta-boxes-main__presenter {
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.08) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .edit-post-meta-boxes-main__presenter
    > button[aria-expanded] {
    color: var(--ysh-muted, #b4bdc9) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .edit-post-meta-boxes-main__presenter
    > button[role='separator']::before {
    background-color: rgba(255, 255, 255, 0.28) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .editor-document-bar,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .editor-document-bar
    .components-button {
    background: #22262e !important;
    background-color: #22262e !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .components-panel__header.editor-sidebar__panel-tabs
    [role='tab'],
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .interface-complementary-area
    [role='tablist']
    [role='tab'],
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .components-tab-panel__tabs-item {
    color: var(--ysh-muted, #b4bdc9) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .components-panel__header.editor-sidebar__panel-tabs
    [role='tab'][aria-selected='true'],
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .interface-complementary-area
    [role='tablist']
    [role='tab'][aria-selected='true'] {
    color: var(--ysh-heading, #e8ecf1) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .editor-post-panel__row-label {
    color: var(--ysh-muted, #b4bdc9) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .editor-post-panel__row-control,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .editor-post-panel__row-control
    .components-button,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .editor-post-card-panel__title-name {
    color: var(--ysh-text, #e8ecf1) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .interface-complementary-area
    .components-panel__body
    > .components-panel__body-title,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .interface-complementary-area
    .components-panel__body.is-opened
    > .components-panel__body-title {
    background: var(--ysh-card, #1a1d23) !important;
    background-color: var(--ysh-card, #1a1d23) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .interface-complementary-area
    .components-panel__body-toggle.components-button,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .interface-complementary-area
    .components-panel__body-toggle.components-button:hover {
    background: transparent !important;
    color: var(--ysh-heading, #e8ecf1) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .block-editor-tabbed-sidebar,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .block-editor-tabbed-sidebar__tablist-and-close-button,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .block-editor-inserter__panel-header {
    background: var(--ysh-card, #1a1d23) !important;
    background-color: var(--ysh-card, #1a1d23) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .block-editor-tabbed-sidebar
    .components-tab-panel__tabs-item {
    color: var(--ysh-muted, #b4bdc9) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .block-editor-inserter__panel-title {
    color: var(--ysh-muted, #b4bdc9) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .interface-interface-skeleton__footer,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .interface-interface-skeleton__footer
    .block-editor-block-breadcrumb {
    background: var(--ysh-card, #1a1d23) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .block-editor-block-breadcrumb__button,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .block-editor-block-breadcrumb__current {
    color: var(--ysh-muted, #b4bdc9) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .components-button.is-secondary,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .editor-post-trash.components-button {
    background: #22262e !important;
    color: var(--ysh-text, #cfd6e0) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .editor-post-trash.components-button {
    background: rgba(204, 24, 24, 0.14) !important;
    color: #ff8a8a !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .block-editor-block-contextual-toolbar,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .components-popover.block-editor-block-list__block-popover
    .components-popover__content,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .components-popover.block-editor-rich-text__inline-format-toolbar
    .components-popover__content {
    background: var(--ysh-card, #1a1d23) !important;
    background-color: var(--ysh-card, #1a1d23) !important;
    color: var(--ysh-text, #cfd6e0) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .block-editor-block-toolbar
    .components-button,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .components-popover.block-editor-rich-text__inline-format-toolbar
    .components-button {
    color: var(--ysh-text, #cfd6e0) !important;
    background: transparent !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    * {
    scrollbar-color: rgba(255, 255, 255, 0.22) var(--ysh-card, #1a1d23);
    scrollbar-width: thin;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    *::-webkit-scrollbar-track {
    background: var(--ysh-card, #1a1d23);
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    *::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 5px;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .preferences-modal
    .preferences__tabs-tablist
    [role='tab']:is(:hover, [data-focus-visible], [aria-selected='true'])
    svg {
    fill: var(--ysh-accent, #eda934) !important;
    color: var(--ysh-accent, #eda934) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .components-checkbox-control__input[type='checkbox'] {
    background: #22262e !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .components-checkbox-control__label {
    background: transparent !important;
    color: var(--ysh-text, #cfd6e0) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .editor-start-page-options__modal
    .editor-start-page-options__modal__actions,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yoo-focus.block-editor-page
    .editor-start-page-options__modal
    .editor-start-page-options__modal__actions,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-network-admin-shell.block-editor-page
    .editor-start-page-options__modal
    .editor-start-page-options__modal__actions {
    background: var(--ysh-card, #1a1d23) !important;
    background-color: var(--ysh-card, #1a1d23) !important;
    border-top-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--ysh-text, #cfd6e0) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .editor-start-page-options__modal
    .editor-start-page-options__modal__actions
    .components-checkbox-control__label,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yoo-focus.block-editor-page
    .editor-start-page-options__modal
    .editor-start-page-options__modal__actions
    .components-checkbox-control__label,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-network-admin-shell.block-editor-page
    .editor-start-page-options__modal
    .editor-start-page-options__modal__actions
    .components-checkbox-control__label {
    color: var(--ysh-text, #cfd6e0) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .edit-post-fullscreen-mode-close-site-icon,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yoo-focus.block-editor-page
    .edit-post-fullscreen-mode-close-site-icon,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-network-admin-shell.block-editor-page
    .edit-post-fullscreen-mode-close-site-icon {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    img.edit-post-fullscreen-mode-close-site-icon__image,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yoo-focus.block-editor-page
    img.edit-post-fullscreen-mode-close-site-icon__image,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-network-admin-shell.block-editor-page
    img.edit-post-fullscreen-mode-close-site-icon__image {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 56px !important;
    max-height: 56px !important;
    object-fit: contain !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .components-modal__frame
    h1,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .components-modal__header
    .components-modal__header-heading,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .preferences-modal__section-title {
    color: var(--ysh-heading, #e8ecf1) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .block-editor-list-view-leaf.is-selected
    .block-editor-list-view-block-contents,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .block-editor-list-view-leaf.is-selected
    .components-button.has-icon,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .block-editor-list-view-leaf.is-selected
    svg {
    color: #fff !important;
    fill: currentColor !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .components-placeholder,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .components-placeholder.components-placeholder,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .wp-block-placeholder {
    background-color: #22262e !important;
    color: var(--ysh-text, #cfd6e0) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .components-placeholder__label,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .components-placeholder__instructions,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .block-editor-block-variation-picker__variations
    .components-button,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .block-editor-block-variation-picker__skip
    .components-button {
    color: var(--ysh-text, #cfd6e0) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .block-editor-block-variation-picker__variations
    .components-button:hover,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .block-editor-block-variation-picker__skip
    .components-button:hover {
    color: var(--ysh-accent, #eda934) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .editor-styles-wrapper
    a,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .block-editor-block-list__block
    a,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .wp-block-post-terms
    a,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .editor-styles-wrapper
    .components-button.is-link,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .block-editor-block-list__block
    .components-button.is-link {
    color: var(--ysh-accent, #eda934) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    :where(.editor-styles-wrapper) {
    --wp--preset--color--contrast: #d8d3ce;
    --wp--preset--color--contrast-2: #b4bdc9;
    --wp--preset--color--base: #1a1d23;
    --wp--preset--color--base-2: #282d36;
    --wp--style--color--link: #eda934;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .editor-styles-wrapper
    :where(h1, h2, h3, h4, h5, h6, .wp-block-heading, .wp-block-post-title),
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .wp-block-comments-title,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .comment-reply-title {
    color: var(--ysh-heading, #d8d3ce) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .has-white-background-color,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .wp-block-group.has-background.has-base-background-color,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .wp-block-group.has-background.has-base-2-background-color,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .wp-block-cover.has-base-background-color,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .wp-block-cover.has-base-2-background-color,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .editor-styles-wrapper
    .wp-block-template-part
    .has-base-background-color,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .editor-styles-wrapper
    .wp-block-template-part
    .has-base-2-background-color {
    background-color: #22262e !important;
    color: var(--ysh-text, #cfd6e0) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .editor-styles-wrapper
    .is-root-container
    > .wp-block-group.has-base-2-background-color:first-child {
    background-color: #282d36 !important;
    color: var(--ysh-text, #cfd6e0) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .wp-block-post-comments-form
    textarea,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .wp-block-post-comments
    textarea {
    background: #22262e !important;
    color: var(--ysh-text, #cfd6e0) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    :where(.wp-block-post-comments-form input[type='submit'], .wp-block-post-comments input[type='submit']) {
    background: var(--ysh-accent, #eda934) !important;
    color: #1a1d23 !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .block-editor-block-inspector__no-blocks,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .block-editor-block-inspector__no-block-tools {
    background: var(--ysh-card, #1a1d23) !important;
    color: var(--ysh-muted, #9aa5b1) !important;
    border-top-color: rgba(255, 255, 255, 0.08) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .editor-style-book__tablist-container,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .font-library-modal__tablist-container {
    background: var(--ysh-card, #1a1d23) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .editor-style-book__tablist-container
    .components-tab-panel__tabs-item.is-active {
    color: var(--ysh-heading, #e8ecf1) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .editor-style-book__tabpanel,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .editor-style-book,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    .editor-styles-canvas__section {
    color-scheme: dark;
    scrollbar-color: rgba(255, 255, 255, 0.22) var(--ysh-card, #1a1d23);
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    :is(#elementor-switch-mode-button, #elementor-edit-mode-button, #elementor-editor-button) {
    color-scheme: light;
    background: var(--ysh-accent, #eda934) !important;
    color: #1a1d23 !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yooadmin-theme-yooadmin-studio-hub.block-editor-page
    :is(#elementor-switch-mode-button, #elementor-edit-mode-button, #elementor-editor-button):active {
    background: #d99626 !important;
    color: #1a1d23 !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18) !important;
  }
}

/* =============================================================================
 * Site Editor browse UI (Patterns / Templates / Pages / Navigation)
 * WP 6.7+ — .admin-ui-page + .dataviews-* ship #fff via --wpds-* / --wp-dataviews-* fallbacks.
 * Not covered by plugin-admin-dark.css (classic .wrap plugins only).
 * ============================================================================= */

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub:is(.block-editor-page, .site-editor-php),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub:is(.block-editor-page, .site-editor-php),
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus:is(.block-editor-page, .site-editor-php),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus:is(.block-editor-page, .site-editor-php),
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-network-admin-shell:is(.block-editor-page, .site-editor-php),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-network-admin-shell:is(.block-editor-page, .site-editor-php) {
  --wp-dataviews-color-background: #1a1d23;
  --wpds-color-bg-surface-neutral-strong: #1a1d23;
  --wpds-color-fg-content-neutral: #cfd6e0;
  --wpds-color-fg-content-neutral-weak: #9aa5b1;
  --wpds-color-stroke-surface-neutral-weak: rgba(255, 255, 255, 0.1);
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub:is(.block-editor-page, .site-editor-php)
  :is(
    .edit-site,
    #site-editor,
    .edit-site-layout__main,
    .admin-ui-page,
    .admin-ui-page__header,
    .admin-ui-page__content,
    .dataviews-wrapper,
    .dataviews-picker-wrapper,
    .dataviews__view-actions,
    .dataviews-filters__container,
    .dataviews-view-table,
    .dataviews-view-grid,
    .dataviews-view-list
  ),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub:is(.block-editor-page, .site-editor-php)
  :is(
    .edit-site,
    #site-editor,
    .edit-site-layout__main,
    .admin-ui-page,
    .admin-ui-page__header,
    .admin-ui-page__content,
    .dataviews-wrapper,
    .dataviews-picker-wrapper,
    .dataviews__view-actions,
    .dataviews-filters__container,
    .dataviews-view-table,
    .dataviews-view-grid,
    .dataviews-view-list
  ),
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus:is(.block-editor-page, .site-editor-php)
  :is(
    .edit-site,
    #site-editor,
    .edit-site-layout__main,
    .admin-ui-page,
    .admin-ui-page__header,
    .admin-ui-page__content,
    .dataviews-wrapper,
    .dataviews-picker-wrapper,
    .dataviews__view-actions,
    .dataviews-filters__container,
    .dataviews-view-table,
    .dataviews-view-grid,
    .dataviews-view-list
  ),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus:is(.block-editor-page, .site-editor-php)
  :is(
    .edit-site,
    #site-editor,
    .edit-site-layout__main,
    .admin-ui-page,
    .admin-ui-page__header,
    .admin-ui-page__content,
    .dataviews-wrapper,
    .dataviews-picker-wrapper,
    .dataviews__view-actions,
    .dataviews-filters__container,
    .dataviews-view-table,
    .dataviews-view-grid,
    .dataviews-view-list
  ) {
  background: var(--ysh-card, #1a1d23) !important;
  background-color: var(--ysh-card, #1a1d23) !important;
  color: var(--ysh-text, #cfd6e0) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub:is(.block-editor-page, .site-editor-php)
  :is(.admin-ui-page__header-title, .admin-ui-page__header-subtitle),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub:is(.block-editor-page, .site-editor-php)
  :is(.admin-ui-page__header-title, .admin-ui-page__header-subtitle),
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus:is(.block-editor-page, .site-editor-php)
  :is(.admin-ui-page__header-title, .admin-ui-page__header-subtitle),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus:is(.block-editor-page, .site-editor-php)
  :is(.admin-ui-page__header-title, .admin-ui-page__header-subtitle) {
  color: var(--ysh-heading, #e8ecf1) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub:is(.block-editor-page, .site-editor-php)
  .admin-ui-page__header-subtitle,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub:is(.block-editor-page, .site-editor-php)
  .admin-ui-page__header-subtitle,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus:is(.block-editor-page, .site-editor-php)
  .admin-ui-page__header-subtitle,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus:is(.block-editor-page, .site-editor-php)
  .admin-ui-page__header-subtitle {
  color: var(--ysh-muted, #9aa5b1) !important;
}

/* DataViews grid — pattern/template cards (core hardcodes #fff media + #757575 labels). */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub:is(.block-editor-page, .site-editor-php)
  .dataviews-view-grid
  :is(
    .dataviews-view-grid__title-field,
    .dataviews-view-grid__field-name,
    .dataviews-view-grid__field-value,
    .dataviews-view-grid__card.is-selected .dataviews-view-grid__field-value
  ),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub:is(.block-editor-page, .site-editor-php)
  .dataviews-view-grid
  :is(
    .dataviews-view-grid__title-field,
    .dataviews-view-grid__field-name,
    .dataviews-view-grid__field-value,
    .dataviews-view-grid__card.is-selected .dataviews-view-grid__field-value
  ),
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus:is(.block-editor-page, .site-editor-php)
  .dataviews-view-grid
  :is(
    .dataviews-view-grid__title-field,
    .dataviews-view-grid__field-name,
    .dataviews-view-grid__field-value,
    .dataviews-view-grid__card.is-selected .dataviews-view-grid__field-value
  ),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus:is(.block-editor-page, .site-editor-php)
  .dataviews-view-grid
  :is(
    .dataviews-view-grid__title-field,
    .dataviews-view-grid__field-name,
    .dataviews-view-grid__field-value,
    .dataviews-view-grid__card.is-selected .dataviews-view-grid__field-value
  ) {
  color: var(--ysh-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub:is(.block-editor-page, .site-editor-php)
  .dataviews-view-grid
  .dataviews-view-grid__field-name,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub:is(.block-editor-page, .site-editor-php)
  .dataviews-view-grid
  .dataviews-view-grid__field-name,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus:is(.block-editor-page, .site-editor-php)
  .dataviews-view-grid
  .dataviews-view-grid__field-name,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus:is(.block-editor-page, .site-editor-php)
  .dataviews-view-grid
  .dataviews-view-grid__field-name {
  color: var(--ysh-muted, #9aa5b1) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub:is(.block-editor-page, .site-editor-php)
  .dataviews-view-grid
  :is(.dataviews-view-grid__media, .dataviews-view-grid__media-placeholder),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub:is(.block-editor-page, .site-editor-php)
  .dataviews-view-grid
  :is(.dataviews-view-grid__media, .dataviews-view-grid__media-placeholder),
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus:is(.block-editor-page, .site-editor-php)
  .dataviews-view-grid
  :is(.dataviews-view-grid__media, .dataviews-view-grid__media-placeholder),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus:is(.block-editor-page, .site-editor-php)
  .dataviews-view-grid
  :is(.dataviews-view-grid__media, .dataviews-view-grid__media-placeholder) {
  background: #22262e !important;
  background-color: #22262e !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub:is(.block-editor-page, .site-editor-php)
  .dataviews-view-grid
  .dataviews-view-grid__media::after,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub:is(.block-editor-page, .site-editor-php)
  .dataviews-view-grid
  .dataviews-view-grid__media::after,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus:is(.block-editor-page, .site-editor-php)
  .dataviews-view-grid
  .dataviews-view-grid__media::after,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus:is(.block-editor-page, .site-editor-php)
  .dataviews-view-grid
  .dataviews-view-grid__media::after {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
}

/* DataViews table view (if user switches layout). */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub:is(.block-editor-page, .site-editor-php)
  .dataviews-view-table
  :is(th, td, .dataviews-view-table-header-cell),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub:is(.block-editor-page, .site-editor-php)
  .dataviews-view-table
  :is(th, td, .dataviews-view-table-header-cell),
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus:is(.block-editor-page, .site-editor-php)
  .dataviews-view-table
  :is(th, td, .dataviews-view-table-header-cell),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-focus:is(.block-editor-page, .site-editor-php)
  .dataviews-view-table
  :is(th, td, .dataviews-view-table-header-cell) {
  background-color: rgba(255, 255, 255, 0.04) !important;
  color: var(--ysh-text, #cfd6e0) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

