.field {
  display: flex;
  flex-direction: column;
  min-width: 400px;
}

.section-header {
    margin-bottom: 1rem;
    
    h3 {
      margin-bottom: 0.25rem;
      font-weight: 500;
    }
    
    small {
      color: var(--text-color-secondary);
    }
  }
  
  .instances-container {
    margin-bottom: 1.5rem;
  }
  
  .instance-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .instance-item {
    background-color: var(--surface-hover);
    border-radius: 6px;
    padding: 1rem;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    
    &:hover {
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
  }
  
  .instance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
  }
  
  .instance-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    
    .instance-icon {
      color: var(--primary-color);
      font-size: 1rem;
    }
    
    .instance-name-input {
      font-weight: 500;
      font-size: 1.1rem;
    }
  }
  
  .instance-content {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--surface-border);
  }
  
  .instance-field {
    display: flex;
    flex-direction: column;
    
    @media (min-width: 768px) {
      flex-direction: row;
      align-items: flex-start;
    }
    
    label {
      font-weight: 500;
      margin-bottom: 0.5rem;
      
      @media (min-width: 768px) {
        flex: 0 0 200px;
        margin-bottom: 0;
        padding-top: 0.5rem;
      }
    }
    
    .field-input {
      flex: 1;
      max-width: 100%;
      
      @media (min-width: 768px) {
        max-width: 400px;
      }
    }
  }
  
  .empty-instances-message {
    background-color: var(--surface-ground);
    border-radius: 6px;
    border: 1px dashed var(--surface-border);
    color: var(--text-color-secondary);
    font-style: italic;
  }
  
  .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--surface-border);
  }
  