/* Native WP settings — YOOAdmin experience */

body.yoo-wp-settings-experience {
  --yp-set-radius: 12px;
  --yp-set-border: rgba(15, 23, 42, 0.09);
  --yp-set-border-soft: rgba(15, 23, 42, 0.06);
  --yp-set-surface: #ffffff;
  --yp-set-muted: #f8fafc;
  --yp-set-text: #1e293b;
  --yp-wp-field-border: rgba(15, 23, 42, 0.12);
  --yp-settings-select-width: min(420px, 100%);
}

body.yoo-wp-settings-experience #wpcontent {
  padding-bottom: 24px;
}

body.yoo-wp-settings-experience .wrap {
  max-width: 1280px;
  margin: 0;
}

/* No flash: hide native markup until JS marks ready, then show YOOAdmin layout */
body.yoo-wp-settings-experience.yoo-wp-tools-experience:not(.yp-wp-settings-ready) #wpbody-content > .notice,
body.yoo-wp-settings-experience.yoo-wp-tools-experience:not(.yp-wp-settings-ready) #wpbody-content > .updated,
body.yoo-wp-settings-experience.yoo-wp-tools-experience:not(.yp-wp-settings-ready) #wpbody-content > .error,
body.yoo-wp-settings-experience.yoo-wp-tools-experience:not(.yp-wp-settings-ready) .wrap > * {
  display: none !important;
}

body.yoo-wp-settings-experience:not(.yp-wp-settings-ready) .wrap > h1,
body.yoo-wp-settings-experience:not(.yp-wp-settings-ready) .wrap > h2,
body.yoo-wp-settings-experience:not(.yp-wp-settings-ready) .wrap > p,
body.yoo-wp-settings-experience:not(.yp-wp-settings-ready) .wrap > hr,
body.yoo-wp-settings-experience:not(.yp-wp-settings-ready) .wrap > div,
body.yoo-wp-settings-experience:not(.yp-wp-settings-ready) .wrap > table,
body.yoo-wp-settings-experience:not(.yp-wp-settings-ready) .wrap > nav,
body.yoo-wp-settings-experience:not(.yp-wp-settings-ready) .wrap > fieldset,
body.yoo-wp-settings-experience:not(.yp-wp-settings-ready) .wrap > .notice,
body.yoo-wp-settings-experience:not(.yp-wp-settings-ready) .wrap > .updated,
body.yoo-wp-settings-experience:not(.yp-wp-settings-ready) .wrap > .error,
body.yoo-wp-settings-experience:not(.yp-wp-settings-ready) .wrap > .subsubsub,
body.yoo-wp-settings-experience:not(.yp-wp-settings-ready) .wrap > .card,
body.yoo-wp-settings-experience:not(.yp-wp-settings-ready) .wrap > .yp-wp-settings-header,
body.yoo-wp-settings-experience:not(.yp-wp-settings-ready) .wrap > form,
body.yoo-wp-settings-experience:not(.yp-wp-settings-ready) .privacy-settings-header,
body.yoo-wp-settings-experience:not(.yp-wp-settings-ready) .privacy-settings-body,
body.yoo-wp-settings-experience:not(.yp-wp-settings-ready) .yp-wp-settings-privacy-root,
body.yoo-wp-settings-experience:not(.yp-wp-settings-ready) .yp-wp-settings-tools-panel,
body.yoo-wp-settings-experience:not(.yp-wp-settings-ready) hr.wp-header-end {
  display: none !important;
}

body.yoo-wp-settings-experience:not(.yp-wp-settings-ready) .wrap {
  position: relative;
  min-height: min(320px, 50vh);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.yoo-wp-settings-experience.privacy-settings:not(.yp-wp-settings-ready) #wpcontent {
  position: relative;
  min-height: min(320px, 50vh);
}

body.yoo-wp-settings-experience.privacy-settings:not(.yp-wp-settings-ready) #wpcontent::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(0, 0, 0, 0.08);
  border-top-color: var(--yooadmin-primary, #eda934);
  border-radius: 50%;
  animation: yp-wp-settings-boot-spin 0.8s linear infinite;
  pointer-events: none;
}

body.yoo-wp-settings-experience.privacy-settings:not(.yp-wp-settings-ready) .wrap {
  display: none !important;
  min-height: 0 !important;
}

body.yoo-wp-settings-experience.privacy-settings:not(.yp-wp-settings-ready) .wrap::after {
  display: none !important;
}

body.yoo-wp-settings-experience.yp-wp-settings-ready.privacy-settings #wpcontent::after {
  display: none !important;
}

body.yoo-wp-settings-experience:not(.yp-wp-settings-ready) .wrap::after {
  content: '';
  position: static;
  width: 40px;
  height: 40px;
  margin: 0;
  border: 3px solid rgba(0, 0, 0, 0.08);
  border-top-color: var(--yooadmin-primary, #eda934);
  border-radius: 50%;
  animation: yp-wp-settings-boot-spin 0.8s linear infinite;
  flex-shrink: 0;
}

body.yoo-wp-settings-experience.yp-wp-settings-ready .wrap {
  display: block;
  min-height: 0;
}

body.yoo-wp-settings-experience.yp-wp-settings-ready .wrap::after {
  display: none;
}

@keyframes yp-wp-settings-boot-spin {
  to {
    transform: rotate(360deg);
  }
}

body.yoo-wp-settings-experience .yp-wp-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
}

body.yoo-wp-settings-experience .wrap > h1,
body.yoo-wp-settings-experience .yp-wp-settings-header > h1,
body.yoo-wp-settings-experience .wrap > h1.yp-wp-settings-page-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  color: var(--yp-set-text);
  flex: 1 1 auto;
  min-width: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-save {
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

body.yoo-wp-settings-experience .yp-wp-settings-save p,
body.yoo-wp-settings-experience .yp-wp-settings-save p.submit {
  margin: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
  box-shadow: none !important;
}

body.yoo-wp-settings-experience .yp-wp-settings-save-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  transition: opacity 0.15s ease;
}

body.yoo-wp-settings-experience .yp-wp-settings-save-btn.is-saving {
  opacity: 0.92;
  cursor: wait;
}

body.yoo-wp-settings-experience .yp-wp-settings-save-btn.is-saved {
  opacity: 1;
}

/* Icon size/spacing: yooadmin-yoo-buttons (yp-yoo-buttons.css) */

body.yoo-wp-settings-experience .yp-wp-settings-save-btn.is-saving .yp-wp-settings-save-icon {
  animation: yp-wp-settings-save-spin 0.75s linear infinite;
}

@keyframes yp-wp-settings-save-spin {
  to {
    transform: rotate(360deg);
  }
}

