.scai-image-history-preview,
.scai-image-history-pending {
  aspect-ratio: 16 / 9;
  min-width: 0;
}

.scai-image-history-preview {
  container-type: inline-size;
}

.scai-image-history-failure {
  gap: 2px;
  padding: 2px 4px;
}

.scai-image-history-actions {
  opacity: 0;
}

.group:hover .scai-image-history-actions,
.group:focus-within .scai-image-history-actions {
  opacity: 1;
}

@media (hover: none) {
  .scai-image-history-actions {
    opacity: 1;
  }
}

@container (max-width: 145px) {
  .scai-image-history-failure > svg {
    display: none;
  }
}
