/* Reclaim the narrow scrollport's 4px edge clearance when the toolbar
   falls back above the prompt. Controls below the prompt keep their position. */
@media (max-width: 360px) and (max-height: 600px) {
  .studio-shell:is(.studio-image, .studio-video)
  .jc-record-header .zw-prompt-reuse.zw-prompt-below > .zw-prompt-actions {
    translate: 0 clamp(-4px, var(--zw-toolbar-top, 0px), 0px);
  }
}

.jc-overlay-root #jm-model-panel .jc-model-families > .jc-model-section-label {
  margin-block-end: 10px;
}

.jc-overlay-root #jm-model-panel .jc-model-families > .jc-model-list > .jc-model-family:not(:last-child) {
  margin-block-end: 7px;
}
