/* UX-CARNE 2.0 — Modal workspace (launchpad → módulo · PEBBLE VIDA) */

#m-carne-hub-workspace.carne-hub-workspace-modal {
  align-items: center !important;
  justify-content: center !important;
  padding: 12px !important;
}

#m-carne-hub-workspace.modal-pebble-vida > .mbox.bitacora-mbox {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  max-width: min(720px, 96vw) !important;
  max-height: min(92vh, 96dvh) !important;
  width: 100%;
}

#m-carne-hub-workspace .carne-hub-workspace-modal-serio-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 6px 8px 4px !important;
  gap: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

/* Proyección de ventas: lista con scroll (KPIs fijos arriba) */
#m-carne-hub-workspace #carne-panel-proyeccion.carne-panel--in-workspace {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

#m-carne-hub-workspace #carne-panel-proyeccion.carne-panel--in-workspace .carne-panel-body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

#m-carne-hub-workspace #carne-panel-proyeccion .carne-proy-resumen {
  flex: 0 0 auto;
}

#m-carne-hub-workspace #carne-panel-proyeccion #carne-proy-lista {
  flex: 1 1 auto;
  min-height: 100px;
  max-height: min(52vh, 480px);
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
}

#m-carne-hub-workspace #carne-panel-proyeccion #carne-proy-lista .carne-proy-rows {
  padding-bottom: 4px;
}

