.studio-image.jm-studio.jc-studio .cg-group > .jc-record-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.studio-image .cg-group > .jc-record-header > p:empty {
  display: none;
}

/* Both actions travel together at the end of the text. Earlier lines of a
   long prompt can use the full width, and revealing the actions needs no reflow. */
.studio-image .jc-record-header .zw-prompt-reuse {
  display: inline;
  vertical-align: baseline;
}

.studio-image .jc-record-header .zw-prompt-reuse > .zw-prompt-actions {
  position: static;
  transform: none;
  vertical-align: middle;
}

.studio-image .jc-record-header .zw-prompt-reuse[data-prompt-hover]::before {
  content: none;
}
