/* Dashboard layout edit (Studio Hub) */
body.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-layout-section--hidden {
  display: none !important;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-layout-add {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin: 12px 0 0;
  order: 9999;
  flex-shrink: 0;
  padding: 0;
  border: 2px dashed color-mix(in srgb, var(--yooadmin-primary, var(--ysh-brand, #eda934)) 40%, transparent);
  border-radius: 10px;
  background: transparent;
  color: var(--yooadmin-primary, var(--ysh-brand, #eda934));
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-layout-add.is-visible {
  display: flex;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-layout-add:hover,
body.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-layout-add:focus-visible {
  border-color: color-mix(in srgb, var(--yooadmin-primary, var(--ysh-brand, #eda934)) 85%, transparent);
  background: color-mix(in srgb, var(--yooadmin-primary, var(--ysh-brand, #eda934)) 8%, transparent);
  outline: none;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-layout-add .dashicons {
  font-size: 22px;
  width: 22px;
  height: 22px;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-dashboard-section.is-section-dragging,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-dashboard-section.is-section-dragging {
  opacity: 0.55;
  outline: 2px dashed rgba(var(--ysh-brand-rgb, 237, 169, 52), 0.65);
  outline-offset: 4px;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-layout-section-drag-handle {
  display: none;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-dashboard-section:not(.yp-layout-section--locked) > .yp-section-header,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-dashboard-section:not(.yp-layout-section--locked) > .yp-section-header,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-aside-layout-section .yp-card-header.yp-section-header,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-aside-layout-section .yp-card-header.yp-section-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline-start: 0;
  justify-content: flex-start !important;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-dashboard-section > .yp-section-header .yp-section-title,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-dashboard-section > .yp-section-header .yp-section-title,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-aside-layout-section .yp-card-header.yp-section-header .yp-section-title,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-aside-layout-section .yp-card-header.yp-section-header .yp-section-title {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-dashboard-section > .yp-section-header .yp-card-header-actions,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-dashboard-section > .yp-section-header .yp-card-header-actions,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-aside-layout-section .yp-card-header.yp-section-header .yp-card-header-actions,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-aside-layout-section .yp-card-header.yp-section-header .yp-card-header-actions {
  margin-left: auto;
  flex-shrink: 0;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-section-header__edit-controls {
  display: none;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-section-header__edit-controls.is-active,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-section-header__edit-controls.is-active,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-aside-layout-section .yp-section-header__edit-controls.is-active,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-aside-layout-section .yp-section-header__edit-controls.is-active {
  display: inline-flex;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-layout-section-drag-handle,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-layout-section-drag-handle,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-aside-layout-section .yp-layout-section-drag-handle,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-aside-layout-section .yp-layout-section-drag-handle {
  position: static;
  transform: none;
  z-index: 2;
  width: 24px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: grab;
  color: var(--ysh-muted, #888);
  touch-action: none;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-layout-section-drag-handle:hover,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-layout-section-drag-handle:hover,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-aside-layout-section .yp-layout-section-drag-handle:hover,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-aside-layout-section .yp-layout-section-drag-handle:hover {
  color: var(--ysh-brand, #eda934);
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-layout-section-drag-handle:active,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-layout-section-drag-handle:active,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-aside-layout-section .yp-layout-section-drag-handle:active,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-aside-layout-section .yp-layout-section-drag-handle:active {
  cursor: grabbing;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-layout-section-drag-handle .dashicons,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-layout-section-drag-handle .dashicons,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-aside-layout-section .yp-layout-section-drag-handle .dashicons,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-aside-layout-section .yp-layout-section-drag-handle .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
  color: currentColor;
}

body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-layout-section--locked .yp-section-header {
  cursor: default !important;
}

body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-layout-block--locked {
  position: relative;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-card-hide-locked .yp-card-visibility-toggle {
  display: none !important;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub__main.yp-layout-column--drag-over,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub__aside.yp-layout-column--drag-over,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub__main.yp-layout-column--drag-over,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub__aside.yp-layout-column--drag-over {
  outline: 2px dashed rgba(var(--ysh-brand-rgb, 237, 169, 52), 0.45);
  outline-offset: 4px;
  border-radius: 10px;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub__aside.yp-layout-column--drop-blocked,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub__aside.yp-layout-column--drop-blocked {
  outline: 2px dashed rgba(220, 50, 50, 0.55);
  outline-offset: 4px;
  border-radius: 10px;
  cursor: not-allowed;
}

body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-layout-section-handle:active {
  cursor: grabbing;
}

/* Edit mode: same card flex as normal — drag + actions float on top, not in the text row */
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-layout-card--draggable,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-layout-card--draggable {
  position: relative;
  user-select: none;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-layout-card-drag-handle,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-layout-card-drag-handle {
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 20px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: grab;
  color: var(--ysh-muted, #888);
  opacity: 0;
  pointer-events: none;
  touch-action: none;
  transition: opacity 0.12s ease;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row.yp-layout-card--draggable:hover .yp-layout-card-drag-handle,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row.yp-layout-card--draggable:hover .yp-layout-card-drag-handle,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row.is-dragging .yp-layout-card-drag-handle,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row.is-dragging .yp-layout-card-drag-handle {
  opacity: 0.65;
  pointer-events: auto;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-layout-card-drag-handle:hover,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-layout-card-drag-handle:hover {
  opacity: 1;
  color: var(--ysh-brand, #eda934);
  transform: translateY(-50%);
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-layout-card-drag-handle .dashicons,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-layout-card-drag-handle .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-card-edit-actions,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-card-edit-actions {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 6;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
  pointer-events: auto;
}

/* Unified edit controls: eye + pencil match hide-locked pencil (24×24, light border, centered icon) */
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row .yp-studio-card-edit-actions .yp-card-visibility-toggle,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row .yp-studio-card-edit-actions .yp-card-visibility-toggle,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row .yp-studio-card-edit-actions .yp-card-icon-edit,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row .yp-studio-card-edit-actions .yp-card-icon-edit,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-icon-tile .yp-studio-card-edit-actions .yp-card-visibility-toggle,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-icon-tile .yp-studio-card-edit-actions .yp-card-visibility-toggle,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-icon-tile .yp-studio-card-edit-actions .yp-card-icon-edit,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-icon-tile .yp-studio-card-edit-actions .yp-card-icon-edit,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row.yp-card-hide-locked > .yp-card-icon-edit,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row.yp-card-hide-locked > .yp-card-icon-edit,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-icon-tile.yp-card-hide-locked > .yp-card-icon-edit,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-icon-tile.yp-card-hide-locked > .yp-card-icon-edit {
  position: static !important;
  top: auto !important;
  right: auto !important;
  flex-shrink: 0;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid color-mix(in srgb, var(--ysh-border, rgba(0, 0, 0, 0.12)) 88%, transparent) !important;
  border-radius: 6px !important;
  background: color-mix(in srgb, var(--ysh-card, #fff) 90%, #fff) !important;
  box-shadow: none !important;
  opacity: 1 !important;
  transform: none !important;
  color: var(--ysh-muted, #888) !important;
  overflow: hidden;
  box-sizing: border-box;
  cursor: pointer;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row .yp-studio-card-edit-actions .yp-card-visibility-toggle .dashicons,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row .yp-studio-card-edit-actions .yp-card-visibility-toggle .dashicons,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row .yp-studio-card-edit-actions .yp-card-icon-edit .dashicons,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row .yp-studio-card-edit-actions .yp-card-icon-edit .dashicons,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-icon-tile .yp-studio-card-edit-actions .yp-card-visibility-toggle .dashicons,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-icon-tile .yp-studio-card-edit-actions .yp-card-visibility-toggle .dashicons,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-icon-tile .yp-studio-card-edit-actions .yp-card-icon-edit .dashicons,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-icon-tile .yp-studio-card-edit-actions .yp-card-icon-edit .dashicons,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row.yp-card-hide-locked > .yp-card-icon-edit .dashicons,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row.yp-card-hide-locked > .yp-card-icon-edit .dashicons,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-icon-tile.yp-card-hide-locked > .yp-card-icon-edit .dashicons,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-icon-tile.yp-card-hide-locked > .yp-card-icon-edit .dashicons {
  font-size: 16px !important;
  width: 16px !important;
  height: 16px !important;
  line-height: 1 !important;
  margin: 0 !important;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row .yp-studio-card-edit-actions .yp-card-icon-edit:hover,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row .yp-studio-card-edit-actions .yp-card-icon-edit:hover,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row .yp-studio-card-edit-actions .yp-card-visibility-toggle:hover,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row .yp-studio-card-edit-actions .yp-card-visibility-toggle:hover,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row.yp-card-hide-locked > .yp-card-icon-edit:hover,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row.yp-card-hide-locked > .yp-card-icon-edit:hover {
  box-shadow: none !important;
  transform: none !important;
  color: var(--ysh-brand, #eda934) !important;
  border-color: color-mix(in srgb, var(--ysh-brand, #eda934) 45%, var(--ysh-border, #ddd)) !important;
  background: color-mix(in srgb, var(--ysh-brand, #eda934) 10%, var(--ysh-card, #fff)) !important;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row .yp-studio-card-edit-actions .yp-card-visibility-toggle.is-active,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row .yp-studio-card-edit-actions .yp-card-visibility-toggle.is-active {
  color: var(--ysh-brand, #eda934) !important;
  border-color: color-mix(in srgb, var(--ysh-brand, #eda934) 50%, var(--ysh-border, #ddd)) !important;
  background: color-mix(in srgb, var(--ysh-brand, #eda934) 14%, var(--ysh-card, #fff)) !important;
}

html[data-yooadmin-studio-color-mode-effective="dark"]
  body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub
  .yp-studio-hub--dashboard
  .yp-studio-ws-row
  .yp-studio-card-edit-actions
  :is(.yp-card-icon-edit, .yp-card-visibility-toggle),
html[data-yooadmin-studio-color-mode-effective="dark"]
  body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub
  .yp-studio-hub--dashboard
  .yp-studio-ws-row
  .yp-studio-card-edit-actions
  :is(.yp-card-icon-edit, .yp-card-visibility-toggle),
html[data-yooadmin-studio-color-mode-effective="dark"]
  body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub
  .yp-studio-hub--dashboard
  .yp-studio-ws-row.yp-card-hide-locked
  > .yp-card-icon-edit,
html[data-yooadmin-studio-color-mode-effective="dark"]
  body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub
  .yp-studio-hub--dashboard
  .yp-studio-ws-row.yp-card-hide-locked
  > .yp-card-icon-edit {
  background: color-mix(in srgb, var(--ysh-card, #1e1e1e) 88%, #2a2a2a) !important;
  border-color: color-mix(in srgb, var(--ysh-border, rgba(255, 255, 255, 0.14)) 90%, transparent) !important;
}

/* Badge stays visible in edit mode — sit left of action buttons (not under them) */
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row .yp-card-badge:not([hidden]),
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row .yp-card-badge:not([hidden]),
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-icon-tile.yp-studio-ws-row .yp-card-badge:not([hidden]),
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-icon-tile.yp-studio-ws-row .yp-card-badge:not([hidden]) {
  display: inline-flex !important;
  z-index: 7;
  top: 6px;
  right: 64px;
  min-width: 22px;
  height: 22px;
  font-size: 11px;
  line-height: 1;
  background: var(--ysh-brand-badge-bg, var(--ysh-brand, var(--yp-primary, #eda934)));
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row.yp-card-hide-locked .yp-card-badge:not([hidden]),
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row.yp-card-hide-locked .yp-card-badge:not([hidden]) {
  right: 40px;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row.yp-layout-card--draggable .yp-studio-ws-row__copy,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row.yp-layout-card--draggable .yp-studio-ws-row__copy {
  flex: 1 1 auto;
  min-width: 0;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row.yp-layout-card--draggable .yp-icon-label,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row.yp-layout-card--draggable .yp-icon-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Drop target = one grid cell only (not a full-width row) */
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-layout-drop-gap {
  pointer-events: none;
  grid-column: auto;
  width: 100%;
  min-width: 0;
  min-height: 76px;
  align-self: stretch;
  border: 2px dashed rgba(var(--ysh-brand-rgb, 237, 169, 52), 0.5);
  border-radius: 10px;
  background: rgba(var(--ysh-brand-rgb, 237, 169, 52), 0.07);
  box-sizing: border-box;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-layout-section-drop-marker,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-layout-section-drop-marker {
  pointer-events: none;
  min-height: 48px;
  margin: 8px 0;
  border: 2px dashed rgba(var(--ysh-brand-rgb, 237, 169, 52), 0.75);
  border-radius: 10px;
  background: rgba(var(--ysh-brand-rgb, 237, 169, 52), 0.08);
  box-sizing: border-box;
}

body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-dashboard-section.is-section-dragging {
  opacity: 0.35;
  pointer-events: none;
}

body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row.is-dragging {
  opacity: 0.5;
}

/* Hide extension slot labels in edit mode — empty dashed space only */
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-extension-slot__title,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-extension-slot__hint,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-extension-slot__icon-well {
  display: none !important;
}

body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-extension-slot {
  min-height: 72px;
  padding: 0;
}

body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-card-edit-toggle.is-active,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-card-edit-toggle[aria-pressed="true"] {
  outline: 2px solid var(--ysh-brand, #eda934);
  outline-offset: 2px;
}

body.yooadmin-theme-yooadmin-studio-hub
  .yp-studio-hub--dashboard
  .yp-dashboard-section:is([data-section-id="your-workspace"], [data-section-id="network-workspace"])
  > .yp-section-header
  .yp-card-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-workspace-add-section {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0 !important;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--ysh-border, rgba(0, 0, 0, 0.12)) 88%, transparent) !important;
  border-radius: 8px !important;
  background: color-mix(in srgb, var(--ysh-card, #fff) 90%, #fff) !important;
  color: var(--ysh-muted, #888) !important;
  box-shadow: none !important;
  cursor: pointer;
  line-height: 1;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub
  .yp-studio-hub--dashboard
  .yp-workspace-add-section.is-visible,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub
  .yp-studio-hub--dashboard
  .yp-workspace-add-section.is-visible {
  display: inline-flex;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-workspace-add-section .dashicons {
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 1;
  color: currentColor !important;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-workspace-add-section:hover,
body.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-workspace-add-section:focus-visible {
  color: var(--ysh-brand, #eda934) !important;
  border-color: color-mix(in srgb, var(--ysh-brand, #eda934) 45%, var(--ysh-border, #ddd)) !important;
  background: color-mix(in srgb, var(--ysh-brand, #eda934) 10%, var(--ysh-card, #fff)) !important;
  outline: none;
}

@media (max-width: 600px) {
  body.yooadmin-theme-yooadmin-studio-hub
    .yp-studio-hub--dashboard
    .yp-dashboard-section:is([data-section-id="your-workspace"], [data-section-id="network-workspace"])
    > .yp-section-header
    .yp-card-header-actions {
    gap: 4px;
  }

  body.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-workspace-add-section {
    width: 30px;
    height: 30px;
    min-width: 30px;
  }
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-custom-section .yp-card-header-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-custom-section .yp-layout-section-remove {
  display: none;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-custom-section .yp-card-header-actions .yp-layout-section-remove,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-custom-section .yp-card-header-actions .yp-layout-section-remove,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-custom-section .yp-card-header-actions .yp-layout-section-remove.is-visible,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-custom-section .yp-card-header-actions .yp-layout-section-remove.is-visible {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0 !important;
  margin: 0;
  border: 0 !important;
  background: transparent !important;
  color: var(--ysh-muted);
  cursor: pointer;
  border-radius: 6px;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
  z-index: 3;
  font-size: 0;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-custom-section .yp-card-header-actions .yp-layout-section-remove:hover,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-custom-section .yp-card-header-actions .yp-layout-section-remove:hover,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-custom-section .yp-card-header-actions .yp-layout-section-remove:focus-visible,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-custom-section .yp-card-header-actions .yp-layout-section-remove:focus-visible {
  color: #b32d2e !important;
  background: rgba(179, 45, 46, 0.08) !important;
  transform: none;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-custom-section .yp-card-header-actions .yp-layout-section-remove .dashicons,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-custom-section .yp-card-header-actions .yp-layout-section-remove .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
  color: currentColor;
}

/* Custom section title — inline rename in edit mode */
body.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-custom-section .yp-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  margin: 0;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-custom-section .yp-section-title-label,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-custom-section .yp-section-title-label {
  cursor: text;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-custom-section .yp-section-title-input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--ysh-brand, #eda934) 55%, var(--ysh-border, #ddd));
  border-radius: 6px;
  background: var(--ysh-card, #fff);
  color: var(--ysh-heading);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ysh-brand, #eda934) 18%, transparent);
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-custom-section .yp-section-title-input:focus {
  outline: none;
  border-color: var(--ysh-brand, #eda934);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ysh-brand, #eda934) 28%, transparent);
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-custom-section.yp-section-title--editing .yp-section-title .dashicons {
  flex-shrink: 0;
}

/* Section title icon + header edit controls */
body.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-section-title-icon-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-section-title-icon {
  color: var(--ysh-brand);
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-section-icon-edit {
  display: none !important;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-section-header__edit-controls .yp-section-icon-edit,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-section-header__edit-controls .yp-section-icon-edit,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub__aside .yp-card-header-actions .yp-section-icon-edit,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub__aside .yp-card-header-actions .yp-section-icon-edit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  padding: 0 !important;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--ysh-border, rgba(0, 0, 0, 0.12)) 88%, transparent) !important;
  border-radius: 6px !important;
  background: color-mix(in srgb, var(--ysh-card, #fff) 90%, #fff) !important;
  box-shadow: none !important;
  color: var(--ysh-muted, #888) !important;
  cursor: pointer;
  font-size: 0;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-section-header__edit-controls .yp-section-icon-edit .dashicons,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-section-header__edit-controls .yp-section-icon-edit .dashicons,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub__aside .yp-card-header-actions .yp-section-icon-edit .dashicons,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub__aside .yp-card-header-actions .yp-section-icon-edit .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  color: currentColor !important;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-section-header__edit-controls .yp-section-icon-edit:hover,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-section-header__edit-controls .yp-section-icon-edit:hover,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub__aside .yp-card-header-actions .yp-section-icon-edit:hover,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub__aside .yp-card-header-actions .yp-section-icon-edit:hover {
  color: var(--ysh-brand, #eda934) !important;
  border-color: color-mix(in srgb, var(--ysh-brand, #eda934) 45%, var(--ysh-border, #ddd)) !important;
  background: color-mix(in srgb, var(--ysh-brand, #eda934) 10%, var(--ysh-card, #fff)) !important;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-section-title-icon.is-clickable,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-section-title-icon.is-clickable {
  cursor: pointer;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-section-title-icon-wrap.is-icon-editable:hover .yp-section-title-icon,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-section-title-icon-wrap.is-icon-editable:hover .yp-section-title-icon {
  color: color-mix(in srgb, var(--ysh-brand, #eda934) 82%, #000);
}

/* Card hide / show (edit mode) */
body.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-card-visibility-toggle {
  display: none !important;
  flex-shrink: 0;
  align-self: center;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--ysh-muted);
  background: rgba(0, 0, 0, 0.04);
  transition: color 0.12s ease, background 0.12s ease;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-card-visibility-toggle {
  display: inline-flex !important;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-card-visibility-toggle:hover,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-card-visibility-toggle:focus-visible {
  color: var(--ysh-brand);
  background: rgba(var(--ysh-brand-rgb, 237, 169, 52), 0.12);
  outline: none;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-card-visibility-toggle.is-active {
  color: var(--ysh-brand);
  background: rgba(var(--ysh-brand-rgb, 237, 169, 52), 0.18);
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-card-visibility-toggle .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-ws-row .yp-card-visibility-toggle {
  margin-right: 0;
}

/* Aside sections — hide/show (edit mode eye toggle) */
body.yooadmin-theme-yooadmin-studio-hub .yp-studio-aside-layout-section .yp-section-visibility-toggle {
  display: none !important;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--ysh-muted);
  background: rgba(0, 0, 0, 0.04);
  transition: color 0.12s ease, background 0.12s ease;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-aside-layout-section .yp-section-visibility-toggle:not([hidden]),
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-aside-layout-section .yp-section-visibility-toggle:not([hidden]) {
  display: inline-flex !important;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-aside-layout-section .yp-section-visibility-toggle:hover,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-aside-layout-section .yp-section-visibility-toggle:hover,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-aside-layout-section .yp-section-visibility-toggle:focus-visible,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-aside-layout-section .yp-section-visibility-toggle:focus-visible {
  color: var(--ysh-brand);
  background: rgba(var(--ysh-brand-rgb, 237, 169, 52), 0.12);
  outline: none;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-aside-layout-section .yp-section-visibility-toggle.is-active,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-aside-layout-section .yp-section-visibility-toggle.is-active {
  color: var(--ysh-brand);
  background: rgba(var(--ysh-brand-rgb, 237, 169, 52), 0.18);
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-aside-layout-section .yp-section-visibility-toggle .dashicons,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-aside-layout-section .yp-section-visibility-toggle .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

body:not(.yp-icon-edit-mode):not(.yp-layout-edit-mode).yooadmin-theme-yooadmin-studio-hub .yp-studio-aside-layout-section[data-section-hidden="true"] {
  display: none !important;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-aside-layout-section.is-dashboard-section-hidden,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-aside-layout-section.is-dashboard-section-hidden {
  display: block !important;
  opacity: 0.55;
  filter: grayscale(0.35);
}

/* Hidden cards: gone when not editing */
body:not(.yp-icon-edit-mode).yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-icon-tile[data-hidden="true"] {
  display: none !important;
}

/* Hidden cards in edit mode: stay visible, inactive look (override yp-dashboard [data-hidden]) */
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-icon-tile[data-hidden="true"],
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-icon-tile[data-hidden="true"],
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-icon-tile.is-dashboard-card-hidden,
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-icon-tile.is-dashboard-card-hidden {
  display: flex !important;
  visibility: visible !important;
  opacity: 0.55;
  filter: grayscale(0.5);
  pointer-events: auto;
}

body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-icon-tile.is-dashboard-card-hidden .yp-icon-label,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-icon-tile.is-dashboard-card-hidden .yp-studio-ws-row__desc {
  text-decoration: none;
  opacity: 0.85;
}

/* Custom sections: visible when empty only in edit mode */
body.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-custom-section.yp-layout-section--hidden {
  display: none !important;
}

/* Custom section drop target — always visible in edit mode (not tied to card-icons hydration) */
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-custom-section .yp-studio-custom-grid,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-custom-section .yp-studio-custom-grid {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  display: grid !important;
  min-height: 88px;
  box-sizing: border-box;
  position: relative;
  align-content: start;
}

body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-custom-section.yp-studio-custom-section--empty .yp-cards-grid,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-custom-section.yp-studio-custom-section--empty .yp-cards-grid {
  border: 1px dashed rgba(var(--ysh-brand-rgb, 237, 169, 52), 0.55);
  border-radius: 10px;
  background: color-mix(in srgb, var(--ysh-brand, #eda934) 4%, transparent);
}

body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-custom-section.yp-studio-custom-section--empty .yp-layout-empty-drop-hint,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-custom-section.yp-studio-custom-section--empty .yp-layout-empty-drop-hint {
  grid-column: 1 / -1;
  margin: 0;
  padding: 20px 14px;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ysh-muted);
  pointer-events: none;
  user-select: none;
}

body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-custom-section.yp-studio-custom-section--empty .yp-layout-empty-drop-hint[hidden],
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-custom-section.yp-studio-custom-section--empty .yp-layout-empty-drop-hint[hidden] {
  display: none !important;
}

/* Empty custom section: drop target replaces hint text (not below it) */
body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-cards-grid.yp-custom-grid--drop-active .yp-layout-empty-drop-hint,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-cards-grid.yp-custom-grid--drop-active .yp-layout-empty-drop-hint {
  display: none !important;
}

body.yp-layout-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-custom-section.yp-studio-custom-section--empty .yp-cards-grid.yp-custom-grid--drop-active .yp-layout-drop-gap,
body.yp-icon-edit-mode.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub--dashboard .yp-studio-custom-section.yp-studio-custom-section--empty .yp-cards-grid.yp-custom-grid--drop-active .yp-layout-drop-gap {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  min-height: 76px;
  margin: 0;
}

body.yooadmin-theme-yooadmin-studio-hub .yp-studio-hub__aside .yp-studio-workspace-rows.yp-cards-grid {
  grid-template-columns: 1fr !important;
}