/* Plan Sanitario / Tratamientos: lista con scroll en workspace */
#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-plan.carne-panel--in-workspace,
#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-tratamientos.carne-panel--in-workspace,
#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-nutricion.carne-panel--in-workspace,
#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-hato.carne-panel--in-workspace,
#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-lotes.carne-panel--in-workspace {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-tratamientos.carne-panel--in-workspace .carne-tratamientos-shell {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  gap: 8px !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-nutricion.carne-panel--in-workspace .carne-nutricion-shell {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  gap: 8px !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-nutricion.carne-panel--in-workspace .carne-nutricion-panel-body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  gap: 8px !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-nutricion.carne-panel--in-workspace .nutr-resumen {
  flex: 0 0 auto !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-nutricion.carne-panel--in-workspace .carne-nutricion-foot {
  flex: 0 0 auto !important;
  display: flex !important;
  justify-content: center !important;
  padding: 0 2px 2px !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-nutricion.carne-panel--in-workspace .carne-nutr-add-btn {
  width: auto !important;
  max-width: 100% !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-hato.carne-panel--in-workspace .carne-hato-shell {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  gap: 8px !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-hato.carne-panel--in-workspace .carne-hato-toolbar {
  flex: 0 0 auto !important;
  padding: 0 4px !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-hato.carne-panel--in-workspace .carne-hato-lista-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-hato.carne-panel--in-workspace #carne-lista-hato {
  flex: 1 1 auto !important;
  min-height: 120px !important;
  max-height: min(58vh, 520px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-lotes.carne-panel--in-workspace .carne-lotes-shell {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  gap: 8px !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-lotes.carne-panel--in-workspace .carne-lotes-lista-body {
  flex: 1 1 auto !important;
  min-height: 120px !important;
  max-height: min(58vh, 520px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 0 4px !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-lotes.carne-panel--in-workspace .carne-lotes-foot {
  display: none !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-tratamientos.carne-panel--in-workspace .carne-tratamientos-foot {
  flex: 0 0 auto !important;
  display: flex !important;
  justify-content: center !important;
  padding: 0 2px 2px !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-tratamientos.carne-panel--in-workspace .carne-trat-add-btn {
  width: auto !important;
  max-width: 100% !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-plan.carne-panel--in-workspace #carne-plan-sanitario-lista,
#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-tratamientos.carne-panel--in-workspace #carne-tratamientos-lista,
#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-nutricion.carne-panel--in-workspace #carne-nutricion-lista {
  flex: 1 1 auto !important;
  min-height: 120px !important;
  max-height: min(58vh, 520px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-plan.carne-panel--in-workspace #carne-plan-sanitario-lista .carne-lista-empty,
#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-tratamientos.carne-panel--in-workspace #carne-tratamientos-lista .carne-lista-empty,
#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-tratamientos.carne-panel--in-workspace .carne-trat-empty,
#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-nutricion.carne-panel--in-workspace #carne-nutricion-lista .carne-lista-empty,
#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-nutricion.carne-panel--in-workspace .carne-nutr-empty {
  min-height: 48px;
}

/* Alertas del hato: lista con scroll en workspace */
#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-alertas.carne-panel--in-workspace {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-alertas.carne-panel--in-workspace #carne-alertas-lista {
  flex: 1 1 auto !important;
  min-height: 120px !important;
  max-height: min(58vh, 520px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-alertas.carne-panel--in-workspace #carne-alertas-lista .carne-alert-empty {
  min-height: 48px;
}

/* Genealogía — scroll real en workspace (sin doble marco) */
#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-genealogia.carne-panel--in-workspace {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow: hidden !important;
  visibility: visible !important;
  pointer-events: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-genealogia.carne-panel--in-workspace .carne-gen-rank-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain;
  padding: 0 2px 10px !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

#m-carne-hub-workspace #carne-panel-genealogia.carne-panel--in-workspace .carne-f1-block {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

#m-carne-hub-workspace #carne-panel-genealogia.carne-panel--in-workspace .carne-f1-block__tit {
  padding: 0 0 8px !important;
  margin: 0 !important;
  border: none !important;
  border-bottom: 1px solid var(--gris-300, #cbd5e1) !important;
  background: transparent !important;
  font-size: 13px !important;
}

#m-carne-hub-workspace #carne-panel-genealogia.carne-panel--in-workspace .carne-f1-block__body {
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

#m-carne-hub-workspace #carne-panel-genealogia.carne-panel--in-workspace .carne-f1-block__body > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

#m-carne-hub-workspace #carne-panel-genealogia.carne-panel--in-workspace .carne-gen-rank-intro {
  margin: 0 !important;
}

#m-carne-hub-workspace #carne-panel-genealogia.carne-panel--in-workspace .carne-cruces-sim-wrap {
  margin: 0 !important;
}

#m-carne-hub-workspace #carne-panel-genealogia.carne-panel--in-workspace .carne-razas-catalogo-host {
  margin: 0 !important;
}

#m-carne-hub-workspace #carne-panel-genealogia.carne-panel--in-workspace .carne-razas-catalogo__body {
  max-height: none !important;
  overflow: visible !important;
}

#m-carne-hub-workspace #carne-panel-genealogia.carne-panel--in-workspace .carne-f1-block__tit img {
  width: 28px !important;
  height: 28px !important;
}

/* Botones de acción en tarjetas de alertas — 36px (mismo que Regresar / pie modal) */
#m-carne-hub-workspace #carne-hub-workspace-host .carne-alerta-btn,
#pg-carne .carne-alerta-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 14px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  background: var(--manto-btn-gris-ok-bg) !important;
  border: var(--manto-btn-gris-ok-border) !important;
  color: var(--manto-btn-gris-ok-color) !important;
  box-shadow: var(--manto-btn-gris-ok-shadow) !important;
  -webkit-text-fill-color: var(--manto-btn-gris-ok-color) !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host .carne-alerta-btn:hover,
#m-carne-hub-workspace #carne-hub-workspace-host .carne-alerta-btn:focus-visible,
#pg-carne .carne-alerta-btn:hover,
#pg-carne .carne-alerta-btn:focus-visible {
  border: var(--manto-btn-gris-ok-border-hover) !important;
  box-shadow: var(--manto-btn-gris-ok-shadow-hover) !important;
  outline: none !important;
}

/* Panel dentro del workspace: tarjeta PEBBLE (no plano/transparente) — excepto Genealogía */
#m-carne-hub-workspace.modal-pebble-vida #carne-hub-workspace-host .carne-panel--in-workspace:not(#carne-panel-genealogia),
#m-carne-hub-workspace.modal-pebble-vida #carne-hub-workspace-host .carne-kpi-dashboard.carne-panel--in-workspace {
  margin: 0 !important;
  padding: 10px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  border: 1px solid var(--pev-border, #cbd5e1) !important;
  border-radius: var(--pev-radius-card, 12px) !important;
  background: linear-gradient(168deg, #fff 0%, #f1f5f9 38%, #e2e8f0 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 1px 2px rgba(15, 23, 42, 0.06) !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host .carne-panel--in-workspace > .section-header,
#m-carne-hub-workspace #carne-hub-workspace-host .carne-panel--in-workspace > .carne-serio-panel-h {
  display: none !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host .carne-panel--in-workspace .carne-panel-body:not(.carne-gen-rank-body),
#m-carne-hub-workspace #carne-hub-workspace-host .carne-panel--in-workspace .carne-alertas-lista {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

/* Acciones (BCS y pesadas, repro, etc.): misma rejilla que #pg-carne — el panel vive fuera de la página */
#m-carne-hub-workspace #carne-hub-workspace-host .carne-panel--in-workspace .carne-panel-body--actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 0 !important;
  margin: 0 !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host .carne-panel--in-workspace .carne-panel-body--grid3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host .carne-panel--in-workspace .carne-panel-body--grid2 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (max-width: 560px) {
  #m-carne-hub-workspace #carne-hub-workspace-host .carne-panel--in-workspace .carne-panel-body--grid3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 380px) {
  #m-carne-hub-workspace #carne-hub-workspace-host .carne-panel--in-workspace .carne-panel-body--grid3,
  #m-carne-hub-workspace #carne-hub-workspace-host .carne-panel--in-workspace .carne-panel-body--actions {
    grid-template-columns: 1fr !important;
  }
}

#m-carne-hub-workspace #carne-hub-workspace-host .carne-panel--in-workspace .carne-panel__btn {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 80px !important;
  min-height: 80px !important;
  max-height: none !important;
  padding: 6px 4px !important;
  border-radius: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  text-align: center !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  background: var(--manto-btn-b3-bg) !important;
  border: var(--manto-btn-b3-border) !important;
  box-shadow: var(--manto-btn-b3-shadow) !important;
  color: var(--manto-btn-b3-color) !important;
  -webkit-text-fill-color: var(--manto-btn-b3-color) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif !important;
  cursor: pointer !important;
  white-space: normal !important;
  line-height: 1.15 !important;
  -webkit-tap-highlight-color: transparent !important;
  transition: border-color .15s, background .15s, box-shadow .15s !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host .carne-panel--in-workspace .carne-panel__btn .carne-panel__btn-ico,
#m-carne-hub-workspace #carne-hub-workspace-host .carne-panel--in-workspace .carne-panel__btn img.carne-panel__btn-ico {
  width: 38px !important;
  height: 38px !important;
  max-width: 100% !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  display: block !important;
  opacity: .95 !important;
  margin: 0 !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host .carne-panel--in-workspace .carne-panel__btn .carne-panel__btn-txt {
  width: 100% !important;
  max-width: 100% !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  display: block !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif !important;
  color: var(--manto-btn-b3-color) !important;
  -webkit-text-fill-color: var(--manto-btn-b3-color) !important;
}

/* Paneles acción + nota — tipografía SERIO en workspace; gap lo pone la tarjeta PEBBLE */
#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-sinigan.carne-panel--in-workspace > .carne-panel-body--actions,
#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-sanidad.carne-panel--in-workspace > .carne-panel-body--actions {
  padding: 0 !important;
  margin: 0 !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-sinigan.carne-panel--in-workspace > .carne-panel__nota,
#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-sanidad.carne-panel--in-workspace > .carne-panel__nota,
#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-movilizacion.carne-panel--in-workspace > .carne-panel__nota {
  margin: 0 !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-movilizacion.carne-panel--in-workspace .carne-comercial-resumen,
#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-movilizacion.carne-panel--in-workspace .carne-comercial-pendientes,
#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-movilizacion.carne-panel--in-workspace .carne-mov-filtro-wrap,
#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-movilizacion.carne-panel--in-workspace .carne-mov-lista-wrap {
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-movilizacion.carne-panel--in-workspace .carne-comercial-resumen {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-movilizacion.carne-panel--in-workspace .carne-comercial-pendientes {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host .carne-panel--in-workspace .carne-panel__nota {
  margin: 0 !important;
  padding: 10px 12px !important;
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  color: var(--texto-suave, #64748b) !important;
  text-align: center !important;
  background: var(--gris-0, #ffffff) !important;
  border: var(--borde-fino, 1px solid #cbd5e1) !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host .carne-panel--in-workspace .carne-panel__btn:hover {
  border-color: var(--gris-300, #cbd5e1) !important;
  filter: brightness(.98) !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host .carne-panel--in-workspace .carne-panel__btn:active {
  background: var(--manto-btn-b2-bg) !important;
  color: var(--manto-btn-b2-color) !important;
  border: var(--manto-btn-b2-border) !important;
  -webkit-text-fill-color: var(--manto-btn-b2-color) !important;
  box-shadow: var(--manto-btn-b2-shadow) !important;
  filter: none !important;
}

#m-carne-hub-workspace .carne-hub-workspace-foot .carne-hub-workspace-foot-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
}

#m-carne-hub-workspace .carne-hub-workspace-foot .carne-hub-workspace-foot-btn {
  flex: 1 1 0 !important;
  max-width: 100% !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  border-radius: 12px !important;
  padding: 0 14px !important;
  gap: 8px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

#m-carne-hub-workspace .carne-hub-workspace-foot .carne-hub-workspace-foot-btn img {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

/* Launchpad: sin scroll al abrir — página estable */
#pg-carne.carne-ux2-on #carne-hub-launchpad {
  scroll-margin-top: 0;
}

/* UX-CARNE 2.2 — módulos fuera de #pg-carne (almacén en body) */
#carne-modules-store {
  display: none !important;
  visibility: hidden !important;
  position: fixed !important;
  left: -10000px !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

#pg-carne.carne-ux21-on #carne-hub-ux {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Nunca mostrar bloques profundos en la página (solo en modal workspace) */
#pg-carne.carne-ux21-on .carne-panel,
#pg-carne.carne-ux21-on .carne-kpi-dashboard,
#pg-carne.carne-ux21-on #carne-hub-deep-panel,
#pg-carne.carne-ux21-on .carne-hub-deep-wrap,
#pg-carne.carne-ux21-on .carne-hub-deep-toggle {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host .carne-panel--in-workspace:not(#carne-panel-genealogia),
#m-carne-hub-workspace #carne-hub-workspace-host .carne-kpi-dashboard.carne-panel--in-workspace {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  max-height: none !important;
  overflow: hidden !important;
  pointer-events: auto !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* QA y Field Demo: hero fijo + checklist/guion con scroll real */
#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-qa-demo.carne-panel--in-workspace {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow: hidden !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-qa-demo.carne-panel--in-workspace .carne-qa-hero {
  flex: 0 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  gap: 8px !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-qa-demo.carne-panel--in-workspace .carne-panel-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 0 2px 6px 0 !important;
  margin: 0 !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-qa-demo.carne-panel--in-workspace .carne-qa-lista {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
  min-height: 0 !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-qa-demo.carne-panel--in-workspace .carne-qa-row {
  min-height: 56px !important;
  box-sizing: border-box !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-qa-demo.carne-panel--in-workspace .carne-qa-row__act {
  max-width: 112px !important;
  white-space: normal !important;
  text-align: right !important;
  line-height: 1.2 !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-qa-demo.carne-panel--in-workspace .carne-demo-guion-wrap {
  margin-top: 0 !important;
  flex: 0 0 auto !important;
}

#m-carne-hub-workspace #carne-hub-workspace-host #carne-panel-qa-demo.carne-panel--in-workspace .carne-demo-guion-wrap.carne-demo-guion-wrap--activo {
  border-color: var(--gris-400, #94a3b8) !important;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, .22) !important;
}
