/* Root Z keeps only the compact Shared Header footprint required by its affordance. */
[data-v2-z-header]:has(> [data-v2-z-header-content]:empty){
  min-height:28px!important;
  padding-bottom:0!important;
  background:var(--v2-white,#fff)!important;
}

/* Q keeps fixed Header + scrolling Body technically, but both are one visual surface. */
[data-v2-q-header],
[data-v2-q-header] > [data-v2-q-header-content]{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}

/* Empty Q keeps only the same compact Shared affordance footprint. */
[data-v2-q-header]:has(> [data-v2-q-header-content]:empty){
  min-height:28px!important;
  padding-bottom:0!important;
  background:transparent!important;
}

[data-v2-q-header]:has(> [data-v2-q-header-content]:empty) > [data-v2-z-dismiss]{
  margin-top:0!important;
  margin-bottom:2px!important;
}

[data-v2-q-header]:has(> [data-v2-q-header-content]:empty) > [data-v2-q-header-content]{
  display:none!important;
}

/* A Q body starts directly after its compact empty Header; feature margins must not recreate a fake Header strip. */
[data-v2-q-body] > .workspace-header-context + .entity-details{
  margin-top:0;
}
