/**
 * Studio Hub — Add to dashboard modal (YOOAdmin compact alert pattern).
 * Base chrome: .yp-alert-modal--focus in focus-mode-alerts.css
 */
body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal.yp-alert-modal--focus .yp-alert-content {
  max-width: min(480px, calc(100vw - 40px));
  width: min(480px, calc(100vw - 40px));
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal .yp-alert-footer {
  justify-content: flex-end;
  gap: 8px;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal__place-footer {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal__place-footer[hidden] {
  display: none !important;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal--place-active .yp-alert-footer [data-add-section-close] {
  margin-inline-start: auto;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal--place-active .yp-studio-add-section-modal__body {
  gap: 0;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal .yp-studio-hub-info-notice__inner {
  padding: 12px 14px;
  gap: 10px;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal .yp-studio-hub-info-notice__icon {
  width: 18px;
  height: 18px;
  font-size: 18px;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal .yp-studio-hub-info-notice__title {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.4;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal .yp-studio-hub-info-notice__text {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1.5;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal .yp-studio-hub-info-notice__link {
  font-size: 11px;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal--card-active .yp-studio-add-section-modal__choices,
body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal--place-active .yp-studio-add-section-modal__choices {
  display: none;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal__panel:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal--card-active .yp-studio-add-section-modal__body {
  gap: 12px;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal__panel[hidden],
body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal__legacy-notice[hidden] {
  display: none !important;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal__legacy-notice:not([hidden]) {
  display: block;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal__legacy-notice {
  width: 100%;
  box-sizing: border-box;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-choice.is-active {
  border-color: color-mix(in srgb, var(--ysh-brand, #eda934) 55%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ysh-brand, #eda934) 18%, transparent);
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-choice__text > span {
  display: block;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal__choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--ysh-border-subtle, rgba(0, 0, 0, 0.1));
  background: var(--ysh-card, #fff);
  cursor: pointer;
  text-align: start;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-choice:hover,
body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-choice:focus-visible {
  border-color: color-mix(in srgb, var(--ysh-brand, #eda934) 55%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ysh-brand, #eda934) 18%, transparent);
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-choice .dashicons {
  color: var(--ysh-brand, #eda934);
  font-size: 22px;
  width: 22px;
  height: 22px;
  margin-top: 2px;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-choice__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--ysh-muted);
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-choice__text strong {
  font-size: 13px;
  color: var(--ysh-text);
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal__search {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--ysh-border-subtle, rgba(0, 0, 0, 0.08)) !important;
  background: var(--ysh-tile-bg, var(--ysh-card, #fff)) !important;
  color: var(--ysh-text, #1d1d1f) !important;
  font-size: 13px;
  line-height: 1.35;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none !important;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal__search::placeholder {
  color: var(--ysh-muted, #86868b);
  opacity: 1;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal__search:hover {
  border-color: color-mix(in srgb, var(--ysh-brand, #eda934) 22%, var(--ysh-border-subtle, rgba(0, 0, 0, 0.08))) !important;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal__search:focus,
body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal__search:focus-visible {
  border-color: color-mix(in srgb, var(--ysh-brand, #eda934) 45%, var(--ysh-border-subtle, rgba(0, 0, 0, 0.08))) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ysh-brand, #eda934) 14%, transparent) !important;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal__widget-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
  padding: 2px 4px 2px 0;
  margin: 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.22) transparent;
}

/* Match sidebar nav scroll (.yps-nav) — thin track, pill thumb */
body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal__widget-list::-webkit-scrollbar {
  width: 8px;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal__widget-list::-webkit-scrollbar-track {
  background: transparent;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal__widget-list::-webkit-scrollbar-thumb {
  background-color: rgba(15, 23, 42, 0.22);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal__widget-list::-webkit-scrollbar-thumb:hover {
  background-color: rgba(15, 23, 42, 0.32);
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub
  .yp-studio-add-section-modal__widget-list,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub
  .yp-studio-add-section-modal__widget-list {
  scrollbar-color: var(--ysh-sidebar-scroll-thumb) transparent;
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub
  .yp-studio-add-section-modal__widget-list::-webkit-scrollbar-thumb,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub
  .yp-studio-add-section-modal__widget-list::-webkit-scrollbar-thumb {
  background-color: var(--ysh-sidebar-scroll-thumb);
}

html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub
  .yp-studio-add-section-modal__widget-list::-webkit-scrollbar-thumb:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective='dark']
  body.yooadmin-theme-yooadmin-studio-hub
  .yp-studio-add-section-modal__widget-list::-webkit-scrollbar-thumb:hover {
  background-color: var(--ysh-sidebar-scroll-thumb-hover);
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-widget {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  min-height: 0;
  border-radius: 10px;
  border: 1px solid var(--ysh-border-subtle, rgba(0, 0, 0, 0.08));
  background: var(--ysh-tile-bg, var(--ysh-card));
  cursor: pointer;
  text-align: start;
  font-size: 13px;
  line-height: 1.4;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-widget__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-widget__label strong {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-widget .dashicons {
  flex-shrink: 0;
  font-size: 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-widget:hover,
body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-widget:focus-visible {
  border-color: color-mix(in srgb, var(--ysh-brand, #eda934) 50%, transparent);
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-widget .dashicons {
  color: var(--ysh-brand, #eda934);
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal__place-hint {
  margin: 0;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal__place-hint,
body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal__loading,
body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal__empty {
  font-size: 12px;
  color: var(--ysh-muted);
  margin: 0;
}

/* Add section modal — dark mode */
html[data-yooadmin-studio-color-mode-effective="dark"] body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal .yp-alert-body {
  color: var(--ysh-text, #e8ecf1);
}

html[data-yooadmin-studio-color-mode-effective="dark"] body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-choice {
  background: var(--ysh-tile-bg, #343b44);
  border-color: var(--ysh-border-subtle, rgba(255, 255, 255, 0.1));
}

html[data-yooadmin-studio-color-mode-effective="dark"] body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal__search {
  background: var(--ysh-tile-bg, #343b44) !important;
  border: 1px solid var(--ysh-border-subtle, rgba(255, 255, 255, 0.12)) !important;
  border-radius: 10px;
  color: var(--ysh-text, #e8ecf1) !important;
  box-shadow: none !important;
}

html[data-yooadmin-studio-color-mode-effective="dark"] body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal__search:focus,
html[data-yooadmin-studio-color-mode-effective="dark"] body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal__search:focus-visible {
  border-color: color-mix(in srgb, var(--ysh-brand, #eda934) 45%, var(--ysh-border-subtle, rgba(255, 255, 255, 0.12))) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ysh-brand, #eda934) 18%, transparent) !important;
}

html[data-yooadmin-studio-color-mode-effective="dark"] body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal__search::placeholder {
  color: var(--ysh-muted, #a8b0bc);
}

html[data-yooadmin-studio-color-mode-effective="dark"] body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-widget {
  background: var(--ysh-tile-bg, #343b44);
  border-color: var(--ysh-border-subtle, rgba(255, 255, 255, 0.1));
  color: var(--ysh-text, #e8ecf1);
}


html[data-yooadmin-studio-color-mode-effective="dark"] body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-catalog-action {
  background: color-mix(in srgb, var(--ysh-brand, #eda934) 8%, var(--ysh-tile-bg, #343b44));
}

html[data-yooadmin-studio-color-mode-effective="dark"] body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-catalog-action--hide {
  background: color-mix(in srgb, var(--ysh-muted, #a8b0bc) 10%, var(--ysh-tile-bg, #343b44));
}

/* Add section modal — legacy WordPress widget notice (readable in dark mode). */
html[data-yooadmin-studio-color-mode-effective="dark"]
  body.yooadmin-theme-yooadmin-studio-hub
  .yp-studio-add-section-modal
  .yp-studio-hub-info-notice__inner,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective="dark"]
  body.yooadmin-theme-yooadmin-studio-hub
  .yp-studio-add-section-modal
  .yp-studio-hub-info-notice__inner {
  background: color-mix(in srgb, var(--ysh-brand, #eda934) 14%, var(--ysh-card, #2a3038)) !important;
  border: 1px solid color-mix(in srgb, var(--ysh-brand, #eda934) 38%, transparent) !important;
}

html[data-yooadmin-studio-color-mode-effective="dark"]
  body.yooadmin-theme-yooadmin-studio-hub
  .yp-studio-add-section-modal
  .yp-studio-hub-info-notice__title,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective="dark"]
  body.yooadmin-theme-yooadmin-studio-hub
  .yp-studio-add-section-modal
  .yp-studio-hub-info-notice__title {
  color: var(--ysh-heading, #e8ecf1) !important;
  -webkit-text-fill-color: var(--ysh-heading, #e8ecf1) !important;
}

html[data-yooadmin-studio-color-mode-effective="dark"]
  body.yooadmin-theme-yooadmin-studio-hub
  .yp-studio-add-section-modal
  .yp-studio-hub-info-notice__text,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective="dark"]
  body.yooadmin-theme-yooadmin-studio-hub
  .yp-studio-add-section-modal
  .yp-studio-hub-info-notice__text {
  color: var(--ysh-text, #cfd6e0) !important;
  -webkit-text-fill-color: var(--ysh-text, #cfd6e0) !important;
}

html[data-yooadmin-studio-color-mode-effective="dark"]
  body.yooadmin-theme-yooadmin-studio-hub
  .yp-studio-add-section-modal
  .yp-studio-hub-info-notice__link
  a,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective="dark"]
  body.yooadmin-theme-yooadmin-studio-hub
  .yp-studio-add-section-modal
  .yp-studio-hub-info-notice__link
  a {
  color: var(--ysh-brand, #eda934) !important;
  -webkit-text-fill-color: var(--ysh-brand, #eda934) !important;
}

html[data-yooadmin-studio-color-mode-effective="dark"]
  body.yooadmin-theme-yooadmin-studio-hub
  .yp-studio-add-section-modal
  .yp-studio-hub-info-notice__icon,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective="dark"]
  body.yooadmin-theme-yooadmin-studio-hub
  .yp-studio-add-section-modal
  .yp-studio-hub-info-notice__icon {
  color: var(--ysh-brand, #eda934) !important;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal__legacy-inline {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal__legacy-inline[hidden] {
  display: none !important;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal__legacy-inline:not([hidden]) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

body.yooadmin-theme-yooadmin-studio-hub
  .yp-studio-add-section-modal__legacy-inline:not([hidden])
  .yp-studio-hub-info-notice__content,
body.yooadmin-theme-yooadmin-studio-hub
  .yp-studio-add-section-modal__legacy-inline:not([hidden])
  .yp-studio-hub-info-notice__title,
body.yooadmin-theme-yooadmin-studio-hub
  .yp-studio-add-section-modal__legacy-inline:not([hidden])
  .yp-studio-hub-info-notice__text,
body.yooadmin-theme-yooadmin-studio-hub
  .yp-studio-add-section-modal__legacy-inline:not([hidden])
  .yp-studio-hub-info-notice__link {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.yooadmin-theme-yooadmin-studio-hub
  .yp-studio-add-section-modal__legacy-inline:not([hidden])
  .yp-studio-hub-info-notice__inner {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.yooadmin-theme-yooadmin-studio-hub
  .yp-studio-add-section-modal__legacy-inline
  .yp-studio-hub-info-notice__inner {
  padding: 12px 14px;
  gap: 10px;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-dashboard-redirect-toggle {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--ysh-brand, #eda934) 18%, transparent);
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-dashboard-redirect-toggle__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--ysh-text, #1d2327);
  cursor: pointer;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-dashboard-redirect-toggle__label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-dashboard-redirect-toggle__switch {
  position: relative;
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.35);
  box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.28);
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-dashboard-redirect-toggle__switch::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.28);
  transition: transform 0.18s ease;
}

body.yooadmin-theme-yooadmin-studio-hub
  .yp-studio-dashboard-redirect-toggle__label
  input:checked
  + .yp-studio-dashboard-redirect-toggle__switch {
  background: var(--ysh-brand, #eda934);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ysh-brand, #eda934) 72%, #000000);
}

body.yooadmin-theme-yooadmin-studio-hub
  .yp-studio-dashboard-redirect-toggle__label
  input:checked
  + .yp-studio-dashboard-redirect-toggle__switch::before {
  transform: translateX(16px);
}

body.yooadmin-theme-yooadmin-studio-hub
  .yp-studio-dashboard-redirect-toggle__label
  input:focus-visible
  + .yp-studio-dashboard-redirect-toggle__switch {
  outline: 2px solid var(--ysh-brand, #eda934);
  outline-offset: 2px;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-dashboard-redirect-toggle__hint,
body.yooadmin-theme-yooadmin-studio-hub .yp-studio-dashboard-redirect-toggle__status {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ysh-muted, #646970);
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-dashboard-redirect-toggle__status:empty {
  display: none;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-widget__desc {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  color: var(--ysh-muted, #646970);
  line-height: 1.45;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-widget__badge {
  display: inline-block;
  margin-top: 4px;
  margin-inline-start: 0;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  vertical-align: middle;
  color: var(--ysh-brand, #eda934);
  background: color-mix(in srgb, var(--ysh-brand, #eda934) 14%, transparent);
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-widget__badge--added {
  color: var(--ysh-muted, #646970);
  background: color-mix(in srgb, var(--ysh-muted, #646970) 16%, transparent);
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-catalog-item {
  position: relative;
  display: block;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-catalog-item .yp-studio-add-section-widget {
  width: 100%;
  box-sizing: border-box;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-catalog-item.is-on-dashboard .yp-studio-add-section-widget {
  opacity: 0.72;
  cursor: default;
  padding-inline-end: 40px;
  pointer-events: none;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-catalog-item.is-catalog-hidden .yp-studio-add-section-widget {
  opacity: 0.88;
  padding-inline-end: 40px;
  pointer-events: none;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-widget__badge--hidden {
  background: color-mix(in srgb, var(--ysh-muted, #646970) 16%, transparent);
  color: var(--ysh-muted, #646970);
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-catalog-action {
  pointer-events: auto;
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0;
  border-radius: 5px;
  border: 1px solid color-mix(in srgb, var(--ysh-muted, #646970) 24%, transparent);
  background: color-mix(in srgb, var(--ysh-muted, #646970) 8%, var(--ysh-card, #fff));
  color: var(--ysh-muted, #646970);
  cursor: pointer;
  box-shadow: none;
  opacity: 0.88;
  transition: opacity 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-catalog-item:hover .yp-studio-add-section-catalog-action,
body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-catalog-action:hover,
body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-catalog-action:focus-visible {
  opacity: 1;
  border-color: color-mix(in srgb, var(--ysh-brand, #eda934) 35%, transparent);
  background: color-mix(in srgb, var(--ysh-brand, #eda934) 10%, var(--ysh-card, #fff));
  color: var(--ysh-brand, #eda934);
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-catalog-action .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
  margin: 0;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-catalog-action--hide,
body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-catalog-action--show {
  color: var(--ysh-muted, #646970);
  border-color: color-mix(in srgb, var(--ysh-muted, #646970) 28%, transparent);
  background: color-mix(in srgb, var(--ysh-muted, #646970) 8%, var(--ysh-card, #fff));
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-catalog-action--show {
  color: var(--ysh-brand, #eda934);
  border-color: color-mix(in srgb, var(--ysh-brand, #eda934) 28%, transparent);
  background: color-mix(in srgb, var(--ysh-brand, #eda934) 8%, var(--ysh-card, #fff));
}

/* Legacy markup fallback (cached JS may still output widget__remove). */
body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-widget__remove {
  pointer-events: auto;
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  margin: 0;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--ysh-brand, #eda934) 28%, transparent);
  background: color-mix(in srgb, var(--ysh-brand, #eda934) 8%, var(--ysh-card, #fff));
  color: var(--ysh-brand, #eda934);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-widget__remove .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  margin: 0;
}
@media (max-width: 560px) {
  body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal__place-footer {
    width: 100%;
  }

  body.yooadmin-theme-yooadmin-studio-hub .yp-studio-add-section-modal__place-footer .yp-studio-add-section-place-btn {
    flex: 1 1 calc(50% - 4px);
  }
}