body.yoo-wp-settings-experience .wrap > h1 .yp-wp-settings-title-icon {
  font-size: 22px;
  width: 22px;
  height: 22px;
  color: var(--yooadmin-primary, #eda934);
  flex-shrink: 0;
}

body.yoo-wp-settings-experience .wrap > form {
  background: var(--yp-set-surface);
  border: 1px solid var(--yp-set-border);
  border-radius: var(--yp-set-radius);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 28px rgba(15, 23, 42, 0.04);
  padding: 12px 16px 20px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: clip;
}

/* Shell: full-width blocks + two-column split */
body.yoo-wp-settings-experience .yp-wp-settings-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.yoo-wp-settings-experience .yp-wp-settings-full {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}


/* Sectioned settings (Permalink, Privacy, etc.) */
body.yoo-wp-settings-experience .yp-wp-settings-sectioned-shell,
body.yoo-wp-settings-experience .yp-wp-settings-permalink-shell,
body.yoo-wp-settings-experience .yp-wp-settings-privacy-shell {
  gap: 0;
  border: 1px solid var(--yp-set-border-soft);
  border-radius: 10px;
  overflow: hidden;
  background: var(--yp-set-surface);
}

/* No extra white form card — gray blocks only */
body.yoo-wp-settings-experience .wrap > form.yp-wp-settings-discussion-form,
body.yoo-wp-settings-experience .wrap > form.yp-wp-settings-general-form,
body.yoo-wp-settings-experience .wrap > form.yp-wp-settings-reading-form,
body.yoo-wp-settings-experience .wrap > form.yp-wp-settings-media-form,
body.yoo-wp-settings-experience .wrap > form.yp-wp-settings-permalink-form,
body.yoo-wp-settings-experience .wrap > form.yp-wp-settings-writing-form,
body.yoo-wp-settings-experience .wrap > form.yp-wp-settings-tools-form,
body.yoo-wp-settings-experience .wrap > form.yp-wp-settings-export-form {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-shell {
  gap: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

body.yoo-wp-settings-experience .yp-wp-settings-media-shell,
body.yoo-wp-settings-experience .yp-wp-settings-permalink-shell,
body.yoo-wp-settings-experience .yp-wp-settings-writing-shell {
  gap: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

body.yoo-wp-settings-experience .yp-wp-settings-section-lead {
  padding: 14px 16px;
  background: var(--yp-set-muted);
  border-bottom: 1px solid var(--yp-set-border-soft);
  font-size: 13px;
  line-height: 1.55;
  color: var(--yp-set-text);
}

body.yoo-wp-settings-experience .yp-wp-settings-section-lead p {
  margin: 0 0 10px;
}

body.yoo-wp-settings-experience .yp-wp-settings-section-lead p:last-child {
  margin-bottom: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-section-lead a {
  color: var(--yooadmin-primary, #eda934);
  font-weight: 600;
  text-decoration: none;
}

body.yoo-wp-settings-experience .yp-wp-settings-section-lead a:hover,
body.yoo-wp-settings-experience .yp-wp-settings-section-lead a:focus {
  color: color-mix(in srgb, var(--yooadmin-primary, #eda934) 85%, #000 15%);
  text-decoration: underline;
}

body.yoo-wp-settings-experience .yp-wp-settings-section-block {
  padding: 14px 16px;
  border-top: 1px solid var(--yp-set-border-soft);
  background: var(--yp-set-surface);
}

body.yoo-wp-settings-experience .yp-wp-settings-sectioned-shell > .yp-wp-settings-media-section:first-child,
body.yoo-wp-settings-experience .yp-wp-settings-sectioned-shell > .yp-wp-settings-section-block:first-child {
  border-top: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-media-section-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--yp-set-text);
}

body.yoo-wp-settings-experience .yp-wp-settings-media-section-head h2 {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  border: 0;
  flex: 1;
}

body.yoo-wp-settings-experience .yp-wp-settings-media-section-head .yp-help-icon {
  margin-top: 1px;
}

/* Media — same shell as Discussion: transparent section, gray pair columns only */
body.yoo-wp-settings-experience .yp-wp-settings-media-section {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
}

body.yoo-wp-settings-experience .yp-wp-settings-media-section-head {
  margin: 0 0 8px;
}

body.yoo-wp-settings-experience .yp-wp-settings-media-section-intro {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--yp-set-text);
}

body.yoo-wp-settings-experience .yp-wp-settings-media-grid {
  width: 100%;
}

body.yoo-wp-settings-experience .yp-wp-settings-media-section .yp-wp-settings-discussion-pair-col .yp-wp-settings-subfield {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

body.yoo-wp-settings-experience .yp-wp-settings-media-section .yp-wp-settings-discussion-pair-col .yp-wp-settings-subfield label {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
}

body.yoo-wp-settings-experience .yp-wp-settings-media-section .yp-wp-settings-discussion-pair-col .yp-wp-settings-subfield input,
body.yoo-wp-settings-experience .yp-wp-settings-media-section .yp-wp-settings-discussion-pair-col .yp-wp-settings-subfield select {
  flex: 0 0 auto;
  width: 72px !important;
  min-width: 72px;
  max-width: 72px;
}

body.yoo-wp-settings-experience .yp-wp-settings-media-section .yp-wp-settings-discussion-pair-col td input.regular-text,
body.yoo-wp-settings-experience .yp-wp-settings-media-section .yp-wp-settings-discussion-pair-col td input.code {
  width: min(100%, 420px);
  max-width: 100%;
}

body.yoo-wp-settings-experience .yp-wp-settings-section-block .form-table {
  width: 100%;
  margin: 8px 0 0;
}

/* Discussion — paired cards (left + right), label above controls */
body.yoo-wp-settings-experience .yp-wp-settings-discussion-section--main {
  padding: 0;
  background: transparent;
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 20px;
  padding: 0;
  border: 0;
  align-items: stretch;
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-pair-col {
  min-width: 0;
  padding: 14px 16px;
  background: var(--yp-set-muted);
  border: 1px solid var(--yp-set-border-soft);
  border-radius: 10px;
  box-sizing: border-box;
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-pair-col--solo {
  grid-column: 1 / -1;
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-section--default-avatar {
  margin-top: 16px;
  padding: 16px;
  background: var(--yp-set-muted);
  border: 1px solid var(--yp-set-border-soft);
  border-radius: 10px;
  box-sizing: border-box;
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-default-avatar-intro {
  margin: 0 0 12px;
  padding: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--yp-set-text);
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-table tr.yp-wp-settings-field-row {
  display: block;
  padding: 0;
  border-bottom: 0;
  background: transparent;
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-table th {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 0 10px !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--yp-set-text);
  vertical-align: top;
  text-align: left;
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-table td {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  vertical-align: top;
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-table fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-table td > fieldset {
  margin-bottom: 8px;
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-table td > fieldset:last-child {
  margin-bottom: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-table .yp-wp-settings-choice,
body.yoo-wp-settings-experience .yp-wp-settings-export-section--choices .yp-wp-settings-choice,
body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-add-panel .yp-wp-settings-choice {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 8px !important;
  padding: 10px 12px;
  border: 1px solid var(--yp-set-border-soft);
  border-radius: 8px;
  background: var(--yp-set-surface);
  font-weight: 400;
  line-height: 1.45;
  cursor: pointer;
  box-sizing: border-box;
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-table .yp-wp-settings-choice:last-child,
body.yoo-wp-settings-experience .yp-wp-settings-export-section--choices .yp-wp-settings-export-choice-row:last-of-type .yp-wp-settings-choice {
  margin-bottom: 0 !important;
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-table .yp-wp-settings-choice input,
body.yoo-wp-settings-experience .yp-wp-settings-export-section--choices .yp-wp-settings-choice input {
  margin: 3px 0 0;
  flex-shrink: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-table .yp-wp-settings-subfields,
  list-style: none;
  margin: 4px 0 8px !important;
  padding: 0 !important;
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-table .yp-wp-settings-subfield,
body.yoo-wp-settings-experience .yp-wp-settings-export-section--choices .yp-wp-settings-subfield {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 6px !important;
  padding: 8px 12px;
  border: 1px solid var(--yp-set-border-soft);
  border-radius: 8px;
  background: var(--yp-set-surface);
  box-sizing: border-box;
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-table .yp-wp-settings-subfield:last-child,
body.yoo-wp-settings-experience .yp-wp-settings-export-section--choices .yp-wp-settings-subfield:last-child {
  margin-bottom: 0 !important;
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-table .yp-wp-settings-subfield label {
  display: block;
  flex: 1 1 auto;
  margin: 0;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
  min-width: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-table .yp-wp-settings-subfield input,
body.yoo-wp-settings-experience .yp-wp-settings-discussion-table .yp-wp-settings-subfield select {
  flex: 0 0 auto;
  width: auto;
  max-width: min(100%, 280px);
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-table .yp-wp-settings-subfield input.small-text,
body.yoo-wp-settings-experience .yp-wp-settings-discussion-table .yp-wp-settings-subfield input[type='number'] {
  width: 72px !important;
  min-width: 72px;
  max-width: 72px;
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-table .yp-wp-settings-subfield .yp-ui-select {
  flex: 0 0 auto;
  width: min(100%, 220px);
  max-width: 220px;
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-table fieldset > p.yp-wp-settings-max-links,
body.yoo-wp-settings-experience .yp-wp-settings-discussion-table .yp-wp-settings-max-links {
  display: block;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--yp-set-border-soft);
  border-radius: 8px;
  background: var(--yp-set-surface);
  font-size: 13px;
  line-height: 1.55;
  box-sizing: border-box;
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-table .yp-wp-settings-max-links label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
  font-weight: 400;
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-table fieldset > p.yp-wp-settings-field-desc {
  margin: 0 0 10px;
  padding: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--yp-set-text);
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-table .yp-wp-settings-field-desc__text {
  display: block;
  width: 100%;
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-table .yp-wp-settings-field-desc__text a {
  color: var(--yooadmin-primary, #eda934);
  font-weight: 600;
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-table fieldset > p.yp-wp-settings-textarea-wrap {
  margin: 0;
  padding: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-table .yp-wp-settings-max-links input {
  margin: 0 !important;
  width: 64px !important;
  min-width: 64px;
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-table textarea.large-text {
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 8px;
  border-radius: 10px;
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-section--default-avatar .yp-wp-settings-discussion-table tr.yp-wp-settings-field-row {
  padding: 0;
}

body.yoo-wp-settings-experience
  .yp-wp-settings-discussion-section--default-avatar
  .yp-wp-settings-discussion-table
  + .yp-wp-settings-discussion-table {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--yp-set-border-soft);
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-table td > p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
}

body.yoo-wp-settings-experience .yp-wp-settings-discussion-table td > p:last-child {
  margin-bottom: 0;
}

/* Default Avatar — compact cards, full-width grid */
body.yoo-wp-settings-experience .yp-wp-settings-avatar-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

body.yoo-wp-settings-experience .yp-wp-settings-avatar-grid > p {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.55;
}

body.yoo-wp-settings-experience .yp-wp-settings-avatar-option {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 6px 10px;
  border: 1px solid var(--yp-set-border-soft);
  border-radius: 8px;
  background: var(--yp-set-surface);
  cursor: pointer;
  font-size: 12px;
  line-height: 1.3;
  box-sizing: border-box;
}

body.yoo-wp-settings-experience .yp-wp-settings-avatar-option:has(input:checked) {
  border-color: var(--yooadmin-primary, #eda934);
  background: color-mix(in srgb, var(--yooadmin-primary, #eda934) 6%, var(--yp-set-surface));
}

body.yoo-wp-settings-experience .yp-wp-settings-avatar-option img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

body.yoo-wp-settings-experience .yp-wp-settings-avatar-option input {
  margin: 0;
  flex-shrink: 0;
}

/* Permalink — gray sections, white option cards (like Discussion) */
body.yoo-wp-settings-experience .yp-wp-settings-permalink-section {
  padding: 14px 16px 16px;
  background: var(--yp-set-muted);
  border: 1px solid var(--yp-set-border-soft);
  border-radius: 10px;
  box-sizing: border-box;
}

body.yoo-wp-settings-experience .yp-wp-settings-permalink-section .yp-wp-settings-media-section-head {
  margin: 0 0 8px;
}

body.yoo-wp-settings-experience .yp-wp-settings-permalink-section .yp-wp-settings-media-section-intro {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--yp-set-text);
}

body.yoo-wp-settings-experience .yp-wp-settings-permalink-section .yp-wp-settings-media-section-intro a {
  color: var(--yooadmin-primary, #eda934);
  font-weight: 600;
  text-decoration: none;
}

body.yoo-wp-settings-experience .yp-wp-settings-permalink-section .yp-wp-settings-media-section-intro a:hover,
body.yoo-wp-settings-experience .yp-wp-settings-permalink-section .yp-wp-settings-media-section-intro a:focus {
  color: color-mix(in srgb, var(--yooadmin-primary, #eda934) 85%, #000 15%);
  text-decoration: underline;
}

body.yoo-wp-settings-experience .yp-wp-settings-woocommerce-permalink-structure {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-permalink-option .description {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--yp-set-text);
}

body.yoo-wp-settings-experience .yp-wp-settings-permalink-option code.default-example,
body.yoo-wp-settings-experience .yp-wp-settings-permalink-option code.non-default-example {
  margin-top: 6px;
}

body.yoo-wp-settings-experience .yp-wp-settings-permalink-option input.regular-text.code {
  width: min(100%, 420px);
  max-width: 100%;
  margin-top: 6px;
}

body.yoo-wp-settings-experience .yp-wp-settings-permalink-section .structure-selection {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-permalink-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 8px !important;
  padding: 10px 12px;
  border: 1px solid var(--yp-set-border-soft);
  border-radius: 8px;
  background: var(--yp-set-surface);
  box-sizing: border-box;
}

body.yoo-wp-settings-experience .yp-wp-settings-permalink-option:last-child {
  margin-bottom: 0 !important;
}

body.yoo-wp-settings-experience .yp-wp-settings-permalink-option input[type='radio'] {
  margin: 3px 0 0;
  flex-shrink: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-permalink-option > div {
  flex: 1 1 auto;
  min-width: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-permalink-option > div > label:first-of-type {
  display: inline;
  margin: 0;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}

body.yoo-wp-settings-experience .yp-wp-settings-permalink-option > div > p {
  margin: 6px 0 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-permalink-option code {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--yp-set-muted);
  font-size: 12px;
  word-break: break-all;
}

body.yoo-wp-settings-experience .yp-wp-settings-permalink-option .available-structure-tags {
  margin-top: 10px;
}

body.yoo-wp-settings-experience .yp-wp-settings-permalink-shell .available-structure-tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

/* Permalink Optional — two columns, grouped fields */
body.yoo-wp-settings-experience .yp-wp-settings-permalink-optional-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 20px;
  margin: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-permalink-optional-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-permalink-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--yp-set-border-soft);
  border-radius: 8px;
  background: var(--yp-set-surface);
  box-sizing: border-box;
}

body.yoo-wp-settings-experience .yp-wp-settings-permalink-field__label {
  flex: none;
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--yp-set-text);
}

body.yoo-wp-settings-experience .yp-wp-settings-permalink-field__label label {
  display: inline;
  margin: 0;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.45;
  color: var(--yp-set-text);
}

body.yoo-wp-settings-experience .yp-wp-settings-permalink-field__control {
  flex: none;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

body.yoo-wp-settings-experience .yp-wp-settings-permalink-field__control input.regular-text,
body.yoo-wp-settings-experience .yp-wp-settings-permalink-field__control input.code {
  flex: 1 1 160px;
  width: auto;
  min-width: 120px;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

body.yoo-wp-settings-experience .yp-wp-settings-permalink-field__control:has(> code) input.regular-text,
body.yoo-wp-settings-experience .yp-wp-settings-permalink-field__control:has(> code) input.code {
  flex: 1 1 120px;
  max-width: min(100%, 280px);
}

body.yoo-wp-settings-experience .yp-wp-settings-permalink-field__control code {
  flex: 0 0 auto;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--yp-set-muted);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

body.yoo-wp-settings-experience .yp-wp-settings-permalink-field__control .description {
  flex: 1 1 100%;
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--yp-set-text);
}

@media (max-width: 782px) {
  body.yoo-wp-settings-experience .yp-wp-settings-permalink-optional-grid {
    grid-template-columns: 1fr;
  }
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-section .form-table {
  margin-top: 8px;
}

/* Privacy — same shell/tabs as YOOAdmin Settings (yp-settings.css via .yooadmin-settings-wrap) */
body.yoo-wp-settings-experience .yp-wp-settings-privacy-root {
  max-width: 1280px;
  margin: 0;
  overflow: visible;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tabs-card .yp-wp-settings-privacy-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 22px 12px;
  background: var(--yp-set-surface);
  border-bottom: 1px solid var(--yp-set-border-soft);
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tabs-card .yp-wp-settings-privacy-card-head h1 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--yp-set-text);
}

body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tabs-card
  .yp-wp-settings-privacy-card-head
  h1
  .yp-wp-settings-title-icon {
  color: var(--yooadmin-primary, #eda934);
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-root .yp-tab-nav a.yp-tab {
  text-decoration: none;
  box-sizing: border-box;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-root .yp-tab-panel {
  display: block !important;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-root .privacy-settings-body {
  max-width: none;
  margin: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tabs-card .yp-tab-panels .yp-wp-settings-privacy-shell {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-guide-shell {
  gap: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-guide-lead h2 {
  margin: 0 0 8px;
  padding: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--yp-set-text);
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-guide-block {
  padding: 14px 16px;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-guide-block .section-title {
  margin: 0 0 10px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--yp-set-text);
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-guide-block .section-title:not(:first-child) {
  margin-top: 16px;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-guide-block p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--yp-set-text);
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-guide-block p:last-child {
  margin-bottom: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-guide-shell .privacy-settings-accordion,
body.yoo-wp-settings-experience .yp-wp-settings-privacy-guide-block .privacy-settings-accordion {
  margin: 12px 0 0;
  border: 1px solid var(--yp-set-border-soft);
  border-radius: 10px;
  overflow: hidden;
  background: var(--yp-set-surface);
}

body.yoo-wp-settings-experience .privacy-settings-accordion-heading {
  margin: 0;
  border-top: 1px solid var(--yp-set-border-soft);
}

body.yoo-wp-settings-experience .privacy-settings-accordion-heading:first-child {
  border-top: 0;
}

body.yoo-wp-settings-experience .privacy-settings-accordion-trigger {
  background: var(--yp-set-surface);
  color: var(--yp-set-text);
  padding: 12px 44px 12px 16px;
  min-height: 44px;
}

body.yoo-wp-settings-experience .privacy-settings-accordion-trigger:hover,
body.yoo-wp-settings-experience .privacy-settings-accordion-trigger:active {
  background: color-mix(in srgb, var(--yooadmin-primary, #eda934) 6%, var(--yp-set-surface));
}

body.yoo-wp-settings-experience .privacy-settings-accordion-trigger:focus {
  background: color-mix(in srgb, var(--yooadmin-primary, #eda934) 8%, var(--yp-set-surface));
  outline: 2px solid color-mix(in srgb, var(--yooadmin-primary, #eda934) 35%, transparent);
  outline-offset: -2px;
  box-shadow: none;
  color: var(--yp-set-text);
}

body.yoo-wp-settings-experience .privacy-settings-accordion-panel {
  padding: 12px 16px 16px;
  background: var(--yp-set-muted);
  border-top: 1px solid var(--yp-set-border-soft);
  font-size: 13px;
  line-height: 1.55;
  color: var(--yp-set-text);
}

body.yoo-wp-settings-experience .privacy-settings-accordion-panel h1,
body.yoo-wp-settings-experience .privacy-settings-accordion-panel h2,
body.yoo-wp-settings-experience .privacy-settings-accordion-panel h3,
body.yoo-wp-settings-experience .privacy-settings-accordion-panel h4 {
  color: var(--yp-set-text);
}

body.yoo-wp-settings-experience .privacy-settings-accordion-panel a {
  color: var(--yooadmin-primary, #eda934);
  font-weight: 600;
  text-decoration: none;
}

body.yoo-wp-settings-experience .privacy-settings-accordion-panel a:hover,
body.yoo-wp-settings-experience .privacy-settings-accordion-panel a:focus {
  color: color-mix(in srgb, var(--yooadmin-primary, #eda934) 85%, #000 15%);
  text-decoration: underline;
}

/* Privacy — links match YOOAdmin (--yp-primary) */
body.yoo-wp-settings-experience .yp-wp-settings-privacy-root a:not(.button):not(.yp-tab):not(.privacy-settings-tab),
body.yoo-wp-settings-experience .yp-wp-settings-section-lead a,
body.yoo-wp-settings-experience .yp-wp-settings-privacy-guide-lead a,
body.yoo-wp-settings-experience .yp-wp-settings-privacy-guide-block a,
body.yoo-wp-settings-experience .privacy-settings-body a:not(.button):not(.yp-tab) {
  color: var(--yooadmin-primary, #eda934);
  font-weight: 600;
  text-decoration: none;
  box-shadow: none;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-root a:not(.button):not(.yp-tab):not(.privacy-settings-tab):hover,
body.yoo-wp-settings-experience .yp-wp-settings-privacy-root a:not(.button):not(.yp-tab):not(.privacy-settings-tab):focus,
body.yoo-wp-settings-experience .yp-wp-settings-section-lead a:hover,
body.yoo-wp-settings-experience .yp-wp-settings-section-lead a:focus,
body.yoo-wp-settings-experience .yp-wp-settings-privacy-guide-lead a:hover,
body.yoo-wp-settings-experience .yp-wp-settings-privacy-guide-lead a:focus,
body.yoo-wp-settings-experience .yp-wp-settings-privacy-guide-block a:hover,
body.yoo-wp-settings-experience .yp-wp-settings-privacy-guide-block a:focus,
body.yoo-wp-settings-experience .privacy-settings-body a:not(.button):not(.yp-tab):hover,
body.yoo-wp-settings-experience .privacy-settings-body a:not(.button):not(.yp-tab):focus {
  color: color-mix(in srgb, var(--yooadmin-primary, #eda934) 85%, #000 15%);
  text-decoration: underline;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-section .tools-privacy-policy-page th {
  width: 34%;
  max-width: 220px;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-section .tools-privacy-policy-page td form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Button chrome: yooadmin-yoo-buttons (yp-yoo-buttons.css) */

body.yoo-wp-settings-experience .yp-wp-settings-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  align-items: stretch;
}

body.yoo-wp-settings-experience .yp-wp-settings-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  height: 100%;
  padding: 14px 16px 16px;
  background: var(--yp-set-muted);
  border: 1px solid var(--yp-set-border-soft);
  border-radius: 10px;
  box-sizing: border-box;
}

body.yoo-wp-settings-experience .yp-wp-settings-col .form-table {
  flex: 1 1 auto;
}

body.yoo-wp-settings-experience .yp-wp-settings-col .form-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

/* Row: label left, control right */
body.yoo-wp-settings-experience .form-table tbody,
body.yoo-wp-settings-experience .form-table tr {
  overflow: visible;
  position: relative;
}

body.yoo-wp-settings-experience .form-table tr {
  border-bottom: 1px solid var(--yp-set-border-soft);
}

body.yoo-wp-settings-experience .form-table tr:last-child {
  border-bottom: none;
}

body.yoo-wp-settings-experience .yp-wp-settings-col .form-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.65);
}

body.yoo-wp-settings-experience .form-table th {
  width: 38%;
  max-width: 200px;
  padding: 10px 12px 10px 4px !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--yp-set-text);
  vertical-align: middle;
  text-align: left;
}

body.yoo-wp-settings-experience .form-table td {
  padding: 10px 4px !important;
  font-size: 13px;
  color: var(--yp-set-text);
  vertical-align: middle;
}

body.yoo-wp-settings-experience .form-table th .yp-th-content {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

body.yoo-wp-settings-experience .form-table td p.description,
body.yoo-wp-settings-experience .form-table td .description {
  display: none !important;
}

/* Help icon */
body.yoo-wp-settings-experience .form-table th .yp-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f0f0f1;
  color: #50575e;
  cursor: help;
  flex-shrink: 0;
}

body.yoo-wp-settings-experience .form-table th .yp-help-icon:hover {
  background: #e0e0e0;
  color: var(--yooadmin-primary, #eda934);
}

body.yoo-wp-settings-experience .yp-help-icon .yp-tooltip,
body.yoo-wp-settings-experience .yp-help-icon:hover .yp-tooltip,
body.yoo-wp-settings-experience.yooadmin-settings-wrap .form-table th:hover .yp-help-icon .yp-tooltip,
body.yoo-wp-settings-experience.yooadmin-settings-wrap .yp-toggle-container:hover .yp-help-icon .yp-tooltip {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

body.yoo-wp-settings-experience .yp-wp-settings-tooltip-portal {
  position: fixed !important;
  display: none;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  width: 320px;
  max-width: calc(100vw - 24px);
  z-index: 10000000 !important;
  font-size: 12px;
  line-height: 1.55;
  color: var(--yp-set-text);
  pointer-events: none;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

body.yoo-wp-settings-experience .yp-wp-settings-tooltip-portal.is-visible {
  display: block !important;
  opacity: 1 !important;
}

/* Site Icon — horizontal layout */
body.yoo-wp-settings-experience .yp-wp-settings-site-icon-wrap {
  padding: 14px 16px;
  background: var(--yp-set-muted);
  border: 1px solid var(--yp-set-border-soft);
  border-radius: 10px;
  overflow: hidden;
}

/* Reading — homepage displays (full-width block) */
body.yoo-wp-settings-experience .yp-wp-settings-homepage-wrap {
  padding: 14px 16px;
  background: var(--yp-set-muted);
  border: 1px solid var(--yp-set-border-soft);
  border-radius: 10px;
  overflow: visible;
}

body.yoo-wp-settings-experience .form-table td fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}

body.yoo-wp-settings-experience .form-table td fieldset p {
  margin: 0.4em 0;
}

body.yoo-wp-settings-experience .form-table td fieldset ul {
  margin: 0.5em 0 0;
  padding: 0;
  list-style: none;
}

body.yoo-wp-settings-experience .form-table td fieldset ul li {
  margin: 0.5em 0;
}

body.yoo-wp-settings-experience .form-table td fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

body.yoo-wp-settings-experience .yp-wp-settings-site-icon-block {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px 20px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  text-align: start;
}

body.yoo-wp-settings-experience .yp-wp-settings-site-icon-head {
  flex: 0 0 auto;
  width: auto;
  min-width: 110px;
  max-width: 200px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--yp-set-text);
  padding-top: 4px;
}

body.yoo-wp-settings-experience .yp-wp-settings-site-icon-head label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-site-icon-body {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: start;
}

body.yoo-wp-settings-experience .yp-wp-settings-site-icon-layout {
  width: auto;
  max-width: 100%;
  min-width: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-site-icon-main {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px 16px;
  max-width: 100%;
  min-width: 0;
  width: auto;
  margin: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-site-icon-main #site-icon-preview {
  flex: 0 1 auto;
  margin: 0;
  max-width: 100%;
}

body.yoo-wp-settings-experience .site-icon-preview.settings {
  --site-icon-preview-background: #e8edf3;
  width: min(350px, 100%) !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box;
}

body.yoo-wp-settings-experience .site-icon-preview .app-icon-preview {
  background-color: #64748b;
  object-fit: contain;
}

body.yoo-wp-settings-experience .yp-wp-settings-site-icon-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0;
  flex: 0 0 auto;
}

body.yoo-wp-settings-experience .yp-wp-settings-site-icon-actions .site-icon-action-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0;
}

/* Icon actions (YOOAdmin-style, no text buttons) */
body.yoo-wp-settings-experience .yp-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  box-shadow: none;
}

body.yoo-wp-settings-experience .yp-icon-action .yp-icon-action__glyph,
body.yoo-wp-settings-experience .yp-icon-action .dashicons {
  display: inline-block;
  font-family: dashicons !important;
  font-size: 20px;
  width: 20px;
  height: 20px;
  line-height: 1;
  speak: never;
}

body.yoo-wp-settings-experience .yp-icon-action--primary {
  background: color-mix(in srgb, var(--yooadmin-primary, #eda934) 14%, #fff);
  border-color: color-mix(in srgb, var(--yooadmin-primary, #eda934) 45%, #e2e8f0);
  color: var(--yooadmin-primary, #eda934);
}

body.yoo-wp-settings-experience .yp-icon-action--primary .yp-icon-action__glyph,
body.yoo-wp-settings-experience .yp-icon-action--primary .dashicons {
  color: #c77f14 !important;
}

body.yoo-wp-settings-experience .yp-icon-action--primary .dashicons::before {
  color: #c77f14 !important;
}

body.yoo-wp-settings-experience .yp-icon-action--primary:hover {
  background: color-mix(in srgb, var(--yooadmin-primary, #eda934) 20%, #fff);
}

body.yoo-wp-settings-experience .yp-icon-action--ghost {
  background: #fff;
  border-color: var(--yp-set-border);
  color: #64748b;
}

body.yoo-wp-settings-experience .yp-icon-action--ghost:hover {
  border-color: #cbd5e1;
  color: #b91c1c;
  background: #fef2f2;
}

/* Date / Time — side by side, compact */
body.yoo-wp-settings-experience .yp-wp-settings-datetime-wrap {
  padding: 14px 16px 16px;
  background: var(--yp-set-muted);
  border: 1px solid var(--yp-set-border-soft);
  border-radius: 10px;
  overflow: hidden;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.yoo-wp-settings-experience .yp-wp-settings-datetime-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 24px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-datetime-col {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-width: 0;
  max-width: 100%;
}

body.yoo-wp-settings-experience .yp-wp-settings-datetime-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--yp-set-text);
}

body.yoo-wp-settings-experience .yp-wp-settings-datetime-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-datetime-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

body.yoo-wp-settings-experience .yp-wp-settings-datetime-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

body.yoo-wp-settings-experience .yp-wp-settings-datetime-chip {
  display: flex !important;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  padding: 7px 10px;
  min-height: 38px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid var(--yp-set-border-soft);
  background: var(--yp-set-surface);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  cursor: pointer;
  overflow: hidden;
}

body.yoo-wp-settings-experience .yp-wp-settings-datetime-chip .date-time-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.yoo-wp-settings-experience .yp-wp-settings-datetime-chip:hover {
  border-color: color-mix(in srgb, var(--yooadmin-primary, #eda934) 40%, transparent);
  background: color-mix(in srgb, var(--yooadmin-primary, #eda934) 6%, var(--yp-set-surface));
}

body.yoo-wp-settings-experience .yp-wp-settings-datetime-chip:has(input:checked) {
  border-color: var(--yooadmin-primary, #eda934);
  background: color-mix(in srgb, var(--yooadmin-primary, #eda934) 10%, var(--yp-set-surface));
}

body.yoo-wp-settings-experience .yp-wp-settings-datetime-chip input[type='radio'] {
  margin: 0;
  flex-shrink: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-datetime-chip code {
  font-size: 10px;
  color: #64748b;
  background: rgba(15, 23, 42, 0.05);
  padding: 1px 5px;
  border-radius: 4px;
  margin-inline-start: 4px;
}

body.yoo-wp-settings-experience .yp-wp-settings-datetime-footer {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

body.yoo-wp-settings-experience .yp-wp-settings-datetime-chip--custom {
  justify-content: flex-start;
  gap: 8px;
  cursor: pointer;
}

body.yoo-wp-settings-experience .yp-wp-settings-datetime-chip--custom .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-datetime-chip--custom .date-time-custom-text {
  font-weight: 400;
  color: var(--yp-set-text);
  white-space: nowrap;
}

body.yoo-wp-settings-experience .yp-wp-settings-datetime-custom-input {
  width: 76px !important;
  min-width: 76px !important;
  max-width: 76px !important;
  flex: 0 0 76px;
  margin: 0 !important;
  font-size: 12px;
  min-height: 28px;
  height: 28px;
  padding: 2px 6px;
  border-radius: 6px;
  box-sizing: border-box;
}

body.yoo-wp-settings-experience .yp-wp-settings-datetime-chip--preview {
  cursor: default;
  pointer-events: none;
  background: var(--yp-set-surface);
  border-color: var(--yp-set-border-soft);
}

body.yoo-wp-settings-experience .yp-wp-settings-datetime-chip--preview:hover {
  background: var(--yp-set-surface);
  border-color: var(--yp-set-border-soft);
}

body.yoo-wp-settings-experience .yp-wp-settings-datetime-preview-label,
body.yoo-wp-settings-experience .yp-wp-settings-datetime-chip--preview .yp-wp-settings-datetime-preview-label {
  font-weight: 400;
  color: var(--yp-set-text);
  white-space: nowrap;
}

body.yoo-wp-settings-experience .yp-wp-settings-datetime-chip--preview .example {
  font-weight: 400;
  color: var(--yp-set-text);
  white-space: nowrap;
}

body.yoo-wp-settings-experience .yp-wp-settings-datetime-doc {
  margin: 0 !important;
  font-size: 12px;
}

/* Inputs & buttons */
body.yoo-wp-settings-experience input[type='text'],
body.yoo-wp-settings-experience input[type='url'],
body.yoo-wp-settings-experience input[type='email'],
body.yoo-wp-settings-experience input[type='number'],
body.yoo-wp-settings-experience textarea {
  font-size: 13px;
  border-radius: 10px;
  border: 1px solid var(--yp-wp-field-border);
  background: var(--yp-set-surface);
  color: var(--yp-set-text);
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04);
  max-width: 100%;
  box-sizing: border-box;
}

body.yoo-wp-settings-experience input.regular-text,
body.yoo-wp-settings-experience input.large-text {
  min-height: 38px;
  padding: 8px 12px;
}

body.yoo-wp-settings-experience textarea {
  padding: 8px 12px;
  min-height: 72px;
}

body.yoo-wp-settings-experience input[type='text']:focus,
body.yoo-wp-settings-experience input[type='url']:focus,
body.yoo-wp-settings-experience input[type='email']:focus,
body.yoo-wp-settings-experience input[type='number']:focus,
body.yoo-wp-settings-experience textarea:focus {
  border-color: var(--yooadmin-primary, #eda934);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--yooadmin-primary, #eda934) 14%, transparent);
  outline: none;
}

body.yoo-wp-settings-experience .form-table td .yp-ui-select {
  width: min(var(--yp-settings-select-width), 100%);
  max-width: 100%;
}

body.yoo-wp-settings-experience select:not([multiple]):not(.yp-custom-select__native) {
  font-size: 13px;
  max-width: 100%;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid var(--yp-wp-field-border);
}

body.yoo-wp-settings-experience .wrap > form > .submit,
body.yoo-wp-settings-experience .wrap > form > p.submit {
  display: none !important;
}

/* Writing settings */
body.yoo-wp-settings-experience .yp-wp-settings-writing-primary.yp-wp-settings-media-section {
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

body.yoo-wp-settings-experience .yp-wp-settings-writing-subsection {
  border: 1px solid var(--yp-set-border-soft);
  border-radius: 10px;
  overflow: hidden;
  background: var(--yp-set-muted);
}

body.yoo-wp-settings-experience .yp-wp-settings-writing-subsection .yp-wp-settings-media-section-head {
  margin: 0;
  padding: 14px 16px;
  background: var(--yp-set-muted);
  border-bottom: 1px solid var(--yp-set-border-soft);
}

body.yoo-wp-settings-experience .yp-wp-settings-writing-subsection .yp-wp-settings-media-section-intro {
  display: none !important;
}

body.yoo-wp-settings-experience .yp-wp-settings-writing-table {
  width: 100%;
  margin: 0;
  background: transparent;
}

body.yoo-wp-settings-experience .yp-wp-settings-writing-table th {
  width: 30%;
  max-width: 180px;
  min-width: 120px;
  padding: 12px 12px 12px 16px !important;
  vertical-align: middle;
}

body.yoo-wp-settings-experience .yp-wp-settings-writing-table td {
  padding: 12px 16px 12px 8px !important;
  vertical-align: middle;
}

body.yoo-wp-settings-experience .yp-wp-settings-writing-table td input.regular-text,
body.yoo-wp-settings-experience .yp-wp-settings-writing-table td select,
body.yoo-wp-settings-experience .yp-wp-settings-writing-table td .yp-ui-select {
  width: min(100%, 420px);
  max-width: 420px;
}

body.yoo-wp-settings-experience .yp-wp-settings-writing-mail-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  width: 100%;
  max-width: 520px;
}

body.yoo-wp-settings-experience .yp-wp-settings-writing-mail-fields #mailserver_url {
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 100%;
  margin: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-writing-mail-port {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

body.yoo-wp-settings-experience .yp-wp-settings-writing-mail-port label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--yp-set-text);
  white-space: nowrap;
}

body.yoo-wp-settings-experience .yp-wp-settings-writing-mail-port #mailserver_port {
  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  margin: 0 !important;
}

body.yoo-wp-settings-experience .yp-wp-settings-writing-password-field {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 420px);
  max-width: 420px;
}

body.yoo-wp-settings-experience .yp-wp-settings-writing-password-field input {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
}

body.yoo-wp-settings-experience .yp-wp-settings-writing-password-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 8px;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--yooadmin-primary, #eda934) !important;
  cursor: pointer;
}

body.yoo-wp-settings-experience .yp-wp-settings-writing-password-toggle .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
  line-height: 1;
}

body.yoo-wp-settings-experience .yp-wp-settings-writing-password-toggle:hover {
  background: color-mix(in srgb, var(--yooadmin-primary, #eda934) 12%, transparent) !important;
}

body.yoo-wp-settings-experience .yp-wp-settings-writing-services-wrap .yp-wp-settings-writing-services-body {
  padding: 14px 16px 16px;
  background: transparent;
}

body.yoo-wp-settings-experience .yp-wp-settings-writing-services-body .yp-wp-settings-media-section-intro {
  display: none !important;
}

body.yoo-wp-settings-experience .yp-wp-settings-writing-services-textarea {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 96px;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
    monospace;
  font-size: 12px;
  line-height: 1.45;
}

/* Button look: yooadmin-yoo-buttons (yp-yoo-buttons.css) */

@media (max-width: 1100px) {
  body.yoo-wp-settings-experience .yp-wp-settings-split,
  body.yoo-wp-settings-experience .yp-wp-settings-datetime-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 782px) {
  /* Beat WP forms.css mobile bump (16px inputs / 14px labels) */
  body.yoo-wp-settings-experience .wrap > h1,
  body.yoo-wp-settings-experience .yp-wp-settings-header > h1 {
    font-size: 17px;
  }

  body.yoo-wp-settings-experience .wrap > h1 .yp-wp-settings-title-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
  }

  body.yoo-wp-settings-experience .yp-wp-settings-col {
    padding: 10px 12px 12px;
  }

  body.yoo-wp-settings-experience .wrap > form {
    padding: 10px 12px 16px;
  }

  body.yoo-wp-settings-experience .form-table th,
  body.yoo-wp-settings-experience .form-table td,
  body.yoo-wp-settings-experience .form-table label {
    font-size: 12px !important;
    line-height: 1.35;
  }

  body.yoo-wp-settings-experience .form-table th {
    padding: 6px 8px 6px 2px !important;
  }

  body.yoo-wp-settings-experience .form-table td {
    padding: 6px 2px 6px 8px !important;
  }

  body.yoo-wp-settings-experience input[type='text'],
  body.yoo-wp-settings-experience input[type='url'],
  body.yoo-wp-settings-experience input[type='email'],
  body.yoo-wp-settings-experience input[type='number'],
  body.yoo-wp-settings-experience textarea,
  body.yoo-wp-settings-experience select,
  body.yoo-wp-settings-experience .form-table select,
  body.yoo-wp-settings-experience .form-table input,
  body.yoo-wp-settings-experience .form-table textarea {
    font-size: 13px !important;
    line-height: 1.35 !important;
    min-height: 34px !important;
  }

  body.yoo-wp-settings-experience input.regular-text,
  body.yoo-wp-settings-experience input.large-text {
    min-height: 34px !important;
    padding: 6px 10px !important;
  }

  body.yoo-wp-settings-experience textarea {
    min-height: 64px;
    padding: 6px 10px !important;
  }

  body.yoo-wp-settings-experience .yp-ui-select .yp-custom-select__trigger {
    font-size: 13px !important;
    min-height: 34px !important;
    padding: 6px 10px !important;
  }

  body.yoo-wp-settings-experience .yp-wp-settings-datetime-chip {
    font-size: 11px !important;
    min-height: 28px;
  }

  body.yoo-wp-settings-experience .yp-wp-settings-datetime-custom-input {
    font-size: 11px !important;
    min-height: 26px !important;
    height: 26px !important;
  }

  body.yoo-wp-settings-experience .yp-wp-settings-site-icon-head {
    font-size: 12px;
  }

  body.yoo-wp-settings-experience .yp-wp-settings-save-btn {
    font-size: 12px !important;
    min-height: 34px !important;
    padding: 0 12px !important;
  }

  body.yoo-wp-settings-experience .yp-wp-settings-site-icon-block {
    flex-direction: column;
    gap: 10px;
  }

  body.yoo-wp-settings-experience .yp-wp-settings-site-icon-head {
    max-width: none;
  }

  body.yoo-wp-settings-experience .yp-wp-settings-datetime-grid {
    grid-template-columns: 1fr;
  }

  body.yoo-wp-settings-experience .yp-wp-settings-datetime-footer {
    grid-template-columns: 1fr;
  }

  body.yoo-wp-settings-experience .yp-wp-settings-site-icon-main {
    flex-direction: column;
  }

  body.yoo-wp-settings-experience .form-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 6px 8px;
  }

  body.yoo-wp-settings-experience .form-table th,
  body.yoo-wp-settings-experience .form-table td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.yoo-wp-settings-experience .yp-wp-settings-writing-table th,
  body.yoo-wp-settings-experience .yp-wp-settings-writing-table td {
    padding: 8px 12px !important;
  }

  body.yoo-wp-settings-experience .yp-wp-settings-writing-mail-fields {
    max-width: 100%;
  }

  body.yoo-wp-settings-experience .yp-wp-settings-writing-mail-fields #mailserver_url {
    flex-basis: 100%;
    min-width: 0;
  }

  body.yoo-wp-settings-experience .yp-wp-settings-writing-table td input.regular-text,
  body.yoo-wp-settings-experience .yp-wp-settings-writing-table td select,
  body.yoo-wp-settings-experience .yp-wp-settings-writing-table td .yp-ui-select,
  body.yoo-wp-settings-experience .yp-wp-settings-writing-password-field {
    max-width: 100%;
  }

  body.yoo-wp-settings-experience .yp-wp-settings-discussion-pair-col {
    padding: 12px 14px;
  }

  body.yoo-wp-settings-experience .yp-wp-settings-discussion-pair {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.yoo-wp-settings-experience .yp-wp-settings-avatar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.yoo-wp-settings-experience .yp-wp-settings-discussion-section--default-avatar {
    padding: 12px 14px;
  }
}

/* -------------------------------------------------------------------------
 * Dark mode (Studio Hub effective color + OS fallback)
 * ------------------------------------------------------------------------- */
html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme) body.yoo-wp-settings-experience,
html.yooadmin-studio-hub-html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.yoo-wp-settings-experience,
body.is-dark-theme.yoo-wp-settings-experience {
  --yp-set-surface: #1a1d23;
  --yp-set-muted: #12161c;
  --yp-set-text: #cfd6e0;
  --yp-set-text-muted: #9aa5b1;
  --yp-set-border: rgba(255, 255, 255, 0.1);
  --yp-set-border-soft: rgba(255, 255, 255, 0.06);
  --yp-wp-field-border: rgba(255, 255, 255, 0.14);
  --yp-set-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  html:not([data-yooadmin-studio-color-mode-effective='light']) body.yoo-wp-settings-experience {
    --yp-set-surface: #1a1d23;
    --yp-set-muted: #12161c;
    --yp-set-text: #cfd6e0;
    --yp-set-text-muted: #9aa5b1;
    --yp-set-border: rgba(255, 255, 255, 0.1);
    --yp-set-border-soft: rgba(255, 255, 255, 0.06);
    --yp-wp-field-border: rgba(255, 255, 255, 0.14);
    --yp-set-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  }
}

/* Privacy tabs card — yooadmin-settings-wrap ships light tokens on the wrapper itself */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-root.yooadmin-settings-wrap,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-root.yooadmin-settings-wrap {
  --yp-set-surface: #1a1d23;
  --yp-set-muted: #141820;
  --yp-set-text: #cfd6e0;
  --yp-set-text-muted: #9aa5b1;
  --yp-set-border: rgba(255, 255, 255, 0.1);
  --yp-set-border-soft: rgba(255, 255, 255, 0.06);
  --yp-set-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --yp-text: #cfd6e0;
}

@media (prefers-color-scheme: dark) {
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yoo-wp-settings-experience
    .yp-wp-settings-privacy-root.yooadmin-settings-wrap {
    --yp-set-surface: #1a1d23;
    --yp-set-muted: #141820;
    --yp-set-text: #cfd6e0;
    --yp-set-text-muted: #9aa5b1;
    --yp-set-border: rgba(255, 255, 255, 0.1);
    --yp-set-border-soft: rgba(255, 255, 255, 0.06);
    --yp-set-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    --yp-text: #cfd6e0;
  }
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-root.yooadmin-settings-wrap
  .yp-tab:hover:not(.is-active),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-root.yooadmin-settings-wrap
  .yp-tab:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.06) !important;
}

@media (prefers-color-scheme: dark) {
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yoo-wp-settings-experience
    .yp-wp-settings-privacy-root.yooadmin-settings-wrap
    .yp-tab:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.06) !important;
  }
}

html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience .wrap > form,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience .wrap > form {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 28px rgba(0, 0, 0, 0.25);
}

html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience .yp-wp-settings-col .form-table tr:nth-child(even),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-col
  .form-table
  tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.04);
}

html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience .form-table th .yp-help-icon,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .form-table
  th
  .yp-help-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #9aa5b1;
}

html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience .yp-wp-settings-tooltip-portal,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-tooltip-portal {
  background: #1a1d23;
  border-color: rgba(255, 255, 255, 0.12);
  color: #cfd6e0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience input[type='text'],
html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience input[type='url'],
html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience input[type='email'],
html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience input[type='number'],
html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience textarea,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience input[type='text'],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience input[type='url'],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience input[type='email'],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience input[type='number'],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience textarea {
  color-scheme: dark;
  background: #22262e;
  color: #cfd6e0;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience select:not([multiple]):not(.yp-custom-select__native),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  select:not([multiple]):not(.yp-custom-select__native) {
  color-scheme: dark;
  background-color: #22262e;
  color: #cfd6e0;
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience .yp-ui-select,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience .yp-ui-select {
  --yp-ads-border: rgba(255, 255, 255, 0.14);
  --yp-ads-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience .yp-ui-select .yp-custom-select__trigger,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-ui-select
  .yp-custom-select__trigger {
  color: #cfd6e0;
  background: #22262e;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience .yp-ui-select .yp-custom-select__chevron,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-ui-select
  .yp-custom-select__chevron {
  color: #9aa5b1;
}

html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience .yp-ui-select .yp-custom-select__drop,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-ui-select
  .yp-custom-select__drop {
  background: #1a1d23;
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience .yp-ui-select .yp-custom-select__option-main,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-ui-select
  .yp-custom-select__option-main {
  color: #cfd6e0;
}

html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience .yp-ui-select .yp-custom-select__option-group-label,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-ui-select
  .yp-custom-select__option-group-label {
  color: #9aa5b1;
}

html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience .yp-ui-select .yp-custom-select__option:hover .yp-custom-select__option-row,
html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience .yp-ui-select .yp-custom-select__option:focus .yp-custom-select__option-row,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-ui-select
  .yp-custom-select__option:hover
  .yp-custom-select__option-row,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-ui-select
  .yp-custom-select__option:focus
  .yp-custom-select__option-row {
  background: rgba(255, 255, 255, 0.08);
}

html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience .yp-wp-settings-datetime-chip code,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-datetime-chip
  code {
  color: #9aa5b1;
  background: rgba(255, 255, 255, 0.08);
}

html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience .yp-icon-action--ghost,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience .yp-icon-action--ghost {
  background: #22262e;
  border-color: rgba(255, 255, 255, 0.14);
  color: #9aa5b1;
}

html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience .site-icon-preview.settings,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .site-icon-preview.settings {
  --site-icon-preview-background: #2a3140;
}

html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience .site-icon-preview .app-icon-preview,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .site-icon-preview
  .app-icon-preview {
  background-color: #475569;
}

html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience .form-table th .yp-help-icon:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .form-table
  th
  .yp-help-icon:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--yooadmin-primary, #eda934);
}

html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience .yp-icon-action--primary,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-icon-action--primary {
  background: color-mix(in srgb, var(--yooadmin-primary, #eda934) 16%, #1a1d23);
  border-color: color-mix(in srgb, var(--yooadmin-primary, #eda934) 42%, rgba(255, 255, 255, 0.14));
  color: var(--yooadmin-primary, #eda934);
}

html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience .yp-icon-action--primary:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-icon-action--primary:hover {
  background: color-mix(in srgb, var(--yooadmin-primary, #eda934) 22%, #1a1d23);
}

html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience .yp-icon-action--ghost:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-icon-action--ghost:hover {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.12);
}

html[data-yooadmin-studio-color-mode-effective='dark'] body.yoo-wp-settings-experience .yp-wp-settings-export-filters,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-export-filters {
  background: rgba(255, 255, 255, 0.04);
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-discussion-table
  .yp-wp-settings-choice:has(input:checked),
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-avatar-option:has(input:checked),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-discussion-table
  .yp-wp-settings-choice:has(input:checked),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-avatar-option:has(input:checked) {
  background: color-mix(in srgb, var(--yooadmin-primary, #eda934) 10%, var(--yp-set-surface));
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .privacy-settings-accordion-trigger:hover,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .privacy-settings-accordion-trigger:active,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .privacy-settings-accordion-trigger:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .privacy-settings-accordion-trigger:active {
  background: color-mix(in srgb, var(--yooadmin-primary, #eda934) 8%, var(--yp-set-surface));
}

@media (prefers-color-scheme: dark) {
  html:not([data-yooadmin-studio-color-mode-effective='light']) body.yoo-wp-settings-experience .form-table th .yp-help-icon:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--yooadmin-primary, #eda934);
  }

  html:not([data-yooadmin-studio-color-mode-effective='light']) body.yoo-wp-settings-experience .yp-icon-action--primary {
    background: color-mix(in srgb, var(--yooadmin-primary, #eda934) 16%, #1a1d23);
    border-color: color-mix(in srgb, var(--yooadmin-primary, #eda934) 42%, rgba(255, 255, 255, 0.14));
  }

  html:not([data-yooadmin-studio-color-mode-effective='light']) body.yoo-wp-settings-experience .yp-icon-action--ghost:hover {
    border-color: rgba(248, 113, 113, 0.45);
    color: #fca5a5;
    background: rgba(248, 113, 113, 0.12);
  }

  html:not([data-yooadmin-studio-color-mode-effective='light']) body.yoo-wp-settings-experience .yp-wp-settings-export-filters {
    background: rgba(255, 255, 255, 0.04);
  }
}

/* Export — discussion-style sections */
body.yoo-wp-settings-experience .yp-wp-settings-export-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.yoo-wp-settings-experience .yp-wp-settings-export-section {
  background: var(--yp-set-muted);
  border: 1px solid var(--yp-set-border-soft);
  border-radius: 10px;
  box-sizing: border-box;
}

body.yoo-wp-settings-experience .yp-wp-settings-export-section--intro {
  padding: 16px;
}

body.yoo-wp-settings-experience .yp-wp-settings-export-intro {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--yp-set-text);
}

body.yoo-wp-settings-experience .yp-wp-settings-export-intro:last-child {
  margin-bottom: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-export-section--choices {
  padding: 16px;
}

body.yoo-wp-settings-experience .yp-wp-settings-export-section-head {
  margin: 0 0 14px;
  padding: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-export-section-head h2 {
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--yp-set-text);
  border: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-export-fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-export-choice-row,
body.yoo-wp-settings-experience .yp-wp-settings-export-fieldset > p.description,
body.yoo-wp-settings-experience .yp-wp-settings-export-fieldset > ul.export-filters {
  margin: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-export-fieldset > p.description,
body.yoo-wp-settings-experience .yp-wp-settings-export-fieldset > ul.yp-wp-settings-export-filters {
  grid-column: 1 / -1;
}

body.yoo-wp-settings-experience .yp-wp-settings-export-fieldset > p.description {
  margin: -4px 0 4px;
  padding: 0 2px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--yp-set-text-muted, #646970);
}

body.yoo-wp-settings-experience .yp-wp-settings-export-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  list-style: none;
  margin: 4px 0 8px !important;
  padding: 12px 14px !important;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid var(--yp-set-border-soft);
  border-radius: 8px;
  box-sizing: border-box;
}

body.yoo-wp-settings-experience .yp-wp-settings-export-filters > li {
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-export-filter-dates-li,
body.yoo-wp-settings-experience .yp-wp-settings-export-filters > li:last-child:not(.yp-wp-settings-export-filter-dates-li) {
  grid-column: 1 / -1;
}

body.yoo-wp-settings-experience .yp-wp-settings-export-filters-dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

body.yoo-wp-settings-experience .yp-wp-settings-export-filter-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  background: var(--yp-set-surface);
  border: 1px solid var(--yp-set-border-soft);
  border-radius: 8px;
  box-sizing: border-box;
}

body.yoo-wp-settings-experience .yp-wp-settings-export-filter-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--yp-set-text);
}

body.yoo-wp-settings-experience .yp-wp-settings-export-filter-control {
  min-width: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-export-filter-control select {
  width: 100%;
  max-width: 100%;
}

body.yoo-wp-settings-experience .yp-wp-settings-export-section--choices .yp-wp-settings-choice {
  width: 100%;
  margin: 0 !important;
}

@media (max-width: 720px) {
  body.yoo-wp-settings-experience .yp-wp-settings-export-filters,
  body.yoo-wp-settings-experience .yp-wp-settings-export-filters-dates {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  body.yoo-wp-settings-experience .yp-wp-settings-export-fieldset {
    grid-template-columns: 1fr;
  }
}

/* Export / Erase personal data tools */
body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell,
    'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-intro,
body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-add {
  background: var(--yp-set-muted);
  border: 1px solid var(--yp-set-border-soft);
  border-radius: 10px;
  box-sizing: border-box;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-requests {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-intro {
  padding: 14px 16px;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-lead {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--yp-set-text-muted, #64748b);
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-add {
  padding: 16px;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-add-head h2 {
  margin: 0 0 14px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--yp-set-text);
  border: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-add-panel {
  padding: 14px 16px;
  background: var(--yp-set-muted);
  border: 1px solid var(--yp-set-border-soft);
  border-radius: 10px;
  box-sizing: border-box;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-add-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 20px;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-add-cell {
  flex: 1 1 200px;
  min-width: min(200px, 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-add-cell__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--yp-set-text);
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-add-cell__control input.regular-text {
  width: 100%;
  max-width: 100%;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--yp-set-text-muted, #64748b);
  cursor: pointer;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-add-actions {
  flex: 0 0 auto;
  align-self: flex-end;
  margin: 0 0 0 auto;
  padding: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-add-submit {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-add-fields {
  margin: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-requests > hr {
  display: none;
}

/* فلتر + جدول — بلوك واحد، حواف مستقيمة، إطار رمادي فاتح ناعم */
body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-table-card {
  overflow: hidden;
  background: var(--yp-set-surface);
  border: 1px solid #e4e9ef;
  border-radius: 0;
  box-shadow: none;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 14px 16px 12px;
  background: var(--yp-set-surface);
  border-bottom: 1px solid #edf1f5;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-views {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-views .yp-wp-settings-privacy-tools-view-item {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-views .yp-wp-settings-privacy-tools-view-item a,
body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-views .yp-wp-settings-privacy-tools-view-item .count {
  font-size: 13px;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-views a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--yp-set-text-muted, #64748b);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-views a:hover,
body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-views a:focus {
  color: var(--yp-set-text);
  background: rgba(15, 23, 42, 0.05);
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-views .current a {
  color: var(--yooadmin-primary, #eda934);
  background: rgba(237, 169, 52, 0.14);
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-views .count {
  font-weight: 500;
  color: inherit;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-search {
  flex: 0 1 auto;
  margin: 0 0 0 auto;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-search .search-box {
  float: none;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-search input[type='search'] {
  min-width: min(220px, 100%);
  border-radius: 8px;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-list-form {
  margin: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-tablenav--top {
  padding: 10px 16px;
  margin: 0;
  background: var(--yp-set-surface);
  border-bottom: 1px solid #edf1f5;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-table {
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  border-collapse: collapse;
  border-spacing: 0;
  background: var(--yp-set-surface);
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.01em;
  box-shadow: none;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-table thead th,
body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-table tfoot th {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--yp-set-text-muted, #64748b);
  background: #f3f6f9;
  border: 0;
  border-bottom: 1px solid #e4e9ef;
  vertical-align: middle;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-table tfoot {
  display: none !important;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-table tbody td {
  padding: 14px 16px;
  font-weight: 400;
  color: var(--yp-set-text);
  background: var(--yp-set-surface);
  border: 0;
  border-bottom: 1px solid #edf1f5;
  vertical-align: middle;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-table tbody tr {
  transition: background-color 0.15s ease;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-table tbody tr:hover td {
  background: rgba(15, 23, 42, 0.025);
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-table tbody tr:last-child td {
  border-bottom: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-table.striped > tbody > :nth-child(odd),
body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-table.striped > tbody > :nth-child(even) {
  background: transparent;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-table thead th a,
body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-table tbody td a {
  font-size: inherit;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-table .sorting a,
body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-table .sorted a {
  color: var(--yooadmin-primary, #eda934);
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-table thead .check-column,
body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-table thead th.check-column,
body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-table thead td.check-column {
  width: 2.75rem;
  padding-left: 16px;
  padding-right: 8px;
  background: #f3f6f9 !important;
  border-right: 0 !important;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-table tbody .check-column,
body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-table tbody td.check-column,
body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-table tbody th.check-column {
  width: 2.75rem;
  padding-left: 16px;
  padding-right: 8px;
  background: #fff !important;
  border-right: 0 !important;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-table tbody tr:hover .check-column {
  background: rgba(15, 23, 42, 0.025) !important;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-table .no-items td {
  color: var(--yp-set-text-muted, #64748b);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: center;
  padding: 36px 16px;
  border-bottom: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-tablenav {
  margin: 0;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 400;
  color: var(--yp-set-text-muted, #64748b);
  height: auto;
  min-height: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-tablenav--bottom {
  background: var(--yp-set-surface);
  border-top: 1px solid #edf1f5;
}

body.yoo-wp-settings-experience .yp-wp-settings-privacy-tools-tablenav .tablenav-pages {
  font-weight: 400;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-table-card,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-table-card {
  background: #1a1d23;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-table-toolbar,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-tablenav--top,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-tablenav--bottom,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-table-toolbar,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-tablenav--top,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-tablenav--bottom {
  background: #1a1d23;
  border-color: rgba(255, 255, 255, 0.07);
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-table thead th,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-table thead .check-column,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-table thead th.check-column,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-table thead td.check-column,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-table thead th,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-table thead .check-column,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-table thead th.check-column,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-table thead td.check-column {
  background: #22262e !important;
  border-color: rgba(255, 255, 255, 0.08);
  color: #9aa5b1;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-table,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-table {
  background: #1a1d23;
  color: #cfd6e0;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-table thead th,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-table tbody td,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-table thead th,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-table tbody td {
  border-color: rgba(255, 255, 255, 0.08);
  color: #9aa5b1;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-table tbody td,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-table tbody td {
  color: #cfd6e0;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-table tbody tr:hover td,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-table tbody
  .check-column,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-table tbody
  td.check-column,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-table tbody
  th.check-column,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-table tbody
  .check-column,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-table tbody
  td.check-column,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-table tbody
  th.check-column {
  background: #1a1d23 !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-table tbody tr:hover
  .check-column,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-table tbody tr:hover
  .check-column {
  background: rgba(255, 255, 255, 0.04) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-tablenav--bottom,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience
  .yp-wp-settings-privacy-tools-tablenav--bottom {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* Privacy tools table — override Studio Hub layout-shell (load-order safe) */
body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .wrap
  > .subsubsub:not(.yp-wp-settings-privacy-tools-views) {
  display: none !important;
}

body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card
  .subsubsub {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card
  table.wp-list-table.widefat,
body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card
  table.widefat.wp-list-table {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
}

body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card
  table.wp-list-table.widefat
  thead
  th,
body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card
  table.widefat.wp-list-table
  thead
  th,
body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card
  table.wp-list-table.widefat
  thead
  .check-column,
body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card
  table.widefat.wp-list-table
  thead
  .check-column {
  background: #f3f6f9 !important;
  border: 0 !important;
  border-bottom: 1px solid #e4e9ef !important;
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: none !important;
}

body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card
  table.wp-list-table.widefat
  tfoot,
body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card
  table.widefat.wp-list-table
  tfoot {
  display: none !important;
}

body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card
  table.wp-list-table.widefat
  tbody
  td,
body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card
  table.widefat.wp-list-table
  tbody
  td {
  background: #fff !important;
  border: 0 !important;
  border-bottom: 1px solid #edf1f5 !important;
  color: #1e293b !important;
}

body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card
  table.wp-list-table.widefat.striped
  > tbody
  > :nth-child(odd)
  > td,
body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card
  table.wp-list-table.widefat.striped
  > tbody
  > :nth-child(even)
  > td {
  background: #fff !important;
}

/* Dark mode — undo light-only Studio Hub privacy-tools overrides above (same specificity, later cascade) */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card {
  background: #1a1d23 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-toolbar,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-tablenav--top,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-tablenav--bottom,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-toolbar,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-tablenav--top,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-tablenav--bottom {
  background: #1a1d23 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card
  table.wp-list-table.widefat,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card
  table.widefat.wp-list-table,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card
  table.wp-list-table.widefat,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card
  table.widefat.wp-list-table {
  background: #1a1d23 !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card
  table.wp-list-table.widefat
  thead
  th,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card
  table.widefat.wp-list-table
  thead
  th,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card
  table.wp-list-table.widefat
  thead
  .check-column,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card
  table.widefat.wp-list-table
  thead
  .check-column,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card
  table.wp-list-table.widefat
  thead
  th,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card
  table.widefat.wp-list-table
  thead
  th,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card
  table.wp-list-table.widefat
  thead
  .check-column,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card
  table.widefat.wp-list-table
  thead
  .check-column {
  background: #22262e !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  color: #9aa5b1 !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card
  table.wp-list-table.widefat
  tbody
  td,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card
  table.widefat.wp-list-table
  tbody
  td,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card
  table.wp-list-table.widefat
  tbody
  td,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card
  table.widefat.wp-list-table
  tbody
  td {
  background: #1a1d23 !important;
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
  color: #cfd6e0 !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card
  table.wp-list-table.widefat.striped
  > tbody
  > :nth-child(odd)
  > td,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card
  table.wp-list-table.widefat.striped
  > tbody
  > :nth-child(even)
  > td,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card
  table.wp-list-table.widefat.striped
  > tbody
  > :nth-child(odd)
  > td,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
  .yp-wp-settings-privacy-tools-table-card
  table.wp-list-table.widefat.striped
  > tbody
  > :nth-child(even)
  > td {
  background: #1a1d23 !important;
}

@media (prefers-color-scheme: dark) {
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
    .yp-wp-settings-privacy-tools-table-card,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
    .yp-wp-settings-privacy-tools-table-card
    table.wp-list-table.widefat,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
    .yp-wp-settings-privacy-tools-table-card
    table.widefat.wp-list-table {
    background: #1a1d23 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
    .yp-wp-settings-privacy-tools-table-card
    table.wp-list-table.widefat
    thead
    th,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
    .yp-wp-settings-privacy-tools-table-card
    table.widefat.wp-list-table
    thead
    th,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
    .yp-wp-settings-privacy-tools-table-card
    table.wp-list-table.widefat
    thead
    .check-column,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
    .yp-wp-settings-privacy-tools-table-card
    table.widefat.wp-list-table
    thead
    .check-column {
    background: #22262e !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    color: #9aa5b1 !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
    .yp-wp-settings-privacy-tools-table-card
    table.wp-list-table.widefat
    tbody
    td,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience.yp-wp-settings-privacy-tools-active
    .yp-wp-settings-privacy-tools-table-card
    table.widefat.wp-list-table
    tbody
    td {
    background: #1a1d23 !important;
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
    color: #cfd6e0 !important;
  }
}

/* Tools hub & subpages */
body.yoo-wp-settings-experience .yp-wp-settings-tools-hub {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.yoo-wp-settings-experience .yp-wp-settings-tools-hub > .card.yp-wp-settings-tools-card {
  margin: 0;
  max-width: none;
  padding: 16px 18px;
  border: 1px solid var(--yp-set-border-soft);
  border-radius: var(--yp-set-radius, 8px);
  background: var(--yp-set-surface, #fff);
  box-shadow: none;
}

body.yoo-wp-settings-experience .yp-wp-settings-tools-hub > .card.yp-wp-settings-tools-card h2 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
}

body.yoo-wp-settings-experience .yp-wp-settings-tools-hub > .card.yp-wp-settings-tools-card p {
  margin: 0 0 12px;
  color: var(--yp-set-text-muted, #646970);
}

body.yoo-wp-settings-experience .yp-wp-settings-tools-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.yoo-wp-settings-experience .yp-wp-settings-tools-panel .notice,
body.yoo-wp-settings-experience .yp-wp-settings-tools-panel .health-check-body,
body.yoo-wp-settings-experience .yp-wp-settings-tools-panel .site-health-issues-container,
body.yoo-wp-settings-experience .yp-wp-settings-tools-panel #action-scheduler,
body.yoo-wp-settings-experience .yp-wp-settings-tools-panel .wrap > p {
  margin-top: 0;
}

body.yoo-wp-settings-experience .yp-wp-settings-tools-code-section {
  padding: 14px 16px;
  background: var(--yp-set-muted);
  border: 1px solid var(--yp-set-border-soft);
  border-radius: var(--yp-set-radius, 8px);
}

body.yoo-wp-settings-experience .yp-wp-settings-tools-form--code textarea.code,
body.yoo-wp-settings-experience .yp-wp-settings-tools-form--code #newcontent {
  width: 100%;
  min-height: 420px;
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
  line-height: 1.5;
}

body.yoo-wp-settings-experience .yp-wp-settings-tools-form .yp-wp-settings-shell {
  gap: 16px;
}

@media (prefers-color-scheme: dark) {
  html:not([data-yooadmin-studio-color-mode-effective='light']) body.yoo-wp-settings-experience .yp-wp-settings-col .form-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.04);
  }

  html:not([data-yooadmin-studio-color-mode-effective='light']) body.yoo-wp-settings-experience input[type='text'],
  html:not([data-yooadmin-studio-color-mode-effective='light']) body.yoo-wp-settings-experience input[type='url'],
  html:not([data-yooadmin-studio-color-mode-effective='light']) body.yoo-wp-settings-experience input[type='email'],
  html:not([data-yooadmin-studio-color-mode-effective='light']) body.yoo-wp-settings-experience input[type='number'],
  html:not([data-yooadmin-studio-color-mode-effective='light']) body.yoo-wp-settings-experience textarea,
  html:not([data-yooadmin-studio-color-mode-effective='light']) body.yoo-wp-settings-experience select:not([multiple]):not(.yp-custom-select__native) {
    color-scheme: dark;
    background: #22262e;
    color: #cfd6e0;
    border-color: rgba(255, 255, 255, 0.14);
  }

  html:not([data-yooadmin-studio-color-mode-effective='light']) body.yoo-wp-settings-experience .yp-ui-select .yp-custom-select__trigger {
    color: #cfd6e0;
    background: #22262e;
    border-color: rgba(255, 255, 255, 0.14);
  }

  html:not([data-yooadmin-studio-color-mode-effective='light']) body.yoo-wp-settings-experience .yp-ui-select .yp-custom-select__drop {
    background: #1a1d23;
    border-color: rgba(255, 255, 255, 0.12);
  }
}

/* WordPress 7+ React boot pages (Connectors, AI, …) — single YOOAdmin settings card */
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience,
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience #wpwrap,
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience #wpbody,
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience #wpbody-content {
  background: transparent !important;
}

body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience #wpcontent {
  padding-inline-start: 0 !important;
}

body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience #wpbody-content {
  padding-bottom: 24px !important;
}

body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience #wpfooter {
  display: block !important;
}

/* One card — same shell as native settings (.wrap); override WP Boot inline hide rule */
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience #wpbody-content > .wrap,
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience #wpbody-content > .wrap.yp-wp-settings-boot-layout-wrap {
  display: block !important;
  max-width: 1280px;
  margin: 12px 12px !important;
  padding: 0 !important;
  background: var(--yp-set-surface, #fff) !important;
  border: 1px solid var(--yp-set-border, rgba(15, 23, 42, 0.09)) !important;
  border-radius: 7px !important;
  overflow: visible !important;
  box-shadow: none !important;
  box-sizing: border-box;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  #wpbody-content
  > .wrap,
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  #wpbody-content
  > .wrap.yp-wp-settings-boot-layout-wrap,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  #wpbody-content
  > .wrap,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  #wpbody-content
  > .wrap.yp-wp-settings-boot-layout-wrap {
  background: #1a1d23 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* App stays outside .wrap until early JS moves it — never show as full-bleed sibling */
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience #wpbody-content > [id$="-wp-admin-app"] {
  display: none !important;
}

body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience .wrap.yp-wp-settings-boot-layout-wrap > h1,
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience .wrap.yp-wp-settings-boot-layout-wrap > .yp-wp-settings-boot-layout-intro {
  display: none !important;
}

/* React mount lives inside .wrap — no nested card */
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience .wrap.yp-wp-settings-boot-layout-wrap [id$="-wp-admin-app"],
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience .wrap.yp-wp-settings-boot-layout-wrap [id$="-wp-admin-app"].yp-wp-settings-boot-layout-app {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  min-height: 0;
  contain: none;
}

body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] .boot-layout,
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] .boot-layout.boot-layout--single-page {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  background: transparent !important;
}

body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] .boot-layout__surfaces,
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] .boot-layout__canvas,
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] .boot-layout__stage,
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] .boot-layout.has-full-canvas .boot-layout__canvas,
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] .boot-layout--single-page .boot-layout__canvas {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] .boot-layout__mobile-sidebar-drawer {
  display: none !important;
}

body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] .boot-layout__surfaces,
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] .boot-layout__canvas,
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] .boot-layout__stage,
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] .admin-ui-page,
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] [class$="__page"] {
  position: relative !important;
  display: flex !important;
  flex-flow: column !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  background: transparent !important;
}

/* Undo YOOAdmin / wp-admin .wrap h1 rules inside React boot apps */
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience .wrap.yp-wp-settings-boot-layout-wrap [id$="-wp-admin-app"] h1 {
  padding: 0 !important;
  margin: 0 !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  flex: 0 1 auto !important;
  width: auto !important;
  max-width: none !important;
}

/* Keep plugin header rows inline (icon + title + actions) */
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] .admin-ui-page__header,
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] [class$="__header"] {
  position: relative !important;
  top: auto !important;
  padding-block: 12px 10px !important;
  padding-inline: 20px !important;
  margin: 0 !important;
}

body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] [class$="__header-content"] {
  min-height: 0 !important;
}

body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] .admin-ui-page__header-subtitle,
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] [class$="__header-subtitle"] {
  padding-block-end: 0 !important;
  margin: 0 !important;
}

body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] .admin-ui-page__header .components-flex,
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] [class$="__header"] .components-flex,
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] [class$="__header-content"] .components-flex {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
}

body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] .admin-ui-page__content.has-padding,
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] [class$="__content"][class*="__has-padding"] {
  padding-inline: 20px !important;
  padding-block: 12px 16px !important;
}

/* AI settings body — breathing room under page header (notice, sections) */
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] .ai-settings-page {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 16px 20px 20px !important;
  box-sizing: border-box;
}

body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] .ai-settings-page > [class*="__notice"]:first-child {
  margin-top: 0 !important;
}

/* WP UI notices inside boot apps — match YOOAdmin brand */
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] [class*="__notice"][class*="__is-error"],
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] [class*="__notice"][class*="__is-warning"] {
  --wp-ui-notice-background-color: rgba(237, 169, 52, 0.1) !important;
  --wp-ui-notice-border-color: rgba(237, 169, 52, 0.34) !important;
  --wp-ui-notice-text-color: #6b4a00 !important;
  --wp-ui-notice-decorative-icon-color: var(--yooadmin-primary, #eda934) !important;
  background-color: rgba(237, 169, 52, 0.1) !important;
  border-color: rgba(237, 169, 52, 0.34) !important;
}

body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] [class*="__notice"][class*="__is-error"] [class*="__description"],
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] [class*="__notice"][class*="__is-error"] [class*="__title"],
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] [class*="__notice"][class*="__is-error"] [class*="__icon"] {
  color: #6b4a00 !important;
}

body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] [class*="__notice"] [class*="__icon"] {
  color: var(--yooadmin-primary, #eda934) !important;
}

body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] [class*="__notice"] [class*="__action-link"],
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] [class*="__notice"] [class*="__action-link"] a,
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] [class*="__notice"] [class*="__action-link"] button {
  color: var(--yooadmin-primary, #eda934) !important;
  text-decoration: none !important;
  box-shadow: none !important;
  border-bottom: 0 !important;
}

body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] [class*="__notice"] [class*="__action-link"] a:hover,
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] [class*="__notice"] [class*="__action-link"]:hover {
  color: color-mix(in srgb, var(--yooadmin-primary, #eda934) 82%, #000 18%) !important;
  text-decoration: none !important;
}

/* Boot layout — WP UI buttons → YOOAdmin button chrome */
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] button[class*="__button"],
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] .ai-section-actions button {
  --wp-ui-button-background-color: var(--yp-yoo-btn-secondary-bg, #f5f5f7) !important;
  --wp-ui-button-color: var(--yp-yoo-btn-secondary-text, #1d1d1f) !important;
  --wp-ui-button-border-color: transparent !important;
  --wp-ui-button-hover-background-color: var(--yp-yoo-btn-secondary-bg-hover, #ebebed) !important;
  --wp-ui-button-hover-color: var(--yp-yoo-btn-secondary-text, #1d1d1f) !important;
  --wp-ui-button-hover-border-color: transparent !important;
  min-height: 30px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: var(--yp-yoo-btn-radius, 10px) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  color: var(--yp-yoo-btn-secondary-text, #1d1d1f) !important;
  background: var(--yp-yoo-btn-secondary-bg, #f5f5f7) !important;
  box-shadow:
    var(--yp-yoo-btn-depth, 0 1px 2px rgba(15, 23, 42, 0.06)),
    inset 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
  transition:
    background  var(--yp-yoo-btn-duration, 0.22s) var(--yp-yoo-btn-ease, cubic-bezier(0.25, 0.1, 0.25, 1)),
    box-shadow  var(--yp-yoo-btn-duration, 0.22s) var(--yp-yoo-btn-ease, cubic-bezier(0.25, 0.1, 0.25, 1)),
    color       var(--yp-yoo-btn-duration, 0.22s) var(--yp-yoo-btn-ease, cubic-bezier(0.25, 0.1, 0.25, 1)),
    opacity     var(--yp-yoo-btn-duration, 0.22s) var(--yp-yoo-btn-ease, cubic-bezier(0.25, 0.1, 0.25, 1));
}

body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] button[class*="__button"]:hover:not(:disabled),
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] .ai-section-actions button:hover:not(:disabled) {
  color: var(--yp-yoo-btn-secondary-text, #1d1d1f) !important;
  background: var(--yp-yoo-btn-secondary-bg-hover, #ebebed) !important;
  box-shadow:
    var(--yp-yoo-btn-depth-hover, 0 2px 6px rgba(15, 23, 42, 0.08)),
    inset 0 0 0 1px rgba(0, 0, 0, 0.06) !important;
}

body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] button[class*="__button"][class*="__is-brand"],
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] button[class*="__button"][class*="__is-solid"],
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] button.yp-yoo-btn--primary[class*="__button"] {
  --wp-ui-button-background-color: var(--yp-yoo-btn-primary, var(--yooadmin-primary, #eda934)) !important;
  --wp-ui-button-color: #fff !important;
  --wp-ui-button-border-color: transparent !important;
  color: #fff !important;
  background: linear-gradient(
    180deg,
    var(--yp-yoo-btn-primary-top, color-mix(in srgb, var(--yooadmin-primary, #eda934) 88%, #fff 12%)) 0%,
    var(--yp-yoo-btn-primary, var(--yooadmin-primary, #eda934)) 100%
  ) !important;
  box-shadow: var(--yp-yoo-btn-depth, 0 1px 2px rgba(15, 23, 42, 0.06)), var(--yp-yoo-btn-highlight, inset 0 1px 0 rgba(255, 255, 255, 0.22)) !important;
}

body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] button[class*="__button"]:focus,
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] button[class*="__button"]:focus-visible,
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] .ai-section-actions button:focus,
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] .ai-section-actions button:focus-visible {
  outline: 2px solid var(--yp-yoo-btn-focus-ring, color-mix(in srgb, var(--yooadmin-primary, #eda934) 38%, transparent)) !important;
  outline-offset: 2px;
  box-shadow:
    var(--yp-yoo-btn-depth, 0 1px 2px rgba(15, 23, 42, 0.06)),
    inset 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
}

body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] button[class*="__button"]:disabled,
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] .ai-section-actions button:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
}

/* Boot layout — toggles: YOOAdmin primary + no WP blue focus ring */
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] .components-form-toggle .components-form-toggle__input:focus,
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] .components-form-toggle .components-form-toggle__input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] .components-form-toggle .components-form-toggle__input:focus + .components-form-toggle__track,
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] .components-form-toggle .components-form-toggle__input:focus-visible + .components-form-toggle__track {
  box-shadow: none !important;
  outline: none !important;
}

body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] .components-form-toggle.is-checked .components-form-toggle__track {
  background: var(--yooadmin-primary, #eda934) !important;
  border-color: var(--yooadmin-primary, #eda934) !important;
}

body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience [id$="-wp-admin-app"] .components-form-toggle.is-checked .components-form-toggle__thumb {
  background: #fff !important;
}

/* Boot spinner until React layout is ready */
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience:not(.yp-wp-settings-ready) #wpbody-content > .wrap.yp-wp-settings-boot-layout-wrap,
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience:not(.yp-wp-settings-ready) #wpbody-content > .wrap {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: min(320px, 50vh);
}

body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience:not(.yp-wp-settings-ready) .wrap.yp-wp-settings-boot-layout-wrap > h1,
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience:not(.yp-wp-settings-ready) .wrap.yp-wp-settings-boot-layout-wrap > .yp-wp-settings-boot-layout-intro,
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience:not(.yp-wp-settings-ready) .wrap.yp-wp-settings-boot-layout-wrap [id$="-wp-admin-app"],
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience:not(.yp-wp-settings-ready) #wpbody-content > [id$="-wp-admin-app"] {
  display: none !important;
}

body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience:not(.yp-wp-settings-ready) #wpbody-content > .wrap::after,
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience:not(.yp-wp-settings-ready) .wrap.yp-wp-settings-boot-layout-wrap::after {
  content: '';
  display: block !important;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 0, 0, 0.08);
  border-top-color: var(--yooadmin-primary, #eda934);
  border-radius: 50%;
  animation: yp-wp-settings-boot-spin 0.8s linear infinite;
  flex-shrink: 0;
}

body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience.yp-wp-settings-ready #wpbody-content > .wrap.yp-wp-settings-boot-layout-wrap,
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience.yp-wp-settings-ready .wrap.yp-wp-settings-boot-layout-wrap {
  display: block !important;
  min-height: 0;
}

body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience.yp-wp-settings-ready #wpbody-content > .wrap::after,
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience.yp-wp-settings-ready .wrap.yp-wp-settings-boot-layout-wrap::after {
  display: none !important;
}

body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience.yp-wp-settings-ready .wrap.yp-wp-settings-boot-layout-wrap [id$="-wp-admin-app"] {
  display: block !important;
}

@media (max-width: 782px) {
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience #wpbody-content > .wrap.yp-wp-settings-boot-layout-wrap {
    margin-inline: 8px !important;
    padding: 0 !important;
    max-width: none;
  }
}

/* -------------------------------------------------------------------------
 * Dark mode — WP boot-layout React apps (Connectors, AI, …)
 * Uses wp-settings-experience tokens + WPDS vars; adaptive engine handles surfaces.
 * ------------------------------------------------------------------------- */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app'],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app'] {
  color-scheme: dark;
  --wpds-color-bg-surface-neutral-strong: var(--yp-set-surface, #1a1d23);
  --wpds-color-bg-surface-neutral-weak: var(--yp-set-muted, #12161c);
  --wpds-color-fg-content-neutral: var(--yp-set-text, #cfd6e0);
  --wpds-color-fg-content-neutral-weak: var(--yp-set-text-muted, #9aa5b1);
  --wpds-color-stroke-surface-neutral-weak: var(--yp-set-border, rgba(255, 255, 255, 0.1));
  --wp-dataviews-color-background: var(--yp-set-surface, #1a1d23);
}

@media (prefers-color-scheme: dark) {
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
    [id$='-wp-admin-app'] {
    color-scheme: dark;
    --wpds-color-bg-surface-neutral-strong: var(--yp-set-surface, #1a1d23);
    --wpds-color-bg-surface-neutral-weak: var(--yp-set-muted, #12161c);
    --wpds-color-fg-content-neutral: var(--yp-set-text, #cfd6e0);
    --wpds-color-fg-content-neutral-weak: var(--yp-set-text-muted, #9aa5b1);
    --wpds-color-stroke-surface-neutral-weak: var(--yp-set-border, rgba(255, 255, 255, 0.1));
    --wp-dataviews-color-background: var(--yp-set-surface, #1a1d23);
  }
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  :is(
    .admin-ui-page,
    .admin-ui-page__header,
    .admin-ui-page__content,
    .admin-ui-page__content.has-padding
  ),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  :is(
    .admin-ui-page,
    .admin-ui-page__header,
    .admin-ui-page__content,
    .admin-ui-page__content.has-padding
  ) {
  background: var(--yp-set-surface, #1a1d23) !important;
  background-color: var(--yp-set-surface, #1a1d23) !important;
  color: var(--yp-set-text, #cfd6e0) !important;
  border-color: var(--yp-set-border, rgba(255, 255, 255, 0.1)) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  :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-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  :is(.admin-ui-page__header-title, .admin-ui-page__header-subtitle) {
  color: var(--yp-set-text, #cfd6e0) !important;
  -webkit-text-fill-color: currentColor !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .admin-ui-page__header-subtitle,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .admin-ui-page__header-subtitle {
  color: var(--yp-set-text-muted, #9aa5b1) !important;
}

/* Connectors — WP ships hardcoded #fff cards in injected route CSS */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .connectors-page
  .components-item,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .connectors-page
  .components-item {
  background: var(--yp-set-muted, #141820) !important;
  border-color: var(--yp-set-border, rgba(255, 255, 255, 0.1)) !important;
  color: var(--yp-set-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .connectors-page
  > p,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .connectors-page
  > p {
  color: var(--yp-set-text-muted, #9aa5b1) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .connectors-page
  .ai-plugin-callout,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .connectors-page
  .ai-plugin-callout {
  background-color: rgba(88, 56, 96, 0.42) !important;
  background-image:
    radial-gradient(ellipse 70% 120% at 18% 115%, rgba(160, 96, 150, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 55% 110% at 92% -15%, rgba(140, 110, 170, 0.28) 0%, transparent 65%),
    radial-gradient(ellipse 40% 85% at 58% -10%, rgba(120, 90, 140, 0.22) 0%, transparent 70%) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .connectors-page
  .ai-plugin-callout__content
  p,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .connectors-page
  .ai-plugin-callout__content
  p {
  color: var(--yp-set-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .connectors-page
  :is(.components-base-control__label, .components-external-link, .connector-settings),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .connectors-page
  :is(.components-base-control__label, .components-external-link, .connector-settings) {
  color: var(--yp-set-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .connectors-page
  :is(.components-text-control__input, .components-select-control__input),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .connectors-page
  :is(.components-text-control__input, .components-select-control__input) {
  background: var(--yp-set-muted, #141820) !important;
  border-color: var(--yp-wp-field-border, rgba(255, 255, 255, 0.14)) !important;
  color: var(--yp-set-text, #cfd6e0) !important;
  color-scheme: dark;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience {
  --yp-yoo-btn-secondary-bg: #2c2c2e;
  --yp-yoo-btn-secondary-bg-hover: #3a3a3c;
  --yp-yoo-btn-secondary-text: #f5f5f7;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  button[class*='__button'],
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .ai-section-actions
  button,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  button[class*='__button'],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .ai-section-actions
  button {
  color: var(--yp-yoo-btn-secondary-text, #f5f5f7) !important;
  background: var(--yp-yoo-btn-secondary-bg, #2c2c2e) !important;
  box-shadow:
    var(--yp-yoo-btn-depth, 0 1px 3px rgba(0, 0, 0, 0.28)),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  [class*='__notice'][class*='__is-error'],
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  [class*='__notice'][class*='__is-warning'],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  [class*='__notice'][class*='__is-error'],
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  [class*='__notice'][class*='__is-warning'] {
  --wp-ui-notice-text-color: #f0d8a8 !important;
  color: #f0d8a8 !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  [class*='__notice'][class*='__is-error']
  :is([class*='__description'], [class*='__title']),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  [class*='__notice'][class*='__is-error']
  :is([class*='__description'], [class*='__title']) {
  color: #f0d8a8 !important;
}

/* Boot navigation hosts (Font Library, future @wordpress/boot single-page apps). */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  :is(
    .boot-navigation-screen,
    .boot-navigation-screen__header,
    .boot-navigation-screen__content,
    .boot-navigation-screen__tabs,
    .boot-layout__surfaces,
    .boot-layout__stage,
    .boot-layout__canvas
  ),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  :is(
    .boot-navigation-screen,
    .boot-navigation-screen__header,
    .boot-navigation-screen__content,
    .boot-navigation-screen__tabs,
    .boot-layout__surfaces,
    .boot-layout__stage,
    .boot-layout__canvas
  ) {
  background: var(--yp-set-surface, #1a1d23) !important;
  background-color: var(--yp-set-surface, #1a1d23) !important;
  color: var(--yp-set-text, #cfd6e0) !important;
  border-color: var(--yp-set-border, rgba(255, 255, 255, 0.1)) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  :is(.boot-navigation-screen__title, .boot-navigation-screen__tab, .components-navigator-button),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  :is(.boot-navigation-screen__title, .boot-navigation-screen__tab, .components-navigator-button) {
  color: var(--yp-set-text, #cfd6e0) !important;
  -webkit-text-fill-color: currentColor !important;
}

/* Font Library boot page — tabs, footer, @wordpress/components buttons */
html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .font-library-page__tablist,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .font-library-page__tablist {
  border-bottom-color: var(--yp-set-border, rgba(255, 255, 255, 0.1)) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .font-library-page__tablist
  :is(.components-tab-panel__tabs-item, [role='tab']),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .font-library-page__tablist
  :is(.components-tab-panel__tabs-item, [role='tab']) {
  color: var(--yp-set-text-muted, #9aa5b1) !important;
  -webkit-text-fill-color: currentColor !important;
  background: transparent !important;
  background-color: transparent !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .font-library-page__tablist
  :is(.components-tab-panel__tabs-item.is-active, [role='tab'][aria-selected='true']),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .font-library-page__tablist
  :is(.components-tab-panel__tabs-item.is-active, [role='tab'][aria-selected='true']) {
  color: var(--yp-set-text, #e8ecf1) !important;
  -webkit-text-fill-color: currentColor !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .font-library-page__tablist
  [role='tab']
  span,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .font-library-page__tablist
  [role='tab']
  span {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .font-library-page__tablist
  [role='tab']:not([aria-disabled='true']):is(:hover, :focus-visible),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .font-library-page__tablist
  [role='tab']:not([aria-disabled='true']):is(:hover, :focus-visible) {
  color: var(--yooadmin-primary, #eda934) !important;
  -webkit-text-fill-color: currentColor !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .font-library-page__tablist
  .components-tab-panel__tabs-item.is-active::after,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .font-library-page__tablist
  .components-tab-panel__tabs-item.is-active::after {
  background: var(--yooadmin-primary, #eda934) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .font-library-page__tablist
  [role='tablist'][aria-orientation='horizontal']::before,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .font-library-page__tablist
  [role='tablist'][aria-orientation='horizontal']::before {
  border-bottom-color: var(--yooadmin-primary, #eda934) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .font-library__footer,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .font-library__footer {
  background: var(--yp-set-muted, #141820) !important;
  background-color: var(--yp-set-muted, #141820) !important;
  border-top-color: var(--yp-set-border, rgba(255, 255, 255, 0.1)) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .font-library__footer
  .components-button.is-primary,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .font-library__footer
  .components-button.is-primary {
  background: var(--yooadmin-primary, #eda934) !important;
  background-color: var(--yooadmin-primary, #eda934) !important;
  border-color: transparent !important;
  color: #1d1d1f !important;
  -webkit-text-fill-color: #1d1d1f !important;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .components-button.is-primary,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .components-button.is-primary {
  background: var(--yooadmin-primary, #eda934) !important;
  background-color: var(--yooadmin-primary, #eda934) !important;
  border-color: transparent !important;
  color: #1d1d1f !important;
  -webkit-text-fill-color: #1d1d1f !important;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .components-button.is-primary:not(:disabled):hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .components-button.is-primary:not(:disabled):hover {
  background: color-mix(in srgb, var(--yooadmin-primary, #eda934) 88%, #fff 12%) !important;
  background-color: color-mix(in srgb, var(--yooadmin-primary, #eda934) 88%, #fff 12%) !important;
  color: #1d1d1f !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .components-button.is-primary:disabled,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .components-button.is-primary:disabled {
  background: color-mix(in srgb, var(--yooadmin-primary, #eda934) 32%, var(--yp-set-muted, #141820)) !important;
  background-color: color-mix(in srgb, var(--yooadmin-primary, #eda934) 32%, var(--yp-set-muted, #141820)) !important;
  color: rgba(255, 255, 255, 0.72) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.72) !important;
  opacity: 1 !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  :is(
    .components-button.is-secondary,
    .components-button.is-tertiary,
    .components-button.is-destructive.is-tertiary
  ),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  :is(
    .components-button.is-secondary,
    .components-button.is-tertiary,
    .components-button.is-destructive.is-tertiary
  ) {
  color: var(--yp-yoo-btn-secondary-text, #f5f5f7) !important;
  -webkit-text-fill-color: currentColor !important;
  background: var(--yp-yoo-btn-secondary-bg, #2c2c2e) !important;
  background-color: var(--yp-yoo-btn-secondary-bg, #2c2c2e) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  :is(.font-library__font-card, .font-library__fonts-title, .font-library__subtitle),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  :is(.font-library__font-card, .font-library__fonts-title, .font-library__subtitle) {
  color: var(--yp-set-text, #cfd6e0) !important;
  border-color: var(--yp-set-border, rgba(255, 255, 255, 0.1)) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .font-library__font-card,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .font-library__font-card {
  background: var(--yp-set-muted, #141820) !important;
  background-color: var(--yp-set-muted, #141820) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .font-library__font-card:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .font-library__font-card:hover {
  background: color-mix(in srgb, var(--yp-set-muted, #141820) 88%, #fff 12%) !important;
  background-color: color-mix(in srgb, var(--yp-set-muted, #141820) 88%, #fff 12%) !important;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .font-library__font-card__count,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .font-library__font-card__count {
  color: var(--yp-set-text-muted, #9aa5b1) !important;
}

@media (prefers-color-scheme: dark) {
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
    [id$='-wp-admin-app']
    .font-library-page__tablist
    :is(.components-tab-panel__tabs-item, [role='tab']) {
    color: var(--yp-set-text-muted, #9aa5b1) !important;
    -webkit-text-fill-color: currentColor !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
    [id$='-wp-admin-app']
    .font-library-page__tablist
    :is(.components-tab-panel__tabs-item.is-active, [role='tab'][aria-selected='true']) {
    color: var(--yp-set-text, #e8ecf1) !important;
    -webkit-text-fill-color: currentColor !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
    [id$='-wp-admin-app']
    .font-library-page__tablist
    .components-tab-panel__tabs-item.is-active::after,
  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
    [id$='-wp-admin-app']
    .font-library-page__tablist
    [role='tablist'][aria-orientation='horizontal']::before {
    background: var(--yooadmin-primary, #eda934) !important;
    border-bottom-color: var(--yooadmin-primary, #eda934) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
    [id$='-wp-admin-app']
    .font-library__footer {
    background: var(--yp-set-muted, #141820) !important;
    border-top-color: var(--yp-set-border, rgba(255, 255, 255, 0.1)) !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
    [id$='-wp-admin-app']
    .components-button.is-primary {
    background: var(--yooadmin-primary, #eda934) !important;
    color: #1d1d1f !important;
    -webkit-text-fill-color: #1d1d1f !important;
  }
}

/*
 * Embedded boot apps (Font Library, …) — WordPress paints them for full viewport
 * height (admin-ui-page height:100%, tab-panel max-height + overflow:auto). Inside
 * the YOOAdmin settings card the page should grow naturally; inner scroll panes
 * clip content (e.g. THEME font list) when only one row is visible.
 */
body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .admin-ui-page__content {
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  :is(
    .font-library-page__tab-panel,
    .font-library__tabpanel-layout,
    .global-styles-ui-sidebar__navigator-provider,
    .global-styles-ui-sidebar__navigator-screen,
    .components-navigator-provider,
    .components-navigator-screen,
    .boot-navigation-screen
  ) {
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
}

body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .admin-ui-page:has(.font-library__footer)
  .font-library-page__tab-panel {
  max-height: none !important;
}

body.yoo-wp-settings-experience.yoo-wp-boot-layout-experience
  [id$='-wp-admin-app']
  .font-library__footer {
  position: relative !important;
  bottom: auto !important;
  height: auto !important;
  min-height: 90px;
}

/* Tools → Plugin Check — results table (AJAX); beats wp-admin .striped light rows in dark mode. */
html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience
  #plugin-check__results
  table.plugin-check__results-table,
html.yooadmin-studio-hub-html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience
  #plugin-check__results
  table.plugin-check__results-table {
  background: #1a1d23 !important;
  background-color: #1a1d23 !important;
  color: #cfd6e0 !important;
}

html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience
  #plugin-check__results
  table.plugin-check__results-table
  thead
  :is(th, td),
html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience
  #plugin-check__results
  table.plugin-check__results-table
  tbody
  > tr
  > :is(th, td),
html.yooadmin-studio-hub-html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience
  #plugin-check__results
  table.plugin-check__results-table
  thead
  :is(th, td),
html.yooadmin-studio-hub-html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience
  #plugin-check__results
  table.plugin-check__results-table
  tbody
  > tr
  > :is(th, td) {
  color: #cfd6e0 !important;
  -webkit-text-fill-color: #cfd6e0 !important;
}

html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience
  #plugin-check__results
  table.plugin-check__results-table
  thead
  :is(th, td),
html.yooadmin-studio-hub-html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience
  #plugin-check__results
  table.plugin-check__results-table
  thead
  :is(th, td) {
  background: #22262e !important;
  background-color: #22262e !important;
  color: #c2ccd6 !important;
  -webkit-text-fill-color: #c2ccd6 !important;
}

html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience
  #plugin-check__results
  table.plugin-check__results-table.striped
  > tbody
  > :nth-child(odd),
html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience
  #plugin-check__results
  table.plugin-check__results-table.striped
  > tbody
  > :nth-child(odd)
  > :is(th, td),
html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience
  #plugin-check__results
  table.plugin-check__results-table.striped
  > tbody
  > :nth-child(even),
html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience
  #plugin-check__results
  table.plugin-check__results-table.striped
  > tbody
  > :nth-child(even)
  > :is(th, td),
html.yooadmin-studio-hub-html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience
  #plugin-check__results
  table.plugin-check__results-table.striped
  > tbody
  > :nth-child(odd),
html.yooadmin-studio-hub-html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience
  #plugin-check__results
  table.plugin-check__results-table.striped
  > tbody
  > :nth-child(odd)
  > :is(th, td),
html.yooadmin-studio-hub-html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience
  #plugin-check__results
  table.plugin-check__results-table.striped
  > tbody
  > :nth-child(even),
html.yooadmin-studio-hub-html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.wp-admin.yooadmin-theme-yooadmin-studio-hub.yoo-wp-settings-experience
  #plugin-check__results
  table.plugin-check__results-table.striped
  > tbody
  > :nth-child(even)
  > :is(th, td) {
  background: #1a1d23 !important;
  background-color: #1a1d23 !important;
}

/* ==========================================================================
   Dark mode — cascade tail (labels + fields; beats WP admin light form chrome)
   ========================================================================== */
html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.yoo-wp-settings-experience
  .form-table
  :is(th, td, label, legend, fieldset, p, span, strong),
html.yooadmin-studio-hub-html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.yoo-wp-settings-experience
  .form-table
  :is(th, td, label, legend, fieldset, p, span, strong),
body.is-dark-theme.yoo-wp-settings-experience
  .form-table
  :is(th, td, label, legend, fieldset, p, span, strong) {
  color: var(--yp-set-text, #cfd6e0) !important;
  -webkit-text-fill-color: var(--yp-set-text, #cfd6e0) !important;
}

html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.yoo-wp-settings-experience
  .yp-wp-settings-header
  > h1,
html.yooadmin-studio-hub-html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.yoo-wp-settings-experience
  .yp-wp-settings-header
  > h1,
body.is-dark-theme.yoo-wp-settings-experience .yp-wp-settings-header > h1,
html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.yoo-wp-settings-experience
  .yp-wp-settings-section-lead,
html.yooadmin-studio-hub-html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.yoo-wp-settings-experience
  .yp-wp-settings-section-lead,
body.is-dark-theme.yoo-wp-settings-experience .yp-wp-settings-section-lead {
  color: var(--yp-set-text, #cfd6e0) !important;
  -webkit-text-fill-color: var(--yp-set-text, #cfd6e0) !important;
}

html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.yoo-wp-settings-experience
  :is(
    input[type='text'],
    input[type='url'],
    input[type='email'],
    input[type='number'],
    input[type='password'],
    input[type='search'],
    input[type='tel'],
    textarea,
    select:not([multiple]):not(.yp-custom-select__native)
  ),
html.yooadmin-studio-hub-html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.yoo-wp-settings-experience
  :is(
    input[type='text'],
    input[type='url'],
    input[type='email'],
    input[type='number'],
    input[type='password'],
    input[type='search'],
    input[type='tel'],
    textarea,
    select:not([multiple]):not(.yp-custom-select__native)
  ),
body.is-dark-theme.yoo-wp-settings-experience
  :is(
    input[type='text'],
    input[type='url'],
    input[type='email'],
    input[type='number'],
    input[type='password'],
    input[type='search'],
    input[type='tel'],
    textarea,
    select:not([multiple]):not(.yp-custom-select__native)
  ) {
  color-scheme: dark;
  background-color: #22262e !important;
  color: #cfd6e0 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: none !important;
}

html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.yoo-wp-settings-experience
  .yp-wp-settings-col,
html.yooadmin-studio-hub-html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.yoo-wp-settings-experience
  .yp-wp-settings-col,
body.is-dark-theme.yoo-wp-settings-experience .yp-wp-settings-col {
  background: var(--yp-set-muted, #12161c) !important;
  border-color: var(--yp-set-border-soft, rgba(255, 255, 255, 0.06)) !important;
}

html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.yoo-wp-settings-experience
  .yp-wp-settings-col
  .form-table
  tr:nth-child(even),
html.yooadmin-studio-hub-html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.yoo-wp-settings-experience
  .yp-wp-settings-col
  .form-table
  tr:nth-child(even),
body.is-dark-theme.yoo-wp-settings-experience
  .yp-wp-settings-col
  .form-table
  tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.04) !important;
}

@media (prefers-color-scheme: dark) {
  html:not([data-yooadmin-studio-color-mode-effective='light']) body.yoo-wp-settings-experience {
    --yp-set-surface: #1a1d23;
    --yp-set-muted: #12161c;
    --yp-set-text: #cfd6e0;
    --yp-set-text-muted: #9aa5b1;
    --yp-set-border: rgba(255, 255, 255, 0.1);
    --yp-set-border-soft: rgba(255, 255, 255, 0.06);
    --yp-wp-field-border: rgba(255, 255, 255, 0.14);
    color-scheme: dark;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yoo-wp-settings-experience
    .form-table
    :is(th, td, label, legend, fieldset, p, span, strong) {
    color: #cfd6e0 !important;
    -webkit-text-fill-color: #cfd6e0 !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yoo-wp-settings-experience
    :is(
      input[type='text'],
      input[type='url'],
      input[type='email'],
      input[type='number'],
      input[type='password'],
      input[type='search'],
      input[type='tel'],
      textarea,
      select:not([multiple]):not(.yp-custom-select__native)
    ) {
    color-scheme: dark;
    background-color: #22262e !important;
    color: #cfd6e0 !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    box-shadow: none !important;
  }
}

/* ==========================================================================
   Dark mode — cascade tail (labels + fields; beats WP admin light form chrome)
   ========================================================================== */
html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.yoo-wp-settings-experience
  .form-table
  :is(th, td, label, legend, fieldset, p, span, strong),
html.yooadmin-studio-hub-html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.yoo-wp-settings-experience
  .form-table
  :is(th, td, label, legend, fieldset, p, span, strong),
body.is-dark-theme.yoo-wp-settings-experience
  .form-table
  :is(th, td, label, legend, fieldset, p, span, strong) {
  color: var(--yp-set-text, #cfd6e0) !important;
  -webkit-text-fill-color: var(--yp-set-text, #cfd6e0) !important;
}

html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.yoo-wp-settings-experience
  .yp-wp-settings-header
  > h1,
html.yooadmin-studio-hub-html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.yoo-wp-settings-experience
  .yp-wp-settings-header
  > h1,
body.is-dark-theme.yoo-wp-settings-experience .yp-wp-settings-header > h1,
html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.yoo-wp-settings-experience
  .yp-wp-settings-section-lead,
html.yooadmin-studio-hub-html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.yoo-wp-settings-experience
  .yp-wp-settings-section-lead,
body.is-dark-theme.yoo-wp-settings-experience .yp-wp-settings-section-lead {
  color: var(--yp-set-text, #cfd6e0) !important;
  -webkit-text-fill-color: var(--yp-set-text, #cfd6e0) !important;
}

html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.yoo-wp-settings-experience
  :is(
    input[type='text'],
    input[type='url'],
    input[type='email'],
    input[type='number'],
    input[type='password'],
    input[type='search'],
    input[type='tel'],
    textarea,
    select:not([multiple]):not(.yp-custom-select__native)
  ),
html.yooadmin-studio-hub-html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.yoo-wp-settings-experience
  :is(
    input[type='text'],
    input[type='url'],
    input[type='email'],
    input[type='number'],
    input[type='password'],
    input[type='search'],
    input[type='tel'],
    textarea,
    select:not([multiple]):not(.yp-custom-select__native)
  ),
body.is-dark-theme.yoo-wp-settings-experience
  :is(
    input[type='text'],
    input[type='url'],
    input[type='email'],
    input[type='number'],
    input[type='password'],
    input[type='search'],
    input[type='tel'],
    textarea,
    select:not([multiple]):not(.yp-custom-select__native)
  ) {
  color-scheme: dark;
  background-color: #22262e !important;
  color: #cfd6e0 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: none !important;
}

html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.yoo-wp-settings-experience
  .yp-wp-settings-col,
html.yooadmin-studio-hub-html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.yoo-wp-settings-experience
  .yp-wp-settings-col,
body.is-dark-theme.yoo-wp-settings-experience .yp-wp-settings-col {
  background: var(--yp-set-muted, #12161c) !important;
  border-color: var(--yp-set-border-soft, rgba(255, 255, 255, 0.06)) !important;
}

html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.yoo-wp-settings-experience
  .yp-wp-settings-col
  .form-table
  tr:nth-child(even),
html.yooadmin-studio-hub-html:is([data-yooadmin-studio-color-mode-effective='dark'], .is-dark-theme)
  body.yoo-wp-settings-experience
  .yp-wp-settings-col
  .form-table
  tr:nth-child(even),
body.is-dark-theme.yoo-wp-settings-experience
  .yp-wp-settings-col
  .form-table
  tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.04) !important;
}

@media (prefers-color-scheme: dark) {
  html:not([data-yooadmin-studio-color-mode-effective='light']) body.yoo-wp-settings-experience {
    --yp-set-surface: #1a1d23;
    --yp-set-muted: #12161c;
    --yp-set-text: #cfd6e0;
    --yp-set-text-muted: #9aa5b1;
    --yp-set-border: rgba(255, 255, 255, 0.1);
    --yp-set-border-soft: rgba(255, 255, 255, 0.06);
    --yp-wp-field-border: rgba(255, 255, 255, 0.14);
    color-scheme: dark;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yoo-wp-settings-experience
    .form-table
    :is(th, td, label, legend, fieldset, p, span, strong) {
    color: #cfd6e0 !important;
    -webkit-text-fill-color: #cfd6e0 !important;
  }

  html:not([data-yooadmin-studio-color-mode-effective='light'])
    body.yoo-wp-settings-experience
    :is(
      input[type='text'],
      input[type='url'],
      input[type='email'],
      input[type='number'],
      input[type='password'],
      input[type='search'],
      input[type='tel'],
      textarea,
      select:not([multiple]):not(.yp-custom-select__native)
    ) {
    color-scheme: dark;
    background-color: #22262e !important;
    color: #cfd6e0 !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    box-shadow: none !important;
  }
}
